@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root{
  --ink:#1f1f1f;
  --paper:#ffffff;
  --wash:#f5f5f5;
  --line:rgba(31,31,31,.16);
  --hair:rgba(31,31,31,.09);
  --muted:rgba(31,31,31,.66);
  --shadow:0 4px 6px rgba(0,0,0,.05);
  --shadow-lift:0 10px 26px rgba(0,0,0,.09);
  --body:'Libre Baskerville','Cormorant Garamond',Georgia,'Songti SC','STSong','Noto Serif SC',serif;
  --head:'Cormorant Garamond','Libre Baskerville',Georgia,'Songti SC','STSong','Noto Serif SC',serif;
  --shell:1180px;
}

*,*::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(--body);
  font-size:17px;
  line-height:1.78;
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
}

img{ display:block; max-width:100%; }
a{ color:inherit; }
p{ margin:0 0 1em; }
small{ font-size:16px; }

h1,h2,h3{
  font-family:var(--head);
  font-weight:600;
  line-height:1.24;
  letter-spacing:.01em;
  margin:0 0 .55em;
}

:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:3px;
}

/* ---------- 顶部细条 ---------- */
.strip{
  background:var(--ink);
  color:var(--paper);
  padding:0 20px;
}
.strip-line{
  margin:0;
  max-width:var(--shell);
  margin-inline:auto;
  font-size:16px;
  line-height:2.4;
  letter-spacing:.06em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.86;
}

/* ---------- 报头 ---------- */
.mast{
  border-bottom:1px solid var(--line);
  background:var(--paper);
}
.mast-bar{
  max-width:var(--shell);
  margin-inline:auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  padding:14px 20px;
}
.mast-wing{ min-width:0; display:flex; align-items:center; gap:10px; }
.mast-wing-right{ justify-content:flex-end; }
.mast-nav{ min-width:0; }
.mast-nav p{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px 14px;
}
.mast-nav-end p{ justify-content:flex-end; }
.mast-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 2px;
  font-size:16px;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .25s ease,opacity .25s ease;
  white-space:nowrap;
}
.mast-nav a:hover{ border-bottom-color:var(--ink); }

.brand{
  font-family:var(--head);
  font-size:clamp(20px,2.4vw,28px);
  letter-spacing:.14em;
  text-decoration:none;
  white-space:nowrap;
  padding:6px 4px;
}

.burger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  min-width:60px;
  padding:8px 12px;
  font-family:var(--body);
  font-size:16px;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--ink);
  border-radius:4px;
  cursor:pointer;
  transition:background .25s ease,color .25s ease;
}
.burger:hover{ background:var(--ink); color:var(--paper); }

/* ---------- 粘性锚点条 ---------- */
.subnav{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(8px);
  border-top:1px solid var(--hair);
  border-bottom:1px solid var(--line);
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
}
.subnav-row{
  margin:0;
  max-width:var(--shell);
  margin-inline:auto;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 14px;
  min-height:46px;
}
.subnav-row a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  font-size:16px;
  text-decoration:none;
  white-space:nowrap;
  border-bottom:2px solid transparent;
  transition:border-color .2s ease,opacity .2s ease;
}
.subnav-row a:hover,
.subnav-row a.is-active{ border-bottom-color:var(--ink); }

/* ---------- 全屏菜单 ---------- */
.drawer{
  position:fixed;
  inset:0;
  z-index:80;
  display:flex;
  flex-direction:column;
  gap:26px;
  padding:30px 24px 40px;
  background:var(--ink);
  color:var(--paper);
  transform:translateY(-102%);
  transition:transform .48s cubic-bezier(.22,.8,.24,1);
  overflow-y:auto;
  visibility:hidden;
}
body.menu-open .drawer{ transform:translateY(0); visibility:visible; }
body.menu-open{ overflow:hidden; }

.drawer-brand{
  margin:0;
  font-family:var(--head);
  font-size:22px;
  letter-spacing:.16em;
}
.drawer-brand a{ text-decoration:none; }

