/* ==========================================================================
   豌豆数字花园 · 全站样式 v2.1
   设计基调：发光花园 —— 深邃墨绿夜底 + 生物荧光绿/青 + 豌豆元素
   ========================================================================== */

:root {
  --night: #0a0f0d;
  --night-2: #0d1512;
  --panel: rgba(255, 255, 255, 0.035);
  --ink: #d8eee2;
  --ink-soft: rgba(216, 238, 226, 0.68);
  --ink-faint: rgba(216, 238, 226, 0.42);
  --line: rgba(71, 226, 124, 0.18);
  --line-strong: rgba(71, 226, 124, 0.45);
  --glow: #47e27c;
  --aqua: #4ed3fb;
  --amber: #ffb84d;
  --grad: linear-gradient(92deg, #47e27c, #4ed3fb);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1040px;
  --pad-x: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
  background:
    radial-gradient(1000px 600px at 82% -8%, rgba(71, 226, 124, 0.09), transparent 60%),
    radial-gradient(900px 700px at 8% 108%, rgba(78, 211, 251, 0.06), transparent 60%),
    var(--night);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.45; }
a { color: var(--glow); text-decoration-color: rgba(71, 226, 124, 0.35); text-underline-offset: 3px; transition: opacity .25s ease; }
a:hover { opacity: 0.7; }
::selection { background: rgba(71, 226, 124, 0.32); color: #eafff3; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 13, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink);
  text-decoration: none; letter-spacing: 0.02em; display: inline-flex; align-items: center; min-height: 44px;
}
.pea-mark { width: 34px; height: 22px; margin-right: 9px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(71, 226, 124, 0.55)); transition: transform .4s cubic-bezier(.2, .8, .3, 1.3); }
@media (hover: hover) {
  .logo:hover { opacity: 1; }
  .logo:hover .pea-mark { transform: rotate(-8deg) scale(1.08); }
}
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--glow); box-shadow: 0 0 8px rgba(71, 226, 124, 0.7); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav-links a:hover { opacity: 1; color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 12vh, 120px) var(--pad-x) clamp(72px, 13vh, 128px); position: relative; z-index: 1; }
.hero-eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em; color: var(--aqua); margin: 0 0 18px; text-shadow: 0 0 18px rgba(78, 211, 251, 0.4); }
.hero h1 { font-size: clamp(26px, 4.6vw, 42px); margin: 0 0 22px; letter-spacing: 0.01em; }
.hero h1 em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glow-pulse 4.2s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(71, 226, 124, 0.22)); }
  50%      { filter: drop-shadow(0 0 34px rgba(71, 226, 124, 0.55)); }
}
.hero-sub { max-width: 620px; color: var(--ink-soft); margin: 0 0 34px; font-size: clamp(15px, 1.8vw, 17px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-petals { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px;
  font-size: 15px; text-decoration: none; border-radius: 999px; cursor: pointer; font-family: var(--sans);
  transition: opacity .25s ease, transform .2s ease, box-shadow .3s ease, background-color .25s ease;
}
.btn:hover { opacity: 1; }
.btn-primary { background: var(--grad); color: #06110b; font-weight: 700; box-shadow: 0 0 26px rgba(71, 226, 124, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.btn-primary:hover { box-shadow: 0 0 38px rgba(71, 226, 124, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(71, 226, 124, 0.1); box-shadow: 0 0 22px rgba(71, 226, 124, 0.18); }

/* ---------- 区块通用 ---------- */
.section { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.section-inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vh, 96px) var(--pad-x); }
.section-head { margin-bottom: 36px; }
.section-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--aqua); margin: 0 0 10px; }
.section-title { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 12px; }
.section-title::after { content: " ❀"; color: var(--glow); font-weight: 400; font-size: 0.7em; text-shadow: 0 0 12px rgba(71, 226, 124, 0.7); display: inline-block; transform-origin: 50% 85%; animation: sprig-sway 5.5s ease-in-out infinite; }
@keyframes sprig-sway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(11deg); } }
.section-desc { color: var(--ink-soft); max-width: 640px; margin: 0; font-size: 15px; }

