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

:root{
  --ink:#000;
  --sky:#3bb1ff;
  --red:#ff5252;
  --paper:#fffdf6;
  --line:3px solid #000;
  --pop:7px 7px 0 #000;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding:78px 0 104px;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  letter-spacing:.005em;
  overflow-x:hidden;
}

a{color:inherit}

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

/* 角落品牌标 */
.corner{
  position:fixed;
  top:16px;
  left:16px;
  z-index:60;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  background:var(--red);
  border:var(--line);
  border-radius:14px;
  box-shadow:5px 5px 0 #000;
  font-size:22px;
  font-weight:800;
  text-decoration:none;
  color:#fff;
  transform:rotate(-4deg);
  transition:transform .18s ease, box-shadow .18s ease;
}
.corner:hover{transform:rotate(0deg) translate(-2px,-2px);box-shadow:8px 8px 0 #000}

/* 主区：正文 + 左栏（桌面靠栅格换位） */
main{
  max-width:1180px;
  margin:0 auto;
  padding:0 18px;
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  align-items:start;
}

/* 左侧目录 */
.rail{
  background:#fff;
  border:var(--line);
  border-radius:20px;
  box-shadow:6px 6px 0 #000;
  padding:16px 16px 18px;
}
.rail h2{
  margin:0;
  font-size:18px;
  font-weight:800;
  letter-spacing:.12em;
}
.rail hr{
  border:0;
  border-top:5px solid var(--sky);
  width:52px;
  margin:9px 0 14px;
}
.rail ol{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:7px;
}
.rail a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:5px 11px;
  border:2px solid #000;
  border-radius:12px;
  background:#fff;
  color:#000;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  transition:background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rail a:hover{
  background:var(--sky);
  box-shadow:3px 3px 0 #000;
  transform:translate(-1px,-1px);
}

/* 首屏：文案先出现，拼贴随后 */
.hero{
  position:relative;
  border:var(--line);
  border-radius:28px;
  background:var(--sky);
  box-shadow:9px 9px 0 #000;
  padding:16px 14px 22px;
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto -30px -46px auto;
  width:150px;
  height:150px;
  border-radius:50%;
  background:var(--red);
  border:var(--line);
  z-index:0;
}
.hero-copy{
  position:relative;
  z-index:1;
  text-align:center;
}
.badge{
  display:inline-block;
  background:#fff;
  border:var(--line);
  border-radius:999px;
  padding:2px 12px;
  font-size:14px;
  line-height:1.5;
  font-weight:700;
  box-shadow:4px 4px 0 #000;
  transform:rotate(-2deg);
}
.hero h1{
  margin:10px auto 10px;
  font-size:clamp(28px,6.4vw,52px);
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.025em;
  max-width:16em;
}
.hero .lead{
  margin:0 auto;
  max-width:34em;
  font-size:15px;
  line-height:1.65;
  background:#fff;
  border:var(--line);
  border-radius:16px;
  padding:9px 13px;
  box-shadow:4px 4px 0 #000;
}

.collage{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  gap:12px;
}
.shard{
  display:block;
  width:min(44%,180px);
  aspect-ratio:16/10;
  object-fit:cover;
  background:#fff;
  border:var(--line);
  border-radius:16px;
  box-shadow:5px 5px 0 #000;
}
.s1{transform:rotate(-3.5deg) translateY(-8px)}
.s2{transform:rotate(3.5deg) translateY(10px)}
.flat{background:var(--red)}
.flat.s2{background:#fff}

/* 正文 */
div{min-width:0}
div article{scroll-margin-top:96px}
div > article:not(.hero){
  border-top:3px solid #000;
  margin-top:42px;
  padding-top:34px;
}
div h2{
  margin:0 0 8px;
  font-size:clamp(24px,4.2vw,34px);
  line-height:1.28;
  font-weight:800;
  letter-spacing:-.015em;
}
div h3{
  margin:28px 0 10px;
  font-size:20px;
  line-height:1.4;
  font-weight:700;
}
div h2 + hr,
div h3 + hr{
  border:0;
  border-top:5px solid var(--red);
  width:90px;
  margin:0 0 18px;
}
div p{margin:0 0 17px}
div a{
  color:#000;
  font-weight:600;
  text-decoration:none;
  border-bottom:3px solid var(--red);
}
div a:hover{background:var(--sky)}
div ul,
div ol{margin:0 0 18px;padding-left:24px}
div li{margin-bottom:9px}
div img{
  max-width:100%;
  height:auto;
  border:var(--line);
  border-radius:20px;
  box-shadow:var(--pop);
  margin:16px 0;
}
div blockquote{
  margin:22px 0;
  padding:14px 18px;
  background:#fff;
  border:var(--line);
  border-left-width:9px;
  border-radius:0 18px 18px 0;
}
div blockquote p:last-child{margin:0}
div table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 18px;
  font-size:16px;
}
div th,
div td{
  border:2px solid #000;
  padding:9px 10px;
  text-align:left;
}
div th{background:var(--sky)}
div code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.95em;
  background:#fff;
  border:2px solid #000;
  border-radius:6px;
  padding:1px 5px;
}