.drawer-nav p{
  margin:0;
  display:flex;
  flex-direction:column;
}
.drawer-nav a{
  font-family:var(--head);
  font-size:clamp(24px,6vw,36px);
  line-height:1.3;
  text-decoration:none;
  padding:12px 0;
  min-height:52px;
  border-bottom:1px solid rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  transition:padding-left .25s ease;
}
.drawer-nav a:hover{ padding-left:8px; }

.drawer-close{
  align-self:flex-start;
  margin-top:auto;
  min-height:46px;
  padding:10px 22px;
  font-family:var(--body);
  font-size:16px;
  color:inherit;
  background:transparent;
  border:1px solid rgba(255,255,255,.55);
  border-radius:4px;
  cursor:pointer;
}
.drawer-close:hover{ background:rgba(255,255,255,.14); }

/* ---------- 首屏 ---------- */
.hero{
  max-width:var(--shell);
  margin-inline:auto;
  padding:clamp(28px,5vw,56px) 20px;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:clamp(22px,3.4vw,40px);
  align-items:center;
  min-height:100svh;
  border-bottom:1px solid var(--line);
}
.hero-copy h1{
  font-size:clamp(30px,5.6vw,58px);
  line-height:1.16;
  letter-spacing:-.01em;
  margin-bottom:.42em;
}
.hero-lead{
  font-size:18px;
  line-height:1.8;
  color:var(--muted);
  max-width:44ch;
}
.hero-jump{ margin:1.4em 0 0; }
.hero-jump a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:10px 20px;
  font-size:16px;
  text-decoration:none;
  border:1px solid var(--ink);
  border-bottom:3px solid var(--ink);
  border-radius:4px;
  background:var(--paper);
  transition:background .25s ease,color .25s ease;
}
.hero-jump a:hover{ background:var(--ink); color:var(--paper); }

