@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root{
  --deep:#1F2A24;
  --deeper:#141C17;
  --brass:#C9A227;
  --ash:#EDE8DF;
  --line:rgba(237,232,223,.15);
  --dim:rgba(237,232,223,.68);
  --bar:64px;
  --fh:"Bebas Neue","Source Sans 3","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --ft:"Source Sans 3","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--deep);-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--deep);
  color:var(--ash);
  font:400 17px/1.75 var(--ft);
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
h1,h2,h3{margin:0;line-height:1.06;letter-spacing:.01em}
p{margin:0}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--brass);outline-offset:3px}

/* 顶部 */
.top{
  position:sticky;
  top:0;
  z-index:90;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:var(--bar);
  padding:6px clamp(12px,3vw,36px);
  background:rgba(31,42,36,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  transition:background .3s ease,box-shadow .3s ease;
}
.top.stuck{background:rgba(20,28,23,.97);box-shadow:0 14px 30px rgba(0,0,0,.45)}

.brand{display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;min-height:44px;padding:8px 2px}
.brand-mark{width:12px;height:22px;background:var(--brass);clip-path:polygon(0 0,100% 0,100% 66%,50% 100%,0 66%)}
.brand-img{width:24px;height:24px;object-fit:contain}
.brand-t{font-family:var(--fh);font-size:23px;letter-spacing:.08em;white-space:nowrap}

.nav{flex:1 1 auto;min-width:0}
.nav-line{display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none}
.nav-line::-webkit-scrollbar{display:none}
.nav-line a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:11px 9px;
  font-size:16px;
  color:var(--dim);
  white-space:nowrap;
  border-bottom:2px solid transparent;
  transition:color .2s ease,border-color .2s ease;
}
.nav-line a:hover,.nav-line a:focus-visible{color:var(--ash);border-bottom-color:var(--brass)}
.nav-line .n{font-style:normal;font-family:var(--fh);font-size:16px;letter-spacing:.1em;color:var(--brass);opacity:.7}

.nav-btn{
  display:none;
  align-items:center;
  min-height:44px;
  padding:10px 14px;
  background:transparent;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:16px;
}

.find{flex:0 0 auto;display:flex}
.find-input{
  width:140px;
  min-height:40px;
  padding:8px 14px;
  background:transparent;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:16px;
  transition:width .25s ease,border-color .25s ease;
}
.find-input::placeholder{color:var(--dim)}
.find-input:focus{width:180px;border-color:var(--brass);outline:none}

/* 次级锚点条 */
.strip{position:sticky;top:var(--bar);z-index:70;background:rgba(20,28,23,.95);border-bottom:1px solid var(--line)}
.strip-line{display:flex;gap:8px;padding:8px clamp(12px,3vw,36px);overflow-x:auto;scrollbar-width:none}
.strip-line::-webkit-scrollbar{display:none}
.strip-line a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:16px;
  color:var(--dim);
  white-space:nowrap;
  transition:background .22s ease,color .22s ease,border-color .22s ease;
}
.strip-line a:hover{background:var(--brass);color:var(--deep);border-color:var(--brass)}

/* 首屏 */
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:100vh;
  min-height:100svh;
  padding:clamp(44px,9vh,104px) clamp(14px,4vw,52px) clamp(38px,7vh,76px);
}
.layer{position:absolute;inset:-18% -10%;z-index:-1;will-change:transform}
.la{background:radial-gradient(120% 80% at 12% 16%,rgba(201,162,39,.24),transparent 62%);transform:translate3d(0,calc(var(--sy,0) * -0.06px),0) scale(1.06)}
.lb{background:repeating-linear-gradient(114deg,rgba(237,232,223,.055) 0 1px,transparent 1px 27px);transform:translate3d(0,calc(var(--sy,0) * 0.1px),0)}
.lc{background:radial-gradient(92% 68% at 88% 92%,rgba(20,28,23,.96),transparent 62%);transform:translate3d(0,calc(var(--sy,0) * 0.17px),0)}