/* ---------- 作品筛选 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-chip {
  appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--ink-soft);
  font-family: var(--sans); font-size: 14px; padding: 8px 18px; min-height: 44px; border-radius: 999px; cursor: pointer;
  transition: opacity .3s ease, background-color .25s ease, color .25s ease, transform .12s ease, box-shadow .3s ease;
}
.filter-chip:hover { background: rgba(71, 226, 124, 0.1); color: var(--ink); }
.filter-chip.active { background: var(--grad); color: #06110b; font-weight: 700; border-color: transparent; box-shadow: 0 0 18px rgba(71, 226, 124, 0.35); }

/* ---------- 作品卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 26px 22px; text-decoration: none; color: var(--ink); position: relative;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .3s ease, background-color .25s ease, border-color .3s ease, box-shadow .35s ease, transform .38s cubic-bezier(.2, .8, .3, 1.25);
}
a.card:hover { opacity: 1; border-color: var(--line-strong); box-shadow: 0 0 34px rgba(71, 226, 124, 0.12), inset 0 0 30px rgba(71, 226, 124, 0.04); }
.card-featured { grid-column: 1 / -1; background: rgba(71, 226, 124, 0.05); }
.card.is-hidden { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-icon { font-size: 26px; line-height: 1; filter: drop-shadow(0 0 10px rgba(71, 226, 124, 0.35)); }
.card-flag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--aqua); border: 1px solid rgba(78, 211, 251, 0.3); padding: 3px 10px; border-radius: 999px; }
.card h3 { font-size: 20px; margin: 0 0 14px; }
.case { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-row { display: flex; gap: 12px; font-size: 14px; line-height: 1.75; }
.case-k { flex-shrink: 0; width: 3em; font-family: var(--serif); color: var(--glow); font-weight: 700; }
.case-v { color: var(--ink-soft); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.tag { font-size: 12px; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; display: inline-flex; align-items: center; min-height: 26px; }
.tag-green { color: var(--glow); border-color: var(--line-strong); background: rgba(71, 226, 124, 0.1); }
.tag-search { color: var(--ink); border-color: var(--line-strong); }
.tag-search::before { content: "🔍 "; font-size: 11px; }

/* ---------- 数字花园列表 ---------- */
.garden-list { display: flex; flex-direction: column; }
.garden-row {
  display: flex; align-items: center; gap: 22px; padding: 20px 6px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); transition: opacity .3s ease, background-color .25s ease; min-height: 44px; position: relative;
}
.garden-row:first-child { border-top: 1px solid var(--line); }
.garden-row:hover { opacity: 1; background: rgba(71, 226, 124, 0.05); }
.garden-date { flex-shrink: 0; font-family: var(--mono); font-size: 13px; color: var(--aqua); width: 64px; }
.garden-row > div { flex: 1; min-width: 0; }
.garden-title { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.garden-sum { font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }
/* 行首豌豆粒 */
.garden-row::before {
  content: ""; position: absolute; left: -6px; top: 50%; margin-top: -4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8ff0b4, #47e27c 75%);
  box-shadow: 0 0 10px rgba(71, 226, 124, 0.8);
  opacity: 0; transform: translateX(10px) scale(0);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .3, 1.3);
  pointer-events: none;
}
@media (hover: hover) { .garden-row:hover::before { opacity: 1; transform: translateX(0) scale(1); } }
@media (hover: none) { .garden-row::before { opacity: 0.4; transform: none; left: auto; right: 2px; } .garden-row { padding-right: 22px; } }

