:root{
  --ink:#1f1f1f;
  --ink-soft:#4a4a4a;
  --paper:#ffffff;
  --mist:#f5f5f5;
  --line:#e2e2e2;
  --radius:0px;
}

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

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

body{
  margin:0;
  background:var(--mist);
  color:var(--ink);
  font-family:"Space Grotesk",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.68;
  letter-spacing:.005em;
}

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

/* ---------- 顶部 ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--paper);
  border-bottom:1px solid var(--ink);
}

.strip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 20px;
  background:var(--ink);
  color:#fff;
  font-size:14px;
  letter-spacing:.18em;
}

.dot{
  width:9px;
  height:9px;
  border:2px solid #fff;
  border-radius:50%;
  flex:0 0 auto;
}

.strip-txt{text-transform:uppercase}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
  border-bottom:1px solid var(--line);
  background:var(--paper);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  color:var(--ink);
  text-decoration:none;
}

.brandmark{display:block;width:34px;height:34px}
.brandmark img{width:34px;height:34px;object-fit:contain}

.brandname{
  font-size:clamp(24px,3.2vw,32px);
  font-weight:700;
  letter-spacing:-.03em;
  line-height:1;
}

.menurow{
  overflow-x:auto;
  scrollbar-width:none;
  background:var(--paper);
}
.menurow::-webkit-scrollbar{display:none}

.pills{
  display:flex;
  gap:8px;
  padding:12px 20px;
  width:max-content;
}

.pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:10px 16px;
  border:1px solid var(--ink);
  border-radius:999px;
  background:var(--paper);
  color:var(--ink);
  font-size:15px;
  text-decoration:none;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}

.pill:hover,.pill:focus-visible{
  background:var(--ink);
  color:#fff;
  transform:translateY(-1px);
}

/* ---------- 主体栅格 ---------- */
main{
  max-width:1160px;
  margin:0 auto;
  padding:0 20px;
}

.hero{
  display:flex;
  flex-direction:column;
  gap:22px;
  min-height:70vh;
  padding:34px 0 20px;
}

.hero-copy{padding-top:6px}

h1{
  margin:0 0 16px;
  font-size:clamp(30px,5.4vw,58px);
  line-height:1.06;
  letter-spacing:-.035em;
  font-weight:700;
}

.lede{
  margin:0;
  max-width:56ch;
  font-size:clamp(16px,1.7vw,18px);
  line-height:1.6;
  color:var(--ink-soft);
}

.hero-art{
  position:relative;
  flex:1 1 auto;
  min-height:220px;
  margin:0;
  background:var(--paper);
  border:1px solid var(--line);
  border-bottom:4px solid var(--ink);
  overflow:hidden;
}

.ring{
  position:absolute;
  right:-50px;
  top:-56px;
  width:200px;
  height:200px;
  border:12px solid var(--ink);
  border-radius:50%;
  opacity:.1;
  z-index:1;
}

.rope{
  position:absolute;
  left:22px;
  bottom:-20px;
  width:130px;
  height:130px;
  background:repeating-linear-gradient(48deg,var(--ink) 0 5px,transparent 5px 12px);
  opacity:.14;
  z-index:1;
}

.hero-img{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  min-height:220px;
  object-fit:cover;
}

.board{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:16px;
  align-items:start;
  padding-top:8px;
}

.sheet{min-width:0}

.sheet>section{
  margin:0 0 16px;
  padding:28px;
  background:var(--paper);
  border:1px solid var(--line);
  border-bottom:4px solid var(--ink);
  scroll-margin-top:188px;
  transition:transform .25s ease,box-shadow .25s ease;
}

.sheet h2{
  margin:0 0 14px;
  font-size:clamp(22px,2.6vw,28px);
  line-height:1.26;
  letter-spacing:-.02em;
}

.sheet h3{
  margin:26px 0 10px;
  font-size:20px;
  line-height:1.3;
}

