@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root{
  --paper:#fdfbf7;
  --paper-2:#f5f5f5;
  --ink:#1a1a1a;
  --muted:#5b5953;
  --line:#e0e0e0;
  --line-2:#d3cec4;
  --rail:262px;
}

*{box-sizing:border-box;}

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

body{
  margin:0;
  padding-left:var(--rail);
  background:var(--paper);
  color:var(--ink);
  font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.72;
  font-weight:400;
  letter-spacing:.005em;
  overflow-wrap:break-word;
  transition:none;
}

body::before{
  content:'';
  position:fixed;
  inset:0;
  z-index:60;
  pointer-events:none;
  opacity:.055;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size:180px 180px;
  mix-blend-mode:multiply;
}

/* ---------- 左侧竖排导航 ---------- */

.rail{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  padding:24px 18px 18px;
  border-right:1px solid var(--line);
  background:rgba(253,251,247,.9);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  z-index:40;
  overflow-y:auto;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  align-self:flex-start;
  min-height:46px;
  padding:4px 0;
  color:var(--ink);
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:-.015em;
  text-decoration:none;
}

.brand-dot{
  display:block;
  width:12px;
  height:12px;
  flex:none;
  background:var(--ink);
  border-radius:2px;
}

.brand-txt{
  border-bottom:2px solid var(--ink);
  padding-bottom:1px;
}

.rail-h{
  margin:24px 0 10px;
  font-size:.72rem;
  font-weight:700;
  line-height:1.5;
  letter-spacing:.24em;
  color:var(--muted);
  text-transform:uppercase;
}

.rail-h span{
  display:inline-block;
}

.rail-nav{
  flex:1 1 auto;
  margin:0 -6px;
  padding:0 6px;
}

.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid var(--line-2);
}

.rail-nav li{
  border-bottom:1px solid var(--line);
}

.rail-nav a{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:46px;
  padding:11px 2px;
  color:var(--ink);
  font-size:1rem;
  font-weight:600;
  line-height:1.45;
  text-decoration:none;
  transition:none;
}

.rail-nav a::before{
  content:'';
  width:9px;
  height:9px;
  flex:none;
  border:1px solid var(--ink);
  border-radius:2px;
  background:transparent;
}

.rail-nav a:hover::before,
.rail-nav a:focus-visible::before{
  background:var(--ink);
}

.rail-nav a:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:2px;
}

.rail-foot{
  margin-top:16px;
  padding-top:16px;
  border-top:2px solid var(--ink);
}

.rail-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:46px;
  padding:12px 14px;
  border-radius:4px;
  background:var(--ink);
  color:var(--paper);
  font-size:.94rem;
  font-weight:700;
  line-height:1.4;
  text-decoration:none;
  transition:none;
}

.rail-cta::after{
  content:'→';
  font-weight:700;
}

/* ---------- 主体 ---------- */

.main{
  max-width:840px;
  margin:0 auto;
  padding:0 26px;
}

.hero{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:70vh;
  padding:56px 0 34px;
  border-bottom:1px solid var(--line);
}

.hero-h1{
  margin:0;
  font-size:clamp(2.05rem,6vw,4.2rem);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.035em;
  will-change:transform;
}

.hero-lead{
  margin:22px 0 0;
  max-width:32ch;
  font-size:1.05rem;
  line-height:1.65;
  color:var(--muted);
}

.hero-band{
  margin-top:32px;
  height:14px;
  background:var(--ink);
  clip-path:polygon(0 0,100% 0,calc(100% - 24px) 100%,0 100%);
  will-change:transform;
}

.rot-wrap{
  position:relative;
  height:26px;
  margin-top:18px;
  overflow:hidden;
}

.rot{
  position:relative;
  height:26px;
  margin:0;
  padding:0;
  list-style:none;
}

.rot li{
  position:absolute;
  inset:0;
  opacity:0;
  animation:rot 14s linear infinite;
}

.rot li:nth-child(1){animation-delay:0s;}
.rot li:nth-child(2){animation-delay:2s;}
.rot li:nth-child(3){animation-delay:4s;}
.rot li:nth-child(4){animation-delay:6s;}
.rot li:nth-child(5){animation-delay:8s;}
.rot li:nth-child(6){animation-delay:10s;}
.rot li:nth-child(7){animation-delay:12s;}

.rot a{
  display:inline-block;
  padding:2px 0;
  color:var(--muted);
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.06em;
  text-decoration:none;
}

@keyframes rot{
  0%{opacity:0;}
  2%{opacity:1;}
  12%{opacity:1;}
  14%{opacity:0;}
  100%{opacity:0;}
}

/* ---------- 正文 ---------- */

.body{
  padding:6px 0 56px;
}

