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

:root{
  --ink:#172623;
  --ink-soft:rgba(23,38,35,.76);
  --sand:#f7f2e8;
  --sand-2:#efe6d6;
  --sand-3:#e3d7c0;
  --mint:#5cc6b0;
  --mint-deep:#3ea691;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --line:rgba(23,38,35,.16);
  --line-soft:rgba(23,38,35,.09);
  --r:18px;
  --gutter:clamp(1.1rem,4vw,3rem);
  --serif:"Cormorant Infant","Songti SC","Noto Serif SC",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --script:"Great Vibes",cursive;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:hidden}
body{
  margin:0;
  background:var(--sand);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  padding-bottom:5.5rem;
  overflow-x:clip;
  max-width:100%;
}
body::after{
  content:"";position:fixed;inset:0;z-index:9;pointer-events:none;opacity:.42;
  mix-blend-mode:multiply;
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
p{margin:0 0 1rem}
hr{border:0;height:1px;background:var(--line);margin:1.1rem 0}

.wrap{width:100%;max-width:1160px;margin:0 auto;padding-inline:var(--gutter)}

/* 底部固定条 */
.bar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  display:flex;align-items:center;gap:.6rem;
  padding:.55rem clamp(.9rem,3vw,2rem) calc(.55rem + env(safe-area-inset-bottom,0px));
  background:rgba(247,242,232,.93);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border-top:1px solid var(--line);
  transition:box-shadow .4s var(--ease);
}
.bar.is-scrolled{box-shadow:0 -14px 32px rgba(23,38,35,.14)}
.bar-brand{
  display:inline-flex;align-items:center;gap:.5rem;
  min-width:0;min-height:44px;text-decoration:none;
  font-family:var(--serif);font-size:1.02rem;letter-spacing:.03em;
}
.bar-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar-brand img{width:24px;height:24px;border-radius:8px;flex:none}
.bar-cta{
  margin-left:auto;flex:none;display:inline-flex;align-items:center;
  min-height:44px;padding:0 .95rem;border-radius:999px;
  background:var(--mint);color:var(--ink);
  text-decoration:none;font-size:.92rem;font-weight:600;
  transition:background .3s var(--ease),transform .3s var(--ease);
}
.bar-cta:hover{background:var(--sand-3);transform:translateY(-2px)}

.menu-wrap{position:relative;flex:none}
.menu-wrap>summary{
  list-style:none;cursor:pointer;
  display:inline-flex;align-items:center;gap:.55rem;
  min-height:44px;padding:0 1rem;
  border:1px solid var(--line);border-radius:999px;background:var(--sand-2);
  font-size:.92rem;
  transition:background .3s var(--ease),color .3s var(--ease);
}
.menu-wrap>summary::-webkit-details-marker{display:none}
.menu-wrap>summary::after{
  content:"";width:13px;height:2px;background:currentColor;opacity:.65;
  box-shadow:0 -5px 0 currentColor,0 5px 0 currentColor;
  transition:opacity .3s var(--ease);
}
.menu-wrap[open]>summary{background:var(--ink);color:var(--sand);border-color:var(--ink)}
.menu-wrap[open]>summary::after{opacity:.9}
.panel{
  position:absolute;right:0;bottom:calc(100% + 10px);
  display:flex;gap:.45rem;
  width:max-content;min-width:min(320px,calc(100vw - 2.2rem));
  max-width:calc(100vw - 2.2rem);
  padding:.65rem;
  background:var(--sand);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:0 20px 44px rgba(23,38,35,.2);
}
.panel menu{flex:1;min-width:0}
menu{list-style:none;margin:0;padding:0;display:grid;gap:.1rem;align-content:start}
.panel a{
  display:flex;align-items:center;
  min-height:40px;padding:.35rem .7rem;border-radius:12px;
  text-decoration:none;font-size:.93rem;line-height:1.4;
  transition:background .25s var(--ease),transform .25s var(--ease);
}
.panel a:hover{background:var(--sand-2);transform:translateX(2px)}

