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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --bar:7.4rem;
  --r:18px;
  --f-head:'Orbitron','Exo 2','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --f-body:'Exo 2','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:1rem;
  line-height:1.78;
  letter-spacing:.012em;
  font-weight:400;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit}
p{margin:0 0 1rem}
::selection{background:#000;color:#fff}

.skip{
  position:absolute;
  top:-5rem;
  left:.6rem;
  z-index:90;
  background:#000;
  color:#fff;
  padding:.7rem 1.1rem;
  text-decoration:none;
  font-size:.95rem;
}
.skip:focus{top:.5rem}

/* 顶栏 */
.top{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:3px solid #000;
}

.bar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:.6rem;
  padding:.45rem clamp(.7rem,3vw,1.4rem);
  border-bottom:1px solid #000;
}

.burger{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.5rem .85rem;
  border:2px solid #000;
  border-radius:999px;
  background:#fff;
  color:#000;
  font-family:var(--f-body);
  font-size:.95rem;
  letter-spacing:.16em;
  cursor:pointer;
}
.burger:hover,.burger:focus-visible{background:#000;color:#fff}

.brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  min-height:44px;
  padding:.3rem .2rem;
  text-decoration:none;
}
.brand-txt{
  font-family:var(--f-head);
  font-weight:700;
  font-size:1.02rem;
  letter-spacing:.2em;
  white-space:nowrap;
}
.brand-mark{
  font-family:var(--f-head);
  font-size:1rem;
  line-height:1;
  width:26px;
  height:26px;
  object-fit:cover;
}

.bar-rule{
  justify-self:end;
  width:36px;
  height:7px;
  background:#000;
  border-radius:2px;
}

.rail{padding:.15rem clamp(.7rem,3vw,1.4rem) .35rem}

.rail p{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:0 .85rem;
}

.rail a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .1rem;
  font-size:.95rem;
  text-decoration:none;
  border-bottom:3px solid transparent;
  white-space:nowrap;
}
.rail a:hover,.rail a:focus-visible{border-bottom-color:#000}

/* 正文栅格 */
.main{
  width:min(1180px,100% - 1.8rem);
  margin:0 auto;
  padding-bottom:2rem;
}

main div[id]{scroll-margin-top:calc(var(--bar) + 1rem)}

.piece{display:block}

/* 首屏 */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  min-height:calc(100vh - var(--bar));
  min-height:calc(100svh - var(--bar));
  padding:1.2rem 0 4.2rem;
  margin-bottom:1.6rem;
}

.hero-fig{
  position:absolute;
  left:0;
  right:0;
  top:-8%;
  height:118%;
  margin:0;
  overflow:hidden;
  background:repeating-linear-gradient(135deg,#000 0 14px,#fff 14px 28px);
  -webkit-clip-path:polygon(0 0,100% 0,100% 86%,0 100%);
  clip-path:polygon(0 0,100% 0,100% 86%,0 100%);
  z-index:0;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.06);
}

.hero-card{
  position:relative;
  z-index:2;
  background:#fff;
  border:3px solid #000;
  border-radius:var(--r);
  padding:clamp(1rem,3.4vw,2.1rem);
  max-width:min(100%,38rem);
}

.hero-h1{
  margin:0 0 .6rem;
  font-family:var(--f-head);
  font-weight:700;
  font-size:clamp(1.75rem,5vw,3.3rem);
  line-height:1.16;
  letter-spacing:.015em;
}

.hero-lead{
  margin:0;
  font-size:1rem;
  line-height:1.7;
  max-width:34rem;
}

/* 侧栏 */
.side{
  border:2px solid #000;
  border-radius:var(--r);
  padding:.9rem 1rem 1.1rem;
  margin:0 0 1.6rem;
  background:#fff;
}

.side-h{
  margin:0 0 .5rem;
  font-family:var(--f-head);
  font-size:.95rem;
  font-weight:600;
  letter-spacing:.28em;
}

.side hr{
  border:0;
  border-top:4px solid #000;
  margin:0 0 .6rem;
}

.side-list{margin:0;display:grid}

