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

:root{
  --g:#00ff80;
  --b:#0000ff;
  --k:#000000;
  --w:#f4f4f4;
  --line:#1d1d1d;
  --dim:#9a9a9a;
  --mono:'Space Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --wide:'Syncopate',system-ui,-apple-system,'Segoe UI',sans-serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  background:var(--k);
  color:var(--w);
  font-family:var(--mono);
  font-size:16px;
  line-height:1.68;
}

img{max-width:100%;display:block}

a{color:var(--g);text-decoration:none}

a:focus-visible,summary:focus-visible{outline:3px solid var(--g);outline-offset:3px}

div[id]{scroll-margin-top:78px}

.site{max-width:1440px;margin:0 auto;border-left:2px solid var(--line);border-right:2px solid var(--line)}

/* ---------- 顶栏 ---------- */
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px clamp(12px,2.6vw,28px);
  border-bottom:3px solid var(--g);
  background:var(--k);
  position:relative;
  z-index:50;
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:6px 0;
  color:var(--w);
  font-family:var(--wide);
  font-weight:700;
  font-size:clamp(15px,2.3vw,20px);
  letter-spacing:.05em;
}

.brand-mark{
  width:13px;
  height:13px;
  flex:0 0 13px;
  background:var(--g);
  border:2px solid var(--g);
  box-shadow:4px 4px 0 var(--b);
}

.top-right{display:flex;align-items:center;gap:9px}

.tel{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 13px;
  border:2px solid var(--g);
  color:var(--g);
  font-size:14px;
}

.tel:hover{background:var(--g);color:var(--k)}

/* ---------- 全屏折叠菜单 ---------- */
.drawer summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 13px;
  border:2px solid var(--w);
  color:var(--w);
  font-size:14px;
}

.drawer summary::-webkit-details-marker{display:none}

.bars{width:16px;height:2px;flex:0 0 16px;background:var(--w);box-shadow:0 6px 0 var(--w),0 -6px 0 var(--w)}

.drawer[open] summary{position:relative;z-index:70;background:var(--b);border-color:var(--g);color:var(--g)}

.drawer[open] .bars{background:var(--g);box-shadow:0 6px 0 var(--g),0 -6px 0 var(--g)}

.drawer menu{
  position:fixed;
  inset:0;
  margin:0;
  padding:86px clamp(18px,5vw,56px) 34px;
  list-style:none;
  background:var(--k);
  z-index:60;
  overflow:auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.drawer menu li{border-bottom:2px solid var(--line)}

.drawer menu li:first-child{border-top:2px solid var(--line)}

.drawer menu a{
  display:flex;
  align-items:center;
  min-height:54px;
  padding:12px 6px;
  font-family:var(--wide);
  font-size:clamp(17px,3.6vw,28px);
  letter-spacing:.03em;
  color:var(--w);
}

.drawer menu a:hover{background:var(--b);color:var(--g);padding-left:14px}

/* ---------- 粘性锚点条 ---------- */
.strip{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--b);
  border-bottom:3px solid var(--g);
}

.strip menu{
  display:flex;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}

.strip menu::-webkit-scrollbar{display:none}

.strip a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 15px;
  white-space:nowrap;
  color:var(--w);
  font-size:13px;
  border-right:2px solid #2626a8;
}

.strip a:hover{background:var(--g);color:var(--k)}

/* ---------- 主区 ---------- */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  align-items:start;
}

article{min-width:0;padding:0 clamp(14px,3vw,36px) 58px;border-right:3px solid var(--line)}

.hero{
  display:grid;
  grid-template-columns:1fr;
  min-height:45vh;
  border-bottom:4px solid var(--g);
}

.hero.has-img{grid-template-columns:1.05fr .95fr}

