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

:root{
  --ink:#172623;
  --sand:#d4c4a8;
  --teal:#5cc6b0;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --paper:#f5efe5;
  --paper-2:#ece1d1;
  --card:#e3d7c3;
  --card-2:#eae0ce;
  --mut:#59665f;
  --r:28px;
  --r-sm:15px;
  --top:46px;
  --rail:238px;
  --shadow:0 22px 44px -28px rgba(23,38,35,.55);
  --font:'Nunito','DM Sans',ui-rounded,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  padding-top:var(--top);
  font-family:var(--font);
  font-size:17px;
  line-height:1.78;
  color:var(--ink);
  background:
    radial-gradient(1100px 620px at 82% -8%, #fbf3e6 0%, rgba(251,243,230,0) 62%),
    linear-gradient(180deg,var(--paper) 0%,#f0e8db 58%,#eadfcd 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  opacity:.42;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.34'/%3E%3C/svg%3E");
}

a{color:inherit}

h1,h2,h3{line-height:1.3;letter-spacing:-.01em}

img{max-width:100%;height:auto;display:block}

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

/* ---------- 顶部细条 ---------- */
.topbar{
  position:fixed;
  inset:0 0 auto 0;
  z-index:55;
  height:var(--top);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  background:linear-gradient(90deg,#cdeee6,#e9f4ee 55%,#dfeee2);
  border-bottom:1px solid rgba(23,38,35,.12);
}

.topbar-line{
  margin:0;
  font-size:16px;
  font-weight:800;
  letter-spacing:.06em;
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--clay);
  flex:none;
}

/* ---------- 侧栏导航 ---------- */
.nav-toggle{
  position:fixed;
  top:calc(var(--top) + 12px);
  right:12px;
  z-index:70;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:0 18px;
  font:inherit;
  font-weight:800;
  font-size:16px;
  color:var(--ink);
  background:var(--teal);
  border:0;
  border-radius:var(--r);
  box-shadow:var(--shadow);
  cursor:pointer;
}

.bars,
.bars::before,
.bars::after{
  display:block;
  width:16px;height:2px;
  background:var(--ink);
  border-radius:2px;
  content:"";
}

.bars{position:relative}
.bars::before{position:absolute;top:-5px;left:0}
.bars::after{position:absolute;top:5px;left:0}

.sidenav{
  position:fixed;
  top:0;bottom:0;left:0;
  z-index:60;
  width:min(84vw,320px);
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:calc(var(--top) + 16px) 18px 28px;
  overflow-y:auto;
  background:linear-gradient(180deg,#f3ebdd,#e6dac7);
  border-right:1px solid rgba(23,38,35,.1);
  box-shadow:26px 0 64px -40px rgba(23,38,35,.8);
  transform:translateX(-104%);
  transition:transform .36s cubic-bezier(.2,.7,.3,1);
}

.nav-open .sidenav{transform:none}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;height:56px;
  border-radius:20px 26px 22px 28px;
  background:var(--sand);
  box-shadow:inset 0 -4px 0 rgba(23,38,35,.12),0 10px 18px -14px rgba(23,38,35,.8);
  text-decoration:none;
  flex:none;
}

.mark-img{width:46px;height:46px;border-radius:14px;object-fit:cover}

.mark-text{
  font-size:26px;
  font-weight:900;
  color:var(--ink);
}

.nav-body{display:flex;flex-direction:column;gap:14px}

.nav-group{
  background:rgba(255,255,255,.42);
  border-radius:var(--r);
  padding:6px 12px 10px;
}

.nav-summary{
  list-style:none;
  cursor:pointer;
  min-height:44px;
  display:flex;
  align-items:center;
  font-size:16px;
  font-weight:900;
  letter-spacing:.14em;
  color:var(--mut);
}

.nav-summary::-webkit-details-marker{display:none}

.nav-summary::after{
  content:"";
  margin-left:auto;
  width:9px;height:9px;
  border-right:2px solid var(--mut);
  border-bottom:2px solid var(--mut);
  transform:rotate(45deg) translateY(-2px);
  transition:transform .25s ease-out;
}

.nav-group[open] > .nav-summary::after{transform:rotate(225deg) translateY(-2px)}

.nav-stack{display:flex;flex-direction:column;gap:2px}

.nav-link{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 12px;
  border-radius:16px;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  color:var(--ink);
  transition:background .2s ease-out,transform .2s ease-out;
}

.nav-link:hover,
.nav-link:focus-visible{
  background:var(--teal);
  transform:translateX(3px);
}

.nav-tail{
  margin:auto 0 0;
  font-size:16px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--mut);
}

/* ---------- 主区 ---------- */
main{padding:0 16px 64px}

.hero{
  position:relative;
  display:grid;
  place-items:center;
  min-height:100vh;
  min-height:100svh;
  overflow:hidden;
  padding:clamp(70px,12vh,130px) 0;
  text-align:center;
}

.hero-ghost{
  position:absolute;
  inset:0;
  z-index:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.02em;
  font-weight:900;
  font-size:clamp(4.4rem,24vw,15rem);
  line-height:.8;
  letter-spacing:-.05em;
  color:rgba(23,38,35,.09);
  user-select:none;
}

.hero-ghost span:nth-child(2){color:rgba(92,198,176,.32)}
.hero-ghost span:nth-child(3){color:rgba(198,123,92,.22)}

.hero-grain{
  position:absolute;
  right:-60px;
  bottom:-70px;
  z-index:1;
  width:270px;height:270px;
  margin:0;
  border-radius:46% 54% 60% 40% / 52% 44% 56% 48%;
  background:linear-gradient(150deg,rgba(92,198,176,.45),rgba(212,196,168,.1));
  filter:blur(.4px);
}

.hero-core{position:relative;z-index:2;max-width:20ch}

.hero-kicker{
  margin:0 0 16px;
  font-size:16px;
  font-weight:800;
  letter-spacing:.3em;
  text-transform:none;
  color:var(--olive);
}

.hero-title{
  margin:0;
  font-size:clamp(2.2rem,8.4vw,5rem);
  font-weight:900;
  line-height:1.12;
  letter-spacing:-.02em;
  text-wrap:balance;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  margin-top:clamp(22px,4vh,38px);
  padding:0 30px;
  font-size:17px;
  font-weight:900;
  text-decoration:none;
  color:var(--ink);
  background:var(--teal);
  border-radius:var(--r);
  box-shadow:inset 0 -5px 0 rgba(23,38,35,.15),var(--shadow);
  transition:transform .22s cubic-bezier(.2,.7,.3,1),box-shadow .22s ease-out;
}

.hero-cta:hover{transform:translateY(-3px)}

.body-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:26px;
  max-width:1160px;
  margin:0 auto;
  align-items:start;
}

