:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --bg: #ecf5f2;
  --panel: #ffffff;
  --panel-2: #f7fbf9;
  --ink: #14201d;
  --muted: #63746f;
  --line: #cfe0da;
  --green: #14795e;
  --navy: #203c5a;
  --lime: #d7ef63;
  --coral: #e55f4a;
  --shadow: 0 18px 34px rgba(26, 72, 59, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(20,121,94,.10), transparent 300px),
    repeating-linear-gradient(90deg, rgba(20,32,29,.045) 0 1px, transparent 1px 72px),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1,h2,h3,p { margin-top: 0; }
button,input,select { font: inherit; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  padding: 0 clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(247,251,249,.92);
  backdrop-filter: blur(18px);
}
.brand-box { display: grid; gap: 3px; }
.brand-box p {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 1.18rem;
  font-weight: 950;
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 2px solid var(--green);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--lime) 0 45%, var(--green) 45% 100%);
}
.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}
.nav a,.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
}
.nav a.active,.nav a:hover {
  color: var(--green);
  border-color: rgba(20,121,94,.24);
  background: rgba(215,239,99,.24);
}
.pill {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(20,121,94,.20);
}

.showboard,.page-title,.filters,.section,.detail,.footer {
  width: min(1280px, calc(100% - 36px));
  margin: 14px auto 0;
}
.showboard {
  display: grid;
  gap: 12px;
}
.program-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f2fbf6);
  box-shadow: var(--shadow);
}
.label {
  margin-bottom: 6px;
  color: var(--coral);
  font-weight: 950;
}
.program-head h1 {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}
.program-head p,.section-head p,.tile-copy p,.page-title p,.detail-copy p,.footer p {
  color: var(--muted);
  line-height: 1.58;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  font-weight: 950;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 12px;
  align-items: stretch;
}
.hero-main {
  height: 320px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.hero-main a { position: relative; display: block; height: 100%; }
.hero-main a::after,.cover::after,.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(13,30,26,.82));
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 26px);
  z-index: 2;
  color: #fff;
}
.hero-copy p {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 6px 9px;
  border-radius: 4px;
  color: #14201d;
  background: var(--lime);
  font-weight: 950;
}
.hero-copy h1 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  line-height: 1;
}
.hero-copy span { color: rgba(255,255,255,.92); font-weight: 950; }
.hero-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: 320px;
  min-height: 0;
}
.strip-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 9px 20px rgba(26,72,59,.08);
}
.strip-art {
  height: 86px;
  overflow: hidden;
  border-radius: 6px;
}
.strip-copy b,.strip-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip-copy b {
  margin-bottom: 4px;
  line-height: 1.3;
  font-size: .9rem;
}
.strip-copy small {
  color: var(--muted);
  line-height: 1.38;
  font-size: .78rem;
}

.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.channel {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 90px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(26,72,59,.07);
}
.channel img {
  height: 72px;
  border-radius: 6px;
}
.channel b,.channel small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel b { font-size: .98rem; }
.channel small { margin-top: 5px; color: var(--muted); }

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.list-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 22px rgba(26,72,59,.08);
}
.list-panel.accent { background: linear-gradient(135deg, #ffffff, #f3f8fb); }
.list-panel h2 {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.08rem;
}
.text-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 38px;
  border-top: 1px solid var(--line);
}
.text-link span { color: var(--coral); font-weight: 950; }
.text-link b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-link em {
  color: var(--green);
  font-style: normal;
  font-weight: 950;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 3px; font-size: 1.26rem; }
.section-head a,#resultCount {
  color: var(--green);
  font-weight: 950;
}
.collection-grid,.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
}
.tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(26,72,59,.07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(20,121,94,.34);
  box-shadow: 0 14px 28px rgba(26,72,59,.16);
}
.cover {
  position: relative;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: #dce9e4;
}
.cover span {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 4px;
  color: #14201d;
  background: var(--lime);
  font-size: .72rem;
  font-weight: 950;
}
.tile-copy { padding: 9px; }
.tile-copy h3 {
  margin-bottom: 5px;
  min-height: 2.45em;
  font-size: .9rem;
  line-height: 1.23;
}
.tile-copy p {
  margin-bottom: 7px;
  font-size: .74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: .72rem;
}
.tile-copy b { color: var(--coral); }
.tile-copy em { font-style: normal; }

.page-title {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #edf9f4);
  box-shadow: var(--shadow);
}
.page-title h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1;
}
.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(26,72,59,.07);
}
.search-form { display: flex; gap: 8px; }
.search-form input,.search-form button,.filter-buttons button,.filters select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 900;
}
.search-form input { width: 100%; padding: 0 14px; }
.search-form button,.filter-buttons button,.filters select { padding: 0 13px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form button,.filter-buttons button:hover {
  color: #fff;
  background: var(--green);
}

.detail {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0,1fr);
  gap: 16px;
  align-items: stretch;
}
.detail-cover {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce9e4;
  box-shadow: var(--shadow);
}
.detail-copy {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.detail-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1;
}
.origin { font-weight: 950; color: var(--green); }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.badges span {
  padding: 7px 10px;
  border-radius: 4px;
  color: #14201d;
  background: var(--lime);
  font-weight: 950;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(130px, .7fr));
  gap: 18px;
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eef8f4);
  box-shadow: 0 10px 26px rgba(26,72,59,.08);
}
.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 1.18rem;
}
.footer h3 { margin-bottom: 9px; font-size: .95rem; }
.footer a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
}
.footer a:hover { color: var(--green); }
.footer-copy p { margin-bottom: 6px; }
.image-missing { outline: 2px solid #e55f4a; }

@media (max-width: 1120px) {
  .hero,.dashboard,.detail { grid-template-columns: 1fr; }
  .hero-main { height: auto; min-height: 0; aspect-ratio: 16 / 7.6; }
  .hero-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; height: auto; min-height: 0; }
  .strip-card { grid-template-columns: 72px minmax(0, 1fr); }
  .strip-art { height: 84px; }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid,.mosaic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
  .nav { justify-content: start; }
  .showboard,.page-title,.filters,.section,.detail,.footer { width: calc(100% - 24px); }
  .program-head { grid-template-columns: 1fr; }
  .hero-main { height: auto; aspect-ratio: 16 / 10; }
  .hero-strip,.channels,.collection-grid,.mosaic-grid,.footer { grid-template-columns: 1fr; }
  .strip-card { grid-template-columns: 82px minmax(0, 1fr); }
  .strip-art { height: 92px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-cover { min-height: auto; aspect-ratio: 2 / 2.8; }
}
