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

:root{
  --paper:#fafaf8;
  --mid:#4a4a4a;
  --ink:#1a1a1a;
  --line:#cfcfc7;
  --mono:"Chakra Petch","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --heavy:"Russo One","Chakra Petch","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

*{box-sizing:border-box}

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

body{
  margin:0;
  padding:0;
  color:var(--ink);
  background-color:var(--paper);
  background-image:repeating-linear-gradient(0deg,rgba(26,26,26,.028) 0 1px,transparent 1px 4px);
  font-family:var(--mono);
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 16%,rgba(26,26,26,.06),transparent 26%),
    radial-gradient(circle at 84% 76%,rgba(26,26,26,.05),transparent 28%);
}

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

/* ---- 角落品牌 ---- */
.brandmark{
  position:fixed;
  left:14px;
  top:14px;
  z-index:60;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--ink);
  color:var(--paper);
  border-radius:52% 44% 48% 56%;
  transform:rotate(-5deg);
  text-decoration:none;
}
.brand-glyph{font-family:var(--heavy);font-size:22px;line-height:1}
.brand-img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.3)}

/* ---- 左侧竖排导航 ---- */
.dock{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  z-index:50;
  width:220px;
  padding:82px 14px 18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  background:var(--paper);
  border-right:1px solid var(--line);
  overflow-y:auto;
  counter-reset:navi;
}
.dock::after{
  content:"";
  position:absolute;
  right:-1px;
  top:0;
  bottom:0;
  width:3px;
  opacity:.4;
  pointer-events:none;
  background:repeating-linear-gradient(180deg,var(--ink) 0 10px,transparent 10px 22px);
}
.dock ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.dock li a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 8px;
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  border-bottom:1px dashed var(--line);
  border-radius:14px 4px 14px 4px;
}
.dock li a::before{
  counter-increment:navi;
  content:counter(navi,decimal-leading-zero);
  font-family:var(--heavy);
  font-size:11px;
  letter-spacing:.08em;
  color:var(--mid);
}
.dock li a:hover,
.dock li a.is-on{background:var(--ink);color:var(--paper)}
.dock li a:hover::before,
.dock li a.is-on::before{color:#d8d8d0}

.finder{margin-top:auto}
.finder input{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  font-family:var(--mono);
  font-size:16px;
  color:var(--ink);
  background:transparent;
  border:1px solid var(--line);
  border-radius:16px 6px 16px 6px;
}
.finder input::placeholder{color:var(--mid)}

@media (min-width:861px){
  body{padding-left:220px}
}

/* ---- 舞台 ---- */
.sheet{position:relative;z-index:2}

.hero{
  position:relative;
  height:70vh;
  min-height:400px;
  overflow:hidden;
  border-bottom:1px solid var(--ink);
}
.hero-plate{
  position:absolute;
  inset:0;
  background:linear-gradient(140deg,#2e2e2e,#5c5c5c 68%,#2b2b2b);
  will-change:transform;
}
.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.18);
  opacity:.9;
}
.hero-veil{
  position:absolute;
  inset:0;
  background:linear-gradient(185deg,rgba(26,26,26,.12),rgba(26,26,26,.78));
}
.hero-txt{
  position:absolute;
  left:clamp(18px,4vw,56px);
  right:24px;
  bottom:clamp(30px,7vh,68px);
  z-index:3;
}
.hero h1{
  margin:0;
  max-width:16ch;
  font-family:var(--heavy);
  font-weight:400;
  font-size:clamp(30px,5.2vw,66px);
  line-height:1.14;
  letter-spacing:.01em;
  color:var(--paper);
  text-shadow:3px 3px 0 rgba(26,26,26,.45);
}
.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:26px;
  z-index:4;
  background:var(--paper);
  clip-path:polygon(0 100%,100% 0,100% 100%);
}

