@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --soft: rgba(0, 0, 0, 0.12);
  --edge: clamp(1.15rem, 4vw, 3rem);
  --gap: clamp(1.25rem, 3vw, 3rem);
  --serif: 'Lora', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: 'Raleway', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

a { color: var(--ink); }

.top { background: var(--paper); }

/* ---------- 顶部：品牌居中，胶囊菜单分列两侧 ---------- */
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem var(--edge);
  border-bottom: 1px solid var(--ink);
}

.bar__nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  justify-content: flex-start;
}

.bar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 220ms ease, color 220ms ease;
}

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

.bar__brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}

.bar__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bar__end .bar__nav p { justify-content: flex-end; }

.bar__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease;
}

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

/* ---------- 二级锚点条 ---------- */
.strip { border-bottom: 1px solid var(--ink); }

.strip__in {
  display: flex;
  margin: 0;
  width: 100%;
}

.strip__in a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-left: 1px solid var(--soft);
  transition: background 220ms ease, color 220ms ease;
}

.strip__in a:first-child { border-left: 0; }
.strip__in a:hover,
.strip__in a:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: var(--gap);
  min-height: calc(100svh - 118px);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--edge);
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: 130px;
}

.hero__h1 {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.05rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.85;
}

.hero__fig {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper);
}

.hero__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__num {
  position: absolute;
  right: 0.04em;
  bottom: -0.08em;
  font-family: var(--serif);
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  opacity: 0.14;
  pointer-events: none;
}

/* ---------- 正文区 + 右栏 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.75rem) var(--edge) clamp(2.5rem, 6vw, 4rem);
}

.prose {
  min-width: 0;
  max-width: 70ch;
  counter-reset: sec;
}

.prose article {
  counter-increment: sec;
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--ink);
  scroll-margin-top: 130px;
}

.prose article::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.prose h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 1.8rem 0 0.7rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
}

.prose h2 > span,
.prose h3 > span {
  position: relative;
  display: inline-block;
}

.prose h2 > span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.22em;
  width: 2.1rem;
  height: 2px;
  background: var(--ink);
}

.prose p,
.prose ul,
.prose ol { margin: 0 0 1.1rem; }

.prose li { margin-bottom: 0.4rem; }

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong { font-weight: 600; }

.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.15rem;
  border-left: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose figure { margin: 1.4rem 0; }

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--ink);
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.7);
}

.prose time {
  display: inline-block;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--ink);
}

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

.prose th,
.prose td {
  border: 1px solid var(--ink);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--soft);
  margin: 2rem 0;
}

/* ---------- 右栏 ---------- */
.rail {
  align-self: start;
  position: sticky;
  top: 130px;
  padding: 1.1rem;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

.rail__h {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.rail__h > span { display: inline-block; }

.rail__ol {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.rail__ol a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-height: 40px;
  padding: 0.35rem 0;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid var(--soft);
  transition: padding-left 220ms ease;
}

.rail__ol a:hover,
.rail__ol a:focus-visible { padding-left: 0.4rem; }

.rail__ol i {
  font-family: var(--serif);
  font-style: normal;
  font-size: 16px;
  opacity: 0.5;
}

.rail__c {
  margin: 0 0 1rem;
}

.rail__c a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease;
}

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

.rail__up { margin: 0; }

.rail__up a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--edge);
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 0.3rem;
}

.foot p { margin: 0; }

.foot__b {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.foot__c {
  display: block;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.68);
}

/* ---------- 滚动显现 ---------- */
.js [data-rv] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-rv].in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (min-width: 901px) {
  .top { position: sticky; top: 0; z-index: 30; }
}

@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr) 232px; }
}

@media (max-width: 900px) {
  .top { position: static; }
  .strip { display: none; }

  .bar {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.75rem var(--edge);
  }

  .bar__brand {
    order: -1;
    justify-self: start;
    letter-spacing: 0.12em;
  }

  .bar__nav p { justify-content: flex-start; }

  .bar__end {
    justify-self: stretch;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bar__end .bar__nav p { justify-content: flex-start; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.9rem;
    padding-bottom: 2.2rem;
  }

  .hero__fig { aspect-ratio: 16 / 11; }
  .hero__num { font-size: clamp(3.4rem, 20vw, 6rem); }

  .stage { grid-template-columns: 1fr; }

  .rail { position: static; }
}

@media (max-width: 420px) {
  .bar__nav a { padding: 0.3rem 0.7rem; font-size: 16px; }
  .hero__lede { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 1ms !important; }
}

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