/* ==========================================================
   胖猫纪念站 —— 优化版样式
   设计语言：粉白渐变 / 暖粉主色 / 毛玻璃白卡片 / 治愈系动效
   ========================================================== */

:root {
  --rose: #FF6B9D;          /* 主色 暖粉 */
  --rose-deep: #E5487A;
  --rose-dark: #C73A68;
  --pink: #FF8FB1;
  --pink-light: #FFC7DA;
  --soft-pink: #FFE3EC;
  --warm-orange: #F59E0B;
  --warm-brown: #6E4532;
  --warm-brown-soft: rgba(110, 69, 50, 0.72);
  --warm-brown-faint: rgba(110, 69, 50, 0.5);
  --green: #16A34A;
  --red: #DC2626;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 107, 157, 0.16);
  --shadow-sm: 0 4px 16px rgba(255, 107, 157, 0.08);
  --shadow: 0 10px 30px rgba(255, 107, 157, 0.12);
  --shadow-lg: 0 18px 44px rgba(255, 107, 157, 0.2);
  --grad-main: linear-gradient(135deg, #FF8FB1, #FF6B9D 55%, #F45E93);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  color: var(--warm-brown);
  background: linear-gradient(180deg, #FFF6F8 0%, #FFEDF2 26%, #FFF6EE 60%, #FFF9F4 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
  animation: bgBreath 14s ease-in-out infinite alternate;
  min-height: 100vh;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* 全站背景微呼吸：粉调缓慢漂移 */
@keyframes bgBreath {
  from { filter: hue-rotate(0deg) saturate(1); }
  to   { filter: hue-rotate(6deg) saturate(1.08); }
}

::selection { background: rgba(255, 107, 157, 0.25); color: var(--rose-dark); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 107, 157, 0.3); border-radius: 999px; border: 2px solid #FFF3F6; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 107, 157, 0.5); }

.hidden { display: none !important; }

/* ---------------- 导航栏 ---------------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 248, 250, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 107, 157, 0.1);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(255, 107, 157, 0.1); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  color: var(--rose-deep);
  cursor: pointer;
  letter-spacing: 1px;
}

.logo-heart { animation: heartbeat 1.6s ease-in-out infinite; }

.nav-menu { display: flex; align-items: center; gap: 2px; }

.nav-item {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-brown-soft);
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-item:hover { color: var(--rose); background: rgba(255, 107, 157, 0.06); }
.nav-item.active { color: var(--rose-deep); background: rgba(255, 107, 157, 0.12); font-weight: 600; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--warm-brown);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid rgba(255, 107, 157, 0.1);
  background: rgba(255, 248, 250, 0.97);
  backdrop-filter: blur(14px);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-item {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
}

/* ---------------- 站点公告条 ---------------- */

.announcement-bar {
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 44px 10px 20px;
  background: linear-gradient(90deg, rgba(255, 214, 232, 0.97), rgba(255, 236, 242, 0.97));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 157, 0.18);
  font-size: 14px;
  color: var(--rose-deep);
}
.announcement-bar.hidden { display: none; }
.announcement-bar:not(.hidden) { animation: announceIn 0.5s ease-out; }
.announcement-icon {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--rose-deep);
  animation: heartbeat 2s ease-in-out infinite;
}
.announcement-text { text-align: center; line-height: 1.5; }
.announcement-close {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 107, 157, 0.12);
  color: var(--rose-deep);
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.announcement-close:hover { background: rgba(255, 107, 157, 0.28); transform: translateY(-50%) rotate(90deg); }

/* ---------------- Hero 首屏 ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 60px;
  overflow: hidden;
}

/* 首屏柔和光晕 */
.hero::before {
  content: "";
  position: absolute;
  left: 50%; top: 22%;
  width: 640px; height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 183, 208, 0.35) 0%, rgba(255, 183, 208, 0) 65%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--rose-deep);
  text-shadow: 0 2px 28px rgba(255, 107, 157, 0.3);
  animation: fadeInUp 0.9s ease both;
}
/* 标题流光：渐变文字缓慢流动（不支持的浏览器回退为纯色） */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title {
    background: linear-gradient(120deg, var(--rose-deep) 0%, #ff8fb8 25%, var(--rose) 50%, #ffb3c9 75%, var(--rose-deep) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 0.9s ease both, titleShimmer 6s linear infinite;
  }
}
@keyframes titleShimmer { to { background-position: 250% center; } }

