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

:root{
  --ink:#000000;
  --paper:#ffffff;
  --dim:#6b6b6b;
  --edge:#dcdcdc;
  --pad:clamp(1.1rem,4vw,2.6rem);
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Space Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:17px;
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

@media (min-width:920px){
  body{font-size:18px}
}

img{display:block;max-width:100%;height:auto}
a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
p{margin:0 0 1.1em}
h1,h2,h3,h4{margin:0;font-weight:700;line-height:1.05;letter-spacing:-.04em}
hr{border:0;border-top:1px solid var(--ink);margin:1.2rem 0 1.6rem}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

/* 顶部细条 */
.bar{
  background:var(--ink);
  color:var(--paper);
  padding:9px var(--pad);
}
.bar-in{
  margin:0;
  font-size:11px;
  letter-spacing:.44em;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 品牌行 + 菜单行 */
.masthead{
  border-bottom:5px solid var(--ink);
  padding:0 var(--pad);
}
.brandline{padding:18px 0 10px}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  text-decoration:none;
  font-size:clamp(1.7rem,4.4vw,2.9rem);
  font-weight:700;
  letter-spacing:-.05em;
  line-height:1;
}
.logo{width:36px;height:36px;object-fit:contain}

.menu{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:0 0 16px;
}
.menu a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 13px;
  border:2px solid var(--ink);
  text-decoration:none;
  font-size:.9rem;
  transition:background .18s ease,color .18s ease;
}
.menu a:hover,
.menu a:focus-visible{
  background:var(--ink);
  color:var(--paper);
}

/* 紧凑主视觉 */
.hero{
  background:var(--ink);
  color:var(--paper);
  min-height:45vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:clamp(2rem,6vh,3.5rem) var(--pad);
}
.hero-in{width:100%;max-width:46rem}
.hero-mark-wrap{display:flex;justify-content:center;margin-bottom:1rem}
.hero-mark{width:56px;height:56px;object-fit:contain;filter:invert(1)}
.hero-h1{
  font-size:clamp(2.6rem,9vw,7.5rem);
  line-height:.92;
  letter-spacing:-.05em;
  overflow-wrap:anywhere;
}
.hero-desc{
  margin:1.1rem auto 0;
  max-width:44ch;
  color:#cfcfcf;
  font-size:clamp(.95rem,1.6vw,1.05rem);
  line-height:1.6;
}

/* 斜切色带 */
.band{
  height:clamp(26px,5vw,58px);
  background:var(--ink);
  transform:skewY(-2deg);
  transform-origin:left top;
  margin-top:-1px;
}

/* 正文骨架：main > article.wrap > section > div */
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:clamp(2.2rem,6vw,4.5rem) var(--pad) clamp(3rem,7vw,5rem);
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:clamp(1.8rem,4vw,3.6rem);
  align-items:start;
}

.content{min-width:0}
.prose{min-width:0}
.prose>*{max-width:68ch}

.prose section{
  border-top:3px solid var(--ink);
  padding-top:clamp(1.2rem,2.5vw,2rem);
  margin-top:clamp(2.2rem,5vw,3.6rem);
  scroll-margin-top:20px;
}
.prose section:first-child{
  border-top:0;
  padding-top:0;
  margin-top:0;
}

.prose h2{
  font-size:clamp(1.7rem,4.6vw,2.7rem);
  margin:0 0 .8em;
}
.prose h3{
  font-size:clamp(1.15rem,2.6vw,1.5rem);
  margin:1.8em 0 .55em;
  letter-spacing:-.02em;
  line-height:1.2;
}
.prose h2+hr{margin-top:-.2em}

