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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --rule:3px solid #000000;
  --thick:5px solid #000000;
  --r:28px;
  --pad:clamp(16px,4.4vw,44px);
}

*{box-sizing:border-box;margin:0;padding:0}

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

body{
  font-family:"Source Sans 3",-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  background:var(--paper);
  padding-bottom:158px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

@media (min-width:900px){
  body{padding-bottom:128px}
}

body.menu-open{overflow:hidden}

h1,h2,h3{line-height:1.06;letter-spacing:-.015em;font-weight:700}
a{color:inherit}
p{margin:0 0 1em}
img{max-width:100%;height:auto;display:block}

hr{
  border:0;
  border-top:var(--rule);
  margin:12px 0 20px;
}

.idx{
  font-family:"Bebas Neue","Source Sans 3",sans-serif;
  letter-spacing:.08em;
  font-size:14px;
  line-height:1;
}

/* ---------- 报头 ---------- */
.masthead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  padding:16px var(--pad) 12px;
  border-bottom:var(--rule);
}
.masthead .mark{
  font-family:"Bebas Neue","Source Sans 3",sans-serif;
  font-size:20px;
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1;
}
.masthead .kw{
  font-size:13px;
  letter-spacing:.18em;
  font-weight:600;
  text-align:right;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  text-align:right;
  padding:74px var(--pad) 30px;
  border-bottom:var(--thick);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(#000000 1.1px,transparent 1.1px);
  background-size:16px 16px;
  opacity:.16;
  pointer-events:none;
}
.badge{
  position:absolute;
  top:20px;
  left:var(--pad);
  z-index:2;
  margin:0;
  max-width:60%;
  border:var(--rule);
  border-radius:999px;
  background:#fff;
  padding:6px 16px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.14em;
  text-align:left;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pull{
  margin:0 0 auto;
  margin-left:auto;
  max-width:34ch;
  border-right:var(--thick);
  padding-right:16px;
}
.pull blockquote{
  font-size:15px;
  line-height:1.7;
  font-weight:300;
}
.pull figcaption{
  margin-top:10px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.2em;
}
.hero-in{position:relative;z-index:1}
.hero h1{
  font-size:clamp(2.15rem,10.5vw,6.2rem);
  line-height:.98;
  letter-spacing:-.035em;
  word-break:break-word;
}

/* ---------- 主体栅格 ---------- */
.board{
  display:grid;
  grid-template-columns:1fr;
  border-bottom:var(--thick);
}

@media (min-width:880px){
  .board{grid-template-columns:248px minmax(0,1fr)}
}

.rail{
  border-bottom:var(--rule);
  padding:20px var(--pad) 24px;
}
@media (min-width:880px){
  .rail{
    border-bottom:0;
    border-right:var(--rule);
    padding:24px 18px;
    position:sticky;
    top:0;
    align-self:start;
    max-height:100vh;
    overflow-y:auto;
  }
}
.rail h2{
  font-size:19px;
  letter-spacing:.06em;
}
.rail-nav ol{
  list-style:none;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:4px;
  scrollbar-width:thin;
}
@media (min-width:880px){
  .rail-nav ol{display:block;overflow:visible;padding-bottom:0}
}
.rail-nav li{flex:0 0 auto}
@media (min-width:880px){
  .rail-nav li{border-bottom:2px solid #000}
  .rail-nav li:first-child{border-top:2px solid #000}
}
.rail-nav a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:6px 14px;
  border:2px solid #000;
  border-radius:999px;
  text-decoration:none;
  font-size:15px;
  font-weight:600;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease;
}
@media (min-width:880px){
  .rail-nav a{
    border:0;
    border-radius:0;
    padding:10px 2px;
    white-space:normal;
  }
}
.rail-nav a:hover,
.rail-nav a:focus-visible{
  background:#000;
  color:#fff;
}
.rail-nav .idx{opacity:.55}

/* ---------- 正文 ---------- */
.article{
  padding:26px var(--pad) 46px;
  max-width:920px;
}
.article > article{
  padding:26px 0 30px;
  border-bottom:2px dashed #000;
  scroll-margin-top:20px;
}
.article > article:first-child{padding-top:4px}
.article > article:last-child{border-bottom:0;padding-bottom:6px}

.article h2{
  font-size:clamp(1.55rem,5vw,2.5rem);
  letter-spacing:-.02em;
  margin-bottom:2px;
}
.article h3{
  font-size:clamp(1.15rem,3.4vw,1.5rem);
  margin:22px 0 4px;
}
.article > article > p:first-of-type::first-letter{
  float:left;
  font-size:3.4em;
  line-height:.8;
  font-weight:700;
  margin:8px 12px 0 0;
}
.article p{font-size:17px}
.article ul,.article ol{
  padding-left:1.35em;
  margin:0 0 1em;
}
.article li{margin:0 0 .45em}
.article blockquote{
  border:var(--rule);
  border-radius:var(--r);
  padding:20px 22px;
  margin:22px 0;
  font-weight:300;
}
.article blockquote p:last-child{margin-bottom:0}
.article figure{margin:24px 0}
.article figcaption{
  font-size:13px;
  letter-spacing:.06em;
  margin-top:8px;
  opacity:.75;
}
.article a{text-decoration:underline;text-underline-offset:3px}
.article strong{font-weight:700}
.article table{
  width:100%;
  border-collapse:collapse;
  font-size:16px;
  margin:0 0 1em;
}
.article th,.article td{
  border:2px solid #000;
  padding:8px 10px;
  text-align:left;
}

@media (min-width:960px){
  .article > article{
    column-count:2;
    column-gap:38px;
  }
  .article > article > h2,
  .article > article > h3,
  .article > article > hr,
  .article > article > figure,
  .article > article > blockquote,
  .article > article > table{
    column-span:all;
  }
}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  border-top:var(--thick);
  padding:26px var(--pad) 34px;
}
@media (min-width:760px){
  .foot{
    grid-template-columns:1.1fr 1.9fr .9fr;
    gap:26px;
    align-items:start;
  }
}
.f-brand{
  font-family:"Bebas Neue","Source Sans 3",sans-serif;
  font-size:24px;
  letter-spacing:.14em;
  line-height:1;
  border-bottom:var(--rule);
  padding-bottom:10px;
}
.f-nav ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:2px 16px;
}
.f-nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:15px;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.f-nav a:hover,
.f-nav a:focus-visible{border-bottom-color:#000}
.f-copy p{
  font-size:14px;
  letter-spacing:.04em;
  margin-bottom:10px;
}
.top{
  font:inherit;
  font-size:14px;
  font-weight:700;
  min-height:44px;
  padding:0 18px;
  border:2px solid #000;
  border-radius:999px;
  background:#fff;
  color:#000;
  cursor:pointer;
}
.top:hover{background:#000;color:#fff}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:70;
  background:#fff;
  border-top:var(--rule);
  padding:8px var(--pad) calc(8px + env(safe-area-inset-bottom,0px));
}
.dock-brand{
  display:block;
  text-align:center;
  font-family:"Bebas Neue","Source Sans 3",sans-serif;
  font-size:16px;
  letter-spacing:.2em;
  padding-bottom:6px;
  margin-bottom:8px;
  border-bottom:2px solid #000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dock-tools{
  display:flex;
  align-items:center;
  gap:10px;
}
.burger{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font:inherit;
  font-size:15px;
  font-weight:700;
  min-height:46px;
  padding:0 16px;
  border:2px solid #000;
  border-radius:999px;
  background:#fff;
  color:#000;
  cursor:pointer;
  flex:0 0 auto;
}
.burger .bars{
  width:16px;
  height:10px;
  border-top:2px solid #000;
  border-bottom:2px solid #000;
}
.seek{
  display:flex;
  flex:1;
  gap:6px;
  min-width:0;
}
.seek input{
  flex:1;
  min-width:0;
  min-height:46px;
  font:inherit;
  font-size:16px;
  padding:0 15px;
  border:2px solid #000;
  border-radius:999px;
  background:#fff;
  color:#000;
}
.seek button{
  font:inherit;
  font-size:15px;
  font-weight:700;
  min-height:46px;
  padding:0 15px;
  border:2px solid #000;
  border-radius:999px;
  background:#000;
  color:#fff;
  cursor:pointer;
  flex:0 0 auto;
}
.seek input:focus-visible,
.burger:focus-visible,
.top:focus-visible,
.closer:focus-visible{
  outline:3px solid #000;
  outline-offset:2px;
}

/* ---------- 全屏遮罩菜单 ---------- */
.sheet{
  position:fixed;
  inset:0;
  z-index:90;
  background:#000;
  color:#fff;
  padding:22px var(--pad) 48px;
  overflow-y:auto;
  transform:translateY(102%);
  visibility:hidden;
  transition:transform .42s cubic-bezier(.2,.8,.2,1),visibility .42s;
}
body.menu-open .sheet{
  transform:none;
  visibility:visible;
}
.sheet-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-bottom:2px solid #fff;
  padding-bottom:12px;
}
.sheet-brand{
  font-family:"Bebas Neue","Source Sans 3",sans-serif;
  font-size:20px;
  letter-spacing:.2em;
}
.closer{
  font:inherit;
  font-size:15px;
  font-weight:700;
  min-height:44px;
  padding:0 18px;
  border:2px solid #fff;
  border-radius:999px;
  background:#000;
  color:#fff;
  cursor:pointer;
}
.sheet-nav{margin-top:20px}
.sheet-nav ol{list-style:none}
.sheet-nav li{border-bottom:2px solid #333}
.sheet-nav a{
  display:flex;
  align-items:center;
  gap:16px;
  min-height:60px;
  padding:10px 0;
  text-decoration:none;
  font-size:clamp(1.15rem,5.2vw,1.7rem);
  font-weight:700;
  letter-spacing:-.01em;
}
.sheet-nav a:hover .lbl,
.sheet-nav a:focus-visible .lbl{
  text-decoration:underline;
  text-underline-offset:6px;
}
.sheet-nav .idx{font-size:15px;opacity:.6}

/* ---------- 动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease,transform .6s ease;
}
.reveal.in{opacity:1;transform:none}

.rail-nav li:nth-child(1) a{transition-delay:.02s}
.rail-nav li:nth-child(2) a{transition-delay:.04s}
.rail-nav li:nth-child(3) a{transition-delay:.06s}
.rail-nav li:nth-child(4) a{transition-delay:.08s}
.rail-nav li:nth-child(5) a{transition-delay:.1s}
.rail-nav li:nth-child(6) a{transition-delay:.12s}
.rail-nav li:nth-child(7) a{transition-delay:.14s}

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

@media (max-width:420px){
  .burger{padding:0 13px}
  .seek button{padding:0 12px}
}

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