.hero-media{overflow:hidden;background:#080808;border-right:4px solid var(--b)}

.hero.has-img .hero-media{clip-path:polygon(0 0,100% 0,100% 93%,0 100%)}

.hero-media img{width:100%;height:100%;min-height:190px;max-height:45vh;object-fit:cover}

.hero-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:13px;
  padding:clamp(18px,3.2vw,34px) clamp(14px,3vw,36px);
  text-align:right;
  background:linear-gradient(158deg,var(--k) 58%,#05050f 100%);
}

.hero h1{
  margin:0;
  font-family:var(--wide);
  font-weight:700;
  font-size:clamp(25px,4.3vw,49px);
  line-height:1.08;
  letter-spacing:-.012em;
  color:var(--g);
  text-shadow:4px 4px 0 var(--b);
}

.hero-desc{margin:0 0 0 auto;max-width:44ch;font-size:15px;color:#cfcfcf}

.lead{padding:26px 0 20px;border-bottom:3px solid #232323}

.lead h2{
  margin:0;
  font-family:var(--wide);
  font-size:clamp(14px,2.3vw,21px);
  letter-spacing:.3em;
  color:var(--w);
}

.lead .subtitle{
  margin:9px 0 0;
  padding-left:11px;
  border-left:4px solid var(--b);
  font-size:13px;
  letter-spacing:.05em;
  color:var(--g);
}

/* ---------- 正文 ---------- */
.body{padding-top:8px}

.body div[id]{padding:26px 0 30px;border-bottom:2px solid #1e1e1e}

.body div[id]:last-child{border-bottom:0}

.body h2{
  margin:0 0 15px;
  padding-left:13px;
  border-left:8px solid var(--g);
  font-family:var(--wide);
  font-size:clamp(18px,2.9vw,27px);
  line-height:1.28;
  color:var(--w);
}

.body h3{
  margin:26px 0 10px;
  font-family:var(--wide);
  font-size:clamp(16px,2.1vw,19px);
  color:var(--g);
}

.body p{margin:0 0 15px;max-width:72ch;color:#dcdcdc}

.body ul,.body ol{margin:0 0 17px;padding-left:22px;max-width:70ch}

.body li{margin:0 0 9px}

.body a{color:var(--g);border-bottom:2px solid var(--b)}

.body strong{color:#fff;background:var(--b);padding:0 4px}

.body em{color:var(--g);font-style:normal;border-bottom:2px dashed var(--g)}

.body table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:15px}

.body th,.body td{border:2px solid #262626;padding:8px 10px;text-align:left;vertical-align:top}

.body th{background:#0d0d0d;color:var(--g)}

.body blockquote{margin:0 0 17px;padding:12px 16px;border-left:6px solid var(--b);background:#0a0a0a}

.body blockquote p:last-child{margin:0}

.body figure{margin:0 0 18px}

.body img{border:3px solid var(--line)}

.body code,.body pre{font-family:var(--mono);background:#0d0d0d;border:2px solid var(--line)}

.body code{padding:1px 5px;font-size:14px}

.body pre{padding:12px;overflow-x:auto;margin:0 0 18px}

/* ---------- 右侧栏 ---------- */
.rail{
  position:sticky;
  top:58px;
  padding:22px clamp(12px,2vw,18px) 44px;
  background:#050505;
}

.rail-h{
  margin:0 0 14px;
  padding-bottom:8px;
  border-bottom:2px solid var(--line);
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.3em;
  color:var(--g);
}

.rail-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}

.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:11px 13px;
  border:2px solid #232323;
  border-bottom:4px solid var(--g);
  border-radius:28px;
  background:#0c0c0c;
  color:#eaeaea;
  font-size:13.5px;
  line-height:1.32;
  animation:rise .42s steps(4,end) both;
}

.rail-list a:hover{background:#131313;border-color:var(--g)}

.rail-list a.is-active{background:var(--b);border-color:var(--g);color:#fff}

.idx{font-size:11px;letter-spacing:.1em;color:var(--g)}

.rail-list a.is-active .idx{color:#fff}

.rail-list li:nth-child(1) a{animation-delay:.02s}
.rail-list li:nth-child(2) a{animation-delay:.08s}
.rail-list li:nth-child(3) a{animation-delay:.14s}
.rail-list li:nth-child(4) a{animation-delay:.2s}
.rail-list li:nth-child(5) a{animation-delay:.26s}
.rail-list li:nth-child(6) a{animation-delay:.32s}
.rail-list li:nth-child(7) a{animation-delay:.38s}

@keyframes rise{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:18px;
  padding:34px clamp(14px,3vw,36px) 30px;
  border-top:4px solid var(--g);
  background:var(--k);
}

.foot-brand{
  margin:0;
  font-family:var(--wide);
  font-weight:700;
  font-size:clamp(25px,5vw,52px);
  line-height:.96;
  letter-spacing:-.02em;
  color:var(--g);
  text-shadow:4px 4px 0 var(--b);
}

.foot-col{margin:0;display:flex;flex-direction:column}

.foot-col a{
  display:block;
  min-height:40px;
  padding:11px 0;
  border-bottom:1px solid #1b1b1b;
  color:#d0d0d0;
  font-size:13.5px;
}

.foot-col a:hover{color:var(--g)}

.foot-copy{align-self:end;font-size:12px;color:#8a8a8a;letter-spacing:.04em}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  main{grid-template-columns:minmax(0,1fr)}
  article{border-right:0;padding-bottom:30px}
  .hero.has-img{grid-template-columns:1fr}
  .hero.has-img .hero-media{clip-path:none;border-right:0;border-bottom:4px solid var(--b)}
  .hero-media img{max-height:220px;min-height:150px}
  .rail{position:static;border-top:3px solid var(--line);padding:22px clamp(14px,3vw,36px) 34px}
  .rail-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .foot{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1 / -1}
  .foot-copy{grid-column:1 / -1}
}

@media (max-width:600px){
  .brand{font-size:15px;letter-spacing:.02em}
  .brand-mark{box-shadow:3px 3px 0 var(--b)}
  .tel{padding:0 10px;font-size:13px}
  .drawer summary{padding:0 10px;font-size:13px}
  .strip a{font-size:12px;padding:0 12px}
  .hero-text{text-align:right;padding:18px 14px 22px}
  .hero-desc{font-size:14px}
  .rail-list{grid-template-columns:minmax(0,1fr)}
  .foot{padding-bottom:24px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rail-list a{animation:none}
}

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