.prose ul,.prose ol{padding-left:1.3em;margin:0 0 1.1em}
.prose li{margin:.35em 0}
.prose blockquote{
  margin:1.4em 0;
  padding:.2em 0 .2em 1.1em;
  border-left:5px solid var(--ink);
  font-size:1.04em;
}
.prose blockquote p:last-child{margin:0}
.prose figure{margin:1.5em 0}
.prose figure img{width:100%;border-radius:10px}
.prose figcaption{font-size:.82rem;color:var(--dim);margin-top:.5em;line-height:1.5}
.prose img{width:100%;border-radius:10px;margin:1em 0}
.prose a{text-decoration:underline}
.prose code{
  font-size:.92em;
  background:#efefef;
  padding:.08em .35em;
  border-radius:4px;
}
.prose table{
  width:100%;
  border-collapse:collapse;
  font-size:.92rem;
  display:block;
  overflow-x:auto;
}
.prose th,.prose td{
  border-bottom:1px solid var(--edge);
  padding:.5em .6em;
  text-align:left;
}
.prose h2+.card,.card{
  background:var(--ink);
  color:var(--paper);
  border-radius:10px;
  padding:1.4rem 1.3rem;
}

/* 右栏 */
.side{
  position:sticky;
  top:20px;
  border-top:4px solid var(--ink);
  padding-top:12px;
}
.side-h{
  font-size:.72rem;
  line-height:1.4;
  letter-spacing:.34em;
  margin:0;
}
.side .rule{margin:.6rem 0 1rem}
.side-list{list-style:none;margin:0;padding:0}
.side-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 0;
  font-size:.92rem;
  text-decoration:none;
  border-bottom:1px solid var(--edge);
  transition:padding .18s ease,background .18s ease,color .18s ease;
}
.side-list a:hover,
.side-list a:focus-visible{
  background:var(--ink);
  color:var(--paper);
  padding-left:8px;
}

/* 页脚 */
.foot{
  background:var(--ink);
  color:var(--paper);
  padding:clamp(2rem,6vw,3.5rem) var(--pad) 1.5rem;
}
.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  padding-bottom:clamp(1.6rem,4vw,2.4rem);
  border-bottom:1px solid #333;
}
.cta-rot{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  margin:0;
  height:clamp(2.6rem,8vw,5rem);
  font-size:clamp(2rem,7vw,4.4rem);
  font-weight:700;
  letter-spacing:-.05em;
  line-height:1;
}
.cta-rot span{
  position:absolute;
  left:0;
  top:0;
  opacity:0;
  white-space:nowrap;
  animation:rot 17.5s linear infinite;
}
@keyframes rot{
  0%{opacity:1}
  12%{opacity:1}
  14.28%{opacity:0}
  100%{opacity:0}
}
.cta-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 16px;
  border:2px solid var(--paper);
  text-decoration:none;
  font-size:.9rem;
  transition:background .18s ease,color .18s ease;
}
.cta-link:hover,
.cta-link:focus-visible{
  background:var(--paper);
  color:var(--ink);
}

.fcols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(1.5rem,5vw,3rem);
  padding:clamp(1.8rem,4vw,2.6rem) 0;
  border-bottom:1px solid #333;
}
.fbrand{display:flex;flex-direction:column;gap:.8rem}
.flogo{width:34px;height:34px;object-fit:contain;filter:invert(1)}
.fbrand-txt{
  margin:0;
  font-size:clamp(1.1rem,3vw,1.5rem);
  font-weight:700;
  letter-spacing:-.04em;
}

.fnav dl{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:0 1rem;
  margin:0;
}
.fnav dt,.fnav dd{
  margin:0;
  border-bottom:1px solid #2a2a2a;
}
.fnav dt{font-size:.92rem}
.fnav dt a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 0;
  text-decoration:none;
}
.fnav dt a:hover,
.fnav dt a:focus-visible{text-decoration:underline}
.fnav dd{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  font-size:.75rem;
  color:#8f8f8f;
}

.fbar{
  padding-top:1.2rem;
  text-align:center;
  font-size:.78rem;
  letter-spacing:.06em;
  color:#9a9a9a;
}
.fbar p{margin:0}

/* 滚动揭示 */
.js .rv{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s ease;
}
.js .rv.in{
  opacity:1;
  transform:none;
}

@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .side{position:static;order:2;margin-top:2rem}
}

@media (max-width:620px){
  .fcols{grid-template-columns:1fr}
  .cta{align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .rv{opacity:1;transform:none;transition:none}
  .cta-rot{height:auto;display:flex;flex-wrap:wrap;gap:.15rem 1.2rem}
  .cta-rot span{position:static;opacity:1;animation:none}
}

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