.hero-figure{
  position:relative;
  margin:0;
  min-height:clamp(280px,52vh,480px);
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  background:var(--wash);
  box-shadow:var(--shadow);
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  will-change:transform;
}
.hero-plate{
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(135deg,rgba(31,31,31,.05) 0 1px,transparent 1px 14px),
    linear-gradient(135deg,var(--wash),var(--paper) 60%,#ececec);
}
.hero-badge{
  position:absolute;
  left:16px;
  bottom:16px;
  padding:8px 16px;
  font-size:16px;
  letter-spacing:.08em;
  background:var(--paper);
  color:var(--ink);
  border:1px solid var(--ink);
  border-radius:999px;
}

/* ---------- 正文区 ---------- */
.content-shell{
  max-width:var(--shell);
  margin-inline:auto;
  padding:clamp(34px,4vw,58px) 20px 72px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 302px;
  gap:clamp(18px,2.4vw,30px);
  align-items:start;
}

.prose{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
}
.prose > section{
  grid-column:span 6;
  min-width:0;
  padding:26px 24px;
  background:var(--paper);
  border:1px solid var(--line);
  border-bottom:3px solid var(--ink);
  border-radius:4px;
  box-shadow:var(--shadow);
  scroll-margin-top:86px;
  transition:box-shadow .3s ease,transform .3s ease;
}
.prose > section:hover{ box-shadow:var(--shadow-lift); }

.prose h2{
  font-size:clamp(21px,2.3vw,27px);
  margin-top:0;
  scroll-margin-top:86px;
}
.prose h2 + p{
  color:var(--muted);
  font-size:16px;
  letter-spacing:.02em;
}
.prose h3{ font-size:19px; margin-top:1.5em; }
.prose p{ margin:0 0 1.05em; }
.prose > section > :last-child{ margin-bottom:0; }
.prose ul,.prose ol{ padding-left:1.25em; margin:0 0 1.05em; }
.prose li{ margin-bottom:.4em; }
.prose a{ text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.prose blockquote{
  margin:0 0 1.05em;
  padding:2px 0 2px 18px;
  border-left:3px solid var(--ink);
  color:var(--muted);
  font-style:italic;
}
.prose figure{ margin:0 0 1.1em; }
.prose img{ border-radius:4px; }
.prose strong{ font-weight:700; }
.prose hr{ border:0; border-top:1px solid var(--line); margin:1.4em 0; }

/* 滚动揭示 */
.reveal .prose > section{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease,transform .6s ease,box-shadow .3s ease;
}
.reveal .prose > section.in{ opacity:1; transform:none; }

/* ---------- 右侧栏 ---------- */
.rail{
  position:sticky;
  top:78px;
  padding:24px 22px;
  background:var(--wash);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
}
.rail-title{
  font-size:22px;
  letter-spacing:.05em;
  margin-bottom:.25em;
}
.rail .subtitle{
  font-size:16px;
  line-height:1.68;
  color:var(--muted);
  margin-bottom:1.2em;
}
.rail-list{
  margin:0;
  display:flex;
  flex-direction:column;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 0;
  font-size:16px;
  text-decoration:none;
  border-top:1px solid var(--hair);
  transition:padding-left .22s ease;
}
.rail-list a:hover{ padding-left:6px; text-decoration:underline; text-underline-offset:3px; }

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:1.6fr 1fr auto;
  grid-template-areas:
    "cta desc kw"
    "copy . top";
  gap:18px 30px;
  background:var(--wash);
  border-top:1px solid var(--line);
  padding:56px max(24px,calc((100vw - 1180px)/2)) 34px;
  font-size:16px;
}
.foot-cta{ grid-area:cta; margin:0; }
.foot-cta a{
  font-family:var(--head);
  font-size:clamp(26px,3.6vw,44px);
  letter-spacing:.1em;
  line-height:1.2;
  text-decoration:none;
  border-bottom:2px solid var(--ink);
  display:inline-block;
  padding-bottom:6px;
}
.foot-desc{ grid-area:desc; margin:0; color:var(--muted); line-height:1.7; }
.foot-kw{ grid-area:kw; margin:0; letter-spacing:.12em; }
.foot-copy{ grid-area:copy; align-self:center; color:var(--muted); }
.foot-top{ grid-area:top; margin:0; text-align:right; }
.foot-top a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 0;
  text-decoration:none;
  border-bottom:1px solid var(--ink);
}

/* ---------- 断点 ---------- */
@media (min-width:900px){
  .prose > section:nth-child(odd){ grid-column:span 4; }
  .prose > section:nth-child(even){ grid-column:span 2; }
}

@media (max-width:1023px){
  .content-shell{ grid-template-columns:minmax(0,1fr) 272px; }
}

@media (max-width:899px){
  .mast-nav{ display:none; }
  .mast-bar{ grid-template-columns:auto 1fr auto; gap:10px; }
  .mast-wing-left{ order:1; }
  .brand{ order:2; justify-self:center; }
  .mast-wing-right{ order:3; }
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:26px;
  }
  .hero-figure{ min-height:238px; }
  .content-shell{ grid-template-columns:minmax(0,1fr); padding-bottom:56px; }
  .rail{ position:static; order:2; border-radius:16px; }
  .foot{
    grid-template-columns:1fr;
    grid-template-areas:"cta" "desc" "kw" "copy" "top";
    padding-top:40px;
    gap:14px;
  }
  .foot-top{ text-align:left; }
}

@media (max-width:519px){
  body{ font-size:17px; }
  .strip-line{ line-height:2.2; }
  .prose > section{ padding:22px 18px; }
  .hero-jump a{ width:100%; justify-content:center; }
  .foot-cta a{ font-size:26px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal .prose > section{ opacity:1; transform:none; transition:none; }
  .hero-img{ transform:none !important; }
  .drawer{ transition:none; }
  *{ transition-duration:.01ms !important; }
}

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