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

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000000;
  --paper:#fdf7ea;
  --white:#ffffff;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --sans:'IBM Plex Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --rail:150px;
  --strip:40px;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background:var(--paper);
}

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

a{color:inherit}

h1,h2,h3{font-family:var(--mono);font-weight:700;letter-spacing:-.01em}

[id]{scroll-margin-top:calc(var(--strip) + 24px)}

:focus-visible{outline:3px solid var(--red);outline-offset:2px}

.strip{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--strip);
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  background:var(--ink);
  color:var(--white);
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.1em;
  white-space:nowrap;
  overflow:hidden;
  border-bottom:3px solid var(--ink);
  z-index:60;
}
.strip-brand{
  background:var(--red);
  color:var(--ink);
  font-weight:700;
  padding:1px 8px;
  border:2px solid var(--white);
  letter-spacing:.04em;
}
.strip-kw{opacity:.8}

.rail{
  position:fixed;
  top:var(--strip);
  left:0;
  bottom:0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px 10px 18px;
  background:var(--white);
  border-right:3px solid var(--ink);
  overflow-y:auto;
  z-index:55;
}

.mark{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  flex:0 0 auto;
  background:var(--blue);
  border:3px solid var(--ink);
  border-radius:12px;
  box-shadow:5px 5px 0 var(--ink);
  font-family:var(--mono);
  font-size:16px;
  font-weight:700;
  line-height:1.05;
  text-align:center;
  text-decoration:none;
  color:var(--ink);
  overflow:hidden;
  transition:transform .12s linear, box-shadow .12s linear;
}
.mark img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.mark:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 var(--ink)}

.rail-list{
  list-style:none;
  margin:4px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.rail-list a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:7px 9px;
  font-size:15px;
  font-weight:600;
  line-height:1.3;
  color:var(--ink);
  text-decoration:none;
  border:3px solid transparent;
  border-radius:10px;
  transition:background .12s linear, transform .12s linear, box-shadow .12s linear;
}
.rail-list a::before{
  content:'';
  width:10px;
  height:10px;
  flex:0 0 auto;
  background:var(--blue);
  border:2px solid var(--ink);
}
.rail-list a:hover,
.rail-list a.on{
  background:var(--blue);
  border-color:var(--ink);
  box-shadow:3px 3px 0 var(--ink);
  transform:translate(-1px,-1px);
}
.rail-list li:nth-child(even) a::before{background:var(--red)}

main{
  margin-left:var(--rail);
  padding-top:var(--strip);
}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:24px;
  align-items:center;
  min-height:45vh;
  padding:28px clamp(16px,3vw,40px);
  background:var(--white);
  background-image:
    linear-gradient(#00000012 1px, transparent 1px),
    linear-gradient(90deg, #00000012 1px, transparent 1px);
  background-size:26px 26px;
  border-bottom:3px solid var(--ink);
}

.hero-copy{min-width:0}

.hero-copy h1{
  display:inline-block;
  max-width:100%;
  margin:0 0 18px;
  padding:8px 14px;
  font-size:clamp(27px,4.4vw,48px);
  line-height:1.12;
  background:var(--blue);
  border:3px solid var(--ink);
  border-radius:12px;
  box-shadow:7px 7px 0 var(--ink);
  overflow-wrap:break-word;
}

.hero-lead{
  margin:0;
  max-width:44ch;
  font-size:17px;
  font-weight:500;
  line-height:1.65;
  border-left:6px solid var(--red);
  padding-left:12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  margin-top:20px;
  padding:10px 20px;
  font-family:var(--mono);
  font-size:15px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  background:var(--red);
  border:3px solid var(--ink);
  border-radius:10px;
  box-shadow:5px 5px 0 var(--ink);
  transition:transform .12s linear, box-shadow .12s linear;
}
.btn:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 var(--ink)}

.hero-art{
  position:relative;
  min-height:230px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--blue);
  border:3px solid var(--ink);
  border-radius:12px;
  box-shadow:8px 8px 0 var(--red);
  will-change:transform;
}
.hero-img{width:100%;height:100%;min-height:230px;object-fit:cover}
.fallback{
  font-family:var(--mono);
  font-size:clamp(18px,2.6vw,26px);
  font-weight:700;
  line-height:1.3;
  text-align:center;
  padding:18px;
  letter-spacing:.04em;
}

.wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  gap:26px;
  align-items:start;
  max-width:1180px;
  padding:30px clamp(16px,3vw,40px) 46px;
}

.col{min-width:0}

