:root {
  --ink: #1c1914;
  --ink-2: #24201b;
  --paper: #f3ede3;
  --paper-2: #e8dfd2;
  --amber: #c47a2c;
  --amber-dim: #8a5a22;
  --line: #322c25;
  --muted: #9a8f80;
  --text: #e8e0d4;
  --text-dark: #2a241c;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #e09a48; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--text-dark); padding: 0.4rem 0.7rem; z-index: 20; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #181510;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 40px; height: 40px; border-radius: 4px; }
.brand-name {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.brand-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
}

.nav-main { display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; }
.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  position: relative;
}
.nav-main a:hover { color: var(--paper); }
.nav-main a.is-active { color: var(--paper); }
.nav-main a.is-active::after {
  content: "";
  display: block;
  width: 18px;
  height: 6px;
  margin-top: 0.2rem;
  background: radial-gradient(circle, var(--amber) 1.1px, transparent 1.3px) 0 0 / 6px 6px repeat-x;
}

.layout-control {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  min-height: 68vh;
}

.rail {
  border-right: 1px solid var(--line);
  padding: 1.6rem 1.2rem 2.4rem;
  background: var(--ink-2);
}
.rail h2 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  font-weight: 600;
}
.rail p { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }
.rail ol { margin: 0; padding-left: 1.1rem; color: var(--paper-2); font-size: 0.9rem; }
.rail ol a { color: var(--paper); text-decoration: none; }
.rail ol a:hover { color: var(--amber); }

.nine-dots {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 6px;
  margin: 1.4rem 0 0.4rem;
}
.nine-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a332b;
  display: block;
}
.nine-dots i.on { background: var(--amber); }

.stage { min-width: 0; }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  min-height: 22rem;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: 2.2rem 1.6rem 1.8rem;
  background: #16130f;
}
.hero-copy p.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.3;
  font-weight: 650;
  color: var(--paper);
}
.hero-copy .lead { color: var(--muted); margin: 0; max-width: 36em; }
.hero-panel figure { margin: 0; background: #110f0c; }
.hero-panel img { width: 100%; height: 100%; object-fit: cover; min-height: 16rem; }

.film-strip {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: #14110e;
}
.film-strip figure { margin: 0; flex: 0 0 240px; }
.film-strip img { width: 240px; height: 150px; object-fit: cover; filter: saturate(0.85); }
.film-strip figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }

.block { padding: 1.6rem 1.4rem 0.4rem; }
.block h2 { margin: 0 0 0.8rem; font-size: 1.05rem; letter-spacing: 0.06em; }

.excerpt-list { list-style: none; margin: 0; padding: 0; }
.excerpt-list li {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.excerpt-list time {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--amber-dim);
  padding-top: 0.25rem;
}
.excerpt-list a { color: var(--paper); text-decoration: none; font-weight: 600; }
.excerpt-list a:hover { color: var(--amber); }
.excerpt-list p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

.param-wrap { overflow-x: auto; padding: 0 1.4rem 1.6rem; }
table.params {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 32rem;
}
table.params th,
table.params td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.5rem;
  text-align: left;
}
table.params th { color: var(--amber); font-weight: 600; }
table.params td { color: var(--paper-2); }
table.params caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  padding: 0 0 0.6rem;
  font-size: 0.85rem;
}

.desk-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  padding: 0.4rem 1.4rem 2rem;
  align-items: start;
}
.desk-split p { color: var(--muted); margin-top: 0; }
.desk-split img { width: 100%; height: 220px; object-fit: cover; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 1.4rem 2.2rem;
  background: #14110e;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}
.site-footer .legal { margin: 0.8rem 0 0; color: #b7aa98; }
.site-footer p { margin: 0.2rem 0; }

.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.9rem 1.2rem 0;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--amber); }

.page-head {
  padding: 0.6rem 1.2rem 1rem;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 0.2rem 0 0.5rem; font-size: 1.55rem; color: var(--paper); }
.page-head .meta { color: var(--muted); font-size: 0.85rem; }

.cat-list { list-style: none; margin: 0; padding: 0.4rem 0 2rem; }
.cat-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.cat-list img { width: 120px; height: 80px; object-fit: cover; }
.cat-list h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.cat-list h2 a { color: var(--paper); text-decoration: none; }
.cat-list p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.article {
  max-width: 42rem;
  padding: 0.5rem 1.2rem 1.5rem;
}
.article h1 { font-size: 1.65rem; line-height: 1.35; color: var(--paper); margin: 0.4rem 0 0.6rem; }
.article .byline { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.article h2 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; color: var(--paper); }
.article p { margin: 0.75rem 0; }
.article figure { margin: 1.1rem 0; }
.article figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.article .lead-first { font-size: 1.05rem; color: var(--paper-2); }

.layout-article-a .article { max-width: none; padding: 0 0 2rem; }
.layout-article-a .hero-fig { margin: 0 0 1rem; }
.layout-article-a .hero-fig img { width: 100%; max-height: 22rem; object-fit: cover; }
.layout-article-a .prose { max-width: 42rem; padding: 0 1.2rem; }

.layout-article-b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 2rem;
}
.layout-article-b .aside-side { padding: 1.2rem 1rem 2rem 0; }

.layout-article-c .prose { max-width: 42rem; padding: 0 1.2rem 1rem; }
.layout-article-c .mid-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0 1.2rem;
}

.aside-related {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.6rem;
  margin: 1.2rem;
}
.aside-related h2 { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--amber); letter-spacing: 0.08em; }
.aside-related ol { margin: 0 0 0.8rem; padding-left: 1.15rem; }
.aside-related a { color: var(--paper); text-decoration: none; }
.aside-related a:hover { color: var(--amber); }

.back-cat { padding: 0 1.2rem 2rem; font-size: 0.9rem; }

.faq { margin: 1.4rem 0; padding: 0; }
.faq dt { font-weight: 650; color: var(--paper); margin-top: 0.8rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--muted); }

.quote-bar {
  border-left: 3px solid var(--amber);
  padding: 0.2rem 0 0.2rem 0.9rem;
  color: var(--paper-2);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-main {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #181510;
    flex-direction: column;
    padding: 0.6rem 1.1rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-main.is-open { display: flex; }
  .nav-main a { min-height: 44px; display: flex; align-items: center; }
  .layout-control { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-panel,
  .layout-article-b,
  .desk-split,
  .cat-list li,
  .layout-article-c .mid-pair { grid-template-columns: 1fr; }
  .excerpt-list li { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .hero-copy { padding: 1.4rem 1rem 1.2rem; }
  .article, .layout-article-a .prose, .layout-article-c .prose { padding-left: 1rem; padding-right: 1rem; }
}