/* 页脚 */
footer{
  margin-top:64px;
  background:#000;
  color:#fff;
  border-top:3px solid #000;
  padding:44px 18px 24px;
}
.foot-wrap{
  max-width:1180px;
  margin:0 auto;
}
.foot-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:var(--sky);
  color:#000;
  border:var(--line);
  border-radius:28px;
  box-shadow:8px 8px 0 var(--red);
  padding:22px 22px;
  margin-bottom:38px;
}
.cta-word{
  margin:0;
  font-size:clamp(20px,4.4vw,30px);
  font-weight:800;
  letter-spacing:-.02em;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 22px;
  background:#000;
  color:#fff;
  border:3px solid #000;
  border-radius:999px;
  box-shadow:4px 4px 0 #fff;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
}
.cta-btn:hover{background:var(--red);border-color:#000}

.foot-cols{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
}
.foot-cols dl{margin:0}
.foot-cols dt{
  margin-bottom:10px;
  font-size:15px;
  font-weight:800;
  letter-spacing:.14em;
  color:var(--sky);
}
.foot-cols dd{margin:0}
.foot-cols dd a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:#fff;
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.foot-cols dd a:hover{color:var(--red);border-bottom-color:var(--red)}

.foot-bottom{
  margin-top:32px;
  padding-top:18px;
  border-top:2px solid #3a3a3a;
  text-align:center;
  font-size:15px;
}
.foot-bottom p{margin:0;color:#d6d6d6}

/* 底部固定导航 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:70;
  background:var(--sky);
  border-top:3px solid #000;
  padding:9px 10px;
}
.dock ol{
  display:flex;
  gap:8px;
  list-style:none;
  margin:0 auto;
  padding:0 2px;
  max-width:1180px;
  overflow-x:auto;
  scrollbar-width:none;
}
.dock ol::-webkit-scrollbar{display:none}
.dock li{flex:0 0 auto}
.dock a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 15px;
  background:#fff;
  border:var(--line);
  border-radius:999px;
  box-shadow:3px 3px 0 #000;
  color:#000;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  transition:background .15s ease, color .15s ease;
}
.dock a:hover,
.dock a:focus-visible{background:var(--red);color:#fff}

/* 入场动效 */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .5s ease, transform .5s ease;
  transition-delay:calc(var(--i,0) * 45ms);
}
.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .corner{transition:none}
}

/* 断点 */
@media (min-width:700px){
  .foot-cols{grid-template-columns:repeat(3,1fr)}
  .foot-bottom{text-align:center}
}

@media (min-width:900px){
  body{padding-top:104px}
  main{
    grid-template-columns:236px minmax(0,1fr);
    gap:38px;
    padding:0 24px;
  }
  .rail{grid-column:1;grid-row:1;position:sticky;top:100px}
  div{grid-column:2;grid-row:1}
  .hero{
    padding:28px 26px 34px;
    gap:22px;
    min-height:45vh;
    flex-direction:column-reverse;
    justify-content:center;
  }
  .hero h1{margin:14px auto 12px}
  .hero .lead{font-size:16px;padding:10px 14px}
  .shard{width:min(44%,210px);box-shadow:6px 6px 0 #000}
  div > article:not(.hero){margin-top:52px;padding-top:40px}
}

@media (max-width:520px){
  body{font-size:16px;padding-top:70px}
  .corner{width:44px;height:44px;font-size:19px;top:12px;left:12px}
  .hero{padding:14px 12px 18px;box-shadow:6px 6px 0 #000;border-radius:22px}
  .hero h1{margin:8px auto 8px}
  .shard{width:min(46%,150px);box-shadow:4px 4px 0 #000}
  .foot-cta{padding:18px;box-shadow:6px 6px 0 var(--red)}
}

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