:root {
  color-scheme: light;
  --bg: #f4f6f1;
  --paper: #ffffff;
  --paper-2: #eef3ec;
  --ink: #17201c;
  --muted: #68736d;
  --line: #dce3da;
  --accent: #b8423d;
  --green: #2e6f60;
  --gold: #a9792b;
  --shadow: 0 16px 34px rgba(28, 45, 38, .08);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23,32,28,.04) 1px, transparent 1px),
    linear-gradient(rgba(23,32,28,.035) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
button, select { font: inherit; }

.topbar,
main,
.footer {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(244,246,241,.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 3px;
}

.brand span {
  color: var(--accent);
  font-size: 25px;
  font-weight: 900;
}

.brand small,
.eyebrow,
.poster-card p,
.line-item small,
.line-item em,
.catalog-card small,
.catalog-card p,
.footer p,
.detail-card p,
.catalog-head p,
.catalog-note p {
  color: var(--muted);
}

.brand small,
.eyebrow {
  font-size: 12px;
  font-weight: 800;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav a,
.nav-action,
.btn,
.tabs button,
.catalog-note a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-weight: 800;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover,
.nav-action,
.btn.primary,
.tabs button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.hero-board {
  display: grid;
  grid-template-columns: 1fr 360px 260px;
  gap: 16px;
  margin-top: 20px;
}

.hero-copy,
.feature-panel,
.quick-panel,
.section,
.category-card,
.guide-band,
.catalog-head,
.filter-bar,
.catalog-note,
.catalog-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: clamp(26px, 5vw, 54px);
}

.hero-copy h1 {
  max-width: 15ch;
  margin: 8px 0 14px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
}

.hero-copy p,
.section-head p,
.detail-card p,
.catalog-head p,
.catalog-note p {
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-panel {
  overflow: hidden;
  min-height: 360px;
}

.feature-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  height: 100%;
}

.feature-card img {
  height: 230px;
  object-fit: cover;
}

.feature-card span {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.feature-card b {
  font-size: 25px;
  line-height: 1.2;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.quick-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
}

.stat-grid b {
  display: block;
  color: var(--accent);
  font-size: 27px;
}

.stat-grid span {
  color: var(--muted);
  font-size: 12px;
}

.quick-links {
  display: grid;
  gap: 8px;
}

.quick-links a {
  padding: 11px 12px;
  border-radius: 6px;
  background: var(--paper-2);
  font-weight: 800;
}

.section,
.split-zone,
.guide-band,
.catalog-layout {
  margin-top: 24px;
}

.section {
  padding: 18px;
}

.section-head,
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.catalog-head h1,
.detail-card h1 {
  margin-top: 4px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.section-head a {
  color: var(--green);
  font-weight: 900;
}

.poster-wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.poster-card {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}

.poster-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-2);
}

.poster-card span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 3px 6px;
  color: #fff;
  border-radius: 4px;
  background: rgba(184,66,61,.92);
  font-size: 11px;
}

.poster-card h3 {
  min-height: 42px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 1.35;
}

.poster-card p {
  min-height: 19px;
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.split-zone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  padding: 16px;
}

.category-card.wide {
  grid-column: 1 / -1;
}

.line-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.line-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 88px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.line-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
}

.line-item span {
  min-width: 0;
}

.line-item b {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.line-item small,
.line-item em {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.guide-band {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, auto);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}

.guide-band .eyebrow,
.guide-band p {
  color: rgba(255,255,255,.78);
}

.guide-band a {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  font-weight: 900;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 24px;
}

.catalog-head strong {
  color: var(--accent);
  font-size: 34px;
}

.filter-bar {
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.filter-bar select {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
}

.catalog-note {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  min-height: 98px;
  padding: 10px;
}

.catalog-card img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 4px;
}

.catalog-card span {
  min-width: 0;
}

.catalog-card b {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.catalog-card p,
.catalog-card small {
  display: block;
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.catalog-card em {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.detail-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
}

.detail-card > img {
  width: 240px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-weight: 800;
}

.related {
  grid-template-columns: repeat(10, 1fr);
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.footer b {
  color: var(--accent);
  font-size: 23px;
}

.footer h3 {
  color: var(--green);
  margin: 0 0 10px;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.empty {
  padding: 22px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-board { grid-template-columns: 1fr 320px; }
  .quick-panel { grid-column: 1 / -1; }
  .poster-wall { grid-template-columns: repeat(6, 1fr); }
  .mini-mosaic { grid-template-columns: repeat(4, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-note { position: static; }
  .related { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 820px) {
  .topbar,
  .hero-board,
  .split-zone,
  .guide-band,
  .catalog-head,
  .filter-bar,
  .detail-card,
  .footer {
    grid-template-columns: 1fr;
  }
  .nav-action { display: none; }
  .hero-copy { min-height: auto; }
  .poster-wall,
  .mini-mosaic,
  .related { grid-template-columns: repeat(3, 1fr); }
  .line-list,
  .catalog-grid { grid-template-columns: 1fr; }
  .detail-card > img { width: min(240px, 100%); }
}

@media (max-width: 520px) {
  .topbar,
  main,
  .footer {
    width: calc(100% - 22px);
  }
  .poster-wall,
  .mini-mosaic,
  .related { grid-template-columns: repeat(2, 1fr); }
  .hero-copy,
  .section,
  .category-card,
  .catalog-head,
  .detail-card { padding: 14px; }
}
