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

:root{
  --mint:#5cc6b0;
  --mint-deep:#2f8b7c;
  --sand:#d4c4a8;
  --ink:#172623;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --line:rgba(23,38,35,.13);
  --shadow:0 18px 40px -28px rgba(23,38,35,.75);
}

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

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-bottom:96px;
}

body{
  margin:0;
  font-family:Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  background:linear-gradient(180deg,#f9f4ea 0%,#f1e8d9 55%,#e9dfcc 100%);
  background-attachment:fixed;
  padding-bottom:88px;
  overflow-x:hidden;
}

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

body.lock{overflow:hidden}

h1,h2,h3{
  font-family:Newsreader,Georgia,"Songti SC",serif;
  font-weight:600;
  line-height:1.22;
  letter-spacing:.01em;
}

a{color:var(--mint-deep)}

/* ---------- 底部固定条 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:40;
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem .7rem;
  padding-bottom:calc(.55rem + env(safe-area-inset-bottom));
  background:rgba(23,38,35,.93);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(212,196,168,.28);
}

.mark{
  flex:0 0 auto;
  width:46px;height:44px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:14px 11px 15px 10px;
  background:linear-gradient(150deg,var(--mint),#89ddcb);
  color:#0d1a17;
  font-family:Newsreader,serif;
  font-size:1.3rem;
  font-weight:700;
  text-decoration:none;
}

.mark img{width:100%;height:100%;object-fit:cover;display:block}

.dock-nav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.dock-nav::-webkit-scrollbar{display:none}

.dock-nav p{display:flex;gap:.2rem;margin:0}

.dock-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 .72rem;
  border-radius:999px;
  color:#e9decb;
  font-size:.95rem;
  text-decoration:none;
  white-space:nowrap;
  transition:background .25s ease-out,color .25s ease-out;
}

.dock-nav a:hover,
.dock-nav a:focus-visible{background:rgba(92,198,176,.22);color:#fff}

.burger{
  flex:0 0 auto;
  min-width:62px;
  min-height:44px;
  padding:0 .85rem;
  border:1px solid rgba(92,198,176,.55);
  border-radius:999px;
  background:transparent;
  color:#bfeee3;
  font:inherit;
  font-size:.95rem;
  cursor:pointer;
  transition:background .25s ease-out;
}
.burger:hover,.burger:focus-visible{background:rgba(92,198,176,.2)}

/* ---------- 大图 ---------- */
.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  padding:3rem 1.25rem 3.6rem;
  background:linear-gradient(140deg,#23372f,#172623 45%,#3b3226);
  clip-path:polygon(0 0,100% 0,100% 92%,0 100%);
}

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

.hero-shot{position:absolute;inset:0;opacity:0;animation:shotCycle 21s ease-in-out infinite}
.hero-shot:first-child{opacity:1}
.hero-media.single .hero-shot{opacity:1;animation:none}

.hero-img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.05);
}

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

.hero-copy{position:relative;z-index:2;width:100%;max-width:1140px;margin:0 auto}

.hero h1{
  margin:0;
  max-width:22ch;
  color:#f8f2e7;
  font-size:clamp(1.9rem,5.4vw,3.4rem);
  text-shadow:0 2px 22px rgba(0,0,0,.4);
}

@keyframes shotCycle{
  0%{opacity:0}
  5%{opacity:1}
  28%{opacity:1}
  33%{opacity:0}
  100%{opacity:0}
}

/* ---------- 主体网格 ---------- */
.layout{
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:2.2rem;
  max-width:1140px;
  margin:0 auto;
  padding:2.3rem 1.25rem 2rem;
  align-items:start;
}

.rail{position:sticky;top:1.5rem}

.rail h2{
  margin:0 0 .15rem;
  font-size:1.15rem;
  letter-spacing:.14em;
}

.rail .subtitle{
  margin:0 0 .95rem;
  font-size:.9rem;
  letter-spacing:.16em;
  color:var(--olive);
}

.rail ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.1rem;
  border-left:2px solid rgba(92,198,176,.42);
}

.rail a{
  display:flex;
  align-items:center;
  gap:.6rem;
  min-height:40px;
  padding:.2rem .5rem .2rem .8rem;
  border-radius:0 10px 10px 0;
  color:#31423c;
  font-size:16px;
  text-decoration:none;
  transition:background .25s ease-out,color .25s ease-out;
}

.rail a span{
  font-family:Newsreader,serif;
  font-size:.82rem;
  letter-spacing:.06em;
  color:var(--clay);
}

.rail a:hover{background:rgba(92,198,176,.2);color:var(--ink)}

.wrap{max-width:760px}

/* ---------- 正文玻璃卡 ---------- */
.prose>section{
  position:relative;
  margin:0 0 1.15rem;
  padding:1.45rem 1.3rem;
  border-radius:10px 18px 10px 16px;
  background:linear-gradient(158deg,rgba(255,255,255,.68),rgba(255,255,255,.32));
  border:1px solid rgba(255,255,255,.78);
  backdrop-filter:blur(8px);
  box-shadow:var(--shadow);
  scroll-margin-top:1.25rem;
  scroll-margin-bottom:96px;
  transition:transform .4s ease-out,box-shadow .4s ease-out;
}

