/* ============================================================
   奇妙动物园 · Wonder Zoo — 全站样式
   ============================================================ */

:root {
  --green-900: #123d2a;
  --green-800: #1b5e43;
  --green-700: #2e7d5b;
  --green-500: #52a87c;
  --green-100: #e8f5ec;
  --cream: #fff9ef;
  --orange: #ff8a3d;
  --yellow: #ffc93c;
  --pink: #ff6b9d;
  --blue: #4db8e8;
  --text: #1a3a2a;
  --muted: #5c7a6b;
  --white: #fff;
  --line: rgba(27, 94, 67, .12);
  --shadow-sm: 0 4px 16px rgba(18, 61, 42, .08);
  --shadow: 0 14px 40px rgba(18, 61, 42, .13);
  --shadow-lg: 0 24px 60px rgba(18, 61, 42, .2);
  --radius: 24px;
  --radius-sm: 14px;
  --maxw: 1200px;

  /* 页面主题色（由 data-animal 覆盖） */
  --primary: var(--green-700);
  --primary-dark: var(--green-900);
  --soft: var(--green-100);
  --accent: var(--orange);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Trebuchet MS", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[data-animal="lion"]     { --primary: #d97706; --primary-dark: #7c3f06; --soft: #fff2dd; --accent: #f59e0b; }
body[data-animal="giraffe"]  { --primary: #c98a15; --primary-dark: #7a5306; --soft: #fff5d9; --accent: #f4b942; }
body[data-animal="elephant"] { --primary: #64748b; --primary-dark: #334155; --soft: #edf1f5; --accent: #94a3b8; }
body[data-animal="penguin"]  { --primary: #1976a3; --primary-dark: #0c3b56; --soft: #e4f4fc; --accent: #38bdf8; }
body[data-animal="dolphin"]  { --primary: #0284a8; --primary-dark: #044e63; --soft: #dff5fb; --accent: #22d3ee; }
body[data-animal="tiger"]    { --primary: #ea580c; --primary-dark: #7c2d12; --soft: #fff0e4; --accent: #fb923c; }
body[data-animal="koala"]    { --primary: #6b8e5a; --primary-dark: #3c5233; --soft: #eef5e8; --accent: #9ccc65; }
body[data-animal="flamingo"] { --primary: #db2777; --primary-dark: #831843; --soft: #fce7f3; --accent: #f472b6; }
body[data-animal="fox"]      { --primary: #c2410c; --primary-dark: #7a2e0e; --soft: #ffede3; --accent: #fb923c; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }

/* ---------- 导航栏 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 74px;
  display: flex;
  align-items: center;
  background: rgba(255, 249, 239, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 249, 239, .96); }

.nav-inner { display: flex; align-items: center; gap: 28px; width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.3rem; color: var(--green-900); white-space: nowrap; }
.logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  border-radius: 14px; font-size: 1.4rem;
  box-shadow: 0 6px 14px rgba(27, 94, 67, .25);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.1); }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  color: var(--muted); transition: color .2s, background .2s, transform .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-900); background: var(--green-100); transform: translateY(-2px); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-800); color: #fff; border: none;
  padding: 11px 20px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 8px 18px rgba(27, 94, 67, .24);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.nav-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(27, 94, 67, .32); background: var(--green-700); }

.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--green-900); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s, background .28s;
}
.btn-primary { background: var(--green-800); color: #fff; box-shadow: 0 12px 26px rgba(27, 94, 67, .28); }
.btn-primary:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 34px rgba(27, 94, 67, .36); }
.btn-ghost { background: rgba(255, 255, 255, .9); color: var(--green-900); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { transform: translateY(-4px); background: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--soft); transform: translateY(-3px); }

/* ---------- 区块标题 ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--soft); color: var(--primary); padding: 7px 16px;
  border-radius: 999px; font-size: .85rem; font-weight: 900; letter-spacing: .06em;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 4.3vw, 3rem); line-height: 1.2; margin: 0 0 14px; color: var(--green-900); letter-spacing: -.02em; }
.section-desc { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-title .hl { color: var(--accent); position: relative; white-space: nowrap; }
.section-title .hl::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 9px;
  background: rgba(255, 201, 60, .45); border-radius: 8px; z-index: -1;
}

/* ---------- 首页 Hero ---------- */
.hero {
  min-height: 780px; height: 100vh; max-height: 940px;
  position: relative; display: grid; place-items: center;
  background: var(--green-900); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(9,45,29,.90) 0%, rgba(9,45,29,.68) 45%, rgba(9,45,29,.18) 100%), url('../images/hero.png');
  background-size: cover; background-position: center 45%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; left: -5%; right: -5%; bottom: -2px; height: 90px;
  background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-content { position: relative; z-index: 3; width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; color: #fff; padding-bottom: 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 800;
  backdrop-filter: blur(8px); animation: fadeUp .8s .1s both;
}
.hero-badge .dot { width: 8px; height: 8px; background: #7bed9f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(123,237,159,.22); animation: pulse 2s infinite; }
.hero h1 {
  font-size: clamp(2.8rem, 7.2vw, 5.6rem); line-height: 1.08; letter-spacing: -.04em;
  margin: 22px 0 18px; font-weight: 900; max-width: 780px;
  animation: fadeUp .85s .22s both;
}
.hero h1 .accent { color: var(--yellow); position: relative; }
.hero h1 .accent::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 10px;
  background: rgba(255,201,60,.35); border-radius: 10px; z-index: -1;
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.32rem); max-width: 520px; color: rgba(255,255,255,.86); margin: 0 0 34px; animation: fadeUp .85s .36s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeUp .85s .5s both; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 58px; animation: fadeUp .85s .64s both; }
.hero-stats .stat strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--yellow); }
.hero-stats .stat span { font-size: .86rem; color: rgba(255,255,255,.7); font-weight: 700; }

.scroll-hint {
  position: absolute; bottom: 118px; left: 50%; transform: translateX(-50%);
  z-index: 4; color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 800;
  letter-spacing: .16em; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint i { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.scroll-hint i::after {
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 4px; animation: scrolldot 1.8s infinite;
}

.float-deco { position: absolute; z-index: 2; pointer-events: none; }
.float-deco.cloud { opacity: .35; filter: blur(.5px); }
.deco-1 { top: 16%; right: 8%; font-size: 4rem; animation: drift 12s ease-in-out infinite; }
.deco-2 { top: 58%; right: 22%; font-size: 2.6rem; animation: drift 9s ease-in-out infinite reverse; }
.deco-3 { top: 26%; left: 5%; font-size: 2.2rem; animation: float 6s ease-in-out infinite; }

/* ---------- 动物卡片网格 ---------- */
.animal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
.animal-card {
  position: relative; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s;
  opacity: 0; transform: translateY(30px);
}
.animal-card.in { animation: fadeUp .7s forwards; }
.animal-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-lg); }
.card-media { position: relative; height: 215px; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.animal-card:hover .card-media img { transform: scale(1.12) rotate(-2deg); }
.card-region {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--card-color, var(--green-800));
  font-size: .76rem; font-weight: 900; padding: 5px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card-mascot {
  position: absolute; right: 8px; bottom: -12px; width: 78px; height: 78px; z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  animation: bob 3.5s ease-in-out infinite;
}
.animal-card:hover .card-mascot { transform: scale(1.22) rotate(-10deg); }
.card-body { padding: 20px 22px 24px; }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-body h3 { margin: 0; font-size: 1.35rem; color: var(--green-900); }
.card-body .latin { font-size: .76rem; color: var(--muted); font-style: italic; white-space: nowrap; }
.card-desc { color: var(--muted); font-size: .92rem; margin: 10px 0 16px; min-height: 46px; }
.card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--card-color, var(--green-800)); font-weight: 900; font-size: .9rem; }
.card-more span { transition: transform .3s; }
.animal-card:hover .card-more span { transform: translateX(6px); }

/* ---------- 区域导览 ---------- */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.region-tile {
  padding: 26px 22px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.region-tile:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); }
.region-icon {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.7rem; background: var(--bg, var(--green-100));
}
.region-tile h4 { margin: 0 0 2px; font-size: 1.08rem; }
.region-tile p { margin: 0; font-size: .84rem; color: var(--muted); }

/* ---------- 数字条 ---------- */
.number-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-radius: 32px; padding: 52px 40px; color: #fff;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 30px;
  text-align: center; position: relative; overflow: hidden;
}
.number-band::before, .number-band::after {
  content: ''; position: absolute; border: 2px dashed rgba(255,255,255,.12); border-radius: 50%;
}
.number-band::before { width: 320px; height: 320px; right: -100px; top: -160px; }
.number-band::after { width: 220px; height: 220px; left: -90px; bottom: -140px; }
.band-num { position: relative; z-index: 1; }
.band-num strong { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; color: var(--yellow); }
.band-num span { font-size: .92rem; color: rgba(255,255,255,.75); font-weight: 700; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: linear-gradient(135deg, var(--green-500), var(--green-700)); }
.site-footer p { max-width: 340px; font-size: .94rem; }
.footer-col h5 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer-col a { display: block; padding: 4px 0; font-size: .92rem; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--yellow); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; text-align: center; font-size: .85rem; }

/* ============================================================
   动物详情页
   ============================================================ */
.detail-hero { padding: 148px 0 70px; position: relative; overflow: hidden; background: var(--soft); }
.detail-hero::before {
  content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: var(--primary); opacity: .07; right: -120px; top: -200px;
}
.detail-hero::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: var(--accent); opacity: .09; left: -110px; bottom: -160px;
}
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); font-weight: 700; margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--primary); }