/* 首屏 */
.hero{
  position:relative;isolation:isolate;
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  align-items:center;gap:clamp(1.2rem,4vw,3rem);
  min-height:100vh;min-height:100svh;
  padding-block:clamp(2.6rem,8vh,5rem) clamp(5.5rem,14vh,7rem);
}
.hero::after{
  content:"";position:absolute;bottom:0;height:78px;z-index:-1;
  left:calc(-1 * var(--gutter));right:calc(-1 * var(--gutter));
  background:var(--sand-2);
  clip-path:polygon(0 68%,100% 6%,100% 100%,0 100%);
}
.hero-copy{min-width:0;max-width:34em}
.eyebrow{
  display:inline-flex;align-items:center;gap:.6rem;
  margin:0 0 .5rem;font-size:.78rem;letter-spacing:.3em;color:var(--olive);
}
.eyebrow::before{content:"";width:32px;height:2px;background:var(--clay);border-radius:2px;flex:none}
h1{
  font-family:var(--serif);font-weight:600;
  font-size:clamp(1.95rem,5.2vw,3.5rem);line-height:1.14;letter-spacing:.01em;
  margin:.2em 0 .45em;
  overflow-wrap:break-word;
}
.lede{max-width:32em;color:var(--ink-soft);font-size:1.02rem;line-height:1.8}
.hero-actions{margin:1.6rem 0 0}
.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  min-height:48px;padding:0 1.4rem;border-radius:999px;
  background:var(--ink);color:var(--sand);text-decoration:none;
  font-size:.96rem;font-weight:600;
  box-shadow:0 10px 22px rgba(23,38,35,.18);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease),background .4s var(--ease),color .4s var(--ease);
}
.btn::after{content:"→";font-size:1rem;transition:transform .4s var(--ease)}
.btn:hover{transform:translateY(-3px);background:var(--mint);color:var(--ink);box-shadow:0 16px 30px rgba(23,38,35,.24)}
.btn:hover::after{transform:translateX(4px)}

.hero-art{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;max-width:360px;margin-inline:auto}
.hero-art::before{content:"";position:absolute;inset:13%;border-radius:50%;background:var(--sand-2)}
.halo{
  position:absolute;inset:2%;
  border-radius:46% 54% 57% 43%/51% 45% 55% 49%;
  background:conic-gradient(from 0deg,var(--mint),var(--sand-3),var(--clay),var(--olive),var(--mint));
  opacity:.55;filter:blur(1px);
  animation:turn 28s linear infinite;
}
@keyframes turn{to{transform:rotate(360deg)}}
.hero-art .mark{position:relative;z-index:1;width:38%;height:auto;border-radius:var(--r)}
.hero-art .hero-img{
  position:relative;z-index:1;
  width:74%;height:auto;object-fit:cover;
  border-radius:44% 56% 52% 48%/48% 42% 58% 52%;
  box-shadow:0 24px 48px rgba(23,38,35,.22);
}

/* 正文 */
.columns{
  display:grid;grid-template-columns:minmax(0,1fr) clamp(200px,25vw,290px);
  gap:clamp(1.4rem,4vw,3.2rem);align-items:start;
  padding-block:clamp(1.6rem,5vw,3.4rem) clamp(2rem,6vw,4rem);
}
.prose{min-width:0}
.prose>section{
  padding-block:clamp(1.3rem,3.4vw,2.3rem);
  scroll-margin-top:1.6rem;
}
.prose>section:first-child{padding-top:0}
.prose>section+section{border-top:1px solid var(--line-soft)}
.prose h2,.prose h3{font-family:var(--serif);font-weight:600;line-height:1.26;margin:0 0 .2rem;overflow-wrap:break-word}
.prose h2{font-size:clamp(1.5rem,3.4vw,2.05rem);letter-spacing:.01em}
.prose h3{font-size:clamp(1.2rem,2.4vw,1.45rem)}
.prose h2+hr,.prose h3+hr{width:62px;height:3px;background:var(--mint);border-radius:3px;margin:.7rem 0 1.1rem}
.prose p{max-width:62em;overflow-wrap:break-word}
.prose ul,.prose ol{padding-left:1.25rem;margin:0 0 1rem}
.prose li{margin:.28rem 0}
.prose a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--mint-deep);text-decoration-thickness:2px;text-underline-offset:.22em}
.prose a:hover{background:rgba(92,198,176,.22)}
.prose blockquote{
  margin:1.3rem 0;padding:.15rem 0 .15rem 1rem;
  border-left:3px solid var(--clay);color:var(--ink-soft);
}
.prose strong{font-weight:700}
.prose img{border-radius:var(--r);margin:1rem 0;max-width:100%}
.prose table{width:100%;border-collapse:collapse;font-size:.96rem}
.prose th,.prose td{border-bottom:1px solid var(--line-soft);padding:.5rem .4rem;text-align:left}

