:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --night: #121216;
  --deck: #191a1f;
  --panel: #22242b;
  --ink: #f5f0e8;
  --muted: #b5aea3;
  --line: rgba(245, 240, 232, .15);
  --teal: #55d5c9;
  --coral: #ff6f61;
  --amber: #f2b84b;
  --violet: #9a8cff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(85, 213, 201, .08), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(255, 111, 97, .18), transparent 30%),
    linear-gradient(90deg, rgba(245, 240, 232, .035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--night);
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }

.masthead,
.hero,
.channel-strip,
.section,
.page-heading,
.toolline,
.site-footer {
  width: min(1480px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.masthead {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: grid; gap: 4px; white-space: nowrap; }
.brand strong { color: var(--teal); font-size: 1.32rem; letter-spacing: 0; }
.brand span { color: var(--amber); font-size: .68rem; font-weight: 950; letter-spacing: .08em; }
.nav {
  display: flex;
  justify-content: end;
  gap: clamp(10px, 1.8vw, 24px);
  overflow-x: auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
}
.nav a {
  padding: 28px 0 23px;
  border-bottom: 2px solid transparent;
}
.nav a.active,
.nav a:hover {
  color: var(--ink);
  border-color: var(--coral);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .58fr);
  gap: 22px;
  padding: 38px 0 26px;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 38px 34% 26px 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(18, 18, 22, .1) 0 8px, rgba(245, 240, 232, .16) 8px 10px, transparent 10px 28px),
    linear-gradient(160deg, rgba(85, 213, 201, .34), rgba(154, 140, 255, .18) 50%, rgba(255, 111, 97, .2));
  opacity: .55;
}
.hero-copy {
  position: relative;
  z-index: 1;
  min-height: 460px;
  display: grid;
  align-content: center;
  padding: clamp(20px, 4vw, 58px);
}
.label {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 5.9rem);
  line-height: 1.03;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0;
}
.hero-copy p:not(.label),
.page-heading p,
.site-footer p,
.catalog-body p,
.feature-row small,
.detail-layout article p {
  color: var(--muted);
  line-height: 1.78;
}
.hero-pick {
  position: relative;
  z-index: 1;
  min-height: 460px;
  border: 1px solid var(--line);
  background: var(--deck);
}
.hero-pick a {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
}
.hero-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}
.hero-pick span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 5px;
  padding: 14px;
  background: rgba(18, 18, 22, .86);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.hero-pick b { font-size: 1.12rem; }
.hero-pick em {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.channel-strip a {
  min-height: 122px;
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
}
.channel-strip a:last-child { border-right: 0; }
.channel-strip a:hover { background: rgba(245, 240, 232, .055); }
.channel-strip span {
  color: var(--violet);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}
.channel-strip b { color: var(--teal); font-size: 1.08rem; }
.channel-strip em {
  color: var(--muted);
  font-size: .82rem;
  font-style: normal;
  line-height: 1.5;
}

.section,
.page-heading {
  padding-top: 50px;
}
.section.compact { padding-top: 22px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-head.tight { margin-bottom: 14px; }
.section-head a,
.text-link {
  color: var(--teal);
  font-weight: 950;
}
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .58fr);
  gap: 24px;
}
.feature-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.feature-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row img {
  width: 86px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
}
.feature-row b,
.feature-row small {
  display: block;
}
.feature-row small {
  margin-top: 6px;
  font-size: .78rem;
}
.feature-row em {
  color: var(--coral);
  font-style: normal;
  font-weight: 950;
}
.pulse-board {
  align-self: start;
  padding: 20px;
  background: linear-gradient(180deg, rgba(245, 240, 232, .08), rgba(245, 240, 232, .035));
  border: 1px solid var(--line);
}
.pulse-board ol {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  counter-reset: score;
}
.pulse-board li { counter-increment: score; }
.pulse-board a {
  min-height: 47px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.pulse-board a::before {
  content: counter(score, decimal-leading-zero);
  color: var(--amber);
  font-weight: 950;
}
.pulse-board b { color: var(--coral); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 22px 16px;
}
.library-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.catalog-card {
  min-width: 0;
  background: rgba(245, 240, 232, .045);
  border: 1px solid var(--line);
}
.catalog-card a {
  display: grid;
  height: 100%;
}
.thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--panel);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.catalog-card:hover .thumb img {
  transform: scale(1.04);
  filter: saturate(1.18);
}
.catalog-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}
.catalog-body span {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  color: var(--night);
  background: var(--teal);
  font-size: .68rem;
  font-weight: 950;
}
.catalog-body h3 {
  margin-bottom: 0;
  font-size: .98rem;
  line-height: 1.34;
}
.catalog-body p {
  margin: 0;
  font-size: .76rem;
}
.catalog-body div,
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: .75rem;
}
.catalog-body b { color: var(--coral); }
.catalog-body em,
.count,
.facts span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: rgba(245, 240, 232, .06);
  font-style: normal;
}

.page-heading {
  max-width: 980px;
  margin-left: max(16px, calc((100vw - 1480px) / 2));
}
.page-heading h1 { margin-bottom: 12px; }
.toolline {
  margin-top: 24px;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toolline button,
.toolline select {
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(245, 240, 232, .07);
  border: 1px solid var(--line);
  font-size: .88rem;
  font-weight: 850;
}
.toolline button:hover,
.toolline button.active,
.toolline select:focus {
  border-color: var(--teal);
  outline: 0;
}
.toolline select option {
  color: #121216;
  background: #f5f0e8;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
  gap: 26px;
}
.detail-layout figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
.detail-layout figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.detail-layout article {
  align-self: center;
  padding: clamp(22px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(245, 240, 232, .07), rgba(245, 240, 232, .03));
  border-top: 2px solid var(--teal);
  border-bottom: 1px solid var(--line);
}
.detail-layout .sub {
  color: var(--amber);
  font-weight: 900;
}
.facts { margin: 14px 0 20px; }

.site-footer {
  margin-top: 62px;
  margin-bottom: 26px;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, .6fr));
  gap: 24px;
  border-top: 1px solid var(--line);
}
.site-footer strong {
  color: var(--teal);
  font-size: 1.12rem;
}
.site-footer h3 {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: .98rem;
}
.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .88rem;
}
.site-footer a:hover { color: var(--ink); }

@media (max-width: 1080px) {
  .masthead,
  .hero,
  .editorial,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .nav { justify-content: start; }
  .hero-art { inset: 38px 0 26px; }
  .hero-copy,
  .hero-pick { min-height: 340px; }
  .channel-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .masthead { gap: 8px; }
  .brand { padding-top: 16px; }
  .nav a { padding: 14px 0 16px; }
  .hero { padding-top: 24px; }
  .hero-copy { padding: 20px; min-height: 320px; }
  .hero-pick { min-height: 320px; }
  h1 { font-size: 2.28rem; }
  .channel-strip,
  .site-footer { grid-template-columns: 1fr; }
  .channel-strip a {
    min-height: 98px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .catalog-grid,
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: 76px 1fr auto; }
  .feature-row img { width: 76px; }
}
