:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --bg: #e9f4f2;
  --surface: #fbfffd;
  --surface-2: #d9eee9;
  --ink: #10211f;
  --muted: #607572;
  --line: rgba(16,33,31,.13);
  --teal: #028b7f;
  --mint: #67d6bd;
  --coral: #ef6f5e;
  --navy: #16324f;
  --sun: #f4bd4f;
  --shadow: 0 22px 54px rgba(24,70,64,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(2,139,127,.14), transparent 32rem),
    radial-gradient(circle at 88% 4%, rgba(239,111,94,.18), transparent 24rem),
    linear-gradient(180deg, #f8fffc 0, var(--bg) 420px, #eef7f4 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
button, select { font: inherit; }

.masthead {
  width: min(1500px, calc(100% - 28px));
  margin: 16px auto 0;
  min-height: 78px;
  padding: 10px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: rgba(251,255,253,.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 12px;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.brand {
  min-height: 56px;
  padding: 9px 16px;
  display: grid;
  align-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 18px;
}
.brand strong {
  font-size: 1.58rem;
  line-height: 1;
}
.brand span {
  margin-top: 5px;
  color: #d7fff3;
  font-size: .72rem;
  font-weight: 950;
}
.masthead nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.masthead nav a {
  min-height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: rgba(16,33,31,.04);
  border: 1px solid transparent;
  border-radius: 14px;
  white-space: nowrap;
  font-weight: 900;
}
.masthead nav a.active,
.masthead nav a:hover {
  color: #fff;
  background: var(--teal);
}

.magazine {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2.3vw, 34px);
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}
.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .48fr);
  grid-template-rows: auto auto minmax(230px, auto);
  gap: 16px;
  align-items: stretch;
}
.cover-label,
.cover-copy,
.cover-poster,
.cover-note,
.section,
.library-cover,
.filter-strip,
.detail-stage,
.footer {
  background: rgba(251,255,253,.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.cover-label {
  grid-column: 1 / -1;
  min-height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--navy);
  color: #fff;
}
.cover-label p {
  margin: 0;
  color: #d8fff4;
  font-weight: 950;
}
.cover-label b {
  color: var(--sun);
  font-size: .88rem;
}
.cover-copy {
  grid-row: span 2;
  min-height: 570px;
  padding: clamp(28px, 5vw, 76px);
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}
.cover-copy::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -84px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103,214,189,.45), transparent 68%);
}
.cover-copy > * { position: relative; }
.eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 5.7vw, 6rem);
  line-height: .98;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(1.26rem, 2vw, 2rem);
  line-height: 1.12;
}
h3 { line-height: 1.18; }
.cover-copy p,
.cover-note p,
.section p,
.library-cover p,
.detail-copy p,
.footer p,
.rank-row small {
  color: var(--muted);
  line-height: 1.74;
}
.hero-stats {
  margin: 8px 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hero-stats span {
  padding: 12px;
  background: var(--surface-2);
  border-radius: 18px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 900;
}
.hero-stats b {
  display: block;
  color: var(--navy);
  font-size: 1.55rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.action,
.ghost {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 950;
}
.action {
  color: #fff;
  background: var(--navy);
}
.ghost {
  color: var(--teal);
  background: #fff;
  border: 1px solid var(--line);
}
.cover-poster {
  padding: 12px;
}
.cover-poster a {
  position: relative;
  display: block;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  border-radius: 22px;
}
.cover-poster img {
  height: 100%;
  object-fit: cover;
}
.cover-poster span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 11px 13px;
  color: #fff;
  background: rgba(22,50,79,.86);
  border-radius: 14px;
  font-weight: 950;
}
.cover-note {
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  align-content: center;
  background: linear-gradient(135deg, #fff, #e3f7f0);
}
.cover-note h2 {
  font-size: clamp(1.58rem, 2.7vw, 2.45rem);
}

.channel-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.channel-rail a {
  min-height: 118px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px;
  gap: 12px;
  align-items: center;
  background: rgba(251,255,253,.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(24,70,64,.1);
}
.channel-rail a:nth-child(2n) { background: #f9f4e4; }
.channel-rail a:nth-child(3n) { background: #edf7ff; }
.channel-rail strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}
.channel-rail span {
  color: var(--muted);
  font-size: .84rem;
}
.channel-rail img {
  width: 60px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
}
.section {
  padding: clamp(16px, 2vw, 24px);
}
.section-head {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.section-head a {
  color: var(--teal);
  font-weight: 950;
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.mixed-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.poster-card,
.strip-card {
  background: #fff;
  border: 1px solid rgba(16,33,31,.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(24,70,64,.1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.poster-card:hover,
.strip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(24,70,64,.18);
}
.poster-card a { display: grid; }
.poster-card figure,
.strip-card figure {
  position: relative;
  margin: 0;
  background: #dcebe7;
}
.poster-card img {
  aspect-ratio: 3 / 4.18;
  object-fit: cover;
}
.poster-card figcaption,
.strip-card figcaption {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 5px 8px;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 950;
}
.poster-card div {
  min-height: 110px;
  padding: 11px;
}
.poster-card span,
.strip-card span {
  color: var(--teal);
  font-size: .76rem;
  font-weight: 950;
}
.poster-card h3,
.strip-card h3 {
  margin: 6px 0 5px;
  font-size: .98rem;
}
.poster-card p,
.strip-card p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .82rem;
}
.poster-card em,
.strip-card em {
  color: var(--navy);
  font-style: normal;
  font-size: .8rem;
  font-weight: 950;
}

.rank-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rank-row b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 12px;
  font-size: .75rem;
}
.rank-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-weight: 950;
}
.rank-row small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-row i {
  justify-self: end;
  color: var(--coral);
  font-style: normal;
  font-weight: 950;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.strip-card a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
}
.strip-card img {
  height: 126px;
  object-fit: cover;
}
.strip-card div { padding: 11px; }

.library-cover {
  min-height: 320px;
  padding: clamp(28px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: end;
  background: linear-gradient(135deg, rgba(251,255,253,.94), #dff4ef);
}
.library-cover h1 {
  font-size: clamp(2.4rem, 5.2vw, 5.5rem);
}
.library-cover strong {
  padding: 18px;
  color: #fff;
  background: var(--teal);
  border-radius: 22px;
  font-size: 1.58rem;
}
.filter-strip {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: center;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters button,
.filter-strip select {
  min-height: 38px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 950;
}
.filters button.active {
  color: #fff;
  background: var(--teal);
}
.filter-strip label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 950;
}
.library-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.library-grid .strip-card {
  grid-column: span 2;
}

.detail-stage {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(300px, .44fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(16px, 2vw, 24px);
}
.detail-poster {
  margin: 0;
  background: #dcebe7;
  border-radius: 24px;
  overflow: hidden;
}
.detail-poster img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}
.detail-copy {
  padding: clamp(24px, 5vw, 66px);
  display: grid;
  align-content: center;
}
.detail-copy h1 {
  font-size: clamp(2.4rem, 4.9vw, 5.2rem);
}
.sub {
  color: var(--teal) !important;
  font-size: 1.08rem;
  font-weight: 950;
}
.facts {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.facts span {
  padding: 8px 11px;
  color: #fff;
  background: var(--navy);
  border-radius: 14px;
  font-weight: 950;
}
.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.footer {
  width: min(1500px, calc(100% - 28px));
  margin: 0 auto 28px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 18px;
}
.footer strong { font-size: 1.4rem; }
.footer h3 {
  margin-bottom: 8px;
  color: var(--teal);
}
.footer a {
  display: block;
  margin: 5px 0;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1280px) {
  .cover,
  .paper-layout,
  .library-cover,
  .detail-stage {
    grid-template-columns: 1fr;
  }
  .cover-copy { min-height: 460px; }
  .poster-grid,
  .mixed-grid,
  .library-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .channel-rail,
  .strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .masthead {
    grid-template-columns: 1fr;
  }
  .masthead nav {
    justify-content: flex-start;
  }
  .cover-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 14px;
  }
  .filter-strip,
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .poster-grid,
  .mixed-grid,
  .library-grid,
  .related-grid,
  .channel-rail,
  .strip-grid,
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h1 { font-size: 2.58rem; }
}

@media (max-width: 520px) {
  .magazine { padding-inline: 10px; }
  .poster-grid,
  .mixed-grid,
  .library-grid,
  .related-grid,
  .channel-rail,
  .strip-grid,
  .footer {
    grid-template-columns: 1fr;
  }
  .cover-copy,
  .library-cover,
  .detail-copy {
    padding: 22px;
  }
  .cover-poster a,
  .detail-poster img {
    min-height: 420px;
  }
}