.detail-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 66px; align-items: center; position: relative; z-index: 1; }
.detail-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary); font-weight: 900; font-size: .84rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.detail-title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.07; margin: 0 0 6px; color: var(--primary-dark); letter-spacing: -.03em; }
.detail-latin { color: var(--muted); font-style: italic; font-size: 1.06rem; margin: 0 0 22px; }
.detail-tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 800; color: var(--primary); margin: 0 0 16px; }
.detail-intro-short { color: var(--muted); font-size: 1.02rem; margin: 0 0 28px; max-width: 500px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 照片展示 */
.photo-frame { position: relative; }
.photo-frame::before {
  content: ''; position: absolute; inset: -16px 18px 18px -16px;
  border: 3px dashed var(--primary); opacity: .28; border-radius: 32px; transform: rotate(-3deg);
}
.photo-main {
  position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2; background: var(--primary);
}
.photo-main img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 20s ease-in-out infinite alternate; }
.photo-badge {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 8px 15px; border-radius: 999px; font-size: .82rem; font-weight: 900; color: var(--primary-dark);
}
.photo-sticker {
  position: absolute; right: -14px; top: -18px; z-index: 3;
  width: 128px; height: 128px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow); display: grid; place-items: center;
  border: 5px solid var(--accent); animation: float 4s ease-in-out infinite;
}
.photo-sticker svg { width: 96px; height: 96px; }