.hero-in{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(20px,4vw,54px);
  align-items:center;
}
.shot{
  position:relative;
  margin:0;
  aspect-ratio:4/5;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  border-bottom:3px solid var(--brass);
  background:linear-gradient(158deg,#27342C,#131B16);
  transform:translate3d(0,calc(var(--sy,0) * -0.03px),0);
}
.hero-img{width:100%;height:100%;object-fit:cover}
.fb{position:absolute;display:block;border-radius:18px}
.fb-a{inset:11% 15% auto 10%;height:40%;background:linear-gradient(120deg,rgba(201,162,39,.5),rgba(201,162,39,.05))}
.fb-b{inset:auto 12% 20% 24%;height:30%;background:linear-gradient(120deg,rgba(237,232,223,.17),rgba(237,232,223,.03))}
.fb-c{inset:auto auto -7% -8%;width:46%;height:26%;background:rgba(201,162,39,.22)}

.badge{
  position:absolute;
  left:12px;
  bottom:18px;
  padding:7px 15px;
  border-radius:999px;
  background:var(--brass);
  color:var(--deep);
  font-size:16px;
  font-weight:600;
  transform:rotate(-3deg);
  box-shadow:0 14px 26px rgba(0,0,0,.42);
  white-space:nowrap;
}

.say{text-align:right}
.hero-h{font-family:var(--fh);font-size:clamp(44px,8.6vw,116px);line-height:.94;text-shadow:0 22px 44px rgba(0,0,0,.42)}
.lede{margin:18px 0 0 auto;max-width:44ch;font-size:clamp(17px,1.5vw,20px);line-height:1.7;color:var(--dim)}
.jump{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:26px;
  min-height:48px;
  padding:13px 28px;
  border-radius:999px;
  background:var(--ash);
  color:var(--deep);
  font-size:17px;
  font-weight:600;
  transition:transform .25s ease,background .25s ease;
}
.jump::after{content:"→"}
.jump:hover{background:var(--brass);transform:translateY(-2px)}

/* 正文 */
.wrap{
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:214px minmax(0,1fr);
  gap:clamp(18px,3vw,46px);
  padding:clamp(32px,6vh,60px) clamp(14px,4vw,52px) 44px;
  align-items:start;
}

.side{position:sticky;top:calc(var(--bar) + 62px);align-self:start}
.side-h{
  padding-bottom:10px;
  margin-bottom:10px;
  border-bottom:1px solid var(--line);
  font-family:var(--fh);
  font-size:23px;
  letter-spacing:.16em;
  color:var(--brass);
}
.side-hin{display:inline-flex;align-items:center;gap:10px}
.tick{display:inline-block;width:26px;height:2px;background:var(--brass)}

.chap{display:block;border-bottom:1px solid rgba(237,232,223,.09);transition:transform .22s ease,border-color .22s ease,color .22s ease}
.chap h3{display:flex;align-items:baseline;gap:8px;padding:11px 2px;font-size:16px;font-weight:500;line-height:1.5;color:var(--dim)}
.chap-n{flex:0 0 auto;font-family:var(--fh);font-size:16px;letter-spacing:.12em;color:var(--brass);opacity:.7}
.chap:hover{transform:translateX(4px);border-bottom-color:var(--brass)}
.chap:hover h3{color:var(--ash)}
.chap.off{display:none}

.body{min-width:0}
.prose{max-width:74ch}
.page-h{font-family:var(--fh);font-size:clamp(32px,5vw,54px);margin-bottom:18px}

.prose > div{padding:clamp(24px,4vh,44px) 0;scroll-margin-top:calc(var(--bar) + 70px)}
.prose > div + div{border-top:1px dashed var(--line)}
.prose > div:first-child{padding-top:0}

.prose h2{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 14px;
  font-family:var(--fh);
  font-size:clamp(26px,3.4vw,40px);
  letter-spacing:.03em;
}
.prose h2::before{content:"";flex:0 0 auto;width:10px;height:10px;background:var(--brass);transform:rotate(45deg)}
.prose h2 span{color:inherit}
.prose h3{margin:22px 0 10px;font-size:20px;font-weight:600}
.prose p{margin:0 0 16px}
.prose ul,.prose ol{margin:0 0 16px;padding-left:22px}
.prose li{margin:6px 0}
.prose strong{color:var(--brass);font-weight:600}
.prose blockquote{margin:20px 0;padding:12px 20px;border-left:3px solid var(--brass);border-radius:0 18px 18px 0;background:rgba(201,162,39,.09)}
.prose a{border-bottom:1px solid var(--brass)}
.prose figure{margin:20px 0}
.prose img{border-radius:18px;border-bottom:3px solid var(--brass)}

.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.3,1);transition-delay:var(--d,0ms);will-change:transform}
.reveal.in{opacity:1;transform:none}

.totop{
  position:fixed;
  right:14px;
  bottom:16px;
  z-index:80;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(201,162,39,.95);
  color:var(--deep);
  font-size:16px;
  font-weight:600;
  box-shadow:0 12px 26px rgba(0,0,0,.42);
}
.totop:hover{background:var(--ash)}

footer{margin-top:24px;padding:clamp(28px,6vh,58px) clamp(14px,4vw,52px) 24px;border-top:1px solid var(--line)}
.foot-mark{
  font-family:var(--fh);
  font-size:clamp(38px,11.5vw,148px);
  line-height:.9;
  letter-spacing:.02em;
  color:rgba(237,232,223,.17);
  white-space:nowrap;
  overflow:hidden;
}
.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.cr{font-size:16px;color:var(--dim)}
.foot-links{display:flex;flex-wrap:wrap;gap:2px}
.foot-links a{display:inline-flex;align-items:center;min-height:40px;padding:6px 10px;font-size:16px;color:var(--dim)}
.foot-links a:hover{color:var(--brass)}

@media (max-width:1000px){
  .top{flex-wrap:wrap}
  .nav{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    display:none;
    padding:8px 14px 16px;
    background:var(--deeper);
    border-bottom:1px solid var(--line);
    box-shadow:0 22px 44px rgba(0,0,0,.45);
  }
  .nav.open{display:block}
  .nav-line{flex-direction:column;align-items:stretch;overflow:visible}
  .nav-line a{padding:13px 4px;border-bottom:1px solid rgba(237,232,223,.09)}
  .nav-btn{display:inline-flex;margin-left:auto}
  .wrap{grid-template-columns:1fr;padding-top:24px}
  .side{position:static}
  .chap-list{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-bottom:8px}
  .hero-in{grid-template-columns:1fr}
  .hero{align-items:flex-start;padding-top:28px}
  .say{order:1;text-align:left}
  .lede{margin-left:0}
  .shot{order:2;aspect-ratio:16/11;max-height:38vh;margin-top:6px}
  .badge{left:auto;right:12px;bottom:12px}
}

@media (max-width:560px){
  .brand-t{font-size:19px}
  .find{order:5;flex:1 1 100%;margin-bottom:6px}
  .find-input{width:100%;max-width:none}
  .find-input:focus{width:100%}
  .chap-list{grid-template-columns:1fr}
  .foot-mark{font-size:clamp(30px,12.5vw,58px)}
  .prose h2{font-size:26px}
  .totop{right:10px;bottom:12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .layer,.shot{transform:none !important}
  .reveal{opacity:1;transform:none;transition:none}
  .jump,.chap,.strip-line a,.find-input,.nav-line a{transition:none}
}

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