.col h2{
  margin:0 0 8px;
  font-size:clamp(21px,2.8vw,30px);
  line-height:1.2;
}

p.subtitle{
  margin:0 0 22px;
  font-size:17px;
  font-weight:500;
  color:#111;
  border-left:6px solid var(--red);
  padding-left:12px;
}

.prose{
  background:var(--white);
  border:3px solid var(--ink);
  border-radius:14px;
  box-shadow:8px 8px 0 var(--ink);
  padding:clamp(16px,2.4vw,28px);
  overflow-wrap:break-word;
}
.prose section{
  padding:18px 0;
  border-top:3px dashed var(--ink);
}
.prose section:first-child{border-top:0;padding-top:0}
.prose section:last-child{padding-bottom:0}
.prose section:nth-of-type(even){background:linear-gradient(0deg, #3bb1ff14, #3bb1ff14)}

.prose h2{
  margin:0 0 10px;
  font-size:clamp(19px,2.5vw,26px);
  line-height:1.28;
}
.prose h3{
  margin:22px 0 8px;
  font-size:19px;
  line-height:1.3;
}
.prose p{margin:0 0 14px}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 14px;padding-left:24px}
.prose li{margin:6px 0}
.prose a{
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  background:var(--blue);
  border-bottom:2px solid var(--ink);
  padding:1px 3px;
}
.prose a:hover{background:var(--red)}
.prose strong{background:var(--red);padding:0 2px}

.side{
  position:sticky;
  top:calc(var(--strip) + 18px);
  background:var(--white);
  border:3px solid var(--ink);
  border-radius:14px;
  box-shadow:8px 8px 0 var(--blue);
  padding:16px;
}
.side-title{
  margin:0 0 12px;
  font-family:var(--mono);
  font-size:13px;
  font-weight:700;
  letter-spacing:.16em;
}
.side-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 10px;
  font-size:15px;
  font-weight:600;
  line-height:1.3;
  text-decoration:none;
  color:var(--ink);
  background:var(--white);
  border:3px solid var(--ink);
  border-radius:10px;
  transition:background .12s linear, transform .12s linear, box-shadow .12s linear;
}
.side-list a:hover{
  background:var(--red);
  transform:translate(-2px,-2px);
  box-shadow:3px 3px 0 var(--ink);
}

footer{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px 22px;
  margin-left:var(--rail);
  padding:16px clamp(16px,3vw,40px) 22px;
  background:var(--ink);
  color:var(--white);
  border-top:3px solid var(--ink);
}
footer address{
  font-style:normal;
  font-family:var(--mono);
  font-size:16px;
  font-weight:700;
  letter-spacing:.02em;
}
.fnl,.fnav{min-width:0}
.fdl{
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:0 16px;
}
.fdl dt{font-size:15px;line-height:1.2}
.fdl dd{display:none;margin:0}
.fdl a,
.fquick a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--white);
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  border-bottom:2px solid var(--red);
}
.fdl a:hover,
.fquick a:hover{color:var(--blue)}
.fquick{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:0 16px;
  margin:0;
  padding:0;
}

@media (max-width:960px){
  .wrap{grid-template-columns:minmax(0,1fr) 236px;gap:20px}
  .side{padding:12px}
}

@media (max-width:860px){
  :root{--rail:0px}
  .rail{
    top:var(--strip);
    right:0;
    bottom:auto;
    width:auto;
    height:auto;
    flex-direction:row;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-right:0;
    border-bottom:3px solid var(--ink);
    overflow-x:auto;
    overflow-y:hidden;
  }
  .mark{width:44px;height:44px;font-size:13px;box-shadow:4px 4px 0 var(--ink)}
  .rail-list{flex-direction:row;margin:0;gap:8px}
  .rail-list a{white-space:nowrap;min-height:44px;font-size:15px}
  main{margin-left:0;padding-top:calc(var(--strip) + 68px)}
  [id]{scroll-margin-top:calc(var(--strip) + 78px)}
  .hero{grid-template-columns:1fr;min-height:0;padding:22px 16px}
  .hero-art{min-height:190px;box-shadow:6px 6px 0 var(--red)}
  .hero-img{min-height:190px}
  .wrap{grid-template-columns:1fr;gap:22px;padding:24px 16px 38px}
  .side{position:static;box-shadow:6px 6px 0 var(--blue)}
  footer{margin-left:0;flex-direction:column;align-items:stretch;gap:10px}
  .fquick{border-top:3px solid #ffffff33;padding-top:6px}
}

@media (max-width:420px){
  body{font-size:16px}
  h1{font-size:26px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none !important;animation:none !important}
}

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