@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root{
  --paper:#f5e6c8;
  --sand:#d4a574;
  --sand-deep:#c08a52;
  --ink:#262117;
  --ink-soft:rgba(38,33,23,.68);
  --line:rgba(38,33,23,.18);
  --glass:rgba(255,252,243,.6);
  --link:#8a5320;
}

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

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

body{
  margin:0;
  min-height:100%;
  font-family:'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.8;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(58% 46% at 88% -6%, rgba(212,165,116,.6), transparent 66%),
    radial-gradient(52% 44% at 4% 104%, rgba(212,165,116,.38), transparent 62%);
  background-attachment:fixed;
  overflow-x:hidden;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:40;
  opacity:.16;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size:170px 170px;
}

a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{color:var(--ink)}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:8px}

h1,h2,h3{font-weight:700;letter-spacing:-.005em}

/* 顶部细条 */
.ticker{
  position:fixed;
  top:0;left:0;right:0;
  z-index:30;
  height:42px;
  display:flex;align-items:center;justify-content:center;
  background:var(--ink);
  color:var(--paper);
}
.ticker p{margin:0;font-size:16px;letter-spacing:.08em;line-height:1.4}
.ticker p::before{
  content:"";
  display:inline-block;
  width:7px;height:7px;border-radius:50%;
  background:var(--sand);
  margin-right:10px;
  vertical-align:2px;
}

.shell{
  position:relative;
  z-index:1;
  min-height:100svh;
  padding-top:42px;
}

/* 左侧固定竖排导航 */
.rail{
  position:fixed;
  top:42px;left:0;bottom:0;
  width:112px;
  z-index:25;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:16px 10px 22px;
  overflow-y:auto;
  background:rgba(38,33,23,.95);
  border-right:1px solid rgba(245,230,200,.16);
}
.rail .mark{
  display:grid;place-items:center;
  flex:0 0 auto;
  width:44px;height:44px;
  border-radius:50%;
  background:var(--sand);
  color:var(--ink);
  font-size:16px;font-weight:700;
  text-decoration:none;
  box-shadow:0 0 0 3px rgba(212,165,116,.24);
}
.rail .mark img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.rail nav{width:100%}
.rail ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rail a{
  display:block;
  text-align:center;
  padding:10px 6px;
  border-radius:999px;
  border:1px solid rgba(245,230,200,.24);
  background:rgba(245,230,200,.06);
  color:var(--paper);
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  transition:background .25s ease,color .25s ease,border-color .25s ease,transform .2s ease;
}
.rail a:hover,
.rail a:focus-visible,
.rail a.on{
  background:var(--sand);
  border-color:var(--sand);
  color:var(--ink);
  transform:translateX(2px);
}

main{padding-left:112px;position:relative;z-index:1}
.wrap{max-width:820px;margin:0 auto;padding:0 26px 76px}

/* 满屏纯文字首屏 */
.hero{
  position:relative;
  min-height:calc(100svh - 42px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:64px 8px 122px;
}
.hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:76px;
  background:linear-gradient(100deg,var(--sand),var(--sand-deep));
  clip-path:polygon(0 62%,100% 0,100% 100%,0 100%);
  opacity:.9;
}
.eyebrow{
  margin:0 0 20px;
  padding:8px 18px;
  font-size:16px;
  letter-spacing:.2em;
  color:var(--ink-soft);
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--glass);
}
.hero h1{
  margin:0;
  max-width:15em;
  font-size:clamp(2.05rem,7.2vw,4.3rem);
  line-height:1.16;
  text-shadow:2px 3px 0 rgba(212,165,116,.55);
  animation:vhs 6.5s ease-in-out infinite;
}
.lede{
  margin:22px auto 0;
  max-width:30em;
  font-size:17px;
  color:var(--ink-soft);
}
.hero .jump{
  display:inline-block;
  margin-top:34px;
  padding:14px 30px;
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  font-weight:500;
  letter-spacing:.05em;
  text-decoration:none;
  box-shadow:0 6px 0 rgba(38,33,23,.18);
  transition:transform .22s ease,background .22s ease;
}
.hero .jump:hover{transform:translateY(-2px);background:#3b3427;color:var(--paper)}

.stage{position:relative;z-index:2;margin-top:-28px}

.paper{
  background:var(--glass);
  -webkit-backdrop-filter:blur(10px) saturate(1.05);
  backdrop-filter:blur(10px) saturate(1.05);
  border:1px solid rgba(255,255,255,.62);
  border-radius:10px;
  padding:36px 30px 30px;
  box-shadow:0 20px 44px -28px rgba(38,33,23,.6),inset 0 0 0 1px rgba(38,33,23,.05);
}
.paper div{margin-bottom:34px;padding-bottom:26px;border-bottom:1px dashed var(--line)}
.paper div:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
main div[id]{scroll-margin-top:60px}

.paper p,.after p{margin:0 0 16px}
.paper ul,.paper ol{margin:0 0 18px;padding-left:22px}
.paper li{margin-bottom:8px}
.paper h2,.after h2{
  margin:34px 0 14px;
  font-size:clamp(1.3rem,3.2vw,1.7rem);
  line-height:1.36;
}
.paper section > h2{margin-top:6px}
.paper h3{margin:26px 0 10px;font-size:17px}
.paper div h2:first-child{margin-top:0}

.tag{
  display:inline-block;
  margin:0 0 6px;
  font-size:16px;
  font-weight:500;
  letter-spacing:.18em;
  color:#8a6a3f;
}

.after{margin-top:46px}
.cards{display:grid;gap:14px;margin-top:20px}
.card{
  background:var(--glass);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.58);
  border-radius:10px;
  padding:18px 16px;
  box-shadow:0 14px 28px -24px rgba(38,33,23,.65);
  animation:fadeUp .55s ease both;
  transition:transform .25s ease,box-shadow .25s ease;
}
.card:hover{transform:translateY(-3px);box-shadow:0 20px 32px -22px rgba(38,33,23,.6)}
.card h3{margin:0 0 6px;font-size:16px;letter-spacing:.03em}
.card p{margin:0;font-size:16px;color:var(--ink-soft)}
.card:nth-child(2){animation-delay:.1s}
.card:nth-child(3){animation-delay:.2s}

