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

:root{
  --teal:#5cc6b0;
  --teal-deep:#2e8b7a;
  --sand:#d4c4a8;
  --ink:#172623;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --cream:#f7f0e5;
  --block:#ebe0cd;
  --block-2:#dde8e1;
  --block-3:#f1e0cf;
  --r:28px;
  --shadow:0 26px 54px -44px rgba(23,38,35,.75);
  --maxw:1180px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  font-family:'DM Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background:
    radial-gradient(120% 80% at 10% -12%, #fcf6ec 0%, rgba(252,246,236,0) 58%),
    linear-gradient(180deg,#f9f3e8 0%,#f2ebdd 42%,#ebe2d2 100%);
  background-attachment:fixed;
}
html::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:5;
  pointer-events:none;
  opacity:.26;
  mix-blend-mode:multiply;
  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%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.34'/%3E%3C/svg%3E");
}
img{max-width:100%}
h1,h2,h3{margin:0;line-height:1.25}
p{margin:0}
a{color:inherit}
:focus-visible{outline:3px solid var(--teal-deep);outline-offset:2px;border-radius:6px}

/* ---------- 页头 ---------- */
.site-head{
  position:relative;
  z-index:6;
  background:rgba(249,243,232,.95);
  box-shadow:0 1px 0 rgba(23,38,35,.09);
}
@media (min-width:960px){
  .site-head{position:sticky;top:0;backdrop-filter:blur(9px)}
}
.strip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  min-height:30px;
  padding:.35rem 1rem;
  background:var(--ink);
  color:#d9e7e0;
  font-size:.78rem;
  letter-spacing:.3em;
  text-align:center;
}
.strip-dot{width:7px;height:7px;border-radius:50%;background:var(--teal);flex:0 0 auto}
.brandrow{
  max-width:var(--maxw);
  margin:0 auto;
  padding:.75rem clamp(1rem,4vw,2rem) .15rem;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  min-height:44px;
  text-decoration:none;
  color:var(--ink);
}
.brand-mark{
  display:inline-grid;
  place-items:center;
  width:2.15rem;
  height:2.15rem;
  border-radius:15px;
  background:var(--teal);
  color:#102b25;
  font-weight:700;
  font-size:1rem;
  line-height:1;
  box-shadow:0 10px 22px -16px rgba(23,38,35,.9);
}
.brand-word{
  font-size:clamp(1.35rem,4.4vw,1.8rem);
  font-weight:700;
  letter-spacing:-.02em;
}
.navrow{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 clamp(.55rem,3vw,1.5rem) .55rem;
}
.navrow p{
  display:flex;
  flex-wrap:wrap;
  gap:.1rem;
}
.navrow a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.45rem .78rem;
  border-radius:16px;
  text-decoration:none;
  font-size:1rem;
  font-weight:500;
  color:#31443e;
  transition:background .25s ease-out, color .25s ease-out;
}
.navrow a:hover{background:rgba(92,198,176,.3);color:#0e322b}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:70vh;
  display:grid;
  place-items:center;
  padding:clamp(2rem,6vw,4rem) 1rem;
  border-radius:0 0 42px 42px;
  background:linear-gradient(155deg,#f0e3d1 0%,#e2d6c0 46%,#cbdcd3 100%);
}
.hero-art{position:absolute;inset:0;z-index:0}
.shot{
  position:absolute;
  margin:0;
  overflow:hidden;
  border-radius:var(--r);
  background:#cdc0a8;
  box-shadow:0 34px 64px -46px rgba(23,38,35,.95);
}
.shot-img{width:100%;height:100%;object-fit:cover;display:block}
.shot-a{
  width:min(40vw,290px);
  aspect-ratio:3/4;
  left:clamp(-1.5rem,3vw,4rem);
  top:9%;
  transform:rotate(-4deg);
}
.shot-b{
  width:min(34vw,250px);
  aspect-ratio:1/1;
  right:clamp(-1rem,4vw,5rem);
  bottom:9%;
  transform:rotate(3.5deg);
}
.hero-copy{
  position:relative;
  z-index:2;
  max-width:26ch;
  text-align:center;
  padding:1.15rem 1.4rem;
  border-radius:var(--r);
  background:rgba(249,243,232,.87);
  box-shadow:var(--shadow);
}
.hero h1{
  font-size:clamp(1.75rem,5.4vw,3.15rem);
  font-weight:700;
  letter-spacing:-.02em;
}

/* ---------- 主体 ---------- */
.page-main{
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(1.4rem,4vw,2.6rem) clamp(1rem,4vw,2rem) clamp(2rem,5vw,3rem);
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(1rem,2.5vw,2rem);
}
@media (min-width:1000px){
  .page-main{grid-template-columns:minmax(0,1fr) 280px;align-items:start}
}
.prose{
  display:flex;
  flex-direction:column;
  gap:clamp(1rem,2.4vw,1.7rem);
  min-width:0;
}
.prose > section{
  background:var(--block);
  border-top:5px solid rgba(92,198,176,.55);
  border-radius:var(--r);
  padding:clamp(1.35rem,3.4vw,2.5rem);
  box-shadow:var(--shadow);
  scroll-margin-top:1rem;
}
@media (min-width:960px){
  .prose > section{scroll-margin-top:10.5rem}
}
.prose > section:nth-of-type(even){background:var(--block-2);border-top-color:rgba(198,123,92,.5)}
.prose > section:nth-of-type(3n){background:var(--block-3);border-top-color:rgba(107,123,60,.45)}
.prose > .lead{background:linear-gradient(170deg,#e7f1ea,#dfeae2);border-top-color:var(--teal)}

.prose h2{
  position:relative;
  padding-bottom:.6rem;
  margin-bottom:.55rem;
  font-size:clamp(1.35rem,3.2vw,1.95rem);
  letter-spacing:-.015em;
}
.prose h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:2.6rem;
  height:3px;
  border-radius:3px;
  background:var(--clay);
}
.prose > .lead h2{font-size:clamp(1.6rem,4vw,2.4rem)}
.prose h3{font-size:1.16rem;margin:1.5rem 0 .5rem}
.prose .subtitle,
.prose p.subtitle{
  font-size:1.02rem;
  color:#41564e;
  margin:0 0 1rem;
}
.prose p{margin:0 0 1rem;font-size:1.06rem;line-height:1.85;color:#28382f}
.prose ul,.prose ol{margin:0 0 1.1rem;padding-left:1.35rem;line-height:1.8}
.prose li{margin:.4rem 0}
.prose a{color:#2a7f6d;text-decoration:underline;text-underline-offset:3px}
.prose strong{color:#10312a}
.prose img{border-radius:18px;display:block;margin:1rem 0;height:auto}
.prose blockquote{
  margin:1.1rem 0;
  padding:.85rem 1.15rem;
  border-left:4px solid var(--teal);
  background:rgba(255,255,255,.55);
  border-radius:0 18px 18px 0;
  color:#2b3d35;
}
.prose time{
  display:inline-block;
  font-size:.88rem;
  color:#4a5c54;
  background:rgba(255,255,255,.7);
  padding:.1rem .6rem;
  border-radius:99px;
}
.prose table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:1rem}
.prose th,.prose td{padding:.55rem .7rem;border-bottom:1px solid rgba(23,38,35,.15);text-align:left}

/* ---------- 侧栏 ---------- */
.rail{
  background:var(--ink);
  color:#e4ede7;
  border-radius:var(--r);
  padding:1.1rem;
  box-shadow:0 30px 60px -44px rgba(23,38,35,.9);
}
@media (min-width:1000px){
  .rail{position:sticky;top:10.5rem}
}
.rail ul{list-style:none;margin:0;padding:0;display:grid;gap:.1rem}
.rail a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.35rem .65rem;
  border-radius:14px;
  color:#dbe8e1;
  text-decoration:none;
  font-size:1rem;
  transition:background .25s ease-out, color .25s ease-out;
}
.rail a:hover{background:rgba(92,198,176,.22);color:#fff}

/* ---------- 页脚 ---------- */
.site-foot{
  margin-top:clamp(2rem,5vw,3.5rem);
  padding:clamp(2rem,5vw,3.4rem) clamp(1rem,4vw,2rem) 1.4rem;
  background:var(--ink);
  color:#e3ebe5;
  border-radius:42px 42px 0 0;
}
.foot-grid{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1.6rem;
  align-items:start;
}
@media (min-width:780px){
  .foot-grid{grid-template-columns:1.45fr 1fr}
}
.foot-brand{
  font-style:normal;
  font-weight:700;
  font-size:clamp(2.5rem,9vw,5.4rem);
  line-height:.98;
  letter-spacing:-.03em;
  color:#f4eee3;
  word-break:break-word;
}
.foot-links{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.1rem;
}
.foot-links a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.3rem .5rem;
  border-radius:14px;
  color:#d7e5de;
  text-decoration:none;
  font-size:1rem;
  transition:background .25s ease-out, color .25s ease-out;
}
.foot-links a:hover{background:rgba(212,196,168,.18);color:#fff}
.foot-base{
  max-width:var(--maxw);
  margin:1.9rem auto 0;
  padding-top:1rem;
  border-top:1px solid rgba(212,196,168,.28);
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:.4rem 1.1rem;
  font-size:.92rem;
  color:#bfd0c8;
}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.25rem .85rem;
  border-radius:99px;
  background:rgba(92,198,176,.24);
  color:#eef6f1;
  text-decoration:none;
}
.totop:hover{background:rgba(92,198,176,.42)}

/* ---------- 滚动显现 ---------- */
html.js [data-reveal]{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s ease-out, transform .8s cubic-bezier(.2,.72,.28,1);
  transition-delay:calc(var(--i,0) * 65ms);
}
html.js [data-reveal].in{opacity:1;transform:none}
html.js .shot-a[data-reveal].in{transform:rotate(-4deg)}
html.js .shot-b[data-reveal].in{transform:rotate(3.5deg)}
html.js .shot-a[data-reveal]{transform:translateY(20px) rotate(-4deg)}
html.js .shot-b[data-reveal]{transform:translateY(20px) rotate(3.5deg)}
@media (prefers-reduced-motion: reduce){
  html.js [data-reveal]{opacity:1;transform:none;transition:none}
}

/* ---------- 窄屏 ---------- */
@media (max-width:760px){
  body{font-size:16px}
  .hero{
    min-height:0;
    padding:1.1rem 1rem 1.6rem;
    gap:1.1rem;
    border-radius:0 0 30px 30px;
  }
  .hero-art{position:relative;inset:auto;width:100%;height:32vh;min-height:180px}
  .shot-a{left:0;top:0;width:48%;aspect-ratio:4/5}
  .shot-b{right:0;bottom:0;width:44%;aspect-ratio:1/1}
  .hero-copy{max-width:100%;padding:.4rem 0;background:transparent;box-shadow:none}
  .prose p{font-size:1rem}
  .prose table{display:block;overflow-x:auto}
  .foot-links{grid-template-columns:1fr}
}
@media (max-width:420px){
  .strip{letter-spacing:.2em;font-size:.74rem}
  .navrow a{padding:.45rem .6rem;font-size:.96rem}
}

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