@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root{
  --paper:#fdfbf7;
  --paper-2:#f5f5f5;
  --ink:#1a1a1a;
  --rule:#e0e0e0;
  --rule-2:#d3cec4;
  --muted:#4c4842;
  --radius:10px;
  --font-display:'Abril Fatface','Songti SC','Noto Serif SC',serif;
  --font-read:'Merriweather',Georgia,'Songti SC','Noto Serif SC',serif;
}

*,*::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:var(--font-read);
  font-size:17px;
  font-weight:400;
  line-height:1.7;
  overflow-wrap:break-word;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:3;
  pointer-events:none;
  opacity:.55;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
}

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

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

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:400;
  line-height:1.15;
  letter-spacing:.01em;
  margin:0 0 .5rem;
}
h1{font-size:clamp(2rem,6.2vw,4rem)}
h2{font-size:clamp(1.5rem,3.4vw,2.1rem)}
h3{font-family:var(--font-read);font-weight:700;font-size:1.12rem;line-height:1.4}

p{margin:0 0 1rem}
ul,ol{padding-left:1.2em}

hr{
  border:0;
  height:2px;
  width:56px;
  background:var(--ink);
  margin:.35rem 0 1.3rem;
}

[id]{scroll-margin-top:152px}

/* 顶部双行 */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(253,251,247,.96);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--rule);
  padding:10px clamp(12px,3vw,28px) 12px;
}
.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:1180px;
  margin:0 auto;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  font-family:var(--font-display);
  font-size:1.35rem;
  letter-spacing:.02em;
}
.brand .mark{
  width:30px;
  height:30px;
  border:1px solid var(--ink);
  border-radius:50%;
  object-fit:cover;
  filter:grayscale(1);
}
.brand-alt{
  font-size:16px;
  color:var(--muted);
  letter-spacing:.06em;
  text-align:right;
}
.menurow{
  display:flex;
  align-items:center;
  gap:10px;
  max-width:1180px;
  margin:8px auto 0;
}
.menurow nav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.menurow nav::-webkit-scrollbar{display:none}
.menurow ol{
  list-style:none;
  display:flex;
  gap:8px;
  margin:0;
  padding:0;
}
.menurow a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  white-space:nowrap;
  text-decoration:none;
  border:1px solid var(--rule-2);
  border-radius:999px;
  font-size:16px;
}
.menurow a:hover,
.menurow a:focus-visible{
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}
.cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 18px;
  border:1px solid var(--ink);
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  text-decoration:none;
}
.cta:hover,
.cta:focus-visible{background:var(--paper);color:var(--ink)}

/* 首屏 */
.hero{
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:clamp(26px,6vw,60px) 20px 0;
}
.hero-inner{max-width:880px}
.hero .lead{
  margin:0 auto 1rem;
  max-width:56ch;
  font-size:clamp(1rem,2.2vw,1.12rem);
  color:var(--muted);
}
.hero-inner > *{animation:inkIn .28s steps(4,end) both}
.hero-inner > *:nth-child(2){animation-delay:.05s}
@keyframes inkIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:none}
}
.hero-fig{
  width:100%;
  max-width:980px;
  margin:clamp(20px,4vw,34px) auto 0;
}
.hero-fig img{
  width:100%;
  max-height:46vh;
  object-fit:cover;
  border:1px solid var(--rule-2);
  border-radius:var(--radius);
  filter:grayscale(1) contrast(1.05);
}
.band{
  width:100%;
  height:16px;
  margin-top:clamp(24px,5vw,44px);
  background:var(--ink);
  clip-path:polygon(0 0,100% 0,100% 62%,0 100%);
}

/* 正文骨架 */
.wrap{
  max-width:1180px;
  margin:clamp(30px,6vw,54px) auto 0;
  padding:0 clamp(16px,3vw,28px);
}
.doc{
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  gap:clamp(20px,4vw,40px);
  align-items:start;
}
.sheet{min-width:0}
.sheet > article{
  background:rgba(255,255,255,.55);
  border:1px solid #e6e2da;
  border-radius:var(--radius);
  padding:clamp(18px,3vw,26px);
  margin:0 0 18px;
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}
.sheet > article:last-child{margin-bottom:0}
.sheet h2{font-size:clamp(1.4rem,3vw,1.95rem)}
.sheet h3{margin-top:1.4rem}
.sheet p,.sheet li{line-height:1.8}
.sheet p:last-child{margin-bottom:0}
.sheet blockquote{
  margin:0 0 1rem;
  padding:.4rem 0 .4rem 1rem;
  border-left:3px solid var(--ink);
  color:var(--muted);
}
.sheet figure{margin:0 0 1rem}
.sheet figcaption{font-size:16px;color:var(--muted)}
.sheet img{
  border:1px solid var(--rule-2);
  border-radius:var(--radius);
  filter:grayscale(1) contrast(1.03);
}
.sheet strong{font-weight:700}
.sheet a{border-bottom:1px solid var(--rule-2)}
.sheet a:hover{border-bottom-color:var(--ink)}

/* 侧栏 */
.rail{
  position:sticky;
  top:152px;
  background:rgba(245,245,245,.82);
  border:1px solid var(--rule);
  border-radius:var(--radius);
  padding:18px 20px 20px;
}
.rail h2{font-size:1.12rem;margin-bottom:.3rem}
.rail hr{width:44px;margin:.3rem 0 1rem}
.rail ol{list-style:none;margin:0 0 10px;padding:0}
.rail li a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 0;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px dashed var(--rule-2);
}
.rail li a:hover{text-decoration:underline}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  text-decoration:none;
}
.totop:hover{text-decoration:underline}

/* 页脚 */
.foot{
  margin-top:clamp(38px,7vw,70px);
  padding:clamp(26px,5vw,46px) clamp(16px,3vw,28px) 22px;
  background:var(--paper-2);
  border-top:2px solid var(--ink);
}
.cta-band{
  max-width:1180px;
  margin:0 auto clamp(22px,4vw,34px);
}
.cta-band h2{margin:0 0 .2rem}
.cta-band hr{width:80px;margin:.25rem 0 1rem}
.btn-ghost{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 18px;
  border:1px solid var(--ink);
  border-radius:999px;
  font-size:16px;
  text-decoration:none;
}
.btn-ghost:hover,
.btn-ghost:focus-visible{background:var(--ink);color:var(--paper)}
.foot-cols{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:18px 24px;
  padding-bottom:22px;
  border-bottom:1px solid var(--rule-2);
}
.foot-cols dt{
  font-family:var(--font-display);
  font-size:1rem;
  margin-bottom:4px;
}
.foot-cols dd{margin:0}
.foot-cols a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 0;
  font-size:16px;
  text-decoration:none;
}
.foot-cols a:hover{text-decoration:underline}
.foot-brand{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.foot-mark{
  margin:0;
  font-family:var(--font-display);
  font-size:1.05rem;
  line-height:1.4;
}
.foot-bottom{
  max-width:1180px;
  margin:14px auto 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  font-size:16px;
  color:var(--muted);
}
.copy{margin:0}
.foot-links{display:flex;gap:18px}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 0;
  text-decoration:none;
}
.foot-links a:hover{text-decoration:underline}

/* 断点 */
@media (max-width:900px){
  .doc{grid-template-columns:1fr}
  .rail{position:static;order:2}
}
@media (max-width:720px){
  body{font-size:16px}
  .brand-alt{display:none}
  .hero{min-height:auto;padding-top:26px}
  [id]{scroll-margin-top:172px}
  .foot-bottom{flex-direction:column;align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-inner > *{animation:none}
  .hero-inner > *{opacity:1;transform:none}
}

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