:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --paper: #f6f1e7;
  --ink: #1c1b18;
  --muted: #766f64;
  --line: #d8cdbb;
  --card: #fffaf0;
  --red: #c42021;
  --black: #111111;
  --blue: #1f5f8b;
  --gold: #b7832f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(196,32,33,.05) 0 50%, transparent 50%),
    linear-gradient(var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px, 100% 38px, auto;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,p,figure { margin: 0; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 clamp(16px, 4vw, 54px);
  border-bottom: 3px solid var(--black);
  background: rgba(246, 241, 231, .94);
  backdrop-filter: blur(14px);
}
.brand {
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  color: #fff;
  background: var(--black);
  box-shadow: 6px 6px 0 var(--red);
  white-space: nowrap;
}
.brand b { font-size: 1.14rem; letter-spacing: 0; }
.brand span { color: #f2d16b; font-size: .64rem; font-weight: 950; letter-spacing: 0; }
.nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  overflow-x: auto;
  color: var(--muted);
  font-weight: 950;
  white-space: nowrap;
}
.nav a { padding: 28px 0 24px; border-bottom: 4px solid transparent; }
.nav a:hover,.nav a.active { color: var(--black); border-color: var(--red); }
.head-link,.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 2px solid var(--black);
  background: var(--card);
  font-weight: 950;
  white-space: nowrap;
}
.head-link { box-shadow: 4px 4px 0 var(--black); }
.btn.primary { color: #fff; background: var(--red); }
.btn.ghost { background: transparent; }

.hero {
  width: min(1480px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(260px, .56fr) minmax(320px, .72fr);
  gap: 18px;
  align-items: stretch;
}
.hero-copy,.hero-lead,.hero-rank,.feature-panel,.detail-copy {
  border: 3px solid var(--black);
  background: var(--card);
  box-shadow: 8px 8px 0 rgba(17,17,17,.9);
}
.hero-copy {
  min-height: 450px;
  padding: clamp(24px, 5vw, 58px);
  display: grid;
  align-content: center;
  border-left-width: 12px;
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--red);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5.2vw, 5.55rem);
  line-height: .98;
  letter-spacing: 0;
}
h2 {
  font-size: clamp(1.38rem, 2.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}
.hero-copy p:not(.eyebrow),.page-title p,.footer p,.card-body span,.feature-card small,.feature-card em,.mini-row small,.detail-copy p {
  color: var(--muted);
  line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-lead { min-height: 450px; overflow: hidden; }
.hero-lead a,.hero-lead img { width: 100%; height: 100%; }
.hero-lead a { position: relative; display: block; }
.hero-lead img { object-fit: cover; }
.hero-lead span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 5px;
  padding: 14px;
  color: #fff;
  background: rgba(17,17,17,.88);
  border-left: 8px solid var(--red);
}
.hero-lead small { color: #f2d16b; font-weight: 950; }
.hero-lead b { font-size: 1.2rem; }
.hero-rank { padding: 20px; }
#heroStack { display: grid; gap: 10px; margin-top: 18px; }
.mini-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 2px solid var(--line);
  background: #fff;
}
.mini-row i { color: var(--red); font-style: normal; font-weight: 950; }
.mini-row b,.mini-row small { display: block; }
.mini-row strong { color: var(--blue); }

.channel-bar,.section,.page-title {
  width: min(1480px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.channel-bar {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 3px solid var(--black);
  background: var(--black);
  gap: 3px;
}
.channel-bar a {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  background: var(--card);
}
.channel-bar b { color: var(--red); font-size: 1.02rem; }
.channel-bar span { color: var(--muted); font-size: .86rem; }
.section,.page-title { padding-top: 54px; }
.compact-top { padding-top: 24px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--black);
  padding-bottom: 12px;
}
.section-head a { color: var(--red); font-weight: 950; }
.section-head.tight { margin-bottom: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .72fr); gap: 22px; }
.feature-panel { align-self: start; padding: 18px; }
#docRail { display: grid; gap: 12px; }
.feature-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px;
  border: 2px solid var(--line);
  background: #fff;
}
.feature-card img { width: 88px; aspect-ratio: 2/3; object-fit: cover; }
.feature-card span { display: grid; align-content: center; gap: 4px; }
.feature-card b { font-size: 1rem; }
.feature-card em { font-style: normal; font-size: .82rem; }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
  gap: 16px;
}
.poster-grid.focus { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.poster-grid.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card {
  border: 3px solid var(--black);
  background: var(--card);
  box-shadow: 5px 5px 0 rgba(17,17,17,.86);
  overflow: hidden;
}
.card a { display: grid; height: 100%; }
.cover { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #e7decd; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.card:hover .cover img { transform: scale(1.045); }
.cover figcaption {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  color: #fff;
  background: var(--red);
  font-size: .7rem;
  font-weight: 950;
}
.card-body { display: grid; gap: 6px; padding: 12px; }
.card-body p { color: var(--gold); font-size: .72rem; font-weight: 950; }
.card-body h3 { font-size: .98rem; line-height: 1.34; }
.card-body span { font-size: .76rem; }
.meta,.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: .75rem;
}
.meta b { color: var(--red); }
.meta em { color: var(--muted); font-style: normal; }

.page-title {
  padding-bottom: 20px;
  border-bottom: 3px solid var(--black);
}
.page-title h1 { max-width: none; margin-bottom: 10px; font-size: clamp(2rem, 4vw, 4rem); }
.filters {
  width: min(1480px, calc(100% - 32px));
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 3px solid var(--black);
  background: var(--card);
}
.filters button,.filters select {
  min-height: 40px;
  padding: 0 13px;
  border: 2px solid var(--black);
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 950;
}
.count { padding: 7px 10px; border: 2px solid var(--black); background: #fff; font-weight: 950; }

.detail {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 22px;
}
.detail-poster {
  border: 3px solid var(--black);
  background: var(--card);
  box-shadow: 8px 8px 0 rgba(17,17,17,.88);
  overflow: hidden;
}
.detail-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.detail-copy { padding: clamp(24px, 5vw, 54px); display: grid; align-content: center; }
.detail-copy h1 { max-width: 12ch; }
.origin { color: var(--blue); font-weight: 950; }
.detail-meta { margin: 16px 0 20px; }
.detail-meta span { padding: 7px 9px; border: 2px solid var(--line); background: #fff; font-weight: 950; }
.detail .btn { width: max-content; margin-top: 16px; }

.footer {
  width: min(1480px, calc(100% - 32px));
  margin: 64px auto 26px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(150px, .62fr));
  gap: 24px;
  color: #fff;
  background: var(--black);
  border-top: 8px solid var(--red);
}
.footer b { color: #f2d16b; font-size: 1.1rem; }
.footer h3 { margin-bottom: 10px; color: #f2d16b; font-size: .95rem; }
.footer a,.footer p { display: block; margin-bottom: 8px; color: #ddd5c8; font-size: .86rem; }

@media (max-width: 1120px) {
  .site-head { grid-template-columns: 1fr; padding: 14px 16px; }
  .nav { justify-content: start; }
  .head-link { display: none; }
  .hero,.split,.detail { grid-template-columns: 1fr; }
  .hero-copy,.hero-lead { min-height: 330px; }
  .channel-bar,.footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .channel-bar,.footer { grid-template-columns: 1fr; }
  .poster-grid,.poster-grid.focus,.poster-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 2.4rem; }
  .brand { width: max-content; }
}