.body section{
  margin:24px 0;
  padding:26px 24px;
  border:1px solid var(--line);
  border-radius:4px;
  background:rgba(245,245,245,.72);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  scroll-margin-top:96px;
}

.body h2{
  margin:0 0 16px;
  font-size:1.48rem;
  font-weight:800;
  line-height:1.28;
  letter-spacing:-.02em;
}

.body h2 span{
  position:relative;
  display:inline-block;
}

.body h2 span::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-5px;
  height:3px;
  background:var(--ink);
}

.body h3{
  margin:26px 0 10px;
  font-size:1.14rem;
  font-weight:700;
  line-height:1.4;
}

.body h3 span{
  display:inline-block;
}

.body p{
  margin:0 0 16px;
}

.body ul,
.body ol{
  margin:0 0 16px;
  padding-left:1.25em;
}

.body li{
  margin:.35em 0;
}

.body strong{
  font-weight:800;
}

.body blockquote{
  margin:20px 0;
  padding:2px 0 2px 16px;
  border-left:3px solid var(--ink);
  color:var(--muted);
}

.body a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.body img{
  max-width:100%;
  height:auto;
  border-radius:4px;
  border:1px solid var(--line-2);
}

.body figure{
  margin:20px 0;
}

.body figcaption{
  font-size:.88rem;
  color:var(--muted);
  margin-top:8px;
}

.body table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 16px;
  font-size:.96rem;
}

.body th,
.body td{
  border:1px solid var(--line-2);
  padding:8px 10px;
  text-align:left;
}

/* ---------- 页脚 ---------- */

.foot{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 26px;
  max-width:840px;
  margin:16px auto 0;
  padding:24px 26px 40px;
  border-top:1px solid var(--line);
}

.foot-brand a{
  display:block;
  color:var(--ink);
  font-size:clamp(1.5rem,4.4vw,2.5rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.04em;
  text-decoration:none;
}

.foot-nav{
  display:flex;
  flex-wrap:wrap;
  flex:1 1 200px;
  gap:0 14px;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 0;
  color:var(--muted);
  font-size:.9rem;
  font-weight:600;
  text-decoration:none;
}

.foot-nav a:hover{
  color:var(--ink);
}

.foot-copy{
  font-size:.82rem;
  line-height:1.5;
  color:var(--muted);
}

/* ---------- 窄屏 ---------- */

@media (max-width:820px){
  body{
    padding-left:0;
  }

  .rail{
    position:-webkit-sticky;
    position:sticky;
    top:0;
    bottom:auto;
    left:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:1px solid var(--line);
    z-index:40;
  }

  .brand{
    flex:none;
    min-height:42px;
    font-size:.94rem;
  }

  .brand-dot{
    width:10px;
    height:10px;
  }

  .brand-txt{
    border-bottom-width:1px;
  }

  .rail-h{
    display:none;
  }

  .rail-nav{
    flex:1 1 auto;
    min-width:0;
    margin:0;
    padding:0;
    overflow-x:auto;
    overflow-y:hidden;
  }

  .rail-nav ul{
    display:flex;
    border-top:0;
  }

  .rail-nav li{
    flex:none;
    border-bottom:0;
  }

  .rail-nav a{
    min-height:42px;
    padding:8px 10px;
    font-size:.9rem;
    white-space:nowrap;
  }

  .rail-nav a::before{
    width:7px;
    height:7px;
  }

  .rail-foot{
    flex:none;
    margin:0;
    padding:0;
    border-top:0;
  }

  .rail-cta{
    min-height:42px;
    padding:9px 12px;
    font-size:.84rem;
  }

  .rail-cta::after{
    display:none;
  }

  .main{
    padding:0 16px;
  }

  .hero{
    min-height:56vh;
    padding:32px 0 28px;
  }

  .hero-band{
    margin-top:26px;
    height:11px;
    clip-path:polygon(0 0,100% 0,calc(100% - 16px) 100%,0 100%);
  }

  .body{
    padding:2px 0 40px;
  }

  .body section{
    margin:18px 0;
    padding:20px 16px;
    scroll-margin-top:68px;
  }

  .body h2{
    font-size:1.3rem;
  }

  .foot{
    margin-top:12px;
    padding:20px 16px 34px;
    gap:8px 18px;
  }

  .foot-nav{
    flex:1 1 160px;
    gap:0 12px;
  }
}

@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto;
  }

  .rot-wrap{
    height:auto;
    overflow:visible;
  }

  .rot{
    height:auto;
    display:flex;
    flex-wrap:wrap;
    gap:2px 16px;
  }

  .rot li{
    position:static;
    opacity:1;
    animation:none;
  }

  .rot a{
    color:var(--ink);
  }

  .hero-h1,
  .hero-band{
    will-change:auto;
  }
}

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