.hero-sub {
  margin-top: 14px;
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--warm-brown);
  letter-spacing: 3px;
  animation: fadeInUp 0.9s 0.15s ease both;
}

.hero-slogan {
  margin-top: 26px;
  display: inline-block;
  font-size: 14px;
  color: var(--warm-brown-soft);
  letter-spacing: 2px;
  padding: 6px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 107, 157, 0.14);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.9s 0.3s ease both;
}
/* 标语胶囊扫光 */
.hero-slogan::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 107, 157, 0.22), transparent);
  animation: sloganSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sloganSweep {
  0% { left: -60%; }
  55%, 100% { left: 135%; }
}

.hero-action {
  margin-top: 42px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.9s 0.45s ease both;
}

.lamp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 42px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--grad-main);
  box-shadow: 0 10px 28px rgba(255, 107, 157, 0.4);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.lamp-btn::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
/* 按钮呼吸光环 */
.lamp-btn::before {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 999px;
  border: 2px solid rgba(255, 107, 157, 0.5);
  animation: btnHalo 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes btnHalo {
  0%   { transform: scale(1); opacity: 0.85; }
  70%  { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}
.lamp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 107, 157, 0.5); }
.lamp-btn:hover::after { transform: translateX(120%); }
.lamp-btn:active { transform: translateY(0) scale(0.98); }

/* 点灯动画 */
.lamp-anim { position: relative; width: 200px; height: 200px; }

.lamp-svg { position: relative; z-index: 2; display: block; margin: 0 auto; }

.lamp-glow {
  position: absolute;
  left: 50%; top: 62px;
  width: 130px; height: 130px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 214, 102, 0.9) 0%, rgba(255, 214, 102, 0.3) 45%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2.2s ease-in-out infinite;
  z-index: 1;
}

.lamp-rays { position: absolute; left: 50%; top: 62px; z-index: 1; }
.lamp-rays span {
  position: absolute;
  left: -2px; top: -2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 214, 102, 0.9);
  animation: rayFly 2.4s ease-out infinite;
}
.lamp-rays span:nth-child(2) { animation-delay: 0.2s; }
.lamp-rays span:nth-child(3) { animation-delay: 0.4s; }
.lamp-rays span:nth-child(4) { animation-delay: 0.6s; }
.lamp-rays span:nth-child(5) { animation-delay: 0.8s; }
.lamp-rays span:nth-child(6) { animation-delay: 1.0s; }

.lamp-light { animation: bulbFlicker 0.5s ease-in-out 6; }

.lamp-text {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--warm-orange);
  text-align: center;
  animation: fadeInUp 1s ease both;
}

.hero-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--warm-brown-faint);
  letter-spacing: 4px;
  animation: fadeInUp 0.9s 0.6s ease both;
}
.hero-hint::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: hintBounce 1.8s ease-in-out infinite;
}

/* 漂浮装饰 */
.float-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fd {
  position: absolute;
  font-size: 22px;
  color: rgba(255, 107, 157, 0.24);
  animation: floatHeart 6s ease-in-out infinite;
}
.fd-1 { top: 18%; left: 10%; font-size: 30px; }
.fd-2 { top: 30%; right: 12%; font-size: 26px; animation-delay: 1s; }
.fd-3 { top: 55%; left: 6%; font-size: 20px; animation-delay: 2s; }
.fd-4 { top: 62%; right: 20%; font-size: 24px; animation-delay: 0.6s; }
.fd-5 { top: 15%; left: 32%; font-size: 16px; animation-delay: 1.6s; }
.fd-6 { top: 42%; left: 22%; font-size: 18px; animation-delay: 2.4s; }
.fd-7 { top: 22%; right: 34%; font-size: 20px; animation-delay: 3s; }
.fd-8 { top: 70%; left: 40%; font-size: 22px; animation-delay: 1.2s; }

/* 呼吸光斑：首屏背景大光晕缓慢漂移 */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: auroraDrift 16s ease-in-out infinite;
}
.a1 {
  width: 420px; height: 420px;
  left: -6%; top: 10%;
  background: radial-gradient(circle, rgba(255, 183, 208, 0.55) 0%, transparent 70%);
}
.a2 {
  width: 380px; height: 380px;
  right: -5%; bottom: 6%;
  background: radial-gradient(circle, rgba(255, 216, 158, 0.5) 0%, transparent 70%);
  animation-delay: -8s;
}
@keyframes auroraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  33% { transform: translate(42px, -30px) scale(1.14); opacity: 0.85; }
  66% { transform: translate(-34px, 26px) scale(0.94); opacity: 0.6; }
}