/* ---------- 关于我 ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.about-facts {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
}
/* 角落的豌豆苗 */
.about-facts::after {
  content: ""; position: absolute; right: 8px; bottom: 6px; width: 44px; height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 60'%3E%3Cpath d='M22 58 C22 40 20 30 22 18' fill='none' stroke='%2347e27c' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M22 34 C14 32 10 26 11 20 C18 21 23 27 22 34 Z' fill='%2347e27c' opacity='0.5'/%3E%3Cpath d='M22 26 C30 24 34 18 33 12 C26 13 21 19 22 26 Z' fill='%2347e27c' opacity='0.65'/%3E%3Ccircle cx='22' cy='10' r='4.5' fill='%2347e27c' opacity='0.85'/%3E%3Ccircle cx='20.5' cy='8.8' r='1.4' fill='%23b8f5cf'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: bottom right; background-size: contain;
  opacity: 0.55; animation: sprout-sway 7s ease-in-out infinite; transform-origin: bottom center; pointer-events: none;
}
@keyframes sprout-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.fact { padding: 14px 20px; border-bottom: 1px dashed var(--line); }
.fact:last-child { border-bottom: none; }
.fact-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--aqua); margin-bottom: 3px; }
.fact-v { font-size: 14.5px; }
.about-text p { margin: 0 0 16px; color: var(--ink-soft); }
.about-text strong { color: var(--ink); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contact-item {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink);
  transition: opacity .25s ease, background-color .25s ease, box-shadow .3s ease;
}
.contact-item:hover { opacity: 1; background: rgba(71, 226, 124, 0.08); box-shadow: 0 0 18px rgba(71, 226, 124, 0.15); }
.contact-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.contact-item.is-placeholder { border-style: dashed; color: var(--ink-faint); }
.contact-item.is-placeholder .dot { background: var(--line); box-shadow: none; }

/* ---------- 页脚 ---------- */
.footer { padding: 40px var(--pad-x) 48px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.footer-inner span { display: inline-block; }
.vine { flex-basis: 100%; margin-top: 10px; }
.vine-bar { height: 2px; background: var(--line); border-radius: 2px; position: relative; }
.vine-fill { height: 100%; width: 0; background: var(--grad); border-radius: 2px; position: relative; box-shadow: 0 0 10px rgba(71, 226, 124, 0.6); transition: width 1.8s cubic-bezier(.2, .7, .2, 1); }
.vine-fill::after { content: "❀"; position: absolute; right: -7px; top: -12px; font-size: 13px; color: var(--glow); text-shadow: 0 0 10px rgba(71, 226, 124, 0.9); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 飘落的发光花瓣 ---------- */
.petal {
  position: absolute; top: -6%; color: var(--glow); opacity: 0;
  text-shadow: 0 0 12px rgba(71, 226, 124, 0.8);
  animation: petal-fall var(--fdur, 14s) linear infinite; animation-delay: var(--fdel, 0s);
  will-change: transform, opacity;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, -4vh, 0) rotate(0deg); opacity: 0; }
  7%   { opacity: 0.55; }
  50%  { transform: translate3d(calc(var(--sway, 40px) * 0.6), 52vh, 0) rotate(170deg); }
  93%  { opacity: 0.4; }
  100% { transform: translate3d(var(--sway, 40px), 106vh, 0) rotate(340deg); opacity: 0; }
}

/* ---------- Hero 豌豆藤蔓 ---------- */
.hero-vine {
  position: absolute; right: -10px; bottom: -6px;
  width: clamp(200px, 30vw, 380px); z-index: 0; pointer-events: none; opacity: 0.85;
  animation: vine-sway 9s ease-in-out infinite; transform-origin: bottom right;
}
@keyframes vine-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2.4deg); } }
.hero-vine .vine-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vine-grow 2.6s cubic-bezier(.3, .6, .3, 1) 0.4s forwards; }
.hero-vine .tendril { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vine-grow 2s ease-out 2.2s forwards; }
@keyframes vine-grow { to { stroke-dashoffset: 0; } }
.hero-vine .pod { opacity: 0; animation: pod-pop .7s cubic-bezier(.2, .8, .3, 1.5) 2.8s forwards; }
.hero-vine .pod.p2 { animation-delay: 3.1s; }
.hero-vine .pod.p3 { animation-delay: 3.4s; }
@keyframes pod-pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

