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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --rule:2px solid #000000;
  --r:10px;
  --pad:18px;
  --max:1200px;
  --serif:Georgia,'Songti SC','Times New Roman',serif;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:Figtree,'Noto Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:inherit;text-decoration:none}
p{margin:0 0 1.05em}
img{max-width:100%;height:auto}
::selection{background:#000;color:#fff}
:focus-visible{outline:3px solid #000;outline-offset:3px}

/* ============ 顶部细条 ============ */
.ticker{
  background:var(--ink);
  color:var(--paper);
  overflow:hidden;
}
.ticker-in{
  display:block;
  padding:6px var(--pad);
  text-align:center;
  font-size:16px;
  font-weight:500;
  letter-spacing:.36em;
  text-indent:.36em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ============ 页头 ============ */
.top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:10px var(--pad);
  background:var(--paper);
  border-bottom:var(--rule);
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  min-height:46px;
  padding:5px 10px;
  border:var(--rule);
  border-radius:var(--r);
  flex:0 0 auto;
}
.mark-img{display:block;width:30px;height:30px;object-fit:contain}
.mark-txt{font-weight:700;font-size:17px;letter-spacing:.02em}
.mark:hover{background:var(--ink);color:var(--paper)}

.topnav{flex:1 1 100%;order:3;min-width:0}
.topnav p{display:flex;flex-wrap:wrap;gap:2px;margin:0}
.topnav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 11px;
  border-radius:var(--r);
  font-size:16px;
  font-weight:500;
  letter-spacing:.01em;
}
.topnav a:hover,
.topnav a:focus-visible{background:var(--ink);color:var(--paper)}

/* ============ 头版 ============ */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  align-content:center;
  min-height:58vh;
  padding:clamp(34px,8vw,96px) var(--pad) clamp(26px,6vw,64px);
  border-bottom:var(--rule);
}

.headline{
  margin:0;
  max-width:18ch;
  font-size:clamp(2.3rem,8.4vw,5.6rem);
  line-height:.96;
  font-weight:700;
  letter-spacing:-.04em;
  text-wrap:balance;
}

.stamp{
  position:absolute;
  top:clamp(14px,3.5vw,34px);
  right:var(--pad);
  z-index:3;
  padding:6px 14px;
  border:var(--rule);
  border-radius:999px;
  background:var(--paper);
  color:var(--ink);
  font-size:16px;
  font-weight:600;
  letter-spacing:.12em;
  transform:rotate(-6deg);
  will-change:transform;
}

.kicker{
  margin:0 0 18px;
  padding-bottom:10px;
  border-bottom:var(--rule);
  font-size:clamp(1.5rem,5vw,2.6rem);
  font-weight:700;
  line-height:1.14;
  letter-spacing:-.03em;
}

/* ============ 主体栅格 ============ */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:clamp(24px,4.6vw,58px) var(--pad);
}

.stage{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(22px,3.6vw,52px);
}

/* ============ 左侧栏 ============ */
.rail{
  align-self:start;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px;
  border:var(--rule);
  border-radius:var(--r);
}

.rail-h{
  margin:0;
  font-size:16px;
  font-weight:700;
  letter-spacing:.22em;
  border-bottom:var(--rule);
  padding-bottom:6px;
}
.rail-h span{display:inline-block}

.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  border:var(--rule);
  border-radius:var(--r);
  font-size:16px;
  font-weight:500;
  line-height:1.35;
}
.rail-list a:hover{background:var(--ink);color:var(--paper)}

.totop{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:flex-start;
  width:56px;
  min-height:44px;
  border:var(--rule);
  border-radius:var(--r);
  font-size:20px;
  line-height:1;
}
.totop:hover{background:var(--ink);color:var(--paper)}

/* ============ 正文 ============ */
.body{min-width:0}

.body > article{
  position:relative;
  border:var(--rule);
  border-radius:var(--r);
  padding:clamp(18px,3.4vw,40px);
  margin:0 0 clamp(18px,3vw,34px);
  scroll-margin-top:126px;
}
.body > article:last-child{margin-bottom:0}

.body > article:nth-of-type(even){
  background:var(--ink);
  color:var(--paper);
}
.body > article:nth-of-type(even) :focus-visible{outline-color:var(--paper)}

.body > article > *:first-child{margin-top:0}
.body > article > *:last-child{margin-bottom:0}

