* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: 104px;
  background: #fdfbf7;
  color: #1a1a1a;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .32;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1rem; }
svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 22px; }

/* 顶栏 */
.topbar { border-bottom: 1px solid #1a1a1a; background: #fdfbf7; }
.topbar .wrap { display: flex; align-items: center; gap: 14px; }
.topbrand {
  display: inline-flex; align-items: center; min-height: 42px;
  font-size: .85rem; font-weight: 800; letter-spacing: .22em; text-decoration: none;
}
.topline { flex: 1; height: 1px; background: #e0e0e0; }

/* 首屏 */
.hero { display: flex; flex-direction: column; gap: 1.1rem; min-height: 66vh; padding: 2.2rem 0 2rem; }
.hero-copy { max-width: 56ch; }
h1 {
  margin: .1rem 0 .8rem;
  font-size: clamp(2rem, 7.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 800;
}
.hero-lead { max-width: 44ch; font-size: 1.02rem; color: #4a4a4a; }
.hero-cta {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 46px; padding: 0 20px; margin-top: .3rem;
  background: #1a1a1a; color: #fdfbf7;
  font-size: .95rem; font-weight: 700; text-decoration: none;
  border: 1px solid #1a1a1a;
}
.hero-cta:hover { background: #fdfbf7; color: #1a1a1a; }
.hero-fig {
  position: relative; margin: 0; flex: 1 1 auto; min-height: 210px;
  border: 1px solid #e0e0e0; border-bottom: 3px solid #1a1a1a;
  background: #f5f5f5; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-tag {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  background: #1a1a1a; color: #fdfbf7;
  padding: .34rem .85rem; font-size: .76rem; font-weight: 700; letter-spacing: .2em;
}

/* 主体两栏 */
.shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.2rem; align-items: start; padding: 2rem 0 3rem; }
.rail {
  position: sticky; top: 1.4rem;
  background: #fff; border: 1px solid #e0e0e0; border-bottom: 3px solid #1a1a1a;
  padding: 1rem .9rem;
}
.rail-title { margin: 0 0 .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .22em; }
.rail-title span { display: inline-block; border-bottom: 2px solid #1a1a1a; padding-bottom: .28rem; }
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list a {
  display: flex; align-items: baseline; gap: .55rem;
  min-height: 42px; padding: .45rem 0;
  font-size: .95rem; text-decoration: none;
  border-bottom: 1px dotted #dcdcdc;
}
.rail-list li:last-child a { border-bottom: 0; }
.rail-list a:hover { padding-left: .3rem; }
.rail-list em { font-style: normal; font-size: .72rem; letter-spacing: .1em; color: #8a8a8a; font-variant-numeric: tabular-nums; }

/* 正文纸卡 */
.flow { counter-reset: sec; min-width: 0; }
.flow section {
  counter-increment: sec;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-bottom: 3px solid #1a1a1a;
  padding: 1.5rem 1.3rem;
  margin: 0 0 1.3rem;
  scroll-margin-top: 1.4rem;
}
.flow section::before {
  content: counter(sec, decimal-leading-zero);
  display: block; margin-bottom: .5rem;
  font-size: .74rem; letter-spacing: .22em; color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}
.flow h2 { margin: 0 0 .9rem; font-size: clamp(1.28rem, 2.6vw, 1.72rem); line-height: 1.3; letter-spacing: -.01em; font-weight: 800; }
.flow h2 span { display: inline-block; border-bottom: 3px solid #1a1a1a; padding-bottom: .2rem; }
.flow h3 { margin: 1.5rem 0 .6rem; font-size: 1.1rem; font-weight: 700; }
.flow h3 span { display: inline-block; border-bottom: 2px solid #1a1a1a; padding-bottom: .15rem; }
.flow ul, .flow ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.flow li { margin: .35rem 0; }
.flow a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.flow a:hover { text-decoration-thickness: 3px; }
.flow strong { font-weight: 700; }
.flow blockquote { margin: 0 0 1rem; padding: .7rem 1rem; border-left: 3px solid #1a1a1a; background: #f5f5f5; }
.flow figure { margin: 0 0 1rem; }
.flow img { height: auto; border: 1px solid #e0e0e0; }
.flow table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.flow th, .flow td { border: 1px solid #e0e0e0; padding: .5rem .6rem; text-align: left; }

/* 页脚 */
.foot { margin-top: 2.2rem; background: #f5f5f5; border-top: 2px solid #1a1a1a; }
.foot-in { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-top: 2rem; padding-bottom: 1.6rem; }
.foot-brand { flex: 0 1 auto; }
.foot-logo {
  display: inline-block; padding-bottom: .2rem;
  font-size: clamp(2rem, 5.6vw, 4rem); line-height: .95; font-weight: 800; letter-spacing: -.04em;
  text-decoration: none; border-bottom: 4px solid #1a1a1a;
}
.foot-nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0 1.6rem; }
.foot-nav a { display: flex; align-items: center; min-height: 42px; padding: .25rem 0; font-size: .94rem; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.foot-meta { margin-left: auto; text-align: right; font-size: .88rem; }
.totop {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 .9rem;
  border: 1px solid #1a1a1a; background: #fdfbf7; font-weight: 600; font-size: .86rem; text-decoration: none;
}
.totop:hover { background: #1a1a1a; color: #fdfbf7; }
.copy { margin: .7rem 0 0; color: #4a4a4a; }

/* 底部固定条 */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fdfbf7; border-top: 1px solid #1a1a1a;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
}
.dock ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.dock a {
  display: flex; align-items: center; gap: 7px;
  min-height: 46px; padding: 0 11px;
  font-size: .94rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.dock a:hover { background: #f5f5f5; }
.dock a[aria-current] { background: #1a1a1a; color: #fdfbf7; }
.brand-li { margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-a { min-height: 0 !important; padding: 2px 10px !important; font-weight: 800; font-size: 1rem; letter-spacing: .1em; }
.search { display: flex; align-items: center; gap: 4px; }
.search input {
  width: 124px; height: 27px; padding: 0 7px;
  border: 1px solid #e0e0e0; background: #fff; color: #1a1a1a;
  font: inherit; font-size: .82rem;
}
.search input:focus { outline: 2px solid #1a1a1a; outline-offset: 1px; }
.search button {
  width: 27px; height: 27px; padding: 0; display: grid; place-items: center;
  border: 1px solid #e0e0e0; background: #fff; color: #1a1a1a; cursor: pointer;
}
.search button:hover { background: #1a1a1a; color: #fdfbf7; }

/* 动效 */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .2s linear, transform .22s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  body { padding-bottom: 192px; }
  .wrap { padding: 0 15px; }
  .hero { min-height: auto; padding-top: 1.6rem; }
  .shell { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  .rail { position: static; }
  .rail-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
  .foot-in { flex-wrap: wrap; gap: 1.5rem; }
  .foot-meta { margin-left: 0; text-align: left; }
  .foot-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock { padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
  .dock ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .dock svg { display: none; }
  .dock a { justify-content: center; padding: 0 2px; font-size: .95rem; }
  .brand-li { grid-column: 1 / -1; order: -1; margin: 0 0 4px; }
  .brand-a { font-size: 1.08rem; }
  .search input { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

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