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

:root{
  --blue:#3bb1ff;
  --red:#ff5252;
  --ink:#000000;
  --paper:#fffdf7;
  --card:#ffffff;
  --r:10px;
  --line:3px solid #000000;
  --shadow:5px 5px 0 #000000;
  --shadow-sm:4px 4px 0 #000000;
}

*,*::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:Manrope,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  font-size:17px;
  line-height:1.65;
  overflow-wrap:break-word;
}

h1,h2,h3,h4{
  font-family:Syne,"PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:700;
  line-height:1.14;
  letter-spacing:-.01em;
  margin:0;
}

p{margin:0 0 1em}
a{color:var(--ink);text-decoration:none}
img{max-width:100%;height:auto;display:block}
hr{border:0;height:3px;background:var(--ink);margin:10px 0 18px}
:focus-visible{outline:3px solid var(--red);outline-offset:2px}

/* ---------- 顶栏 ---------- */
.top{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 16px;
  background:var(--blue);
  border-bottom:var(--line);
}
.mark{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  flex:0 0 auto;
  background:var(--card);
  border:var(--line);
  border-radius:8px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.mark img{width:100%;height:100%;object-fit:contain}
.mark-txt{font-family:Syne,sans-serif;font-weight:700;font-size:11px;line-height:1.05;text-align:center;padding:2px}

.search{
  display:flex;
  margin-left:auto;
  border:var(--line);
  border-radius:8px;
  background:var(--card);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.search input{
  font:inherit;
  font-size:16px;
  padding:9px 12px;
  width:132px;
  min-width:0;
  border:0;
  background:transparent;
  color:var(--ink);
}
.search button{
  font:inherit;
  font-weight:700;
  font-size:16px;
  padding:0 14px;
  min-height:44px;
  border:0;
  border-left:2px solid var(--ink);
  background:var(--red);
  color:#fff;
  cursor:pointer;
}
.search button:hover{background:var(--ink)}

/* ---------- 粘性锚点条 ---------- */
.bar{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--card);
  border-bottom:var(--line);
  padding:9px 16px;
}
.bar details{position:relative}
.bar summary{
  display:inline-flex;
  align-items:center;
  gap:9px;
  list-style:none;
  cursor:pointer;
  padding:10px 16px;
  min-height:44px;
  border:var(--line);
  border-radius:var(--r);
  background:var(--red);
  color:#fff;
  font-weight:700;
  box-shadow:var(--shadow-sm);
}
.bar summary::-webkit-details-marker{display:none}
.bars{display:block;width:18px;height:3px;background:#fff;box-shadow:0 -6px 0 #fff,0 6px 0 #fff}

.bar menu{
  list-style:none;
  margin:10px 0 0;
  padding:0;
  display:none;
  gap:9px;
  flex-wrap:wrap;
}
.bar details[open] menu{display:flex}
.bar menu a{
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 13px;
  min-height:44px;
  border:2px solid var(--ink);
  border-radius:var(--r);
  background:var(--paper);
  font-weight:700;
  font-size:16px;
}
.bar menu a:hover{background:var(--blue)}
.dot{width:10px;height:10px;flex:0 0 auto;background:var(--red);border:2px solid var(--ink);border-radius:50%}

/* ---------- 主体骨架 ---------- */
main{padding:26px 0 0}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.board{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;padding-bottom:34px}
.doc{min-width:0}

/* ---------- Hero ---------- */
.hero{
  display:grid;
  gap:20px;
  align-items:center;
  padding:4px 0 30px;
  border-bottom:8px solid var(--blue);
  margin-bottom:26px;
}
.hero-txt{order:-1;text-align:left}
.hero-txt h1{font-size:clamp(30px,7.6vw,52px)}
.lede{font-size:16px;margin:14px 0 18px;max-width:48ch}
.jump{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.hero-fig{
  margin:0;
  border:var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  background:var(--blue);
  overflow:hidden;
}
.hero-fig img{width:100%;height:100%;object-fit:cover;transform:scale(1.05);will-change:transform}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 17px;
  min-height:44px;
  border:var(--line);
  border-radius:var(--r);
  background:var(--blue);
  font-weight:700;
  font-size:16px;
  box-shadow:var(--shadow-sm);
  transition:transform .12s ease,box-shadow .12s ease;
}
.btn:hover{transform:translate(2px,2px);box-shadow:1px 1px 0 #000}

/* ---------- 正文卡片 ---------- */
.doc > div{
  border:var(--line);
  border-bottom:8px solid var(--red);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  background:var(--card);
  padding:20px 17px;
  margin:0 0 24px;
  scroll-margin-top:118px;
}
.doc > div:nth-of-type(even){border-bottom-color:var(--blue)}
.doc > div h2{font-size:clamp(21px,4.6vw,30px);margin-bottom:6px}
.doc > div h3{font-size:19px;margin:20px 0 8px}
.doc > div p{line-height:1.78}
.doc > div ul,.doc > div ol{padding-left:22px;line-height:1.78}
.doc > div li{margin:6px 0}
.doc > div a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-decoration-color:var(--red);
  text-underline-offset:3px;
  font-weight:600;
}
.doc > div strong{background:var(--blue);padding:0 3px}
.doc > div blockquote{
  margin:0 0 1em;
  padding:4px 0 4px 15px;
  border-left:7px solid var(--ink);
  font-weight:600;
}
.doc > div table{width:100%;border-collapse:collapse;font-size:16px;margin:0 0 1em}
.doc > div th,.doc > div td{border:2px solid var(--ink);padding:8px;text-align:left}
.doc > div img{border:2px solid var(--ink);border-radius:8px;margin:6px 0}

/* ---------- 侧栏 ---------- */
.side{
  align-self:start;
  border:var(--line);
  border-bottom:8px solid var(--blue);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  background:#e9f6ff;
  padding:16px;
  scroll-margin-top:118px;
}
.side h2{font-size:19px}
.side ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.side a{
  display:block;
  padding:10px 12px;
  min-height:44px;
  border:2px solid var(--ink);
  border-radius:8px;
  background:var(--card);
  font-weight:700;
  font-size:16px;
}
.side a:hover{background:var(--red);color:#fff}

/* ---------- 页脚 ---------- */
.foot{
  background:#000;
  color:#fff;
  border-top:6px solid var(--blue);
  padding:26px 16px 20px;
}
.foot a{color:#fff}
.foot a:hover{color:var(--blue)}

.foot .cta{
  max-width:1180px;
  margin:0 auto 26px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:20px;
  border:var(--line);
  border-radius:var(--r);
  background:var(--blue);
  color:var(--ink);
  box-shadow:6px 6px 0 var(--red);
}
.cta-in{flex:1 1 240px;min-width:0}
.foot .cta h2{font-size:clamp(22px,5vw,38px)}
.foot .cta hr{background:var(--ink);margin:10px 0 0}
.cta-btn{background:var(--card);color:var(--ink) !important;flex:0 0 auto}
.cta-btn:hover{background:var(--red)}

.fcols{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  gap:16px;
  grid-template-columns:1fr;
  border-top:2px solid #fff;
  padding-top:20px;
}
.fcols address{
  font-style:normal;
  font-family:Syne,sans-serif;
  font-weight:700;
  font-size:18px;
  padding:4px 0;
}
.fcols ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.foot .fcols ul a{display:block;padding:9px 0;min-height:40px;border-bottom:2px solid #4a4a4a}

.fbot{
  max-width:1180px;
  margin:20px auto 0;
  padding-top:14px;
  border-top:2px solid #fff;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.fbot p{margin:0;font-size:15px;color:#d8d8d8}
.fbot ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:16px}
.fbot ul a{display:block;padding:9px 0;min-height:40px;font-size:15px}

/* ---------- 动效 ---------- */
html.js .doc > div,
html.js .side li{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease,transform .5s ease;
}
html.js .doc > div.in,
html.js .side li.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:899px){
  .bar details[open] menu{
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 10px);
    z-index:60;
    flex-direction:column;
    flex-wrap:nowrap;
    margin:0;
    padding:12px;
    background:var(--card);
    border:var(--line);
    border-radius:var(--r);
    box-shadow:var(--shadow);
  }
  .bar details[open] menu a{background:var(--card)}
}

@media (min-width:900px){
  .bar summary{display:none}
  .bar menu{display:flex;margin:0}
  .search input{width:190px}
}

@media (min-width:980px){
  .board{grid-template-columns:minmax(0,1fr) 280px;gap:30px}
  .hero{grid-template-columns:1fr 1fr;min-height:70vh;gap:30px}
  .hero-txt{order:0;text-align:right;justify-self:end}
  .hero-fig{order:-1}
  .lede{margin-left:auto}
  .jump{justify-content:flex-end}
  .hero-page{min-height:auto}
  .hero-page .hero-txt{text-align:left;justify-self:start}
  .side{position:sticky;top:88px}
}

@media (min-width:760px){
  .fcols{grid-template-columns:1.5fr 1fr 1fr 1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .doc > div,
  html.js .side li{opacity:1;transform:none;transition:none}
  .hero-fig img{transform:none !important}
  .btn{transition:none}
  .btn:hover{transform:none;box-shadow:var(--shadow-sm)}
}

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