/* 爱心雨：轻柔飘落的爱心粒子 */
.rain {
  position: absolute;
  top: -8%;
  font-size: 14px;
  color: rgba(255, 107, 157, 0.34);
  animation: heartFall linear infinite;
}
.r1 { left: 6%;   animation-duration: 11s;  animation-delay: 0s; }
.r2 { left: 16%;  animation-duration: 13s;  animation-delay: 2.4s; font-size: 10px; }
.r3 { left: 27%;  animation-duration: 12s;  animation-delay: 4.8s; }
.r4 { left: 38%;  animation-duration: 14s;  animation-delay: 1.2s; font-size: 12px; }
.r5 { left: 49%;  animation-duration: 10.5s; animation-delay: 6s; }
.r6 { left: 60%;  animation-duration: 12.5s; animation-delay: 3.6s; font-size: 9px; }
.r7 { left: 70%;  animation-duration: 13.5s; animation-delay: 7.2s; }
.r8 { left: 80%;  animation-duration: 11.5s; animation-delay: 5.4s; font-size: 11px; }
.r9 { left: 90%;  animation-duration: 12.8s; animation-delay: 8.4s; }
.r10 { left: 96%; animation-duration: 10.8s; animation-delay: 1.8s; font-size: 10px; }
@keyframes heartFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.8; }
  85%  { opacity: 0.55; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

/* ---------------- 通用板块 ---------------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 92px 20px;
  scroll-margin-top: 74px;
}

/* 滚动浮现 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.section-head { text-align: center; margin-bottom: 48px; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--rose);
  padding: 4px 16px;
  border-radius: 999px;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.2);
  animation: badgeGlow 3.6s ease-in-out infinite;
}
/* 板块徽章柔光呼吸 */
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0); }
  50% { box-shadow: 0 0 18px 2px rgba(255, 107, 157, 0.28); }
}
  border: 1px solid rgba(255, 107, 157, 0.18);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  color: var(--rose-deep);
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -10px;
  width: 40px; height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--grad-main);
}

.section-sub {
  margin-top: 20px;
  font-size: 15px;
  color: var(--warm-brown-soft);
  letter-spacing: 1px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.card:hover {
  border-color: rgba(255, 107, 157, 0.28);
  box-shadow: var(--shadow);
}

/* ---------------- 故事板块 ---------------- */

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.story-card { text-align: center; position: relative; overflow: hidden; }
.story-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1), transparent 70%);
  transition: transform 0.4s;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.story-card:hover::before { transform: scale(1.5); }

.story-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 227, 236, 0.95), rgba(255, 240, 217, 0.95));
  border: 1px solid rgba(255, 107, 157, 0.14);
  box-shadow: 0 8px 22px rgba(255, 107, 157, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}
.story-icon::after {
  content: "";
  position: absolute;
  top: -30%; left: -30%;
  width: 60%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
  pointer-events: none;
}
.story-card:hover .story-icon { transform: scale(1.08) rotate(-4deg); }

.story-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 10px;
}

.story-card p { font-size: 14px; color: var(--warm-brown-soft); text-align: left; }

.story-quote {
  margin: 42px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 18px;
  color: var(--rose);
  letter-spacing: 2px;
  font-style: normal;
  position: relative;
  padding: 0 30px;
}
.story-quote::before, .story-quote::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.5));
}
.story-quote::before { left: 0; }
.story-quote::after { right: 0; transform: scaleX(-1); }

/* ---------------- 纪念墙 ---------------- */

.wall-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }

.msg-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  animation: fadeInUp 0.5s ease both;
  transition: transform 0.25s, box-shadow 0.25s;
}
.msg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.msg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.msg-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
  background: rgba(255, 107, 157, 0.08);
  padding: 3px 12px;
  border-radius: 999px;
}

.msg-content { font-size: 15px; color: var(--warm-brown); }

.flower-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 107, 157, 0.1);
  color: var(--rose);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.flower-btn:hover { background: rgba(255, 107, 157, 0.2); transform: translateY(-1px); }
.flower-btn svg { transition: transform 0.3s; }
.flower-btn.beat svg { animation: heartbeat 0.5s ease; }
.flower-count { font-weight: 700; }

/* ---------------- 表单 ---------------- */

.wall-form, .tree-form { margin-top: 10px; }

textarea {
  width: 100%;
  border: 1px solid rgba(255, 107, 157, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--warm-brown);
  background: rgba(255, 255, 255, 0.8);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.12); }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.char-count { font-size: 13px; color: var(--warm-brown-faint); }