.body h2,
.body h3,
.body h4{
  line-height:1.2;
  letter-spacing:-.025em;
  font-weight:700;
}
.body h2{
  font-size:clamp(1.45rem,3.6vw,2.15rem);
  margin:.15em 0 .7em;
}
.body h2 > span{
  display:inline-block;
  padding-bottom:4px;
  border-bottom:5px solid currentColor;
}
.body h3{
  font-size:clamp(1.14rem,2.4vw,1.38rem);
  margin:1.4em 0 .5em;
}
.body h3 > span{
  display:inline-block;
  padding-bottom:2px;
  border-bottom:2px solid currentColor;
}
.body h4{font-size:1.05rem;margin:1.2em 0 .4em}

.body > article > p:first-child::first-letter{
  float:left;
  font-family:var(--serif);
  font-size:3.35em;
  line-height:.8;
  font-weight:700;
  padding:.05em .12em 0 0;
}

.body a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.body a:hover{background:currentColor;color:var(--paper)}
.body > article:nth-of-type(even) a:hover{background:var(--paper);color:var(--ink)}

.body ul,
.body ol{padding-left:1.3em;margin:0 0 1.05em}
.body li{margin:.32em 0}

.body blockquote{
  margin:1.5em 0;
  padding:.1em 0 .1em 1em;
  border-left:7px solid currentColor;
  font-family:var(--serif);
  font-size:1.12em;
  line-height:1.6;
  letter-spacing:-.01em;
}
.body blockquote p:last-child{margin-bottom:0}

.body figure{margin:1.5em 0}
.body figcaption{
  font-size:16px;
  margin-top:.5em;
  letter-spacing:.02em;
}
.body img{display:block;border-radius:var(--r)}

.body table{
  display:block;
  width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:0 0 1.1em;
}
.body th,
.body td{
  border-bottom:2px solid currentColor;
  padding:8px 10px;
  text-align:left;
  font-size:16px;
}
.body hr{border:0;border-top:var(--rule);margin:1.7em 0}
.body code{
  font-size:16px;
  border:1px solid currentColor;
  border-radius:6px;
  padding:1px 5px;
}

/* ============ 页脚 ============ */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 16px;
  padding:18px var(--pad) 28px;
  border-top:var(--rule);
}
.fcol{flex:0 0 auto}
.copy{font-size:16px;letter-spacing:.02em}

.fnav{flex:1 1 100%;min-width:0}
.fnav p{display:flex;flex-wrap:wrap;gap:2px;margin:0}
.fnav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 10px;
  border-radius:var(--r);
  font-size:16px;
}
.fnav a:hover{background:var(--ink);color:var(--paper)}

/* ============ 动效 ============ */
.js .body > article{
  opacity:0;
  transform:translateY(18px);
}
.js .body > article.in{
  opacity:1;
  transform:none;
  transition:opacity .55s cubic-bezier(.22,.7,.3,1),transform .55s cubic-bezier(.22,.7,.3,1);
}
.js .rail-list li{
  opacity:0;
  transform:translateY(8px);
}
.js .rail-list li.in{
  opacity:1;
  transform:none;
  transition:opacity .35s ease,transform .35s ease;
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .body > article,
  .js .rail-list li{
    opacity:1;
    transform:none;
    transition:none;
  }
  .stamp{transform:none}
}

/* ============ 断点 ============ */
@media (min-width:720px){
  :root{--pad:28px}
  .top{
    position:sticky;
    top:0;
    z-index:40;
    flex-wrap:nowrap;
    gap:18px;
  }
  .topnav{flex:1 1 auto;order:2}
  .topnav p{justify-content:flex-end}
  .fnav{flex:1 1 auto;text-align:center}
  .fnav p{justify-content:center}
}

@media (min-width:900px){
  :root{--pad:44px}
  .hero{
    min-height:70vh;
    grid-template-columns:repeat(12,1fr);
    align-content:end;
  }
  .headline{grid-column:1 / span 10}
}

@media (min-width:980px){
  .stage{grid-template-columns:minmax(186px,228px) minmax(0,1fr)}
  .rail{position:sticky;top:104px}
  .rail-list{flex-direction:column;flex-wrap:nowrap}
  .body > article{padding:clamp(24px,3.2vw,44px)}
  .body > article:nth-of-type(odd){margin-right:clamp(0px,3vw,46px)}
}

@media (min-width:1180px){
  .headline{grid-column:1 / span 9}
}

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