/* ---------- Hero 左下大豆荚 ---------- */
.hero-pod {
  position: absolute; left: clamp(4%, 6vw, 9%); bottom: 8%;
  width: clamp(90px, 12vw, 150px); z-index: 0; pointer-events: none; opacity: 0.5;
  animation: pod-float 8s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(71, 226, 124, 0.3));
}
@keyframes pod-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(-2deg); } }
.hero-pod .pea-in { animation: pea-glow 4.5s ease-in-out infinite; }
.hero-pod .pea-in.pi2 { animation-delay: 1.5s; }
.hero-pod .pea-in.pi3 { animation-delay: 3s; }
@keyframes pea-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- 作品区巡游豌豆粒 ---------- */
#works { position: relative; }
.pea-rover {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8ff0b4, #47e27c 70%);
  box-shadow: 0 0 16px rgba(71, 226, 124, 0.7);
  z-index: 0; pointer-events: none;
  animation: pea-roam 26s linear infinite;
}
@keyframes pea-roam {
  0%   { left: 4%;  top: 12%; transform: scale(1); }
  18%  { left: 86%; top: 6%;  transform: scale(1.15); }
  38%  { left: 92%; top: 58%; transform: scale(0.9); }
  55%  { left: 60%; top: 88%; transform: scale(1.1); }
  76%  { left: 16%; top: 76%; transform: scale(0.95); }
  100% { left: 4%;  top: 12%; transform: scale(1); }
}

/* ==========================================================================
   花园生态层：星星、月亮、萤火虫、小鸟、树
   ========================================================================== */

/* 星星 */
.hero-stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(216, 238, 226, 0.9);
  animation: star-twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--tdel, 0s);
}
.star-big {
  width: 4px; height: 4px;
  box-shadow: 0 0 8px rgba(216, 238, 226, 0.7), 0 0 20px rgba(78, 211, 251, 0.3);
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1; transform: scale(1.15); }
}

/* 月亮 */
.hero-moon {
  position: absolute; right: 8%; top: 8%;
  width: clamp(38px, 5vw, 60px); z-index: 0; pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(232, 245, 233, 0.35));
  animation: moon-drift 24s ease-in-out infinite;
  opacity: 0.85;
}
.hero-moon svg { width: 100%; height: auto; display: block; }
@keyframes moon-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-8px, 10px); }
}

/* 萤火虫：三层位移叠加 + 光晕明灭，轨迹不规则 */
.firefly {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #d4ffab; z-index: 0; pointer-events: none;
  animation:
    firefly-x var(--fdur1, 7s) ease-in-out infinite alternate,
    firefly-y var(--fdur2, 9s) ease-in-out infinite alternate,
    firefly-glow var(--glow-dur, 3.5s) ease-in-out infinite;
}
@keyframes firefly-x {
  from { margin-left: 0; }
  to   { margin-left: var(--amp1, 30px); }
}
@keyframes firefly-y {
  from { margin-top: 0; }
  to   { margin-top: var(--amp2, 20px); }
}
@keyframes firefly-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(212, 255, 171, 0.3); opacity: 0.3; }
  50%      { box-shadow: 0 0 14px rgba(212, 255, 171, 0.9), 0 0 28px rgba(71, 226, 124, 0.4); opacity: 1; }
}

/* 小鸟：从右向左飞过天空，偶尔出现 */
.hero-bird {
  position: absolute; top: 18%; right: -60px;
  width: 40px; z-index: 0; pointer-events: none;
  animation: bird-fly 32s linear infinite;
  opacity: 0;
}
.hero-bird svg { width: 100%; height: auto; display: block; }
.hero-bird .bird-body { animation: bird-flap .8s ease-in-out infinite; transform-origin: center; }
@keyframes bird-fly {
  0%, 68%  { transform: translateX(0); opacity: 0; }
  70%      { opacity: 0.7; }
  92%      { transform: translateX(calc(-100vw - 120px)); opacity: 0.7; }
  93%, 100% { transform: translateX(calc(-100vw - 120px)); opacity: 0; }
}
@keyframes bird-flap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.55); }
}