/* 档案卡 */
.fact-strip { padding: 0 0 20px; margin-top: -46px; position: relative; z-index: 5; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; }
.fact-item {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.fact-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fact-icon {
  width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.25rem;
  background: var(--soft); border-radius: 12px; margin-bottom: 11px;
}
.fact-label { font-size: .78rem; color: var(--muted); font-weight: 800; margin-bottom: 3px; }
.fact-value { font-weight: 900; color: var(--primary-dark); font-size: 1.02rem; line-height: 1.35; }

/* 卡通形象区 */
.mascot-section { background: #fff; position: relative; overflow: hidden; }
.mascot-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .07;
}
.mascot-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.mascot-stage {
  width: 320px; height: 320px; border-radius: 50%; background: var(--soft);
  display: grid; place-items: center; position: relative;
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.7), var(--shadow-sm);
}
.mascot-stage::before {
  content: ''; position: absolute; inset: -20px; border: 3px dashed var(--accent); border-radius: 50%;
  opacity: .35; animation: spin-slow 32s linear infinite;
}
.mascot-stage svg { width: 250px; height: 250px; position: relative; z-index: 2; animation: float 3.8s ease-in-out infinite; }
.mascot-shadow { position: absolute; bottom: 42px; width: 160px; height: 22px; border-radius: 50%; background: var(--primary); opacity: .12; filter: blur(4px); animation: shadow-pulse 3.8s ease-in-out infinite; }
.mascot-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--primary-dark); margin: 0 0 16px; }
.mascot-copy p { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; max-width: 620px; }
.speech-bubble {
  display: inline-flex; align-items: center; gap: 12px; background: var(--soft);
  border: 2px solid var(--primary); border-radius: 20px; padding: 14px 20px;
  font-weight: 800; color: var(--primary-dark); position: relative; max-width: 100%;
  animation: bob 4s ease-in-out infinite;
}
.speech-bubble::before {
  content: ''; position: absolute; left: -13px; top: 26px;
  border: 10px solid transparent; border-right-color: var(--primary);
}
.speech-bubble .emoji { font-size: 1.7rem; }

