:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --paper: #fbf6ec;
  --paper2: #f1e5d3;
  --ink: #1c1a18;
  --muted: #6e6256;
  --line: rgba(28, 26, 24, .16);
  --sakura: #d84f70;
  --indigo: #26345f;
  --tea: #4f806a;
  --gold: #ba7d2d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(216, 79, 112, .08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(28, 26, 24, .035) 0 1px, transparent 1px 34px),
    var(--paper);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
.topbar, .hero, .quick-tabs, .section, .page-heading, .toolline, .footer {
  width: min(1460px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.topbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-bottom: 3px double var(--indigo);
}
.brand { display: grid; gap: 3px; white-space: nowrap; }
.brand strong { color: var(--sakura); font-size: 1.34rem; letter-spacing: 0; }
.brand span { color: var(--gold); font-size: .68rem; font-weight: 950; letter-spacing: .08em; }
.nav {
  display: flex;
  justify-content: end;
  gap: clamp(10px, 1.7vw, 24px);
  overflow-x: auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
}
.nav a { padding: 28px 0 22px; border-bottom: 2px solid transparent; }
.nav a.active, .nav a:hover { color: var(--indigo); border-color: var(--sakura); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(290px, .42fr);
  gap: 20px;
  padding: 30px 0 22px;
}
.hero-copy {
  min-height: 410px;
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(241,229,211,.62)),
    var(--paper2);
  border: 1px solid var(--line);
  border-left: 8px solid var(--sakura);
  box-shadow: 0 18px 60px rgba(38, 52, 95, .09);
}
.label {
  margin-bottom: 12px;
  color: var(--tea);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 3.8vw, 4.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}
h2 { margin-bottom: 0; font-size: clamp(1.45rem, 2.15vw, 2.4rem); line-height: 1.15; }
.hero-copy p:not(.label), .page-heading p, .footer p, .poster-info p, .lane-card small, .detail article p {
  color: var(--muted);
  line-height: 1.76;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero-stats span, .count, .facts span {
  padding: 7px 10px;
  color: var(--indigo);
  background: rgba(255,255,255,.58);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 850;
}
.hero-poster {
  height: 410px;
  overflow: hidden;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 0 0 22px 0;
}
.hero-poster a { position: relative; display: block; height: 100%; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.96) contrast(1.02); }
.hero-poster span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 4px;
  padding: 13px;
  background: rgba(251,246,236,.92);
  border: 1px solid var(--line);
}
.hero-poster b { color: var(--tea); font-size: .72rem; text-transform: uppercase; }
.hero-poster strong { font-size: 1.14rem; }
.hero-poster em { color: var(--sakura); font-style: normal; font-weight: 900; }
.quick-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quick-tabs a {
  min-height: 108px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-right: 1px dashed var(--line);
}
.quick-tabs a:last-child { border-right: 0; }
.quick-tabs a:hover { background: rgba(216,79,112,.07); }
.quick-tabs b { color: var(--indigo); font-size: 1.04rem; }
.quick-tabs span { color: var(--muted); font-size: .82rem; }
.section, .page-heading { padding-top: 48px; }
.section.compact { padding-top: 22px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head.wide a, .text-link { color: var(--sakura); font-weight: 950; }
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .38fr);
  gap: 22px;
}
.watch-lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lane-card {
  min-width: 0;
  background: rgba(255,255,255,.46);
  border: 1px solid var(--line);
}
.lane-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lane-card span { display: grid; gap: 4px; padding: 10px; }
.lane-card b { font-size: .95rem; line-height: 1.25; }
.rank-box {
  align-self: start;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(241,229,211,.7));
  border: 1px solid var(--line);
}
.rank-box div { display: grid; margin-top: 14px; }
.rank-box a {
  min-height: 43px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.rank-box strong { color: var(--gold); }
.rank-box b { color: var(--sakura); }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
  gap: 20px 14px;
}
.library-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.poster-card {
  min-width: 0;
  background: rgba(255,255,255,.52);
  border: 1px solid var(--line);
}
.poster-card a { display: grid; height: 100%; }
.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--paper2);
}
.poster-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.poster-card:hover img { transform: scale(1.035); }
.poster-frame i {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 5px 7px;
  color: #fff;
  background: var(--sakura);
  font-style: normal;
  font-weight: 950;
}
.poster-info { display: grid; gap: 6px; padding: 11px; }
.poster-info span {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  color: #fff;
  background: var(--indigo);
  font-size: .68rem;
  font-weight: 950;
}
.poster-info h3 { margin-bottom: 0; font-size: .98rem; line-height: 1.32; }
.poster-info p { margin: 0; font-size: .76rem; }
.poster-info em { color: var(--gold); font-style: normal; font-size: .77rem; }
.page-heading { max-width: 980px; margin-left: max(16px, calc((100vw - 1460px) / 2)); }
.page-heading h1 { margin-bottom: 12px; }
.toolline {
  margin-top: 22px;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toolline button, .toolline select {
  min-height: 39px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255,255,255,.58);
  border: 1px solid var(--line);
  font: 850 .88rem "Microsoft YaHei UI", sans-serif;
}
.toolline button.active, .toolline button:hover, .toolline select:focus { border-color: var(--sakura); outline: 0; }
.toolline select option { color: #111; background: #fff; }
.detail {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: minmax(240px, 350px) minmax(0, 1fr);
  gap: 26px;
}
.detail figure { margin: 0; background: var(--paper2); border: 1px solid var(--line); }
.detail figure img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.detail article {
  align-self: center;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-top: 5px solid var(--indigo);
}
.detail .sub { color: var(--sakura); font-weight: 900; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.footer {
  margin-top: 60px;
  margin-bottom: 26px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, .6fr));
  gap: 22px;
  border-top: 3px double var(--indigo);
}
.footer strong { color: var(--sakura); font-size: 1.1rem; }
.footer h3 { margin: 0 0 10px; color: var(--tea); font-size: .98rem; }
.footer a, .footer p { display: block; margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.footer a:hover { color: var(--ink); }
@media (max-width: 1080px) {
  .topbar, .hero, .split-panel, .detail { grid-template-columns: 1fr; }
  .nav { justify-content: start; }
  .hero-copy, .hero-poster { min-height: 330px; height: auto; }
  .quick-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watch-lane { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .topbar { gap: 8px; }
  .brand { padding-top: 14px; }
  .nav a { padding: 14px 0; }
  .hero { padding-top: 20px; }
  .hero-copy { padding: 20px; }
  h1 { font-size: 1.9rem; line-height: 1.18; }
  .quick-tabs, .footer { grid-template-columns: 1fr; }
  .quick-tabs a { border-right: 0; border-bottom: 1px dashed var(--line); }
  .poster-grid, .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-lane { grid-template-columns: 1fr; }
  .hero-poster { height: 330px; }
}