/* 三栏页脚 */
.foot{
  position:relative;
  z-index:1;
  margin-left:112px;
  background:var(--ink);
  color:var(--paper);
  padding:0 24px;
}
.cta{
  max-width:820px;
  margin:0 auto;
  padding:46px 22px;
  text-align:center;
  border-bottom:1px solid rgba(245,230,200,.18);
}
.cta p{
  margin:0 auto 18px;
  max-width:24em;
  font-size:clamp(1.1rem,2.9vw,1.35rem);
  line-height:1.55;
}
.cta a{
  display:inline-block;
  padding:13px 28px;
  border-radius:999px;
  background:var(--sand);
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  transition:transform .2s ease,background .2s ease;
}
.cta a:hover{transform:translateY(-2px);background:#e9c093;color:var(--ink)}

.foot-row{
  max-width:1000px;
  margin:0 auto;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 18px;
  padding:22px 0 26px;
}
.fmark{
  flex:0 0 auto;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--sand);
}
.foot nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:2px;margin:0;padding:0}
.foot nav a{
  display:block;
  padding:12px 10px;
  border-radius:999px;
  color:var(--paper);
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  opacity:.86;
  transition:opacity .2s ease,background .2s ease;
}
.foot nav a:hover{opacity:1;background:rgba(245,230,200,.16);color:var(--paper)}
.cop{
  flex:1 1 240px;
  margin:0;
  min-width:200px;
  text-align:center;
  font-size:16px;
  opacity:.62;
}

@keyframes vhs{
  0%,42%,100%{transform:none;text-shadow:2px 3px 0 rgba(212,165,116,.55)}
  44%{transform:translateX(-3px) skewX(-1.1deg);text-shadow:5px 0 0 rgba(212,165,116,.5),-5px 0 0 rgba(38,33,23,.2)}
  48%{transform:translateX(2px) skewX(.6deg);text-shadow:2px 3px 0 rgba(212,165,116,.55)}
  52%{transform:none}
}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}

@media (min-width:640px){
  .cards{grid-template-columns:repeat(3,1fr)}
}

@media (max-width:899px){
  .ticker{position:static;height:auto;padding:9px 12px}
  .shell{padding-top:0}
  .rail{
    position:static;
    width:auto;
    top:auto;bottom:auto;
    flex-direction:column;
    padding:12px 12px 14px;
    border-right:0;
    border-bottom:1px solid rgba(212,165,116,.36);
    overflow:visible;
  }
  .rail ul{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px}
  .rail a{padding:10px 14px;transform:none}
  .rail a:hover,.rail a:focus-visible,.rail a.on{transform:none}
  main{padding-left:0}
  .wrap{padding:0 16px 58px}
  .hero{min-height:0;padding:52px 4px 92px}
  .hero h1{font-size:clamp(1.8rem,8.4vw,2.55rem)}
  .paper{padding:26px 18px 22px}
  .stage{margin-top:-20px}
  main div[id]{scroll-margin-top:16px}
  .foot{margin-left:0}
  .foot-row{justify-content:center;text-align:center}
  .cop{flex-basis:100%;text-align:center}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
  html{scroll-behavior:auto}
}

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