/* 关于我区块角落的发光小树 */
.about-grid { position: relative; }
.about-tree {
  position: absolute; right: -10px; top: -30px;
  width: clamp(80px, 10vw, 120px);
  pointer-events: none; z-index: 0;
  animation: tree-sway 8s ease-in-out infinite;
  transform-origin: bottom center;
}
.about-tree svg { width: 100%; height: auto; display: block; }
@keyframes tree-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(1.5deg); }
}
.tree-fruit { animation: pea-glow 4s ease-in-out infinite; }
.tree-fruit.f2 { animation-delay: 1s; }
.tree-fruit.f3 { animation-delay: 2s; }
.tree-fruit.f4 { animation-delay: 3s; }

/* ==========================================================================
   访客共建：点击种下的植物
   ========================================================================== */
.plant-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.planted {
  position: absolute;
  width: clamp(26px, 3.4vw, 40px);
  transform: translate(-50%, -100%) scale(0);
  transform-origin: bottom center;
  pointer-events: auto;
  cursor: default;
}
.planted svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 8px rgba(71, 226, 124, 0.4)); }
/* 生长动画：从土里弹出来 */
.planted.is-grown {
  animation: plant-sway var(--sway-dur, 7s) ease-in-out infinite;
  animation-delay: var(--sway-del, 0s);
  transform: translate(-50%, -100%) scale(1);
  transition: transform .8s cubic-bezier(.2, .8, .3, 1.4);
}
.planted.is-born { transition: transform .8s cubic-bezier(.2, .8, .3, 1.4); }
@keyframes plant-sway {
  0%, 100% { transform: translate(-50%, -100%) scale(1) rotate(-2deg); }
  50%      { transform: translate(-50%, -100%) scale(1) rotate(2.5deg); }
}
/* 悬停时欢快摇动回应 */
@media (hover: hover) {
  .planted:hover { animation: plant-hello .6s ease-in-out; }
}
@keyframes plant-hello {
  0%, 100% { transform: translate(-50%, -100%) scale(1) rotate(0); }
  25%      { transform: translate(-50%, -100%) scale(1.12) rotate(-7deg); }
  60%      { transform: translate(-50%, -100%) scale(1.08) rotate(6deg); }
}

/* 种植提示 */
.plant-hint {
  position: absolute;
  left: var(--pad-x);
  bottom: 18px;
  z-index: 2;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  pointer-events: none;
  animation: hint-breathe 4s ease-in-out infinite;
}
@keyframes hint-breathe {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.9; }
}

/* ---------- 按钮按压 ---------- */
.btn:active, .filter-chip:active { transform: scale(0.96); }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .petal, .section-title::after { animation: none !important; }
  .hero-petals, .hero-canvas, .hero-bird { display: none; }
  .hero-vine, .hero-pod, .pea-rover, .about-facts::after, .about-tree, .hero-moon, .planted { animation: none !important; }
  .star, .firefly, .plant-hint { animation: none !important; opacity: 0.5; }
  .planted { transform: translate(-50%, -100%) scale(1) !important; }
  .hero-vine .vine-path, .hero-vine .tendril { stroke-dashoffset: 0; animation: none; }
  .hero-vine .pod { opacity: 1; animation: none; }
  .hero h1 em { animation: none; }
  .pea-rover { display: none; }
  .vine-fill { transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  body { font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .nav-inner { min-height: 54px; }
  .nav-links a { padding: 10px 10px; font-size: 14px; }
  .nav-links a::after { left: 10px; right: 10px; }
  .logo { font-size: 16px; }
  .pea-mark { width: 28px; height: 18px; }
  .card { padding: 20px; }
  .garden-row { gap: 14px; padding: 16px 4px; }
  .garden-date { width: 56px; font-size: 12px; }
  .case-row { gap: 10px; font-size: 13.5px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-pod { display: none; }
}
