:root{
  --ink:#172623;
  --teal:#5cc6b0;
  --sand:#d4c4a8;
  --clay:#c67b5c;
  --paper:#f4ede3;
  --paper-2:#eadfce;
  --line:rgba(23,38,35,.16);
  --soft:rgba(23,38,35,.08);
  --r:28px;
  --rail:132px;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Poppins',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  letter-spacing:.012em;
  overflow-x:hidden;
}

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

a{color:inherit}
img{display:block;max-width:100%}

h1,h2,h3{
  font-family:'Righteous','Poppins',system-ui,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-weight:400;
  line-height:1.22;
  letter-spacing:.025em;
  margin:0 0 14px;
}

hr{
  border:0;
  height:3px;
  width:64px;
  margin:0 0 22px;
  border-radius:3px;
  background:var(--teal);
}

:focus-visible{
  outline:3px solid var(--teal);
  outline-offset:3px;
  border-radius:6px;
}

/* ---------- 左侧竖排栏 ---------- */
.rail{
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  width:var(--rail);
  z-index:60;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:18px 10px 22px;
  background:linear-gradient(180deg,#172623 0%,#1e3229 62%,#25392f 100%);
  border-right:1px solid rgba(212,196,168,.16);
  box-shadow:8px 0 26px rgba(23,38,35,.16);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}

.mark{
  flex:none;
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:18px 18px 18px 6px;
  background:var(--teal);
  color:#0f1c19;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(0,0,0,.3);
}

.mark-txt{
  font-family:'Righteous',sans-serif;
  font-size:24px;
  line-height:1;
}

.mark-img{
  width:52px;
  height:52px;
  border-radius:18px 18px 18px 6px;
  object-fit:cover;
}

.rail-nav{width:100%}

.rail-nav p{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin:0;
}

.rail-nav a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 6px;
  font-size:16px;
  line-height:1.3;
  text-align:center;
  color:#e4d8c2;
  text-decoration:none;
  border:1px solid transparent;
  border-radius:14px;
  transition:background .25s ease-out,color .25s ease-out,transform .25s ease-out,border-color .25s ease-out;
}

.rail-nav a:nth-child(4){margin-top:14px}

.rail-nav a:hover,
.rail-nav a:focus-visible{
  background:rgba(92,198,176,.16);
  border-color:rgba(92,198,176,.48);
  color:#fff;
  transform:translateX(2px);
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  isolation:isolate;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:130px 5vw 9vh calc(var(--rail) + 5vw);
  overflow:hidden;
  background:linear-gradient(155deg,#2a4038 0%,#1b2c26 55%,#172623 100%);
}

.hero-media{
  position:absolute;
  inset:0;
  z-index:-2;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(100deg,rgba(23,38,35,.92) 0%,rgba(23,38,35,.62) 46%,rgba(23,38,35,.12) 100%),
    linear-gradient(0deg,rgba(23,38,35,.88) 0%,rgba(23,38,35,0) 58%);
}

.hero-body{
  max-width:840px;
  text-align:left;
  color:#f6efe3;
}

.hero-kicker{
  margin:0 0 14px;
  font-size:16px;
  letter-spacing:.18em;
  color:var(--teal);
}

.hero h1{
  margin:0 0 18px;
  font-size:clamp(2.2rem,6vw,4.6rem);
  color:#fdf8ee;
  text-shadow:0 6px 26px rgba(0,0,0,.35);
}

.hero-sub{
  margin:0 0 30px;
  max-width:58ch;
  font-size:clamp(1rem,1.6vw,1.15rem);
  color:#e2d6c4;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:12px 30px;
  border-radius:var(--r);
  background:var(--teal);
  color:#0e1b18;
  font-weight:600;
  text-decoration:none;
  border-bottom:4px solid #3aa48f;
  box-shadow:0 12px 26px rgba(92,198,176,.26);
  transition:transform .25s ease-out,box-shadow .25s ease-out;
}

.hero-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(92,198,176,.32);
}

/* ---------- 正文 + 侧栏 ---------- */
.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 318px;
  align-items:start;
  gap:56px;
  margin-left:var(--rail);
  padding:76px 5vw 100px;
  max-width:1560px;
}

.doc{min-width:0}

.doc section{
  padding:46px 0;
  border-top:1px solid var(--line);
  scroll-margin-top:100px;
}

.doc section:first-child{
  padding-top:0;
  border-top:0;
}

.doc h2{
  font-size:clamp(1.5rem,2.6vw,2.05rem);
  margin-top:0;
  color:#14211e;
}

.doc h3{
  font-size:1.24rem;
  color:#1d302a;
}

.doc p{
  margin:0 0 18px;
  max-width:70ch;
}

.doc ul,
.doc ol{
  margin:0 0 22px;
  padding-left:22px;
}

.doc li{margin:0 0 10px}

.doc blockquote{
  margin:24px 0;
  padding:18px 22px;
  background:var(--paper-2);
  border-left:4px solid var(--clay);
  border-radius:6px 22px 22px 6px;
}