.char-count.warn { color: var(--warm-orange); }

.btn-primary {
  padding: 10px 30px;
  border: none;
  border-radius: 999px;
  background: var(--grad-main);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.32);
  transition: all 0.22s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 107, 157, 0.42); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--warm-brown-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.7;
}

.empty-tip { text-align: center; color: var(--warm-brown-faint); padding: 30px 16px; font-size: 14px; line-height: 1.9; animation: tip-in 0.45s ease; }
.empty-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 38px 16px;
}
.empty-story svg { opacity: 0.5; color: var(--rose); }
@keyframes tip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- 情感树洞 ---------------- */

.tree-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}

.tree-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 107, 157, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--warm-brown-soft);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.tree-tab:hover { color: var(--rose); border-color: rgba(255, 107, 157, 0.4); }
.tree-tab.active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.34);
}

.tree-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }

.confide-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  animation: fadeInUp 0.5s ease both;
  transition: transform 0.25s, box-shadow 0.25s;
}
.confide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.confide-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.confide-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose);
  background: rgba(255, 107, 157, 0.08);
  padding: 3px 12px;
  border-radius: 999px;
}
.confide-time { font-size: 12px; color: var(--warm-brown-faint); }
.confide-content { font-size: 15px; color: var(--warm-brown); }

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 107, 157, 0.1);
  color: var(--rose);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.like-btn:hover { background: rgba(255, 107, 157, 0.2); transform: translateY(-1px); }
.like-btn.beat svg { animation: heartbeat 0.5s ease; }

.tree-form-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--warm-brown);
}

.tree-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.tree-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 107, 157, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--warm-brown-soft);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.tree-cat.active {
  background: rgba(255, 107, 157, 0.12);
  color: var(--rose);
  border-color: var(--rose);
  font-weight: 600;
}

/* ---------------- 心理急救站 ---------------- */

.aid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 16px;
}

.hotline-card {
  text-align: center;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
}
.hotline-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-main);
  opacity: 0.85;
}
.hotline-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.hotline-name { font-size: 16px; font-weight: 700; color: var(--warm-brown); }
.hotline-desc { margin-top: 6px; font-size: 13px; color: var(--warm-brown-soft); }
.hotline-num {
  margin-top: 14px;
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
  position: relative;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.hotline-num:hover { color: var(--rose); transform: translateY(-1px); }
.hotline-num::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 60%; height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 107, 157, 0.2);
}

.aid-tip { text-align: center; font-size: 14px; color: var(--warm-orange); margin-bottom: 40px; }

.aid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.aid-block-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aid-block-title::before {
  content: "";
  width: 6px; height: 18px;
  border-radius: 999px;
  background: var(--grad-main);
}

/* 问卷 */
.quiz-card { min-height: 360px; }

.quiz-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--warm-brown-soft);
}

.quiz-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 107, 157, 0.12);
  overflow: hidden;
  margin-bottom: 24px;
}
.quiz-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF8FB1, #FF6B9D);
  transition: width 0.45s ease;
  position: relative;
}
.quiz-bar-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: barShimmer 1.6s linear infinite;
}

.quiz-question { font-size: 16px; font-weight: 600; color: var(--warm-brown); margin-bottom: 22px; min-height: 48px; }

.quiz-options { display: flex; flex-direction: column; gap: 10px; }

.quiz-option {
  padding: 12px 18px;
  border: 1px solid rgba(255, 107, 157, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-family: inherit;
  color: var(--warm-brown);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.quiz-option::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-main);
  transform: scaleY(0);
  transition: transform 0.25s;
}
.quiz-option:hover {
  border-color: var(--rose);
  background: rgba(255, 107, 157, 0.08);
  transform: translateX(4px);
}
.quiz-option:hover::before { transform: scaleY(1); }

.quiz-result { text-align: center; padding-top: 12px; animation: fadeInUp 0.4s ease both; }
.quiz-result-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.quiz-result h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.quiz-result-level { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.quiz-result-score { font-size: 14px; color: var(--warm-brown-soft); margin-bottom: 8px; }
.quiz-result-msg { font-size: 14px; color: var(--warm-brown-soft); margin-bottom: 20px; }

.btn-reset {
  padding: 10px 30px;
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--rose);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reset:hover { background: rgba(255, 107, 157, 0.1); }

/* 科普 */
.article-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }

.article-card {
  display: flex;
  gap: 14px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(255, 107, 157, 0.28); }