/* ---------- 正文 ---------- */
.prose{min-width:0}

.prose > div{
  position:relative;
  margin:0 0 26px;
  padding:clamp(22px,4.6vw,44px);
  background:var(--card);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  scroll-margin-top:calc(var(--top) + 18px);
}

.prose > div:nth-child(even){background:var(--card-2)}

.prose > div:nth-child(3n) {
  border-radius:var(--r) 44px var(--r) 40px;
}

.prose h2{
  margin:0 0 16px;
  font-size:clamp(1.42rem,3.7vw,2.05rem);
  font-weight:900;
}

.prose h3{
  margin:26px 0 10px;
  font-size:clamp(1.16rem,2.6vw,1.42rem);
  font-weight:900;
}

.prose h2 > span,
.prose h3 > span,
.rail-title > span,
.foot-title > span{
  background-image:linear-gradient(transparent 64%,rgba(92,198,176,.62) 64%);
  background-repeat:no-repeat;
  background-size:100% 100%;
  padding-bottom:2px;
}

.prose p{margin:0 0 14px}
.prose p:last-child{margin-bottom:0}

.prose ul,
.prose ol{margin:0 0 14px;padding-left:1.3em}
.prose li{margin:0 0 8px}

.prose blockquote{
  margin:18px 0;
  padding:14px 20px;
  border-radius:var(--r-sm) var(--r) var(--r-sm) var(--r);
  background:rgba(255,255,255,.55);
  color:var(--mut);
}