.doc a{
  color:#2c7b6c;
  text-decoration:underline;
  text-decoration-color:var(--teal);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.doc img{
  margin:24px 0;
  border-radius:var(--r);
  box-shadow:0 18px 42px rgba(23,38,35,.17);
}

.doc hr{margin:0 0 20px}

.side{
  position:sticky;
  top:34px;
  align-self:start;
  padding:26px 22px 22px;
  background:#fbf6ed;
  border:1px solid var(--line);
  border-bottom:4px solid var(--teal);
  border-radius:var(--r);
  box-shadow:0 16px 34px rgba(23,38,35,.09);
}

.side h2{
  font-size:1.14rem;
  margin:0 0 10px;
}

.side hr{
  width:44px;
  margin:0 0 14px;
}

.side-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 11px;
  font-size:16px;
  line-height:1.35;
  text-decoration:none;
  color:var(--ink);
  border-radius:14px;
  transition:background .2s ease-out,transform .2s ease-out;
}

.side-list a:hover{
  background:rgba(92,198,176,.2);
  transform:translateX(2px);
}

/* ---------- 页脚 ---------- */
.foot{
  margin-left:var(--rail);
  padding:68px 5vw 26px;
  background:linear-gradient(180deg,#172623 0%,#1d3029 100%);
  color:#e3d8c5;
  border-top:4px solid var(--teal);
}

.foot-cta h2{
  margin:0 0 12px;
  font-size:clamp(1.8rem,4vw,2.9rem);
  color:#fdf8ee;
}

.foot-cta hr{margin:0 0 22px}

.foot-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:12px 30px;
  border-radius:var(--r);
  background:var(--sand);
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  border-bottom:4px solid #b9a689;
  transition:transform .25s ease-out;
}

.foot-btn:hover{transform:translateY(-2px)}

.foot-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:34px;
  margin:48px 0 30px;
  padding-top:34px;
  border-top:1px solid rgba(212,196,168,.22);
}

.foot address{
  font-style:normal;
  font-family:'Righteous',sans-serif;
  font-size:1.16rem;
  line-height:1.55;
  letter-spacing:.03em;
  color:#f1e7d5;
}

.foot-col h3{
  font-size:1rem;
  margin:0 0 12px;
  color:var(--teal);
  letter-spacing:.06em;
}

.foot-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.foot-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  font-size:16px;
  text-decoration:none;
  color:#d7cab4;
  transition:color .2s ease-out;
}

.foot-list a:hover{color:var(--teal)}

.foot-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:22px;
  border-top:1px solid rgba(212,196,168,.22);
  font-size:16px;
  color:#b6a992;
}

.foot-bottom .copy{margin:0}

.foot-mini{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin:0;
  padding:0;
}

.foot-mini a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  text-decoration:none;
  color:#cbbda6;
}

.foot-mini a:hover{color:var(--teal)}

/* ---------- 入场 ---------- */
.js .doc article{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s ease-out,transform .6s ease-out;
}

.js .doc article.in{
  opacity:1;
  transform:none;
}

/* ---------- 平板 ---------- */
@media (max-width:1100px){
  .layout{grid-template-columns:minmax(0,1fr) 276px;gap:36px}
}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  :root{--rail:0px}

  body{padding-top:68px}

  .rail{
    inset:0 0 auto 0;
    width:auto;
    height:68px;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:1px solid rgba(212,196,168,.2);
    box-shadow:0 8px 22px rgba(23,38,35,.22);
  }

  .mark{width:46px;height:46px;border-radius:15px 15px 15px 5px}
  .mark-img{width:46px;height:46px}
  .mark-txt{font-size:21px}

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

  .rail-nav::-webkit-scrollbar{display:none}

  .rail-nav p{
    flex-direction:row;
    gap:6px;
  }

  .rail-nav a{
    min-height:44px;
    padding:10px 13px;
    white-space:nowrap;
  }

  .rail-nav a:nth-child(4){margin-top:0}

  .hero{
    min-height:82svh;
    padding:96px 20px 42px;
  }

  .hero h1{font-size:clamp(2rem,9vw,2.9rem)}

  .layout{
    grid-template-columns:minmax(0,1fr);
    gap:44px;
    margin-left:0;
    padding:52px 20px 72px;
  }

  .doc article{scroll-margin-top:86px}

  .side{position:static;order:2}

  .foot{margin-left:0;padding:52px 20px 24px}

  .foot-grid{grid-template-columns:minmax(0,1fr);gap:26px;margin-top:36px;padding-top:26px}

  .foot-bottom{font-size:16px}
}

@media (max-width:420px){
  .hero-kicker{letter-spacing:.12em}
  .doc h2{font-size:1.42rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .doc article{opacity:1;transform:none;transition:none}
  .rail-nav a,.side-list a,.hero-btn,.foot-btn{transition:none}
}

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