@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

:root{
  --ink:#172623;
  --ink-soft:#3f534c;
  --sand:#d4c4a8;
  --paper:#f6f1e7;
  --card:#fffaf2;
  --mint:#5cc6b0;
  --clay:#b8714f;
  --line:rgba(23,38,35,.16);
  --shadow:0 24px 46px -32px rgba(23,38,35,.6);
  --font:'Rubik','Nunito Sans',system-ui,-apple-system,'Segoe UI','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.66;
  font-weight:400;
  color:var(--ink);
  background:var(--paper);
  background-image:
    radial-gradient(1200px 600px at 82% -8%,rgba(92,198,176,.16),transparent 62%),
    radial-gradient(900px 520px at 4% 4%,rgba(212,196,168,.55),transparent 60%);
  background-repeat:no-repeat;
}

body.lock{overflow:hidden}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:5;
  pointer-events:none;
  opacity:.055;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size:160px 160px;
}

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

/* ---------- 顶栏 ---------- */
.topbar{
  position:relative;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.8rem clamp(1rem,4vw,2.5rem);
  border-bottom:1px solid var(--line);
  background:rgba(246,241,231,.92);
  backdrop-filter:blur(6px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  padding:.2rem 0;
  max-width:62vw;
  color:var(--ink);
  font-size:1.06rem;
  font-weight:600;
  letter-spacing:.01em;
  text-decoration:none;
  line-height:1.2;
}

.brand__logo{
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:cover;
  flex:0 0 auto;
}

/* ---------- 全屏菜单 ---------- */
.drawer{position:relative}

.drawer > summary{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  padding:.5rem 1rem;
  list-style:none;
  cursor:pointer;
  font-size:16px;
  font-weight:500;
  letter-spacing:.1em;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--ink);
  border-radius:999px;
  transition:background .25s ease-out,color .25s ease-out,border-color .25s ease-out;
}

.drawer > summary::-webkit-details-marker{display:none}

.drawer > summary .bars{display:grid;gap:4px}

.drawer > summary .bars i{
  display:block;
  width:16px;
  height:2px;
  background:currentColor;
  transition:transform .25s ease-out;
}

.drawer[open] > summary{
  position:relative;
  z-index:61;
  background:var(--mint);
  border-color:var(--mint);
  color:var(--ink);
}

.drawer[open] > summary .bars i:first-child{transform:translateY(3px) rotate(45deg)}
.drawer[open] > summary .bars i:last-child{transform:translateY(-3px) rotate(-45deg)}

.drawer > menu{
  position:fixed;
  inset:0;
  z-index:60;
  margin:0;
  padding:clamp(4.6rem,12vh,7rem) clamp(1.25rem,6vw,3.5rem) 2rem;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:.1rem;
  overflow:auto;
  background:var(--ink);
  background-image:radial-gradient(760px 420px at 88% 108%,rgba(92,198,176,.22),transparent 65%);
}

.drawer > menu li{
  opacity:0;
  animation:rise .52s cubic-bezier(.2,.7,.3,1) both;
}

.drawer > menu li:nth-child(1){animation-delay:.03s}
.drawer > menu li:nth-child(2){animation-delay:.08s}
.drawer > menu li:nth-child(3){animation-delay:.13s}
.drawer > menu li:nth-child(4){animation-delay:.18s}
.drawer > menu li:nth-child(5){animation-delay:.23s}
.drawer > menu li:nth-child(6){animation-delay:.28s}
.drawer > menu li:nth-child(7){animation-delay:.33s}

.drawer > menu a{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:.55rem .4rem;
  color:var(--sand);
  font-size:clamp(1.3rem,4.4vw,1.95rem);
  font-weight:500;
  letter-spacing:.02em;
  text-decoration:none;
  border-bottom:1px solid rgba(212,196,168,.18);
  transition:color .25s ease-out,padding-left .25s ease-out;
}

.drawer > menu a:hover,
.drawer > menu a:focus-visible{
  color:var(--mint);
  padding-left:1rem;
}

@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

/* ---------- 粘性锚点条 ---------- */
.subbar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  gap:.4rem;
  overflow-x:auto;
  padding:.55rem clamp(1rem,4vw,2.5rem);
  background:rgba(239,231,216,.96);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
  scrollbar-width:thin;
}