/* 故事正文 */
.story-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 64px; align-items: start; }
.story-body p { color: var(--muted); font-size: 1.05rem; margin: 0 0 20px; }
.story-body p.lead { font-size: 1.18rem; color: var(--text); font-weight: 600; }
.story-body p.lead::first-letter { font-size: 3.2rem; float: left; line-height: .9; padding: 6px 10px 0 0; color: var(--primary); font-weight: 900; }
.quote-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 28px; margin-top: 28px;
  position: relative; overflow: hidden;
}
.quote-card::before { content: '"'; position: absolute; right: 18px; top: -26px; font-size: 9rem; opacity: .12; font-family: Georgia, serif; }
.quote-card p { color: #fff; font-size: 1.08rem; font-style: italic; margin: 0 0 10px; position: relative; }
.quote-card small { color: rgba(255,255,255,.7); font-weight: 800; }

.fun-card { background: var(--soft); border-radius: var(--radius); padding: 32px; position: sticky; top: 100px; }
.fun-card h3 { margin: 0 0 20px; color: var(--primary-dark); font-size: 1.35rem; }
.fun-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.fun-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text); font-size: .98rem; }
.fun-num {
  flex: 0 0 30px; height: 30px; border-radius: 10px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 900;
}

/* 画廊 */
.gallery { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; height: 250px; box-shadow: var(--shadow-sm); }
.gallery-item:first-child { grid-row: span 2; height: 516px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.g1 { background: var(--soft); }
.gallery-item.g1 svg { width: 100%; height: 100%; padding: 26px; }
.gallery-item.g2 { background: var(--primary); }
.gallery-item.g2 svg { width: 100%; height: 100%; padding: 30px; opacity: .85; }
.gallery-label { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); padding: 6px 13px; border-radius: 999px; font-size: .78rem; font-weight: 900; color: var(--primary-dark); }

/* 相邻导航 */
.animal-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nav-animal-card {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.nav-animal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.nav-animal-card.next { flex-direction: row-reverse; text-align: right; }
.nav-animal-card img { width: 74px; height: 74px; border-radius: 16px; object-fit: cover; flex: 0 0 74px; }
.nav-animal-card small { display: block; color: var(--muted); font-size: .78rem; font-weight: 800; }
.nav-animal-card strong { display: block; color: var(--primary-dark); font-size: 1.15rem; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--green-800); color: #fff; font-size: 1.3rem;
  box-shadow: 0 8px 22px rgba(27,94,67,.32);
  opacity: 0; pointer-events: none; transform: translateY(14px); transition: all .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px) scale(1.08); }

