@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000;
  --paper:#ffffff;
  --edge:3px solid #000;
  --drop:6px 6px 0 #000;
  --pad:clamp(18px,4vw,32px);
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

img{max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:3px solid var(--red);outline-offset:3px}

.skip{
  position:absolute;
  left:-9999px;
  top:6px;
  z-index:99;
  background:#000;
  color:#fff;
  padding:10px 14px;
  font-weight:700;
  text-decoration:none;
}
.skip:focus{left:6px}

/* ---------- 头部 ---------- */
.side{
  background:var(--blue);
  border-bottom:var(--edge);
  padding:14px var(--pad);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  font-weight:800;
  font-size:19px;
  letter-spacing:-.01em;
}
.brand .mark{
  width:34px;
  height:34px;
  flex:0 0 auto;
  background:var(--red);
  border:var(--edge);
  box-shadow:3px 3px 0 #000;
  display:block;
  object-fit:cover;
}
.brand .bname{
  line-height:1.25;
  border-bottom:3px solid #000;
}

.side nav{margin-top:12px}
.side nav p{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
}
.side nav a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:6px 12px;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  background:#fff;
  border:3px solid #000;
  box-shadow:3px 3px 0 #000;
}
.side nav a:hover,
.side nav a:focus-visible{
  background:#000;
  color:#fff;
}
.ic{
  display:block;
  flex:0 0 auto;
  width:9px;
  height:9px;
  background:var(--red);
  border:2px solid #000;
}
.side nav a:nth-child(even) .ic{background:var(--blue)}
.side nav a:hover .ic{border-color:#fff;background:var(--red)}

.contact{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
.contact small{
  font-size:14px;
  font-weight:800;
  letter-spacing:.2em;
}
.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 18px;
  background:var(--red);
  color:#000;
  border:var(--edge);
  box-shadow:4px 4px 0 #000;
  font-weight:800;
  text-decoration:none;
}
.cta:hover,
.cta:focus-visible{background:#fff}

/* ---------- 头图 ---------- */
.hero{
  min-height:70vh;
  display:grid;
  gap:clamp(22px,4vw,44px);
  align-items:center;
  padding:clamp(26px,6vw,60px) var(--pad) clamp(26px,5vw,48px);
  border-bottom:var(--edge);
}

h1{
  margin:0;
  font-family:'Playfair Display','Inter',system-ui,'Noto Sans SC',serif;
  font-style:italic;
  font-weight:800;
  font-size:clamp(31px,5.3vw,62px);
  line-height:1.04;
  letter-spacing:-.02em;
}

.lead{
  margin:18px 0 0;
  padding-left:14px;
  border-left:6px solid var(--red);
  max-width:36ch;
  font-weight:500;
}

.collage{
  position:relative;
  margin:0;
  height:clamp(238px,44vw,420px);
}
.shot{
  position:absolute;
  overflow:hidden;
  border:var(--edge);
  box-shadow:8px 8px 0 #000;
  background:var(--blue);
  will-change:transform;
}
.shot img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.shot.a{left:0;top:0;width:60%;height:76%}
.shot.b{right:0;bottom:0;width:56%;height:68%;background:var(--red);box-shadow:-8px 8px 0 #000}

/* ---------- 主体 ---------- */
.stage{
  display:grid;
  gap:clamp(20px,4vw,40px);
  max-width:1280px;
  margin:0 auto;
  padding:clamp(26px,5vw,56px) var(--pad);
}

.toc{
  align-self:start;
  padding:16px 18px;
  background:#fff;
  border:var(--edge);
  box-shadow:var(--drop);
}
.toc h2{
  margin:4px 0 10px;
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.01em;
}
.toc ol{
  list-style:none;
  margin:0;
  padding:0;
}
.toc a{
  display:block;
  padding:9px 6px;
  min-height:40px;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  border-bottom:2px solid #000;
}
.toc li:last-child a{border-bottom:0}
.toc a:hover{background:var(--blue)}

.body{min-width:0}
.body > div{
  padding:clamp(22px,4vw,40px) 0;
  border-bottom:3px solid #000;
  scroll-margin-top:20px;
}
.body > div:last-child{border-bottom:0;padding-bottom:0}

.body h2{
  margin:0 0 14px;
  font-size:clamp(23px,3.4vw,33px);
  line-height:1.18;
  letter-spacing:-.02em;
}
.body h3{
  margin:26px 0 10px;
  font-size:20px;
  line-height:1.3;
}
.body p{margin:0 0 14px}
.body a{
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-decoration-color:var(--red);
  text-underline-offset:3px;
  font-weight:600;
}
.body a:hover{background:var(--blue);text-decoration-color:#000}
.body ul,
.body ol{margin:0 0 16px;padding-left:22px}
.body li{margin:6px 0}
.body blockquote{
  margin:20px 0;
  padding:16px 18px;
  background:var(--blue);
  border:var(--edge);
  box-shadow:var(--drop);
  font-weight:600;
}
.body blockquote p:last-child{margin:0}
.body figure{margin:20px 0}
.body img{
  display:block;
  margin:18px 0;
  border:var(--edge);
  box-shadow:var(--drop);
}
.body figcaption{
  margin-top:8px;
  font-size:15px;
}
.body table{
  width:100%;
  border-collapse:collapse;
  margin:18px 0;
  font-size:16px;
}
.body th,
.body td{
  border:3px solid #000;
  padding:10px 12px;
  text-align:left;
}
.body th{background:var(--blue)}
.body code{
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:15px;
  background:#000;
  color:#fff;
  padding:2px 6px;
}
.body hr{
  border:0;
  border-top:3px solid #000;
  margin:24px 0;
}
.body strong{font-weight:800}

small{
  display:block;
  font-size:14px;
  font-weight:800;
  letter-spacing:.2em;
}

/* ---------- 页脚 ---------- */
footer{
  display:grid;
  gap:26px;
  margin-top:clamp(26px,5vw,56px);
  padding:clamp(28px,5vw,48px) var(--pad) 0;
  background:#000;
  color:#fff;
}
footer div{min-width:0}
footer small{color:var(--blue);margin-bottom:8px}
footer p{margin:0 0 8px}
.f-brand{
  font-size:22px;
  font-weight:800;
  letter-spacing:-.01em;
}
.f-desc{
  max-width:38ch;
  margin-top:10px;
  font-size:16px;
  line-height:1.65;
}
.f-list{display:grid;gap:2px;justify-items:start}
.f-list a{
  display:inline-block;
  min-height:40px;
  padding:8px 0;
  color:#fff;
  font-weight:600;
  text-decoration:none;
  border-bottom:2px solid var(--red);
}
.f-list a:hover{color:var(--blue)}
.f-base{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:6px;
  padding:14px 0 24px;
  border-top:3px solid #fff;
}
.f-base p{margin:0}
.f-base a{
  display:inline-block;
  min-height:40px;
  padding:8px 0;
  color:#fff;
  text-decoration:none;
  border-bottom:2px solid var(--blue);
}
.f-base a:hover{color:var(--blue)}

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

/* ---------- 断点 ---------- */
@media (min-width:900px){
  .hero{grid-template-columns:1.05fr .95fr}
  .stage{grid-template-columns:236px minmax(0,1fr)}
  .toc{position:sticky;top:26px}
}

@media (min-width:1024px){
  body{padding-left:264px}
  .side{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:264px;
    z-index:30;
    display:flex;
    flex-direction:column;
    padding:26px 20px;
    border-bottom:0;
    border-right:var(--edge);
    overflow-y:auto;
  }
  .side nav{margin-top:26px}
  .side nav p{flex-direction:column;gap:6px}
  .side nav a{width:100%}
  .contact{margin-top:auto;flex-direction:column;align-items:flex-start}
  footer{grid-template-columns:1.5fr 1fr 1fr}
}

@media (min-width:760px) and (max-width:1023px){
  footer{grid-template-columns:1.4fr 1fr 1fr}
}

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

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