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

:root{
  --ink:#172623;
  --jade:#5cc6b0;
  --sand:#d4c4a8;
  --jade-deep:#3d9e8a;
  --jade-soft:#d3efe8;
  --sand-soft:#f2e9d8;
  --sand-line:#c8b493;
  --page:#ede2cf;
  --r:28px;
  --max:1120px;
  --disp:"Russo One","Chakra Petch","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --body:"Chakra Petch","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;
  font-family:var(--body);
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background-color:var(--page);
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.16'/%3E%3C/svg%3E");
  overflow-x:hidden;
}

html.drawer-open,
html.drawer-open body{overflow:hidden}

img,svg,video{max-width:100%}
a{color:inherit}

/* ---------- 顶部两行 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(237,226,207,.95);
  backdrop-filter:blur(7px);
  border-bottom:2px solid var(--ink);
}

.brandline{
  max-width:var(--max);
  margin:0 auto;
  padding:9px 16px 5px;
}

.marklink{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:var(--ink);
}

.mark{display:inline-flex}
.mark-img{display:block;width:40px;height:40px;border-radius:13px;object-fit:cover}
.mark-glyph{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 8px;
  border-radius:13px 20px 13px 20px;
  background:var(--jade);
  font-family:var(--disp);
  font-size:20px;
}
.brand{
  font-family:var(--disp);
  font-size:clamp(20px,4.2vw,28px);
  letter-spacing:.045em;
  line-height:1.1;
}

.barline{
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.drawer{display:block}

.drawer > summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 20px;
  border-radius:999px;
  background:var(--ink);
  color:var(--sand);
  font-weight:600;
  font-size:16px;
  letter-spacing:.12em;
  user-select:none;
  transition:background .25s ease-out,color .25s ease-out;
}
.drawer > summary::-webkit-details-marker{display:none}
.drawer > summary::before{
  content:"";
  width:17px;
  height:2px;
  background:currentColor;
  box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor;
}
.drawer[open] > summary{
  position:fixed;
  top:13px;
  right:16px;
  z-index:70;
  background:var(--jade);
  color:var(--ink);
}
.drawer[open] > summary::before{display:none}

.drawer-panel{display:none}
.drawer[open] .drawer-panel{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:72px 20px 30px;
  overflow:auto;
  color:var(--sand);
  background-color:var(--ink);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g2)' opacity='0.12'/%3E%3C/svg%3E");
  animation:veil .3s ease-out;
}
@keyframes veil{from{opacity:0}to{opacity:1}}

.sbox{display:flex;gap:8px;width:100%;max-width:560px}
.sbox input{
  flex:1 1 auto;
  min-width:0;
  min-height:50px;
  padding:0 18px;
  font:inherit;
  font-size:16px;
  color:var(--sand);
  background:rgba(212,196,168,.08);
  border:2px solid rgba(212,196,168,.4);
  border-radius:999px;
}
.sbox input::placeholder{color:rgba(212,196,168,.7)}
.sbox button{
  flex:0 0 auto;
  min-height:50px;
  padding:0 24px;
  font:inherit;
  font-weight:700;
  color:var(--ink);
  background:var(--jade);
  border:0;
  border-radius:999px;
  cursor:pointer;
}

.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
}
.menu a{
  display:flex;
  align-items:center;
  min-height:54px;
  font-family:var(--disp);
  font-size:clamp(19px,4.8vw,30px);
  letter-spacing:.02em;
  color:var(--sand);
  text-decoration:none;
  border-bottom:1px solid rgba(212,196,168,.22);
  transition:color .2s ease-out,transform .25s ease-out;
}
.menu a:hover,.menu a:focus-visible{color:var(--jade);transform:translateX(6px)}

.drawer-foot{
  margin:auto 0 0;
  font-size:16px;
  letter-spacing:.06em;
  color:rgba(212,196,168,.62);
}

/* ---------- 主区 ---------- */
.stage{
  max-width:var(--max);
  margin:0 auto;
  padding:16px 16px 34px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 274px;
  gap:22px;
  align-items:start;
}

.hero{
  grid-column:1 / -1;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
  padding:26px 20px 22px;
  border-radius:var(--r);
  background-color:var(--sand-soft);
  background-image:radial-gradient(circle at 1px 1px,rgba(23,38,35,.17) 1.2px,transparent 1.9px);
  background-size:22px 22px;
  box-shadow:inset 0 0 0 1px rgba(23,38,35,.06);
  overflow:hidden;
}

.hero-h{
  margin:0;
  font-family:var(--disp);
  font-size:clamp(27px,6.2vw,52px);
  line-height:1.12;
  letter-spacing:.02em;
  text-wrap:balance;
}

.lede{
  margin:0;
  max-width:44ch;
  font-size:17px;
  line-height:1.65;
  color:#2d4842;
}

.hero-fig{
  margin:8px 0 0;
  width:100%;
  max-width:560px;
}
.hero-art{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:22px;
  box-shadow:0 26px 44px -32px rgba(0,0,0,.85);
  will-change:transform;
}

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