/* ---- 正文骨架 ---- */
.wrap{
  display:grid;
  grid-template-columns:208px minmax(0,1fr);
  gap:clamp(22px,3.6vw,52px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(28px,4.4vw,60px) clamp(18px,3.6vw,44px);
}

.rail{
  position:sticky;
  top:22px;
  align-self:start;
  padding:18px 16px 20px;
  border:1px solid var(--line);
  border-bottom:5px solid var(--ink);
  border-radius:28px;
  background:rgba(255,255,255,.55);
  transform:rotate(-.6deg);
}
.rail h2{
  margin:0 0 4px;
  font-family:var(--heavy);
  font-weight:400;
  font-size:20px;
  line-height:1.3;
}
.rail .subtitle{
  margin:0;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.16em;
  color:var(--mid);
}
.rail ul{list-style:none;margin:16px 0 0;padding:0}
.rail li a{
  display:block;
  min-height:40px;
  padding:9px 4px;
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  border-bottom:1px dotted var(--line);
}
.rail li a:hover{background:var(--ink);color:var(--paper)}

.doc{min-width:0}

.prose{
  max-width:76ch;
  font-size:17px;
  line-height:1.8;
}
.prose > div{
  padding:30px 0 30px clamp(14px,2vw,26px);
  border-left:5px solid var(--ink);
  scroll-margin-top:96px;
}
.prose > div + div{margin-top:26px}
.prose h2{
  margin:0 0 12px;
  font-family:var(--heavy);
  font-weight:400;
  font-size:clamp(21px,2.6vw,30px);
  line-height:1.3;
}
.prose h3{
  margin:22px 0 10px;
  font-family:var(--heavy);
  font-weight:400;
  font-size:19px;
  line-height:1.4;
}
.prose h4{
  margin:18px 0 8px;
  font-family:var(--heavy);
  font-weight:400;
  font-size:17px;
}
.prose p{margin:0 0 15px}
.prose ul,
.prose ol{margin:0 0 16px;padding-left:22px}
.prose li{margin:0 0 6px}
.prose a{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.prose strong{font-family:var(--heavy);font-weight:400}
.prose img{margin:18px 0;border-radius:28px;filter:grayscale(1) contrast(1.08)}
.prose blockquote{
  margin:18px 0;
  padding:14px 18px;
  border-radius:28px;
  border-bottom:5px solid var(--ink);
  background:rgba(26,26,26,.05);
}
.prose blockquote p:last-child{margin:0}
.prose table{width:100%;border-collapse:collapse;margin:18px 0}
.prose th,
.prose td{
  padding:10px;
  font-size:16px;
  text-align:left;
  border-bottom:1px dashed var(--line);
}
.prose time{font-size:16px;color:var(--mid)}
.prose hr{border:0;border-top:1px dashed var(--line);margin:24px 0}

/* ---- 页脚 ---- */
.base{
  position:relative;
  z-index:2;
  padding:0 clamp(18px,3.6vw,44px) 22px;
  background:var(--paper);
  border-top:1px solid var(--line);
}
.shout{
  padding:clamp(30px,5vw,56px) 0;
  border-bottom:1px dashed var(--line);
}
.shout a{
  display:inline-flex;
  align-items:center;
  gap:16px;
  min-height:48px;
  font-family:var(--heavy);
  font-size:clamp(26px,4.4vw,46px);
  line-height:1.2;
  letter-spacing:.01em;
  text-decoration:none;
}
.shout a span:last-child{border-bottom:5px solid var(--ink)}
.shout-arrow{
  display:inline-grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--ink);
  color:var(--paper);
  font-size:20px;
  transform:rotate(-6deg);
}
.base-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:26px 0;
}
.base-cell{
  padding:16px 14px 18px;
  border-radius:28px;
  border-bottom:5px solid var(--ink);
  background:rgba(26,26,26,.035);
}
.base-cell address{
  font-style:normal;
  font-family:var(--heavy);
  font-size:17px;
  line-height:1.4;
}
.base-cell ul{list-style:none;margin:0;padding:0}
.base-cell li a{
  display:block;
  min-height:40px;
  padding:9px 2px;
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  border-bottom:1px dotted var(--line);
}
.base-cell li a:hover{background:var(--ink);color:var(--paper)}
.base-word{
  margin:0;
  font-size:16px;
  line-height:1.6;
  letter-spacing:.14em;
  color:var(--mid);
}
.base-line{
  padding-top:18px;
  border-top:1px solid var(--line);
}
.base-line p{margin:0;font-size:16px;line-height:1.6;color:var(--mid)}

/* ---- 窄屏 ---- */
@media (max-width:860px){
  body{padding-left:0}
  .brandmark{left:12px;top:10px;width:44px;height:44px;border-radius:50% 46% 52% 44%}
  .brand-glyph{font-size:19px}
  .dock{
    position:sticky;
    top:0;
    left:auto;
    right:auto;
    bottom:auto;
    width:auto;
    height:auto;
    padding:10px 12px 10px 68px;
    gap:8px;
    border-right:0;
    border-bottom:1px solid var(--line);
    overflow:visible;
  }
  .dock::after{display:none}
  .dock ol{
    flex-direction:row;
    gap:0;
    overflow-x:auto;
    scrollbar-width:thin;
  }
  .dock li a{
    padding:10px 12px;
    white-space:nowrap;
    border-bottom:0;
    border-radius:12px 12px 0 0;
  }
  .dock li a::before{font-size:10px}
  .finder{margin-top:0}
  .finder input{min-height:40px;padding:8px 10px}
  .hero{height:62vh;min-height:340px}
  .wrap{grid-template-columns:1fr;padding:24px 16px}
  .rail{position:static;transform:none}
  .base{padding:0 16px 22px}
  .base-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:460px){
  body{font-size:16px}
  .hero h1{font-size:clamp(26px,8vw,38px)}
  .base-grid{grid-template-columns:1fr}
  .shout a{font-size:26px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-plate{transform:none !important}
  .rail{transform:none}
  .brandmark{transform:none}
}

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