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

:root{
  --accent:#FF5722;
  --accent-ink:#D6420F;
  --ink:#14161A;
  --paper:#F4F1EA;
  --card:#FFFFFF;
  --dock-h:78px;
  --sans:"Rubik",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --disp:"Outfit","Rubik",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  padding-bottom:calc(var(--dock-h) + 26px);
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  font-weight:400;
}

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

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

a{color:var(--accent-ink)}

menu,ul,ol{list-style:none;margin:0;padding:0}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
}

/* ---------- hero ---------- */

.hero{
  position:relative;
  min-height:70vh;
  display:grid;
  place-items:center;
  padding:110px 22px 84px;
  background:var(--ink);
  color:var(--paper);
  text-align:center;
  overflow:hidden;
  border-bottom:8px solid var(--accent);
}

.hero-img{
  position:absolute;
  top:-6%;
  left:0;
  width:100%;
  height:112%;
  object-fit:cover;
  z-index:0;
  will-change:transform;
}

.hero-veil{
  position:absolute;
  inset:0;
  background:rgba(20,22,26,.66);
  z-index:1;
}

.hero-word{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:1;
  font-family:var(--disp);
  font-size:clamp(64px,17vw,180px);
  font-weight:700;
  line-height:.85;
  letter-spacing:-.05em;
  white-space:nowrap;
  color:rgba(244,241,234,.10);
  pointer-events:none;
  will-change:transform;
}

.hero-core{
  position:relative;
  z-index:2;
  max-width:820px;
}

.hero-kicker{
  display:inline-block;
  margin:0 0 20px;
  padding:7px 15px;
  background:var(--accent);
  color:var(--ink);
  font-family:var(--disp);
  font-size:15px;
  font-weight:700;
  letter-spacing:.26em;
  border-radius:4px;
}

.hero-title{
  margin:0;
  font-size:clamp(32px,6.4vw,62px);
  line-height:1.12;
  letter-spacing:-.025em;
}

.hero-desc{
  margin:22px auto 0;
  max-width:44ch;
  font-size:17px;
  line-height:1.75;
  color:rgba(244,241,234,.86);
}

/* ---------- layout ---------- */

.wrap{
  max-width:1160px;
  margin:0 auto;
  padding:38px 20px 8px;
  display:grid;
  gap:26px;
}

.body{min-width:0}

/* ---------- 左侧目录 ---------- */

.rail{
  border-top:6px solid var(--ink);
  padding-top:16px;
}

.rail-label{
  margin:0 0 12px;
  font-family:var(--disp);
  font-size:14px;
  font-weight:700;
  letter-spacing:.24em;
  color:var(--accent-ink);
}

.rail-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:8px 13px;
  background:var(--card);
  border-left:4px solid var(--accent);
  border-radius:10px;
  color:var(--ink);
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  transition:background .16s ease,color .16s ease;
}

.rail-list a:hover{
  background:var(--ink);
  color:var(--paper);
}

.rail-list b{
  font-family:var(--disp);
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--accent);
}

.rail-list a:hover b{color:var(--accent)}

/* ---------- 正文 ---------- */

.prose > section{
  background:var(--card);
  border-top:6px solid var(--accent);
  border-radius:10px;
  padding:26px 20px 30px;
  margin:0 0 18px;
  scroll-margin-top:22px;
}

.prose > section:nth-of-type(even){border-top-color:var(--ink)}
.prose > section:last-of-type{margin-bottom:0}

.prose small{
  display:block;
  margin-bottom:8px;
  font-family:var(--disp);
  font-size:14px;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--accent-ink);
}

.prose h2{
  margin:0 0 16px;
  font-size:clamp(23px,3.2vw,32px);
  line-height:1.24;
}

.prose h3{
  margin:26px 0 12px;
  font-size:20px;
  line-height:1.35;
}

.prose p{
  margin:0 0 17px;
  max-width:66ch;
}

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

.prose ul{list-style:square}
.prose ol{list-style:decimal}
.prose li{margin-bottom:8px}