.prose>section::before{
  content:"";
  position:absolute;
  left:1.3rem;top:0;
  width:46px;height:3px;
  border-radius:0 0 3px 3px;
  background:linear-gradient(90deg,var(--mint),var(--sand));
}

.prose>article:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 46px -30px rgba(23,38,35,.9);
}

.prose h2{
  margin:.1rem 0 .5rem;
  font-size:clamp(1.35rem,2.6vw,1.78rem);
}

.prose p.subtitle{
  margin:0 0 .95rem;
  font-size:.98rem;
  letter-spacing:.03em;
  color:var(--olive);
}

.prose p{margin:0 0 .95rem}
.prose p:last-child{margin-bottom:0}

.prose a{
  color:var(--mint-deep);
  text-decoration:underline;
  text-decoration-color:rgba(92,198,176,.6);
  text-underline-offset:3px;
}

.prose ul,.prose ol{margin:0 0 .95rem;padding-left:1.25rem}
.prose li{margin:.2rem 0}

.prose img{max-width:100%;height:auto;border-radius:10px;display:block;margin:.4rem 0 1rem}

.prose blockquote{
  margin:0 0 .95rem;
  padding:.6rem 0 .6rem 1rem;
  border-left:3px solid var(--sand);
  color:#3c4b44;
}

.prose table{width:100%;border-collapse:collapse;margin:0 0 1rem;font-size:16px}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:.5rem .4rem;text-align:left}

.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.92em;
  background:rgba(23,38,35,.08);
  padding:.05em .35em;
  border-radius:5px;
}

/* ---------- 页脚 ---------- */
footer{
  max-width:1140px;
  margin:0 auto;
  padding:0 1.25rem 2.5rem;
  text-align:center;
  border-top:1px solid var(--line);
}

footer p{margin:2.2rem 0 1.3rem}

footer .cta a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 2.1rem;
  border-radius:999px;
  background:linear-gradient(140deg,var(--mint),#8bdece);
  color:#0f1f1b;
  font-weight:700;
  letter-spacing:.08em;
  text-decoration:none;
  box-shadow:0 18px 30px -22px rgba(92,198,176,.95);
  transition:transform .35s ease-out;
}

footer .cta a:hover{transform:translateY(-2px)}

footer small{
  display:block;
  color:#5c6b62;
  font-size:.95rem;
  letter-spacing:.06em;
}

/* ---------- 整页菜单 ---------- */
.sheet{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:1.2rem;
  padding:1.1rem 1.15rem 2rem;
  background:linear-gradient(170deg,#1c302b,#172623 55%,#251f18);
  color:#f2ebdd;
  overflow-y:auto;
  transform:translateY(102%);
  visibility:hidden;
  transition:transform .45s cubic-bezier(.22,.8,.28,1),visibility .45s;
}

.sheet.open{transform:none;visibility:visible}

.sheet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

.sheet-brand{
  margin:0;
  font-family:Newsreader,serif;
  font-size:1.2rem;
  letter-spacing:.05em;
}

.sheet-close{
  min-height:44px;
  padding:0 1.05rem;
  border:1px solid rgba(212,196,168,.5);
  border-radius:999px;
  background:transparent;
  color:#f2ebdd;
  font:inherit;
  font-size:.95rem;
  cursor:pointer;
}

.sheet-nav p{display:flex;flex-direction:column;gap:.1rem;margin:0}

.sheet-nav a{
  display:flex;
  align-items:center;
  min-height:54px;
  padding:.2rem .2rem;
  border-bottom:1px solid rgba(212,196,168,.16);
  color:#f2ebdd;
  font-family:Newsreader,serif;
  font-size:1.35rem;
  text-decoration:none;
  transition:color .25s ease-out,padding-left .25s ease-out;
}

.sheet-nav a:hover,.sheet-nav a:focus-visible{color:var(--mint);padding-left:.5rem}

/* ---------- 断点 ---------- */
@media (max-width:880px){
  .layout{
    grid-template-columns:minmax(0,1fr);
    gap:1.5rem;
    padding-top:1.7rem;
  }
  .rail{position:static}
  .rail ol{
    flex-direction:row;
    flex-wrap:wrap;
    gap:.4rem;
    border-left:0;
  }
  .rail a{
    border-radius:999px;
    padding:.25rem .8rem;
    background:rgba(255,255,255,.55);
    border:1px solid rgba(255,255,255,.85);
  }
  .rail a span{font-size:.78rem}
  .hero{padding:2.5rem 1.1rem 3rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-shot{animation:none;opacity:0}
  .hero-shot:first-child{opacity:1}
  .prose>article,footer .cta a,.dock-nav a,.rail a{transition:none}
  .prose>article:hover{transform:none}
}

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