.prose figure{margin:18px 0}
.prose img{border-radius:20px}
.prose a{color:#2c6f61;text-underline-offset:3px}
.prose strong{font-weight:900}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:calc(var(--top) + 16px);
  padding:20px 18px;
  background:var(--sand);
  border-radius:var(--r) var(--r) 38px 38px;
  box-shadow:var(--shadow);
}

.rail-title{
  margin:0 0 10px;
  font-size:17px;
  font-weight:900;
  letter-spacing:.22em;
  color:#3d4a42;
}

.rail-nav{display:flex;flex-direction:column}

.rail-link{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 2px;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px dashed rgba(23,38,35,.18);
}

.rail-link:last-child{border-bottom:0}
.rail-link:hover{color:#2c6f61}

.rail-tail{
  margin:14px 0 0;
  font-size:16px;
  font-weight:900;
  letter-spacing:.2em;
  color:#4a574f;
}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  padding:44px 18px 30px;
  background:linear-gradient(180deg,#1c2d29,#131f1c);
  color:#e6e0d3;
  border-radius:44px 44px 0 0;
}

.foot-logo{
  display:inline-block;
  font-size:clamp(2rem,7vw,3.4rem);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.1;
  text-decoration:none;
  color:var(--teal);
}

.foot-tag{
  margin:8px 0 0;
  font-size:16px;
  font-weight:800;
  letter-spacing:.22em;
  color:rgba(230,224,211,.72);
}

.foot-title{
  margin:0 0 8px;
  font-size:17px;
  font-weight:900;
  letter-spacing:.22em;
  color:rgba(230,224,211,.7);
}

.foot-nav dl{margin:0 0 12px}

.foot-nav dt{margin:0}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:2px 0;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  color:#e6e0d3;
  border-bottom:1px solid transparent;
}

.foot-nav a:hover{border-bottom-color:var(--teal)}

.foot-legal{
  text-align:center;
  font-size:16px;
  color:rgba(230,224,211,.72);
}

.foot-legal p{margin:0 0 6px}

.copy{font-weight:900;letter-spacing:.1em}

.host{word-break:break-all}

/* ---------- 动效 ---------- */
.js .prose > div,
.js .rail,
.js .foot > *{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .72s ease-out,transform .72s cubic-bezier(.2,.7,.3,1);
}

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

/* ---------- 断点 ---------- */
@media (min-width:640px){
  .foot{grid-template-columns:1.5fr 1fr 1fr 1fr;align-items:start}
  .foot-legal{text-align:center;grid-column:4}
}

@media (min-width:900px){
  body{padding-left:var(--rail)}

  .nav-toggle{display:none}

  .topbar{justify-content:flex-start;padding-left:calc(var(--rail) + 24px)}

  .sidenav{
    width:var(--rail);
    transform:none;
    box-shadow:none;
    border-right:1px solid rgba(23,38,35,.1);
  }

  .hero-ghost{font-size:clamp(6rem,15vw,14rem)}
}

@media (min-width:1000px){
  .body-wrap{grid-template-columns:minmax(0,1fr) 302px}
  main{padding:0 30px 80px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .sidenav,
  .nav-link,
  .hero-cta,
  .js .prose > div,
  .js .rail,
  .js .foot > *{transition:none}
  .js .prose > div,
  .js .rail,
  .js .foot > *{opacity:1;transform:none}
}

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