.prose a{
  color:var(--accent-ink);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.prose a:hover{color:var(--ink)}

.prose strong{font-weight:700}
.prose em{font-style:normal;background:rgba(255,87,34,.22);padding:0 3px}

.prose blockquote{
  margin:0 0 18px;
  padding:14px 18px;
  background:var(--paper);
  border-left:6px solid var(--ink);
  border-radius:0 10px 10px 0;
}

.prose blockquote p:last-child{margin-bottom:0}

.prose figure{margin:0 0 18px}
.prose figure img{border-radius:10px;display:block}

.prose figcaption{
  margin-top:8px;
  font-size:15px;
  line-height:1.6;
  color:#575B62;
}

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

.prose th,
.prose td{
  padding:10px 9px;
  text-align:left;
  border-bottom:1px solid rgba(20,22,26,.16);
  vertical-align:top;
}

.prose th{background:var(--paper);font-weight:700}
.prose hr{border:0;border-top:3px solid var(--ink);margin:26px 0}

.end{
  margin:22px 0 0;
  text-align:right;
}

.totop{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  background:var(--ink);
  border-radius:10px;
  color:var(--paper);
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  transition:background .16s ease,color .16s ease;
}

.totop:hover{background:var(--accent);color:var(--ink)}

/* ---------- 页脚 ---------- */

.foot{
  margin-top:44px;
  padding:44px 20px 38px;
  background:var(--ink);
  color:var(--paper);
}

.foot-cols{
  max-width:1160px;
  margin:0 auto;
  display:grid;
  gap:26px;
}

.foot-brand{
  margin:0 0 8px;
  font-family:var(--disp);
  font-size:22px;
  font-weight:700;
  letter-spacing:-.01em;
}

.foot-addr{
  font-style:normal;
  font-size:16px;
  color:rgba(244,241,234,.68);
  word-break:break-all;
}

.foot-cap{
  margin:0 0 10px;
  font-family:var(--disp);
  font-size:14px;
  font-weight:700;
  letter-spacing:.22em;
  color:var(--accent);
}

.foot ul li a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:var(--paper);
  font-size:16px;
  text-decoration:none;
  transition:color .16s ease;
}

.foot ul li a:hover{color:var(--accent)}

.sub label{
  display:block;
  margin-bottom:8px;
  font-size:15px;
}

.sub input{
  width:100%;
  min-height:44px;
  padding:9px 12px;
  background:transparent;
  border:2px solid rgba(244,241,234,.55);
  border-radius:10px;
  color:var(--paper);
  font-family:inherit;
  font-size:16px;
}

.sub input:focus{border-color:var(--accent)}

.sub button{
  margin-top:10px;
  width:100%;
  min-height:44px;
  border:0;
  border-radius:10px;
  background:var(--accent);
  color:var(--ink);
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:background .16s ease;
}

.sub button:hover{background:var(--paper)}

.copy{
  max-width:1160px;
  margin:30px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(244,241,234,.22);
  font-size:15px;
  color:rgba(244,241,234,.62);
}

/* ---------- 底部固定条 ---------- */

.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:4px;
  padding:8px 12px;
  min-height:var(--dock-h);
  background:var(--ink);
  border-top:4px solid var(--accent);
}

.brand{
  justify-self:center;
  padding:10px 14px;
  border-radius:10px;
  color:var(--paper);
  font-family:var(--disp);
  font-size:19px;
  font-weight:700;
  letter-spacing:-.01em;
  text-decoration:none;
  transition:background .16s ease,color .16s ease;
}

.brand:hover{background:var(--accent);color:var(--ink)}

.dock-slot{position:relative}

.dock-slot--l{justify-self:start}
.dock-slot--r{justify-self:end}

.dock-slot summary{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 12px;
  border-radius:10px;
  color:var(--paper);
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  list-style:none;
  transition:background .16s ease;
}

.dock-slot summary::-webkit-details-marker{display:none}
.dock-slot summary:hover{background:rgba(244,241,234,.14)}

.dock-slot svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:square;
}

.dock-slot menu{
  position:absolute;
  left:0;
  bottom:calc(100% + 12px);
  width:max-content;
  min-width:184px;
  max-width:92vw;
  padding:8px;
  display:grid;
  gap:2px;
  background:var(--ink);
  border:2px solid var(--accent);
  border-radius:10px;
}

.dock-slot--r menu{left:auto;right:0}

.dock-slot menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  border-radius:6px;
  color:var(--paper);
  font-size:16px;
  font-weight:600;
  text-decoration:none;
  transition:background .16s ease,color .16s ease;
}

.dock-slot menu a:hover{background:var(--accent);color:var(--ink)}

/* ---------- 断点 ---------- */

@media (min-width:760px){

  .foot-cols{grid-template-columns:1.5fr 1fr 1fr 1.3fr;gap:32px}
  .prose > section{padding:32px 30px 36px}

}

@media (min-width:900px){

  .wrap{
    grid-template-columns:238px minmax(0,1fr);
    gap:44px;
    padding-top:56px;
  }

  .rail{
    position:sticky;
    top:26px;
    align-self:start;
  }

  .rail-list{display:block}

  .rail-list li + li{margin-top:8px}

  .rail-list a{width:100%}

  .dock-slot summary{display:none}

  .dock-slot menu{
    position:static;
    display:flex;
    gap:2px;
    padding:0;
    border:0;
    background:transparent;
    min-width:0;
    max-width:none;
  }

  .dock-slot--l menu{justify-content:flex-start}
  .dock-slot--r menu{justify-content:flex-end}

  .dock-slot:not([open]) > menu{display:flex}

  .brand{font-size:21px}

}

@media (max-width:400px){

  .hero{padding:96px 18px 72px}
  .hero-kicker{letter-spacing:.18em}

  .dock{padding:6px 8px;gap:2px}
  .dock-slot summary{padding:8px 9px}
  .brand{padding:10px 8px;font-size:18px}

}

@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}
