/* ============================================================
   风霜传奇 · 1.76 复古官网（左：首屏 / 右：攻略，一屏）
   ============================================================ */
:root{
  --bg:#080a09;
  --bg-soft:#0d100e;
  --panel:#111511;
  --gold:#d8b45a;
  --gold-2:#e7c979;
  --gold-deep:#8c6a24;
  --text:#e9dfc8;
  --muted:#a79e8a;
  --dim:#7d7564;
  --line:rgba(216,180,90,.18);
  --line-soft:rgba(216,180,90,.09);
  --serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;
  --sans:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Segoe UI",sans-serif;
  --wrap:1400px;
  --header-h:74px;
  --footer-h:36px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth;scroll-padding-top:84px;scroll-padding-top:calc(var(--header-h) + 10px)}
body{
  margin:0;display:flex;flex-direction:column;min-height:100vh;min-height:100svh;
  background:#11150f;background:var(--bg);
  color:#f2e9d3;color:var(--text);
  font-weight:400;font-size:15px;line-height:1.75;
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Segoe UI",sans-serif;
  font:400 15px/1.75 var(--sans);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body::before{
  content:"";position:fixed;top:0;right:0;bottom:0;left:0;inset:0;z-index:70;pointer-events:none;opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}
::selection{background:rgba(216,180,90,.28);color:#fff}
img{max-width:100%;display:block}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.wrap{
  width:calc(100% - 56px);max-width:1400px;margin-left:auto;margin-right:auto;
  width:min(100% - 56px,var(--wrap));max-width:var(--wrap);
}

/* ---------- Header ---------- */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  transition:background .35s ease,border-color .35s ease,backdrop-filter .35s ease;
  border-bottom:1px solid transparent;
}
.site-header.is-scrolled{
  background:rgba(7,9,8,.94);
  border-bottom-color:var(--line-soft);
}
.header__inner{height:74px;height:var(--header-h);display:flex;align-items:center;gap:34px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex:0 0 auto}
.brand__mark{width:36px;height:36px;color:var(--gold);flex:0 0 auto;filter:drop-shadow(0 0 10px rgba(216,180,90,.25))}
.brand__text{font-family:var(--serif);font-size:20px;letter-spacing:.18em;line-height:1.1;color:var(--gold-2);display:flex;flex-direction:column;gap:3px}
.brand__text small{font-family:var(--sans);font-size:10px;letter-spacing:.34em;color:var(--dim);font-weight:400}

/* ---------- Buttons ---------- */
.btn{
  position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:14px 30px;border:1px solid transparent;text-decoration:none;white-space:nowrap;
  font-size:15px;letter-spacing:.16em;line-height:1;overflow:hidden;text-align:center;
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease,color .25s ease,border-color .25s ease;
}
.btn::after{
  content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.42),transparent);
  transform:skewX(-18deg);transition:left .55s ease;pointer-events:none;
}
.btn:hover::after{left:120%}
.btn--gold{
  background:#d3ad55;
  background:linear-gradient(180deg,#f0d68f 0%,#d3ad55 48%,#a77e2d 100%);
  color:#1c1404;border-color:rgba(255,232,170,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 30px rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.25);
}
.btn--gold:hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 16px 38px rgba(0,0,0,.45),0 0 24px rgba(216,180,90,.22)}
.btn--lg{padding:15px 32px;font-size:15px}

/* ---------- Reveal ---------- */
.reveal-ready .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.reveal-ready .reveal.is-visible{opacity:1;transform:none}

/* ---------- Stage ---------- */
.stage{position:relative;flex:1 1 auto;display:flex;isolation:isolate;overflow:hidden;min-height:0}
.stage__bg{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;z-index:-2}
.stage__bg img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
.stage__bg::after{
  content:"";position:absolute;top:0;right:0;bottom:0;left:0;inset:0;pointer-events:none;opacity:.10;
  background:repeating-linear-gradient(to bottom,rgba(0,0,0,.55) 0 1px,transparent 1px 3px);
}
.stage__veil{
  position:absolute;top:0;right:0;bottom:0;left:0;inset:0;
  background:
    linear-gradient(90deg,rgba(5,7,6,.92) 0%,rgba(5,7,6,.72) 34%,rgba(5,7,6,.42) 58%,rgba(6,8,7,.78) 100%),
    linear-gradient(to bottom,rgba(6,8,7,.72) 0%,rgba(6,8,7,.10) 30%,rgba(6,8,7,.30) 64%,rgba(6,8,7,.94) 100%);
}
.stage__inner{
  width:calc(100% - 72px);max-width:1400px;margin-left:auto;margin-right:auto;
  width:min(100% - 72px,var(--wrap));max-width:var(--wrap);
  padding-top:90px;padding-top:calc(var(--header-h) + 16px);padding-bottom:18px;
  display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  gap:40px;gap:clamp(26px,3vw,58px);align-items:center;
}