/* 飘落的叶子（JS 生成） */
.leaf { position: fixed; top: -40px; z-index: 1; pointer-events: none; font-size: 1.2rem; animation: leaf-fall linear forwards; opacity: .75; }

/* ============================================================
   动画关键帧
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.7); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes drift { 0%, 100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(36px) translateY(-10px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(.08); } }
@keyframes wag { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(123,237,159,.22); } 50% { box-shadow: 0 0 0 9px rgba(123,237,159,.05); } }
@keyframes shadow-pulse { 0%, 100% { transform: scale(1); opacity: .12; } 50% { transform: scale(.82); opacity: .07; } }
@keyframes scrolldot { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 14px); opacity: 0; } }
@keyframes leaf-fall {
  0% { transform: translateY(-40px) rotate(0deg) translateX(0); opacity: 0; }
  10% { opacity: .8; }
  100% { transform: translateY(105vh) rotate(680deg) translateX(120px); opacity: 0; }
}
@keyframes tail-wag { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(14deg); } }
@keyframes ear-twitch { 0%, 92%, 100% { transform: rotate(0); } 95% { transform: rotate(-14deg); } }

/* SVG 角色内部动画类 */
.mascot-svg .eye-group { transform-origin: center; animation: blink 5s infinite; transform-box: fill-box; }
.mascot-svg .ear-left { transform-origin: top right; animation: ear-twitch 6s infinite; transform-box: fill-box; }
.mascot-svg .ear-right { transform-origin: top left; animation: ear-twitch 6s .3s infinite; transform-box: fill-box; }
.mascot-svg .tail { transform-origin: left bottom; animation: tail-wag 2.6s ease-in-out infinite; transform-box: fill-box; }
.mascot-svg .arm-left { transform-origin: right top; animation: sway 3s ease-in-out infinite; transform-box: fill-box; }
.mascot-svg .arm-right { transform-origin: left top; animation: sway 3s .5s ease-in-out infinite reverse; transform-box: fill-box; }
.mascot-svg .wing { transform-origin: center; animation: wag 1.4s ease-in-out infinite; transform-box: fill-box; }
.mascot-svg .sparkle { animation: pulse 2.4s infinite; transform-box: fill-box; transform-origin: center; }
.mascot-svg .neck { transform-origin: bottom center; animation: sway 4s ease-in-out infinite; transform-box: fill-box; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1000px) {
  .detail-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .photo-frame { max-width: 600px; }
  .mascot-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mascot-copy { text-align: center; }
  .speech-bubble { margin-inline: auto; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .fun-card { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-row: auto; height: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container, .nav-inner, .hero-content { width: min(100% - 32px, var(--maxw)); }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 16px 24px 22px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; animation: fadeUp .3s both; }
  .nav-links a { text-align: center; }
  .nav-cta { margin-left: auto; padding: 9px 15px; font-size: .88rem; }
  .menu-toggle { display: block; }
  .hero { min-height: 660px; }
  .hero-stats { gap: 22px; margin-top: 40px; }
  .hero-stats .stat strong { font-size: 1.6rem; }
  .scroll-hint { display: none; }
  .section { padding: 68px 0; }
  .detail-hero { padding-top: 120px; }
  .fact-strip { margin-top: 0; }
  .mascot-stage { width: 260px; height: 260px; }
  .mascot-stage svg { width: 210px; height: 210px; }
  .photo-sticker { width: 96px; height: 96px; right: -6px; top: -14px; }
  .photo-sticker svg { width: 72px; height: 72px; }
  .gallery { grid-template-columns: 1fr; }
  .animal-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .number-band { padding: 40px 20px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .animal-card { opacity: 1 !important; transform: none !important; }
}
