/* 纸感哑光 E-Ink 排版 */
:root {
  --paper: #fdfbf7;
  --wash: #f5f5f5;
  --ink: #1a1a1a;
  --rule: #e0e0e0;
  --mute: #6b6b6b;
  --soft: #333333;
  --r: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Songti SC", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

img { max-width: 100%; }

/* ---------- 顶部 ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--wash);
  color: var(--ink);
  text-decoration: none;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.mark img { width: 24px; height: 24px; object-fit: contain; }

.navbox {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.navbox__btn {
  flex: 0 0 auto;
  list-style: none;
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--wash);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.navbox__btn::-webkit-details-marker { display: none; }

.navbox[open] .navbox__btn { background: var(--ink); color: var(--paper); }

.pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.pills::-webkit-scrollbar { display: none; }

.pills a {
  display: block;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.pills a:hover,
.pills a:focus-visible { background: var(--ink); color: var(--paper); }

.cta {
  flex: 0 0 auto;
  display: inline-block;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.subbar {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.subbar__list {
  display: flex;
  align-items: stretch;
  gap: 4px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.subbar__list::-webkit-scrollbar { display: none; }

.subbar a {
  display: block;
  padding: 13px 12px;
  color: var(--mute);
  text-decoration: none;
  white-space: nowrap;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  border-bottom: 2px solid transparent;
}

.subbar a:hover,
.subbar a:focus-visible,
.subbar a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- 海报区 ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 56px 16px 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hero__copy { min-width: 0; }

.hero__mark {
  margin: 0 0 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mute);
}

.hero__title {
  margin: 0 0 22px;
  font-family: "Playfair Display", Georgia, "Songti SC", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero__desc {
  margin: 0 0 30px;
  max-width: 32ch;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--soft);
}

.hero__cta {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.hero__cta:hover,
.hero__cta:focus-visible { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.hero__art {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: min(56vh, 460px);
}

.hero__fig {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--wash);
  padding: 8px;
  box-shadow: 0 16px 32px rgba(26, 26, 26, 0.12);
  will-change: transform;
}

.hero__fig--a {
  top: 0;
  left: 0;
  width: 63%;
  transform: rotate(-2.5deg);
}

.hero__fig--b {
  right: 0;
  bottom: 0;
  width: 52%;
  transform: rotate(2deg);
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  border-radius: 20px;
}

.hero__cut {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 22%, 100% 100%);
}

/* ---------- 正文骨架 ---------- */
main { padding: 0; }

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 16px 32px;
}

.doc { min-width: 0; }

.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
  min-width: 0;
}

.prose section {
  padding: 44px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 104px;
}

.prose section:first-child { border-top: 0; padding-top: 0; }

.prose small {
  display: block;
  margin-bottom: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.prose h2 {
  margin: 0 0 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 32px 0 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.prose ul,
.prose ol { margin: 0 0 20px; padding-left: 1.35em; }

.prose li { margin: 0 0 8px; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.prose a:hover { background: var(--wash); }

.prose strong { font-weight: 700; }

.prose blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  background: var(--wash);
  border-radius: var(--r);
  font-style: italic;
  color: var(--soft);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose img { border-radius: 20px; height: auto; }

.prose figure { margin: 26px 0; }
.prose figcaption { margin-top: 8px; font-size: 1rem; color: var(--mute); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 1rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.prose th { font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 700; background: var(--wash); }

.prose code,
.prose pre {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.95em;
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--wash);
  border-radius: 18px;
}

/* ---------- 侧栏 ---------- */
.rail { min-width: 0; }

.rail__box {
  position: sticky;
  top: 96px;
  padding: 24px 22px;
  background: var(--wash);
  border-radius: var(--r);
}

.rail__box small {
  display: block;
  margin-bottom: 4px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.rail__title {
  margin: 0 0 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail__list a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.rail__list li:last-child a { border-bottom: 0; }
.rail__list a:hover { color: var(--mute); }

/* ---------- 页脚 ---------- */
.base {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}

.base__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 16px 0;
  padding: 44px 30px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
}

.base__slogan {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Songti SC", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.base__btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.base__nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

.base__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.base__list a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.base__list a:hover { color: var(--mute); }

.base__legal {
  padding: 26px 16px 44px;
  text-align: center;
  color: var(--mute);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

.base__legal p { margin: 0; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 36px;
  }

  .rail__box { position: static; }

  .hero {
    min-height: auto;
    padding: 40px 16px 92px;
  }

  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .hero__desc { max-width: none; }

  .hero__art { height: 260px; }

  .hero__img { min-height: 110px; }
}

@media (max-width: 700px) {
  .masthead__bar { padding: 8px 12px; }

  .cta { margin-left: auto; padding: 13px 16px; }

  .navbox {
    order: 3;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 2px;
  }

  .navbox__btn { align-self: flex-start; padding: 11px 14px; }

  .pills {
    flex: 0 1 auto;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    padding-bottom: 2px;
  }

  .pills a { padding: 10px 12px; }

  .subbar__list { padding: 0 8px; }

  .prose table { font-size: 0.95rem; }
  .prose th,
  .prose td { padding: 9px 10px; }
}

@media (max-width: 560px) {
  .mark { width: 42px; height: 42px; }

  .base__cta {
    flex-direction: column;
    align-items: flex-start;
    margin: 24px 12px 0;
    padding: 32px 22px;
  }

  .base__list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__fig { will-change: auto; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