/* ---------- Hero (left) ---------- */
.hero{min-width:0;padding-bottom:6px}
.hero__eyebrow{margin:0 0 16px;font-size:10.5px;letter-spacing:.55em;text-indent:.55em;color:var(--gold)}
.hero__title{
  margin:0 0 18px;font-family:var(--serif);font-weight:400;
  font-size:64px;font-size:clamp(44px,5.7vw,92px);line-height:1.02;letter-spacing:.1em;
  color:#e7c979;
  filter:drop-shadow(0 6px 24px rgba(0,0,0,.65));
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .hero__title{
    background:linear-gradient(180deg,#fff6da 0%,#f0d691 26%,#c9a24a 62%,#8f6a26 100%);
    -webkit-background-clip:text;background-clip:text;
    color:transparent;
  }
}
.hero__lead{
  margin:0 0 14px;font-family:var(--serif);font-size:18px;font-size:clamp(17px,1.7vw,21px);
  color:#f0e6cd;letter-spacing:.06em;line-height:1.7;text-shadow:0 2px 16px rgba(0,0,0,.6);
}
.hero__sub{margin:0 0 30px;color:#bdb29a;font-size:13.5px;letter-spacing:.08em;line-height:1.95;text-shadow:0 1px 10px rgba(0,0,0,.7)}
.hero__actions{display:flex;flex-wrap:wrap;gap:14px}

/* ---------- Guide (right) ---------- */
.guide{
  position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;
  align-self:center;
  max-height:calc(100vh - 150px);
  max-height:calc(100svh - var(--header-h) - var(--footer-h) - 40px);
  padding:22px 26px 16px;
  border:1px solid rgba(216,180,90,.20);
  background:
    linear-gradient(158deg,rgba(24,29,24,.78),rgba(9,12,10,.9) 58%),
    radial-gradient(80% 60% at 100% 0%,rgba(216,180,90,.1),transparent 70%);
  box-shadow:0 30px 70px rgba(0,0,0,.45);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.guide::before,.guide::after{content:"";position:absolute;width:20px;height:20px;pointer-events:none;z-index:1}
.guide::before{top:-1px;left:-1px;border-top:1px solid var(--gold);border-left:1px solid var(--gold)}
.guide::after{bottom:-1px;right:-1px;border-bottom:1px solid var(--gold);border-right:1px solid var(--gold)}
.guide__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}
.eyebrow{margin:0 0 8px;font-size:10px;letter-spacing:.5em;text-indent:.5em;color:var(--gold);text-transform:uppercase;font-weight:500}
.guide__head h2{
  margin:0;font-family:var(--serif);font-weight:400;color:#f1e7cf;
  font-size:28px;font-size:clamp(24px,2.3vw,32px);letter-spacing:.12em;line-height:1.2;
}
.guide__sub{margin:0 0 2px;color:var(--dim);font-size:12px;line-height:1.7;letter-spacing:.04em;text-align:right}

.guide-tabs{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:0;
}
.guide-tab{
  position:relative;display:flex;align-items:center;justify-content:center;gap:6px;
  padding:10px 4px;color:var(--muted);font-size:12.5px;letter-spacing:.05em;white-space:nowrap;
  transition:color .25s ease,background .25s ease;
}
.guide-tab span{font-family:var(--serif);font-size:10px;color:var(--dim);transition:color .25s ease}
.guide-tab::before{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--gold);
  transform:scaleX(0);transition:transform .28s ease;
}
.guide-tab:hover{color:var(--gold-2);background:rgba(216,180,90,.05)}
.guide-tab.is-active{color:#f4ecd8;background:linear-gradient(180deg,rgba(216,180,90,.12),rgba(216,180,90,.02))}
.guide-tab.is-active::before{transform:scaleX(1)}
.guide-tab.is-active span{color:var(--gold)}

.guide-panels{
  position:relative;display:flex;flex-direction:column;flex:0 0 auto;min-height:416px;
  max-height:calc(100vh - 356px);
  max-height:calc(100svh - 356px);overflow-y:auto;overscroll-behavior:contain;
  padding:18px 4px 18px 2px;scrollbar-width:thin;scrollbar-color:rgba(216,180,90,.35) transparent;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 6px,#000 calc(100% - 14px),transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 6px,#000 calc(100% - 14px),transparent 100%);
}
.guide-panels::-webkit-scrollbar{width:4px}
.guide-panels::-webkit-scrollbar-thumb{background:rgba(216,180,90,.3)}
.guide-panel{flex:0 0 auto;width:100%}
.guide-panel[hidden]{display:none}
.guide-panel h3{margin:0 0 12px;font-family:var(--serif);font-weight:400;font-size:21px;letter-spacing:.1em;color:#f2e8d0}
.guide-panel h4{margin:14px 0 6px;font-family:var(--serif);font-weight:400;font-size:14px;letter-spacing:.08em;color:var(--gold-2)}
.guide-list{margin:0;padding:0;list-style:none}
.guide-list li{position:relative;padding-left:16px;margin-bottom:7px;color:#c6bca6;font-size:13px;line-height:1.75}
.guide-list li::before{
  content:"";position:absolute;left:2px;top:.72em;width:4px;height:4px;
  background:var(--gold);transform:rotate(45deg);opacity:.85;
}
.guide-list--num{counter-reset:gq}
.guide-list--num li{padding-left:24px}
.guide-list--num li::before{
  counter-increment:gq;content:counter(gq);width:auto;height:auto;background:none;transform:none;
  font-family:var(--serif);font-size:11px;color:var(--gold);top:0;left:0;
}
.guide-list strong{color:var(--gold-2);font-weight:500}
.guide-list code{font-family:Consolas,monospace;color:var(--gold-2);background:rgba(216,180,90,.08);padding:1px 5px}
.guide-note{
  margin:14px 0 0;padding:11px 16px;
  border-left:2px solid var(--gold);
  background:linear-gradient(90deg,rgba(216,180,90,.12),rgba(216,180,90,.03));
  color:#ddd2b9;font-family:var(--serif);font-size:13.5px;line-height:1.7;letter-spacing:.05em;
}

/* ---------- Footer ---------- */
.site-footer{flex:0 0 auto;border-top:1px solid var(--line-soft);background:#060807}
.footer__mini{
  display:flex;align-items:center;justify-content:space-between;gap:6px 24px;flex-wrap:wrap;
  min-height:36px;min-height:var(--footer-h);padding:8px 0;
}
.footer__mini p{margin:0;color:#5f594c;font-size:10.5px;line-height:1.6;letter-spacing:.03em}

/* ---------- Responsive ---------- */
@media (max-width:1200px){
  :root{--header-h:70px}
  .stage__inner{width:calc(100% - 52px);gap:30px;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
  .guide{padding:20px 20px 0}
  .guide-tab{font-size:11.5px;gap:4px}
  .guide-tab span{display:none}
}
@media (max-height:780px) and (min-width:901px){
  .stage__inner{padding-top:82px;padding-top:calc(var(--header-h) + 8px);padding-bottom:10px}
  .hero__title{margin-bottom:14px}
  .hero__lead{margin-bottom:10px}
  .hero__sub{margin-bottom:22px;line-height:1.8}
  .guide{padding-top:18px}
  .guide__head{margin-bottom:12px}
}
@media (max-width:900px){
  html,body{height:auto}
  body{min-height:100vh;min-height:100svh}

  .stage{display:block;overflow:visible;min-height:0}
  .stage__bg img{object-position:center 36%}
  .stage__veil{
    background:
      linear-gradient(to bottom,rgba(5,7,6,.82) 0%,rgba(5,7,6,.55) 42%,rgba(5,7,6,.9) 70%,var(--bg) 100%);
  }
  .stage__inner{display:block;width:auto;padding:0 0 26px}
  .hero{
    display:flex;flex-direction:column;justify-content:center;
    min-height:86vh;min-height:86svh;padding:118px 22px 48px;padding:calc(var(--header-h) + 44px) 22px 48px;
  }
  .hero__title{font-size:64px;font-size:clamp(52px,15vw,84px);margin-bottom:16px}
  .hero__lead{font-size:17px;margin-bottom:12px}
  .hero__sub{font-size:13px;margin-bottom:26px}
  .hero__actions{gap:12px}
  .guide{
    height:auto;max-height:none;margin:0 18px;padding:24px 18px 16px;
    border-color:rgba(216,180,90,.24);box-shadow:0 20px 50px rgba(0,0,0,.5);
  }
  .guide__head{align-items:flex-start;flex-direction:column;gap:6px;margin-bottom:14px}
  .guide__sub{text-align:left}
  .guide-tabs{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
    border-top:1px solid var(--line);border-bottom:1px solid var(--line);
    margin:0 -18px;padding:0 6px 3px;
  }
  .guide-tab{padding:10px 2px;font-size:12.5px;gap:4px}
  .guide-tab span{display:none}
  .guide-panels{
    min-height:0;max-height:none;overflow:visible;padding:18px 0 20px;
    -webkit-mask-image:none;mask-image:none;
  }
  .guide-panel h3{font-size:20px}
  .guide-list li{font-size:13.5px;line-height:1.8;margin-bottom:8px}
  .footer__mini{display:block;padding:12px 0}
  .footer__mini p{font-size:11px;margin-bottom:3px}
}
@media (max-width:420px){
  .brand__text{font-size:18px}
  .hero__title{font-size:52px;font-size:clamp(46px,15vw,64px)}
  .guide{margin:0 12px}
  .btn--lg{padding:14px 22px;font-size:14px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .reveal-ready .reveal{opacity:1;transform:none}
}