main article > section{
  position:relative;
  margin:0 0 18px;
  padding:24px 22px;
  border-radius:var(--r);
  background:var(--sand-soft);
  box-shadow:0 14px 28px -24px rgba(23,38,35,.9);
  scroll-margin-top:150px;
  transition:transform .4s cubic-bezier(.22,.9,.3,1),box-shadow .4s ease-out;
}
main article > section:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 34px -24px rgba(23,38,35,.95);
}
main article > section:nth-of-type(even){background:#eae0cc}

main article h2{
  margin:0 0 12px;
  font-family:var(--disp);
  font-size:clamp(20px,3.3vw,27px);
  line-height:1.32;
  letter-spacing:.01em;
}
main article h2::after{
  content:"";
  display:block;
  width:54px;
  height:5px;
  margin-top:11px;
  border-radius:3px;
  background:var(--jade);
}
main article h3{
  margin:20px 0 8px;
  font-family:var(--disp);
  font-size:19px;
  line-height:1.4;
}

main article p{margin:0 0 14px;font-size:17px;line-height:1.78}
main article p:last-child{margin-bottom:0}
main article ul,main article ol{pargin:0 0 14px;padding-left:22px}
main article li{margin:6px 0;line-height:1.7}
main article li::marker{color:var(--jade-deep)}

main article a{
  color:#123f37;
  text-decoration:underline;
  text-decoration-color:var(--jade);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
main article a:hover{background:var(--jade-soft)}

main article img{border-radius:18px;height:auto}
main article blockquote{
  margin:0 0 14px;
  padding:12px 16px;
  border-radius:16px;
  background:var(--jade-soft);
}
main article blockquote p:last-child{margin-bottom:0}

main article table{width:100%;border-collapse:collapse;font-size:16px}
main article th,main article td{padding:9px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--sand-line);word-break:break-word}
main article th{font-family:var(--disp);font-weight:400}

/* ---------- 侧栏 ---------- */
.side{
  position:sticky;
  top:126px;
  padding:18px 16px;
  border-radius:var(--r);
  background:#e3d6bd;
  box-shadow:0 16px 30px -26px rgba(23,38,35,.95);
}
.side small{
  display:block;
  font-size:16px;
  letter-spacing:.14em;
  color:var(--jade-deep);
}
.side h2{
  margin:2px 0 12px;
  font-family:var(--disp);
  font-size:21px;
  line-height:1.3;
}
.toc{display:flex;flex-direction:column}
.toc a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:4px 0 4px 13px;
  font-size:16px;
  text-decoration:none;
  color:#1f3a34;
  border-left:2px solid rgba(23,38,35,.18);
  transition:border-color .22s ease-out,padding-left .22s ease-out,color .22s ease-out;
}
.toc a:hover,.toc a:focus-visible{
  padding-left:18px;
  border-left-color:var(--jade-deep);
  color:var(--ink);
}
.side-fig{margin-top:14px}
.side-art{display:block;width:100%;height:auto;border-radius:18px;object-fit:cover}

/* ---------- 页脚 ---------- */
.base{
  margin-top:26px;
  padding:34px 18px 26px;
  color:var(--sand);
  background-color:var(--ink);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g3'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g3)' opacity='0.1'/%3E%3C/svg%3E");
  border-radius:34px 34px 0 0;
}

.cta{
  max-width:var(--max);
  margin:0 auto;
  padding-bottom:22px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid rgba(212,196,168,.26);
}
.cta-word{
  margin:0;
  font-family:var(--disp);
  font-size:clamp(24px,6vw,44px);
  line-height:1.15;
  letter-spacing:.03em;
}
.cta-go{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 26px;
  border-radius:999px;
  background:var(--jade);
  color:var(--ink);
  font-weight:700;
  text-decoration:none;
  transition:transform .25s ease-out,background .25s ease-out;
}
.cta-go:hover{transform:translateY(-2px);background:#74d8c5}

.base-line{
  max-width:var(--max);
  margin:16px auto 0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 18px;
}
.copy{margin:0;font-size:16px;color:rgba(212,196,168,.78)}
.footnav{display:flex;flex-wrap:wrap;gap:0 14px}
.footnav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:var(--sand);
  text-decoration:none;
  transition:color .2s ease-out;
}
.footnav a:hover{color:var(--jade)}

:focus-visible{outline:3px solid var(--jade-deep);outline-offset:2px}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .stage{grid-template-columns:minmax(0,1fr);gap:18px;padding:12px 14px 28px}
  .side{position:static;top:auto}
  .hero{min-height:0;padding:22px 16px 18px}
  .hero-art{aspect-ratio:16/10}
  main div > article{scroll-margin-top:130px;padding:20px 17px}
}

@media (max-width:520px){
  .brandline{padding:8px 14px 4px}
  .barline{padding:0 14px 9px}
  .sbox{max-width:none}
  .cta{padding-bottom:18px}
  .base-line{justify-content:flex-start}
  .footnav{gap:0 12px}
}

@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}
