:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --ink: #17212b;
  --muted: #637283;
  --line: #d8e1e8;
  --blue: #2f6fca;
  --teal: #168980;
  --red: #d84a5d;
  --amber: #d1932d;
  --shadow: 0 14px 36px rgba(44, 68, 92, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(47,111,202,.09), transparent 360px),
    linear-gradient(90deg, rgba(23,33,43,.045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 88px 88px;
}
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: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(216,225,232,.9);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 950;
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 7px solid var(--blue);
  border-right-color: var(--teal);
  border-radius: 50%;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  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: 999px;
  color: var(--muted);
  font-weight: 900;
}
.nav a.active,.nav a:hover {
  color: var(--blue);
  border-color: rgba(47,111,202,.24);
  background: #eaf1ff;
}
.pill {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(47,111,202,.22);
}

.hero,.channels,.dashboard,.collection,.section,.page-title,.filters,.detail,.footer {
  width: min(1320px, calc(100% - 36px));
  margin: 20px auto 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 12px;
  align-items: stretch;
}
.hero-main {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  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 48%, rgba(14,25,36,.78));
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: clamp(18px, 3vw, 38px);
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 2;
  color: #fff;
}
.hero-copy p {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}
.hero-copy h1 {
  margin-bottom: 9px;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}
.hero-copy span { color: rgba(255,255,255,.92); font-weight: 950; }
.hero-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.channel {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(44,68,92,.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: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.list-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(44,68,92,.08);
}
.list-panel.accent {
  background: linear-gradient(135deg, #fff, #eefaf8);
}
.list-panel h2 {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 1.1rem;
}
.text-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 39px;
  border-top: 1px solid var(--line);
}
.text-link span { color: var(--red); font-weight: 950; }
.text-link b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-link em {
  color: var(--teal);
  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 p,.tile-copy p,.page-title p,.detail-copy p,.footer p {
  color: var(--muted);
  line-height: 1.64;
}
.section-head a,#resultCount {
  color: var(--blue);
  font-weight: 950;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.feature-tile { grid-column: span 2; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}
.tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(44,68,92,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(47,111,202,.38);
  box-shadow: 0 14px 30px rgba(44,68,92,.16);
}
.side-tile { min-height: 209px; }
.side-tile a {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  height: 100%;
}
.cover {
  position: relative;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: #dce5ec;
}
.feature-tile .cover { aspect-ratio: 16 / 8.8; }
.hero-side .side-tile .cover { aspect-ratio: auto; height: 100%; }
.cover span {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: .72rem;
  font-weight: 950;
}
.tile-copy {
  padding: 9px;
}
.tile-copy h3 {
  margin-bottom: 4px;
  min-height: 2.44em;
  font-size: .9rem;
  line-height: 1.22;
}
.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(--red); }
.tile-copy em { font-style: normal; }
.hero-side .side-tile .tile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
}
.hero-side .side-tile .tile-copy h3 {
  min-height: auto;
  color: var(--blue);
  font-size: 1.1rem;
}

.page-title {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47,111,202,.14), rgba(22,137,128,.12)),
    var(--surface);
  box-shadow: var(--shadow);
}
.label {
  margin-bottom: 8px;
  color: var(--red);
  font-weight: 950;
}
.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(--surface);
  box-shadow: 0 8px 20px rgba(44,68,92,.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: 999px;
  background: var(--surface-soft);
  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(--blue);
}

.detail {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0,1fr);
  gap: 16px;
  align-items: stretch;
}
.detail-cover {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce5ec;
  box-shadow: var(--shadow);
}
.detail-copy {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  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(--blue); }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.badges span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-weight: 950;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(130px, .7fr));
  gap: 18px;
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(44,68,92,.08);
}
.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  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(--blue); }
.footer-copy p { margin-bottom: 6px; }
.image-missing { outline: 2px solid #d84a5d; }

@media (max-width: 1100px) {
  .hero,.dashboard,.detail { grid-template-columns: 1fr; }
  .hero-main { min-height: 0; aspect-ratio: 16 / 8.2; }
  .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-tile { grid-column: span 2; }
  .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; }
  .hero,.channels,.dashboard,.collection,.section,.page-title,.filters,.detail,.footer { width: calc(100% - 24px); }
  .hero-main { aspect-ratio: 16 / 11; }
  .hero-side,.channels,.collection-grid,.footer { grid-template-columns: 1fr; }
  .feature-tile { grid-column: auto; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-tile a { grid-template-columns: 116px minmax(0, 1fr); }
  .detail-cover { min-height: auto; aspect-ratio: 2 / 2.8; }
}