.article-img {
  width: 96px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #FFE3EC, #FFF0D9);
}
.article-img.img-fallback { opacity: 0.45; filter: saturate(0.6); }

.article-body { flex: 1; min-width: 0; }
.article-body h4 { font-size: 15px; font-weight: 700; color: var(--warm-brown); margin-bottom: 4px; }
.article-body p {
  font-size: 13px;
  color: var(--warm-brown-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.article-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--rose);
  text-decoration: none;
  transition: gap 0.2s;
}
.article-more:hover { text-decoration: underline; gap: 7px; }

/* 平台 */
.platform-list { display: flex; flex-direction: column; gap: 10px; }

.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  color: var(--warm-brown);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}
.platform::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-main);
  transform: scaleY(0);
  transition: transform 0.25s;
}
.platform:hover { color: var(--rose-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.platform:hover::before { transform: scaleY(1); }

/* ---------------- 重生故事 ---------------- */

.story-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }

.reborn-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 22px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.reborn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(255, 107, 157, 0.28); }
.reborn-card h4 { color: var(--rose-deep); }
.reborn-card p { font-size: 15px; color: var(--warm-brown-soft); }
.reborn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.reborn-head h4 { margin-bottom: 0; }
.reborn-time { font-size: 12px; color: var(--warm-brown-faint); flex: none; }

.stories-tail { text-align: center; padding: 26px 20px 20px; position: relative; }
.stories-tail h3 { font-size: 20px; font-weight: 700; color: var(--rose-deep); margin-bottom: 10px; }
.stories-tail p { font-size: 15px; color: var(--warm-brown-soft); max-width: 640px; margin: 0 auto; }

/* ---------------- 关于我们 ---------------- */

.about-card { margin-bottom: 22px; }
.about-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--rose-deep);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-card h3::before {
  content: "";
  width: 5px; height: 16px;
  border-radius: 999px;
  background: var(--grad-main);
}
.about-card p { font-size: 15px; color: var(--warm-brown-soft); }

.about-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--soft-pink);
  color: var(--warm-brown-soft);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.22s;
}
.about-link:hover { background: rgba(255, 107, 157, 0.2); color: var(--rose-deep); transform: translateY(-2px); }

.about-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.about-email { font-weight: 600; color: var(--rose) !important; }

/* ---------------- 页脚 ---------------- */

.footer {
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(255, 246, 249, 0.9), rgba(255, 240, 245, 0.95));
  border-top: 1px solid rgba(255, 107, 157, 0.12);
  padding: 48px 20px 30px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  opacity: 0.6;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-col h4 { font-size: 16px; font-weight: 700; color: var(--rose-deep); margin-bottom: 12px; }
.footer-col p { font-size: 14px; color: var(--warm-brown-soft); margin-bottom: 8px; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--warm-brown-soft);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover { color: var(--rose); transform: translateX(3px); }

.volunteer-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 26px;
  border-radius: 999px;
  background: var(--grad-main);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.32);
  transition: all 0.22s;
}
.volunteer-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 10px 26px rgba(255, 107, 157, 0.42); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 107, 157, 0.12);
  padding-top: 22px;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--warm-brown-faint); margin-bottom: 4px; }
.footer-wish { color: var(--rose) !important; font-weight: 600; letter-spacing: 2px; margin-top: 8px !important; }

/* ---------------- 轻提示 Toast ---------------- */

.toast-wrap {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: rgba(90, 55, 70, 0.94);
  color: #fff;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
  animation: toastIn 0.3s ease-out;
  max-width: 86vw;
}
.toast.err { background: rgba(220, 38, 38, 0.94); }

@keyframes announceIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 动画 ---------------- */

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.18); }
  45% { transform: scale(1); }
  60% { transform: scale(1.12); }
}

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.75; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

@keyframes rayFly {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--rx, 20px), var(--ry, -40px)) scale(1.6); }
}

@keyframes bulbFlicker {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(5px) rotate(45deg); }
}

@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 860px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .aid-two { grid-template-columns: 1fr; }
  .about-two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 16px; }
  .announcement-bar { padding: 10px 40px 10px 14px; font-size: 13px; }
  .story-quote { font-size: 16px; padding: 0 10px; }
  .story-quote::before, .story-quote::after { display: none; }
  .hero { padding-top: 100px; }
  .section-head h2 { letter-spacing: 2px; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: 3px; }
  .story-grid { grid-template-columns: 1fr; }
  .aid-grid { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .article-img { width: 100%; height: 130px; }
}