.sheet p{margin:0 0 14px}
.sheet p:last-child{margin-bottom:0}
.sheet ul,.sheet ol{margin:0 0 14px;padding-left:1.4em}
.sheet li{margin:0 0 8px}
.sheet a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.sheet blockquote{
  margin:0 0 16px;
  padding:14px 18px;
  background:var(--mist);
  border-left:4px solid var(--ink);
}
.sheet blockquote p:last-child{margin-bottom:0}
.sheet img{margin:0 0 16px;border:1px solid var(--line)}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:20px;
  padding:24px;
  background:var(--paper);
  border:1px solid var(--line);
  border-bottom:4px solid var(--ink);
}

.rail h2{
  margin:0 0 8px;
  font-size:20px;
  letter-spacing:-.01em;
}

.subtitle{
  margin:0 0 14px;
  font-size:15px;
  line-height:1.6;
  color:#666;
}

.toc{
  counter-reset:t;
  list-style:none;
  margin:0;
  padding:0;
}

.toc li{
  counter-increment:t;
  border-top:1px solid var(--line);
}

.toc a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 0;
  color:var(--ink);
  font-size:16px;
  text-decoration:none;
}

.toc a::before{
  content:counter(t,decimal-leading-zero);
  font-size:13px;
  letter-spacing:.08em;
  color:#9a9a9a;
}

.toc a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:56px;
  background:var(--ink);
  color:#fff;
}

.fgrid{
  max-width:1160px;
  margin:0 auto;
  padding:44px 20px 20px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;
}

.fcell{min-width:0}

.foot address{
  font-style:normal;
  font-size:15px;
  line-height:1.6;
  color:#b9b9b9;
  word-break:break-all;
}

.foot nav dl{margin:0}
.foot dt{margin:0}
.foot dd{margin:0 0 10px}

.foot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#fff;
  text-decoration:none;
}

.foot dd a{
  min-height:32px;
  font-size:15px;
  color:#a9a9a9;
}

.foot a:hover{text-decoration:underline;text-underline-offset:3px}

.flist{
  list-style:none;
  margin:0;
  padding:0;
}

.fbig{
  margin:0;
  font-size:clamp(26px,3vw,38px);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-.03em;
}

.fbar{
  max-width:1160px;
  margin:0 auto;
  padding:14px 20px 30px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid #3a3a3a;
}

.copy{margin:0;font-size:15px;color:#b9b9b9}

.fbar-list{
  list-style:none;
  display:flex;
  gap:6px;
  margin:0;
  padding:0;
}

.fbar-list a{padding:0 8px;font-size:15px}

/* ---------- 回到顶部 ---------- */
.totop{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:60;
  min-height:44px;
  padding:12px 16px;
  border:1px solid var(--ink);
  border-radius:0;
  background:var(--paper);
  color:var(--ink);
  font-family:inherit;
  font-size:14px;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .25s ease,transform .25s ease;
}

.totop.on{opacity:1;pointer-events:auto;transform:none}

/* ---------- 动效 ---------- */
@media (hover:hover){
  .sheet>section:hover{
    transform:scale(1.008);
    box-shadow:0 12px 26px rgba(31,31,31,.08);
  }
}

html.js .hero-copy,
html.js .hero-art,
html.js .sheet>section,
html.js .rail,
html.js .fcell{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease,transform .6s ease;
}

html.js .hero-copy{transition-delay:.02s}
html.js .hero-art{transition-delay:.1s}

html.js .in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:860px){
  .board{grid-template-columns:minmax(0,1fr)}
  .rail{position:static}
  .fgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}

@media (max-width:760px){
  .topbar{position:static}
  .sheet>section{scroll-margin-top:24px;padding:20px}
  main{padding:0 16px}
  .hero{min-height:0;padding-top:22px}
  .hero-art{min-height:180px}
  .brandrow{padding:10px 16px}
  .strip{padding:8px 16px}
  .pills{padding:10px 16px}
  .fgrid{padding:32px 16px 16px}
  .fbar{padding:14px 16px 28px}
  .fgrid{grid-template-columns:minmax(0,1fr)}
  .totop{right:12px;bottom:12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .hero-copy,
  html.js .hero-art,
  html.js .sheet>section,
  html.js .rail,
  html.js .fcell{opacity:1;transform:none;transition:none}
  .sheet>section{transition:none}
  .pill{transition:none}
}

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