/* 侧栏 */
.rail{
  position:sticky;top:1.2rem;
  background:var(--sand-2);border-radius:var(--r);
  padding:1.1rem 1rem 1.2rem;
  min-width:0;
}
.rail h2{font-family:var(--serif);font-weight:600;font-size:1.24rem;margin:0;line-height:1.3}
.rail h2+hr{width:52px;height:3px;background:var(--clay);border-radius:3px;margin:.6rem 0 .7rem}
.rail ol{list-style:none;margin:0;padding:0;display:grid;gap:.1rem}
.rail a{
  display:flex;align-items:baseline;gap:.5rem;
  min-height:40px;padding:.45rem .4rem;border-radius:12px;
  text-decoration:none;font-size:.94rem;line-height:1.45;
  transition:background .25s var(--ease),transform .25s var(--ease);
}
.rail a:hover{background:rgba(247,242,232,.85);transform:translateX(2px)}
.rail .num{font-family:var(--serif);font-style:italic;font-size:1.05rem;color:var(--clay);min-width:1.1em;flex:none}

/* 页脚 */
footer{
  background:var(--ink);color:var(--sand);
  display:grid;grid-template-columns:1.5fr .8fr .8fr 1fr;
  gap:clamp(1.1rem,3vw,2.4rem);align-items:start;
  padding:clamp(2rem,6vw,3.2rem) var(--gutter) clamp(6rem,14vw,7rem);
}
footer .f-map{display:contents}
footer menu{list-style:none;margin:0;padding:0;display:grid;gap:.1rem;align-content:start}
footer menu a{
  display:flex;align-items:center;min-height:40px;
  text-decoration:none;font-size:.94rem;line-height:1.4;
  color:rgba(247,242,232,.9);
  border-bottom:1px solid rgba(247,242,232,.1);
  transition:color .25s var(--ease),padding-left .25s var(--ease);
}
footer menu a:hover{color:var(--mint);padding-left:.3rem}
.f-brand{display:grid;gap:.9rem;min-width:0}
.f-logo{
  display:inline-flex;align-items:center;gap:.55rem;
  min-height:44px;text-decoration:none;
  font-family:var(--serif);font-size:1.15rem;letter-spacing:.04em;
}
.f-logo img{width:24px;height:24px;border-radius:8px;flex:none}
.f-form{display:flex;gap:.45rem;max-width:22rem;min-width:0}
.f-form input{
  flex:1;min-width:0;height:44px;padding:0 .85rem;
  border-radius:12px;border:1px solid rgba(247,242,232,.28);
  background:rgba(247,242,232,.08);color:var(--sand);
  font-family:inherit;font-size:.94rem;
}
.f-form input::placeholder{color:rgba(247,242,232,.55)}
.f-form input:focus{outline:2px solid var(--mint);outline-offset:1px}
.f-form button{
  height:44px;padding:0 1.05rem;border:0;border-radius:12px;flex:none;
  background:var(--mint);color:var(--ink);
  font-family:inherit;font-size:.94rem;font-weight:600;cursor:pointer;
  transition:background .3s var(--ease),transform .3s var(--ease);
}
.f-form button:hover{background:var(--sand-3);transform:translateY(-2px)}
.f-legal{
  text-align:center;font-size:.9rem;line-height:1.8;
  color:rgba(247,242,232,.72);
  align-self:center;min-width:0;
}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;min-height:auto;padding-top:clamp(2rem,7vh,3rem)}
  .hero::after{height:52px}
  .hero-art{max-width:210px;margin:1.2rem auto 0;order:2}
  .columns{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;top:auto;margin-top:.5rem}
  footer{grid-template-columns:1fr 1fr}
  .f-brand{grid-column:1 / -1}
  .f-legal{grid-column:1 / -1}
}

@media (max-width:420px){
  body{font-size:16.5px}
  .bar{gap:.45rem}
  .bar-brand span{max-width:5.5em}
  .bar-brand{font-size:.96rem}
  .bar-cta{padding:0 .8rem}
  .menu-wrap>summary{padding:0 .8rem}
  .panel{min-width:calc(100vw - 2rem);max-width:calc(100vw - 2rem)}
  .f-form{flex-wrap:wrap}
  .f-form button{width:100%}
}

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

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