.side-list a{
  display:flex;
  align-items:baseline;
  gap:.6rem;
  min-height:44px;
  padding:.6rem .1rem;
  text-decoration:none;
  font-size:.95rem;
  line-height:1.45;
  border-bottom:1px solid rgba(0,0,0,.2);
}
.side-list a:last-child{border-bottom:0}
.side-list a b{
  font-family:var(--f-head);
  font-size:.8rem;
  font-weight:500;
  letter-spacing:.1em;
  flex:0 0 auto;
}
.side-list a:hover,.side-list a:focus-visible{background:#000;color:#fff}

/* 正文章节 */
.piece > div:not(.hero){
  padding:clamp(1.5rem,4vw,2.6rem) 0;
  border-top:2px solid #000;
}

.piece > div:not(.hero):nth-of-type(even){
  background:#000;
  color:#fff;
  border-top:0;
  padding:clamp(2rem,5vw,3.2rem) clamp(1rem,3vw,2.2rem);
  margin:1.6rem 0;
  -webkit-clip-path:polygon(0 20px,100% 0,100% calc(100% - 20px),0 100%);
  clip-path:polygon(0 20px,100% 0,100% calc(100% - 20px),0 100%);
}

.piece > div h2{
  margin:0 0 .8rem;
  font-family:var(--f-head);
  font-weight:700;
  font-size:clamp(1.3rem,3vw,1.95rem);
  line-height:1.3;
  letter-spacing:.02em;
}

.piece > div h3{
  margin:1.6rem 0 .45rem;
  font-family:var(--f-head);
  font-weight:600;
  font-size:1.06rem;
  line-height:1.5;
  letter-spacing:.1em;
}

.piece > div > p:first-of-type::first-letter{
  float:left;
  font-family:var(--f-head);
  font-size:3.1em;
  line-height:.8;
  font-weight:700;
  padding:.06em .1em 0 0;
}

main a{text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1px}
.piece > div:not(.hero) a:hover{background:#000;color:#fff}
.piece > div:not(.hero):nth-of-type(even) a:hover{background:#fff;color:#000}

main ul,main ol{margin:0 0 1rem;padding-left:1.3rem}
main li{margin:.35rem 0}

main blockquote{
  margin:1.5rem 0;
  padding:.35rem 0 .35rem 1rem;
  border-left:8px solid currentColor;
  font-family:var(--f-head);
  font-size:1.08rem;
  line-height:1.6;
}
main blockquote p{margin:0}

main figure{margin:1.4rem 0}
main figcaption{margin-top:.45rem;font-size:.95rem;letter-spacing:.06em;opacity:.75}

main hr{border:0;border-top:4px solid currentColor;margin:1.3rem 0}

main table{width:100%;border-collapse:collapse;margin:0 0 1rem;font-size:.98rem}
main th,main td{border:1px solid currentColor;padding:.5rem .6rem;text-align:left}

/* 页脚 */
.foot{
  border-top:3px solid #000;
  margin-top:2rem;
  background:#fff;
}

.foot-in{
  width:min(1180px,100% - 1.8rem);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.2rem 1.3rem;
  padding:1rem 0 1.4rem;
}

.foot-logo{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.3rem 0;
  text-decoration:none;
  font-family:var(--f-head);
  font-weight:700;
  font-size:.95rem;
  letter-spacing:.2em;
}

.foot nav{flex:1 1 14rem}
.foot nav p{margin:0;display:flex;flex-wrap:wrap;gap:0 .9rem}
.foot nav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 .1rem;
  font-size:.95rem;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.foot nav a:hover,.foot nav a:focus-visible{border-bottom-color:#000}

.copy{
  margin:0;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.3rem 0;
  font-size:.95rem;
  letter-spacing:.1em;
}

/* 遮罩菜单 */
.sheet{
  position:fixed;
  inset:0;
  z-index:70;
  display:flex;
  flex-direction:column;
  gap:1rem;
  padding:1.1rem;
  background:#000;
  color:#fff;
  overflow-y:auto;
  transform:translateY(-101%);
  visibility:hidden;
  transition:transform .4s cubic-bezier(.65,0,.2,1),visibility .4s;
}
.sheet.on{transform:translateY(0);visibility:visible}

.sheet-x{
  align-self:flex-end;
  min-height:44px;
  padding:.55rem 1.2rem;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#000;
  font-family:var(--f-body);
  font-size:.95rem;
  letter-spacing:.16em;
  cursor:pointer;
}

.sheet nav p{margin:0;display:grid}

.sheet nav a{
  display:flex;
  align-items:baseline;
  gap:.9rem;
  min-height:52px;
  padding:.75rem .15rem;
  font-family:var(--f-head);
  font-size:1.05rem;
  letter-spacing:.05em;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.32);
}
.sheet nav a b{font-size:.8rem;font-weight:400;opacity:.6;flex:0 0 auto}
.sheet nav a:hover,.sheet nav a:focus-visible{background:#fff;color:#000}

/* 滚动出现 */
.js .rv{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .62s ease,transform .62s cubic-bezier(.2,.7,.2,1);
}
.js .rv.in{opacity:1;transform:none}

/* 宽屏：右栏 + 双列正文 */
@media (min-width:1000px){
  .rail p{justify-content:space-between;gap:0 1.2rem}

  .piece{
    display:grid;
    grid-template-columns:minmax(0,1fr) 17rem;
    column-gap:3rem;
    align-items:start;
  }
  .hero,.skip{grid-column:1 / -1}
  .piece > div:not(.hero){grid-column:1}
  .side{
    grid-column:2;
    grid-row:2 / span 10;
    position:sticky;
    top:calc(var(--bar) + 1rem);
    margin-bottom:0;
  }
}

@media (min-width:1240px){
  .piece > div:not(.hero){
    column-count:2;
    column-gap:3rem;
    column-fill:balance;
  }
  .piece > div:not(.hero) h2,
  .piece > div:not(.hero) h3{break-after:avoid;break-inside:avoid}
  .piece > div:not(.hero) > p:first-of-type::first-letter{margin-bottom:-.1em}
}

@media (max-width:640px){
  html{font-size:16px}
  .bar{padding:.4rem .7rem}
  .rail{padding:.1rem .7rem .3rem}
  .rail p{gap:0 .5rem;justify-content:flex-start}
  .rail a{font-size:.95rem;padding:0 .05rem;border-bottom-width:2px}
  .hero{padding:1rem 0 3.4rem;min-height:calc(100vh - var(--bar))}
  .hero-card{border-width:2px;border-radius:var(--r);padding:1rem}
  .piece > div:not(.hero):nth-of-type(even){margin:1.2rem 0}
  .foot-in{padding:.8rem 0 1.2rem}
}

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

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