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

:root{
  --mint:#5cc6b0;
  --sand:#d4c4a8;
  --ink:#172623;
  --clay:#c67b5c;
  --clay-deep:#a95f43;
  --olive:#6b7b3c;
  --cream:#fbf5ec;
  --paper:#fffdf9;
  --muted:#5d6b62;
  --line:rgba(23,38,35,.12);
  --bar:92px;
}

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

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

body{
  margin:0;
  padding-bottom:18px;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.72;
  color:var(--ink);
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(920px 620px at 88% 2%, #f4e2cb 0%, rgba(244,226,203,0) 62%),
    radial-gradient(760px 540px at 2% 28%, #e6f2ec 0%, rgba(230,242,236,0) 58%),
    radial-gradient(700px 500px at 70% 92%, #efe1cd 0%, rgba(239,225,205,0) 64%),
    linear-gradient(180deg,#fcf6ee 0%, #f4ebdc 46%, #efe3d2 100%);
  background-attachment:fixed;
}

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

header,.hero,main,footer{position:relative;z-index:1}

a{color:#2f7f6e;text-underline-offset:3px}
a:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:2px;border-radius:6px}

/* ---------- 底部固定条 ---------- */
.bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 14px calc(9px + env(safe-area-inset-bottom));
  background:rgba(251,245,236,.84);
  -webkit-backdrop-filter:blur(16px) saturate(1.25);
  backdrop-filter:blur(16px) saturate(1.25);
  border-top:1px solid var(--line);
  box-shadow:0 -14px 34px -22px rgba(23,38,35,.55);
}

.brand{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:4px 6px;
  font-size:15px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
}

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

.bar nav p{
  display:flex;
  gap:2px;
  margin:0;
  padding:0;
}

.bar nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:8px 11px;
  font-size:15px;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  border-radius:999px;
  transition:background .25s ease-out,color .25s ease-out;
}

.bar nav a::before{
  content:"";
  flex:0 0 auto;
  width:7px;height:7px;
  border-radius:60% 55% 60% 50%;
  background:var(--mint);
  box-shadow:0 0 0 3px rgba(92,198,176,.2);
}

.bar nav a:hover{background:rgba(92,198,176,.2)}

.search{flex:0 0 auto;margin:0}

.search input{
  width:104px;
  min-height:40px;
  padding:8px 12px;
  font:inherit;
  font-size:14px;
  color:var(--ink);
  background:rgba(255,253,249,.9);
  border:1px solid var(--line);
  border-radius:999px;
  transition:width .3s ease-out,background .2s ease-out;
}
.search input:focus{width:148px;background:#fff}
.search input::placeholder{color:#8a978f}

/* ---------- 首屏 ---------- */
.hero{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:16px 20px;
  min-height:70vh;
  max-width:1180px;
  margin:0 auto;
  padding:56px 20px 28px;
}

.hero-art{flex:0 0 auto;line-height:0;will-change:transform}
.hero-art svg{width:90px;height:90px}

.hero-text{
  flex:1 1 260px;
  max-width:640px;
  margin-left:auto;
  text-align:right;
}

.hero h1{
  margin:0;
  font-size:clamp(29px, 7.6vw, 60px);
  font-weight:800;
  line-height:1.1;
  letter-spacing:-.035em;
}

.hero-desc{
  margin:18px 0 0 auto;
  max-width:37ch;
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
}

/* ---------- 主内容 ---------- */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  gap:30px;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:6px 20px 34px;
}

div{min-width:0}

div > section{
  margin:0 0 20px;
  padding:26px 22px;
  scroll-margin-top:24px;
  border:1px solid rgba(255,255,255,.75);
  border-radius:28px;
  background:rgba(255,253,249,.62);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  box-shadow:0 20px 40px -30px rgba(23,38,35,.75);
}

div > section:nth-of-type(3n+2){
  border-radius:22px 34px 22px 34px;
  background:rgba(255,250,243,.72);
}
div > section:nth-of-type(3n+3){
  border-radius:34px 22px 34px 22px;
}

div > section > :last-child{margin-bottom:0}

h2,h3,h4{letter-spacing:-.02em;line-height:1.3}

h2{
  margin:0 0 4px;
  font-size:clamp(20px, 3vw, 26px);
  font-weight:800;
}

h3{margin:22px 0 6px;font-size:19px;font-weight:700}

hr{
  height:1px;
  margin:10px 0 18px;
  border:0;
  background:linear-gradient(90deg, rgba(212,196,168,.95), rgba(212,196,168,0));
}

p{margin:0 0 14px}
div p{color:#22332c}
div a{color:#25705f}

ul,ol{margin:0 0 16px;padding-left:1.25em}
li{margin:0 0 6px}

strong{font-weight:700;color:var(--ink)}
blockquote{
  margin:18px 0;
  padding:12px 16px;
  border-left:3px solid var(--sand);
  background:rgba(212,196,168,.22);
  border-radius:0 14px 14px 0;
  color:#31443b;
}

img{max-width:100%;height:auto;border-radius:18px}

/* ---------- 侧栏 ---------- */
aside{
  position:sticky;
  top:24px;
  padding:20px 16px;
  border-radius:28px 20px 28px 20px;
  background:linear-gradient(160deg, #1d302b 0%, var(--ink) 100%);
  color:#edf2ee;
  box-shadow:0 26px 44px -30px rgba(23,38,35,.95);
}

aside h2{
  margin:0;
  font-size:13px;
  font-weight:600;
  letter-spacing:.16em;
  color:#c2d2c9;
}

aside hr{
  margin:12px 0 14px;
  background:rgba(255,255,255,.18);
}

aside ul{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

aside li{margin:0}

aside a{
  display:block;
  min-height:40px;
  padding:9px 10px;
  font-size:15px;
  line-height:1.45;
  color:#ecf3ef;
  text-decoration:none;
  border-radius:12px;
  transition:background .22s ease-out,color .22s ease-out;
}
aside a:hover{background:rgba(92,198,176,.22);color:#fff}

/* ---------- 页脚 ---------- */
footer{
  max-width:1180px;
  margin:0 auto;
  padding:18px 20px calc(var(--bar) + 34px);
}

footer .cta{margin:0 0 16px}

footer .cta a{
  display:block;
  padding:32px 24px;
  font-size:clamp(22px, 5.2vw, 34px);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.2;
  color:#fff5ec;
  text-decoration:none;
  border-radius:28px 22px 28px 22px;
  background:linear-gradient(135deg, var(--clay) 0%, var(--clay-deep) 100%);
  box-shadow:0 26px 46px -32px rgba(169,95,67,.95);
  transition:transform .35s ease-out,box-shadow .35s ease-out;
}
footer .cta a:hover{transform:translateY(-2px)}

footer small{
  display:block;
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  letter-spacing:.02em;
}

/* ---------- 动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease-out, transform .7s cubic-bezier(.22,.8,.3,1);
}
.reveal.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:980px){
  main{grid-template-columns:minmax(0,1fr);gap:20px}
  aside{position:static}
  aside ul{flex-direction:row;flex-wrap:wrap;gap:6px}
  aside a{padding:8px 12px}
}

@media (max-width:620px){
  body{font-size:16.5px}
  .hero{min-height:66vh;padding:44px 16px 24px;gap:12px}
  .hero-art svg{width:68px;height:68px}
  .hero-text{flex:1 1 100%}
  .hero h1{font-size:clamp(28px, 8.4vw, 40px)}
  main{padding:4px 14px 26px}
  div > section{padding:22px 16px;border-radius:24px}
  div > section:nth-of-type(3n+2),
  div > section:nth-of-type(3n+3){border-radius:24px}
  .search input{width:82px}
  .search input:focus{width:110px}
  footer{padding:14px 14px calc(var(--bar) + 28px)}
  footer .cta a{padding:26px 18px}
}

@media (max-width:400px){
  .brand{font-size:14px;max-width:96px;white-space:normal;line-height:1.15}
  .search input{width:74px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-art{transform:none !important}
  footer .cta a{transition:none}
}

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