:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --paper: #f7f9f4;
  --ink: #122134;
  --muted: #657282;
  --line: rgba(18, 33, 52, .12);
  --blue: #1f6feb;
  --cyan: #1aa6a6;
  --coral: #ef6b4a;
  --lemon: #f6cf55;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(35, 50, 70, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31,111,235,.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26,166,166,.08), transparent 420px),
    var(--paper);
  background-size: 74px 74px, auto;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1,h2,h3,p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 0 clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 244, .9);
  backdrop-filter: blur(16px);
}
.brand { display: grid; gap: 2px; white-space: nowrap; }
.brand strong { font-size: 1.3rem; color: var(--blue); }
.brand span { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.nav { display: flex; justify-content: end; gap: 8px; overflow-x: auto; white-space: nowrap; }
.nav a {
  padding: 10px 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(31,111,235,.22); background: rgba(31,111,235,.08); }

.hero {
  width: min(1280px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 12px;
  align-items: stretch;
}
.hero-copy {
  min-height: 260px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f1fbfb 56%, rgba(246,207,85,.22));
  box-shadow: var(--shadow);
  display: grid;
  align-content: center;
}
.eyebrow { margin-bottom: 8px; color: var(--cyan); font-size: .68rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0; }
h1 { margin-bottom: 10px; font-size: clamp(1.8rem, 2.7vw, 3rem); line-height: 1.08; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.2vw, 2.25rem); line-height: 1.15; }
.hero-copy p:not(.eyebrow),.page-hero p,.poster-info p,.feature-copy small,.detail-copy p,.footer p { color: var(--muted); line-height: 1.72; }
.hero-copy p:not(.eyebrow) { max-width: 560px; font-size: .92rem; line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 950; font-size: .88rem; }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button.ghost { color: var(--blue); background: #fff; }

.hero-stage {
  min-height: 260px;
  aspect-ratio: 16 / 7.2;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-stage a { position: relative; display: block; height: 100%; }
.hero-stage span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 33, 52, .82);
}
.hero-stage b,.hero-stage em { display: block; font-style: normal; }
.hero-stage b { font-size: 1rem; }
.hero-stage em { margin-top: 4px; color: rgba(255,255,255,.76); }

.hero-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hero-rail a {
  position: relative;
  min-height: 86px;
  aspect-ratio: 16 / 5.8;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(35,50,70,.12);
}
.hero-rail span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18,33,52,.78);
  font-size: .82rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channels {
  width: min(1420px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.channel-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(35,50,70,.08);
}
.channel-card span,.channel-card strong,.channel-card small { position: relative; z-index: 2; display: block; }
.channel-card span { color: var(--coral); font-weight: 950; }
.channel-card strong { margin: 4px 0; font-size: 2.5rem; color: var(--blue); }
.channel-card small { width: 58%; color: var(--muted); line-height: 1.55; }
.channel-card img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 100%;
  opacity: .82;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.section {
  width: min(1420px, calc(100% - 32px));
  margin: 26px auto 0;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head a,.count { color: var(--blue); font-weight: 950; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.feature {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.feature-no { color: var(--coral); font-weight: 950; }
.feature-thumb { width: 64px; height: 72px; overflow: hidden; border-radius: 6px; background: #dde5ed; }
.feature-copy b,.feature-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-copy b { margin-bottom: 4px; }
.feature em { color: var(--blue); font-style: normal; font-weight: 950; }

.rank-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #122134;
  color: #fff;
  box-shadow: var(--shadow);
}
.rank-panel .eyebrow { color: var(--lemon); }
.rank-panel ol { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.rank-panel a { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.84); }
.rank-panel b { color: var(--lemon); }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 14px;
}
.library-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.poster-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(35,50,70,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.poster-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.poster { position: relative; aspect-ratio: 2 / 2.86; overflow: hidden; background: #dde5ed; }
.poster span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: .72rem;
  font-weight: 950;
}
.poster-info { padding: 10px; }
.poster-info h3 { margin-bottom: 4px; font-size: .98rem; line-height: 1.25; min-height: 2.5em; }
.poster-info p { margin-bottom: 8px; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; color: var(--muted); font-size: .75rem; }
.meta b { color: var(--blue); font-size: .9rem; }
.meta em { font-style: normal; }

.page-hero {
  width: min(1420px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, rgba(31,111,235,.08), rgba(239,107,74,.10));
  box-shadow: var(--shadow);
}
.page-hero h1 { max-width: 860px; }
.page-hero p { max-width: 760px; }
.filters {
  width: min(1420px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.filters button,.filters select {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}
.filters button:hover,.filters select:hover { border-color: rgba(31,111,235,.35); color: var(--blue); }

.detail {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.detail-poster {
  overflow: hidden;
  border-radius: 8px;
  background: #dde5ed;
  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);
}
.origin { font-weight: 900; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.detail-meta span { padding: 7px 10px; border-radius: 999px; background: rgba(31,111,235,.08); color: var(--blue); font-weight: 950; }

.footer {
  width: min(1420px, calc(100% - 32px));
  margin: 34px auto 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, .65fr));
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  color: #dbe7f5;
  background: #122134;
}
.footer strong { display: block; margin-bottom: 8px; color: #fff; font-size: 1.2rem; }
.footer h3 { margin-bottom: 10px; color: var(--lemon); font-size: .95rem; }
.footer a { display: block; margin: 7px 0; color: #dbe7f5; }
.footer p { margin-bottom: 7px; color: rgba(219,231,245,.72); }
.image-missing { outline: 2px solid #e3342f; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
  .hero-copy,.hero-stage { min-height: 240px; }
  .hero-rail { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
  .nav { justify-content: start; }
  .hero { width: calc(100% - 24px); grid-template-columns: 1fr; gap: 12px; }
  .hero-copy,.hero-stage { min-height: auto; }
  .hero-stage { aspect-ratio: 16 / 9; }
  .hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels,.section,.page-hero,.filters,.footer,.detail { width: calc(100% - 24px); }
  .channels,.feature-list,.footer,.detail { grid-template-columns: 1fr; }
  .poster-grid,.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  h1 { font-size: 2rem; }
}