.subbar a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.3rem .85rem;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  background:rgba(255,250,242,.75);
  border:1px solid var(--line);
  border-radius:999px;
  transition:background .25s ease-out,border-color .25s ease-out;
}

.subbar a:hover,
.subbar a:focus-visible{
  background:var(--mint);
  border-color:var(--mint);
}

/* ---------- 布局 ---------- */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  gap:0 clamp(1.5rem,4vw,3.25rem);
  padding:0 clamp(1rem,4vw,2.5rem);
}

/* ---------- 首屏 ---------- */
.hero{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  align-items:center;
  gap:clamp(1.25rem,4vw,3.5rem);
  min-height:100vh;
  min-height:100svh;
  padding:clamp(1.5rem,4vw,3rem) 0;
}

.hero__copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.1rem;
  text-align:center;
}

.hero h1{
  margin:0;
  font-size:clamp(2rem,5vw,3.5rem);
  line-height:1.12;
  font-weight:600;
  letter-spacing:-.02em;
}

.hero p{
  margin:0;
  max-width:32ch;
  font-size:16px;
  color:var(--ink-soft);
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.hero__media{
  position:relative;
  width:100%;
  aspect-ratio:4 / 5;
  max-height:76svh;
  overflow:hidden;
  border-radius:58px 18px 58px 18px;
  background:linear-gradient(150deg,#e7dcc6,#c7bba2);
  box-shadow:var(--shadow);
}

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

.hero__num{
  position:absolute;
  left:-.05em;
  bottom:-.18em;
  font-size:clamp(5rem,17vw,13rem);
  line-height:.72;
  font-weight:700;
  letter-spacing:-.06em;
  color:rgba(246,241,231,.45);
  pointer-events:none;
}

/* ---------- 正文 ---------- */
article{
  min-width:0;
  counter-reset:sec;
  padding-top:clamp(1rem,3vw,2rem);
}

article > div{
  max-width:68ch;
  padding:clamp(1.75rem,5vw,3.25rem) 0;
  border-top:1px solid var(--line);
  scroll-margin-top:78px;
}

article > div:first-child{
  border-top:0;
  padding-top:clamp(1rem,3vw,2rem);
}

article > div::before{
  counter-increment:sec;
  content:counter(sec,decimal-leading-zero);
  display:block;
  margin-bottom:.55rem;
  font-size:16px;
  font-weight:600;
  letter-spacing:.22em;
  color:var(--clay);
}

article h2{
  margin:0 0 .85rem;
  font-size:clamp(1.4rem,3vw,1.9rem);
  line-height:1.28;
  font-weight:600;
  letter-spacing:-.01em;
}

article h2 span{
  background:linear-gradient(transparent 64%,rgba(92,198,176,.45) 64%);
}

article h3{
  margin:1.6rem 0 .6rem;
  font-size:clamp(1.15rem,2.4vw,1.35rem);
  line-height:1.35;
  font-weight:600;
}

article h3 span{
  background:linear-gradient(transparent 68%,rgba(212,196,168,.85) 68%);
}

article p{margin:0 0 1rem}
article strong{font-weight:600}

article a{
  color:#1f6b5b;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}

article ul,
article ol{
  margin:0 0 1.1rem;
  padding-left:1.25rem;
}

article li{margin-bottom:.4rem}
article li::marker{color:var(--clay)}

article figure{margin:1.5rem 0}
article figure img{border-radius:4px;box-shadow:var(--shadow)}
article figcaption{margin-top:.5rem;font-size:16px;color:var(--ink-soft)}

article blockquote{
  margin:1.5rem 0;
  padding:1rem 1.25rem;
  background:var(--card);
  border-left:3px solid var(--mint);
  border-radius:0 4px 4px 0;
  box-shadow:var(--shadow);
}

article blockquote p:last-child{margin-bottom:0}

article table{
  width:100%;
  margin:1rem 0;
  border-collapse:collapse;
  font-size:16px;
}

article th,
article td{
  padding:.55rem .6rem;
  border:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

article th{background:rgba(212,196,168,.42);font-weight:600}

article hr{
  margin:2rem 0;
  border:0;
  border-top:1px solid var(--line);
}

/* ---------- 侧栏 ---------- */
aside{
  align-self:start;
  position:sticky;
  top:78px;
  padding-top:clamp(1.5rem,4vw,2rem);
  min-width:0;
}

.side{
  padding:1rem 1rem 1.15rem;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:var(--shadow);
}

.side h2{
  margin:0 0 .75rem;
  font-size:16px;
  font-weight:600;
  letter-spacing:.14em;
}

.side h2 span{
  border-bottom:2px solid var(--mint);
  padding-bottom:.22rem;
}

.side ol{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:side;
}

.side li{counter-increment:side}

.side a{
  display:flex;
  align-items:baseline;
  gap:.55rem;
  min-height:40px;
  padding:.45rem .15rem;
  font-size:16px;
  line-height:1.4;
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px dashed var(--line);
  transition:color .25s ease-out;
}

.side a::before{
  content:counter(side,decimal-leading-zero);
  font-size:16px;
  font-weight:600;
  color:var(--clay);
  flex:0 0 auto;
}

.side a:hover,
.side a:focus-visible{color:var(--clay)}

.side li:last-child a{border-bottom:0}

/* ---------- 页脚 ---------- */
footer{
  margin-top:clamp(2.5rem,7vw,5rem);
  padding:clamp(2rem,6vw,3.5rem) clamp(1rem,4vw,2.5rem) 1.75rem;
  background:var(--ink);
  background-image:radial-gradient(720px 380px at 12% 116%,rgba(92,198,176,.2),transparent 66%);
  color:var(--sand);
}

.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  padding-bottom:clamp(1.5rem,5vw,2.25rem);
  border-bottom:1px solid rgba(212,196,168,.22);
}

.cta h2{
  margin:0;
  max-width:24ch;
  font-size:clamp(1.55rem,4.4vw,2.5rem);
  line-height:1.16;
  font-weight:600;
  color:var(--paper);
}

.cta h2 span{
  background:linear-gradient(transparent 70%,rgba(92,198,176,.6) 70%);
}

.cta__btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 1.45rem;
  font-size:16px;
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  background:var(--mint);
  border-radius:999px;
  box-shadow:0 14px 26px -16px rgba(92,198,176,.95);
  transition:transform .22s ease-out;
}

.cta__btn:hover,
.cta__btn:focus-visible{transform:translateY(-2px)}

.fgrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.5rem clamp(1rem,3vw,2rem);
  margin-top:clamp(1.75rem,5vw,2.5rem);
}

.fgrid dt{
  margin-bottom:.55rem;
  font-size:16px;
  font-weight:500;
  letter-spacing:.16em;
  color:var(--mint);
}

.fgrid dd{
  margin:0;
  font-size:16px;
}

.fgrid dd a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.2rem 0;
  color:var(--sand);
  text-decoration:none;
  transition:color .25s ease-out;
}

.fgrid dd a:hover,
.fgrid dd a:focus-visible{color:var(--mint)}

.brandmark{
  display:block;
  font-size:1.02rem;
  font-weight:600;
  color:var(--paper);
  line-height:1.5;
}

.copy{
  margin:1.75rem 0 0;
  font-size:16px;
  color:rgba(212,196,168,.68);
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  main{grid-template-columns:minmax(0,1fr)}
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    padding:1.25rem 0 0;
    gap:1.25rem;
  }
  .hero__copy{order:1}
  .hero__media{order:2;aspect-ratio:16 / 11;max-height:none;border-radius:38px 14px 38px 14px}
  .hero__num{font-size:clamp(4rem,20vw,7rem)}
  aside{
    position:static;
    order:3;
    padding-top:clamp(1.75rem,5vw,2.5rem);
  }
  .side{box-shadow:none}
  article > div{scroll-margin-top:72px}
}

@media (max-width:620px){
  .fgrid{grid-template-columns:1fr 1fr}
  .fgrid dl:nth-child(3){grid-column:1 / -1}
  .cta{flex-direction:column;align-items:flex-start}
}

@media (max-width:420px){
  .brand{font-size:16px}
  .hero h1{font-size:clamp(1.75rem,8vw,2.2rem)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

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