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

: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);
  /* 背景渐变移到 body::before（fixed 装饰层），避免 body 上的 filter 动画破坏弹层等 fixed 定位 */
  background: #FFF6F8;
  min-height: 100vh;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* 全站背景微呼吸：粉调缓慢漂移（挂在 body::before，不影响 fixed 定位的后代） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #FFF6F8 0%, #FFEDF2 26%, #FFF6EE 60%, #FFF9F4 100%);
  background-size: 100% 100%;
  animation: bgBreath 14s ease-in-out infinite alternate;
}
@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: 280px; height: auto; }

.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;
}

/* 点灯舞台：效果分层 */
.lamp-stage { position: relative; height: 200px; }
.lamp-effect { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.6s ease both; }

/* 效果二：万家灯火 */
.homes-window {
  position: relative;
  width: 280px; height: 150px;
  background:
    linear-gradient(rgba(255, 214, 102, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 214, 102, 0.14) 1px, transparent 1px),
    rgba(44, 26, 58, 0.55);
  background-size: 34px 26px;
  border: 2px solid rgba(255, 190, 120, 0.55);
  border-radius: 10px;
  box-shadow: 0 0 34px rgba(255, 180, 90, 0.35), inset 0 0 24px rgba(255, 200, 100, 0.12);
}
.homes-window i {
  position: absolute;
  width: 10px; height: 10px;
  background: #FFD66A;
  border-radius: 2px;
  box-shadow: 0 0 10px 2px rgba(255, 214, 102, 0.9);
  animation: windowLight 2.4s ease-in-out infinite;
  opacity: 0;
}
.homes-window i:nth-child(1) { left: 8%;  top: 20%; animation-delay: 0s; }
.homes-window i:nth-child(2) { left: 26%; top: 20%; animation-delay: 0.5s; }
.homes-window i:nth-child(3) { left: 44%; top: 20%; animation-delay: 1s; }
.homes-window i:nth-child(4) { left: 62%; top: 20%; animation-delay: 0.3s; }
.homes-window i:nth-child(5) { left: 80%; top: 20%; animation-delay: 1.3s; }
.homes-window i:nth-child(6) { left: 17%; top: 58%; animation-delay: 0.7s; }
.homes-window i:nth-child(7) { left: 35%; top: 58%; animation-delay: 1.6s; }
.homes-window i:nth-child(8) { left: 53%; top: 58%; animation-delay: 0.2s; }
.homes-window i:nth-child(9) { left: 71%; top: 58%; animation-delay: 0.9s; }
.homes-window i:nth-child(10){ left: 89%; top: 58%; animation-delay: 1.1s; }
.homes-window i:nth-child(11){ left: 8%;  top: 78%; animation-delay: 1.4s; }
.homes-window i:nth-child(12){ left: 80%; top: 78%; animation-delay: 0.6s; }

/* 效果三：烟花画布 */
#fireworksCanvas { display: block; width: 100%; height: auto; border-radius: 14px; }

.lamp-blessing {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.9), rgba(255, 176, 90, 0.9));
  padding: 7px 16px;
  border-radius: 999px;
  display: inline-block;
  animation: fadeInUp 0.9s 0.3s ease both;
  box-shadow: 0 6px 18px rgba(255, 120, 140, 0.35);
}

.lamp-again {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--warm-brown-faint);
  cursor: pointer;
  border-bottom: 1px dashed rgba(196, 122, 69, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.lamp-again:hover { color: var(--warm-orange); }
.lamp-count { color: #E0A93C; font-size: 12px; }

/* 卡片分享按钮 */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: #B9B0AC;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all 0.2s;
}
.share-btn:hover { color: var(--warm-orange); background: rgba(255, 107, 157, 0.08); }

/* 分享 + 回复 成组靠右 */
.msg-actions, .confide-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.msg-actions .share-btn, .confide-actions .share-btn { padding: 5px 9px; }
.confide-foot { display: flex; align-items: center; }
.confide-foot .like-btn { margin-top: 0; }

/* 站方回复 */
.msg-reply {
  margin-top: 10px;
  padding: 9px 12px;
  background: rgba(255, 224, 200, 0.5);
  border-left: 3px solid var(--warm-orange);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #7A5A44;
  display: flex;
  gap: 8px;
}
.msg-reply .reply-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--warm-orange);
  background: rgba(255, 107, 157, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  height: fit-content;
}

/* 帖子下的前台回复列表 */
.msg-replies {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px dashed rgba(255, 158, 107, 0.35);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.msg-reply-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #8A6C58;
  background: rgba(255, 244, 235, 0.55);
  padding: 6px 10px;
  border-radius: 8px;
}
.msg-reply-item .reply-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: #B9885E;
  background: rgba(255, 158, 107, 0.12);
  padding: 1px 7px;
  border-radius: 999px;
  height: fit-content;
}
.msg-reply-item .reply-text { flex: 1; word-break: break-word; }
.msg-reply-item .reply-time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--warm-brown-faint);
}

/* 卡片内联快捷回复框 */
.reply-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255, 244, 235, 0.7);
  border: 1px solid rgba(255, 158, 107, 0.35);
  border-radius: 10px;
  animation: fadeInUp 0.25s ease both;
}
.reply-input {
  width: 100%;
  min-height: 66px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid rgba(255, 158, 107, 0.45);
  border-radius: 8px;
  background: #FFFDFB;
  color: #5C4636;
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 10px;
  outline: none;
}
.reply-input:focus { border-color: var(--warm-orange); box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1); }
.reply-box-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.reply-cancel {
  border: 1px solid rgba(255, 158, 107, 0.4);
  background: transparent;
  color: #A08A77;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.reply-cancel:hover { background: rgba(255, 158, 107, 0.1); }
.reply-submit {
  border: none;
  background: linear-gradient(135deg, var(--warm-orange), #FF7AA0);
  color: #fff;
  font-size: 13px;
  padding: 5px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.28);
  transition: all 0.2s;
}
.reply-submit:hover { filter: brightness(1.06); }
.reply-submit:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* 分享链接定位高亮 */
.card-highlight {
  animation: cardGlow 3.2s ease;
}
@keyframes cardGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 158, 107, 0); }
  15% { box-shadow: 0 0 0 4px rgba(255, 158, 107, 0.55), 0 12px 34px rgba(255, 107, 157, 0.22); }
  70% { box-shadow: 0 0 0 4px rgba(255, 158, 107, 0.4), 0 12px 34px rgba(255, 107, 157, 0.16); }
  100% { box-shadow: 0 0 0 0 rgba(255, 158, 107, 0); }
}
.reply-btn svg { transform: scaleX(-1); }

/* 科普副标题 */
.aid-block-sub {
  margin: 4px 0 12px;
  font-size: 12.5px;
  color: var(--warm-brown-faint);
  line-height: 1.6;
}

.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: 72px 20px;
  scroll-margin-top: 74px;
}

/* 胖猫的故事板块：大屏宽度为浏览器视口的 85%，最大不超过 1400px */
#story.section {
  width: 85vw;
  max-width: 1400px;
}

/* 全局长文本自动换行：连续数字 / 英文单词 / 长链接不撑破布局 */
p, div, li, span, a, h1, h2, h3, h4, h5, h6, blockquote, td, th,
.msg-content, .confide-content, .reborn-body, .rich-content,
.rich-content p, .rich-content div, .rich-content li, .rich-content blockquote,
.story-card p, .reply-text, .msg-reply, .hotline-desc, .article-desc {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 滚动浮现 */
.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: 36px; }

.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: 14px;
  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; }

/* 胖猫的故事卡片：预览 50 字截断，超出提示可点击 */
.story-card { cursor: pointer; }
.story-card .fatcat-preview.truncated::after {
  content: "… 点击查看全文";
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--warm-orange);
  letter-spacing: 0.5px;
}
.story-card:hover .fatcat-preview.truncated::after { color: #FF7AA0; }

/* 胖猫的故事全文弹层 */
.story-modal { max-width: 620px; }
.story-modal-head { display: flex; align-items: center; gap: 14px; }
.story-modal-icon {
  flex: none;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border-radius: 18px;
  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);
}

/* 故事板块：单行左右滑动（左右箭头 + 拖拽 + 触摸） */
.fatcat-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -8px;
}
.story-grid.hscroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 6px 14px;
  margin: 0;
  scrollbar-width: none;          /* Firefox 隐藏滚动条 */
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.story-grid.hscroll::-webkit-scrollbar { display: none; }  /* Chrome/Safari 隐藏滚动条 */
.story-grid.hscroll .story-card {
  flex: 0 0 280px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.story-grid.hscroll .story-card:hover { transform: translateY(-6px) scale(1.01); }

/* 自适应：大屏 5 张、宽中屏 4 张、中屏 3 张、小屏 2 张、超小屏 1 张，卡片宽度随屏幕变化 */
@media (min-width: 1280px) {
  .story-grid.hscroll .story-card { flex: 0 0 calc((100% - 72px) / 5); } /* 4 个间距 18px */
  .story-grid.hscroll .story-icon { width: 52px; height: 52px; font-size: 24px; margin-bottom: 12px; border-radius: 17px; }
  .story-grid.hscroll .story-card h3 { font-size: 15px; }
  .story-grid.hscroll .story-card p { font-size: 13px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .story-grid.hscroll .story-card { flex: 0 0 calc((100% - 54px) / 4); } /* 3 个间距 18px */
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .story-grid.hscroll .story-card { flex: 0 0 calc((100% - 36px) / 3); } /* 2 个间距 18px */
}
@media (min-width: 480px) and (max-width: 767.98px) {
  .story-grid.hscroll .story-card { flex: 0 0 calc((100% - 18px) / 2); } /* 1 个间距 18px */
}
@media (max-width: 479.98px) {
  .story-grid.hscroll .story-card { flex: 0 0 calc(100% - 0px); } /* 全宽单张 */
}
.fatcat-arrow {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 158, 107, 0.45);
  background: #FFFDFB;
  color: var(--warm-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.16);
  transition: all 0.2s;
  z-index: 2;
}
.fatcat-arrow:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--warm-orange), #FF7AA0);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 107, 157, 0.3);
}
.fatcat-arrow:disabled { opacity: 0.32; cursor: not-allowed; box-shadow: none; }
.fatcat-arrow:active:not(:disabled) { transform: translateY(0) scale(0.94); }

/* 滑动区域左右边缘淡出提示（可滑动） */
.fatcat-fade {
  position: absolute;
  top: 0; bottom: 14px;
  width: 46px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}
.fatcat-fade.left  { left: 34px;  background: linear-gradient(90deg, #FFF6F8, rgba(255, 246, 248, 0)); }
.fatcat-fade.right { right: 34px; background: linear-gradient(270deg, #FFF6F8, rgba(255, 246, 248, 0)); }
.fatcat-slider.fade-l .fatcat-fade.left,
.fatcat-slider.fade-r .fatcat-fade.right { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .story-grid.hscroll { scroll-behavior: auto; }
}
.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;
  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; }

/* 纪念墙：送一朵花 内容底部靠左（参考情感树洞"温暖支持"） */
.msg-card-foot {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.msg-card-foot .flower-btn { margin-top: 0; }

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

.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; }

/* 热线卡片：鼠标移入浮现二维码（后台上传） */
.hotline-qr-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -44%) scale(0.88);
  width: 148px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 107, 157, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 30;
  pointer-events: none;
}
.hotline-card:hover .hotline-qr-pop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.hotline-qr-img { width: 118px; height: 118px; object-fit: contain; display: block; border-radius: 8px; }
.hotline-qr-tip { font-size: 12px; font-weight: 600; color: var(--rose-deep); }

.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; }

/* 重生故事：封面 / 折叠 / 富文本 / 分页 */
.reborn-cover {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #FFF3EC, #FFE9F1);
}
.reborn-body { font-size: 15px; color: var(--warm-brown-soft); line-height: 1.9; }
.reborn-short { white-space: normal; }
.reborn-full { animation: fadeInUp 0.35s ease both; }
.reborn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  border: none;
  background: linear-gradient(135deg, var(--warm-orange), #FF7AA0);
  color: #fff;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.26);
  transition: transform 0.2s, filter 0.2s;
}
.reborn-toggle:hover { filter: brightness(1.06); transform: translateY(-1px); }
.reborn-toggle svg { transition: transform 0.25s; }
.reborn-toggle.open svg { transform: rotate(180deg); }

/* 富文本正文排版（故事全文 / 科普文章共用） */
.rich-content { word-break: break-word; }
.rich-content p { font-size: 15px; color: var(--warm-brown-soft); line-height: 1.9; margin: 0 0 12px; }
.rich-content h1, .rich-content h2, .rich-content h3,
.rich-content h4, .rich-content h5, .rich-content h6 {
  color: var(--rose-deep); margin: 18px 0 10px; line-height: 1.4;
}
.rich-content h1 { font-size: 22px; } .rich-content h2 { font-size: 20px; }
.rich-content h3 { font-size: 18px; } .rich-content h4 { font-size: 16px; }
.rich-content img { max-width: 100%; border-radius: 12px; margin: 8px 0; box-shadow: var(--shadow-sm); }
.rich-content video { max-width: 100%; border-radius: 12px; margin: 8px 0; }
.rich-content iframe { max-width: 100%; border-radius: 12px; margin: 8px 0; border: none; }
.rich-content blockquote {
  margin: 10px 0; padding: 10px 16px;
  border-left: 4px solid var(--warm-orange);
  background: rgba(255, 224, 200, 0.35);
  border-radius: 0 10px 10px 0;
  color: #7A5A44;
}
.rich-content ul, .rich-content ol { padding-left: 22px; margin: 6px 0 12px; }
.rich-content li { margin: 4px 0; }
.rich-content a { color: var(--rose-deep); text-decoration: underline; }

/* 故事分页 */
.story-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 4px 0 26px;
  flex-wrap: wrap;
}
.pager-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 158, 107, 0.4);
  background: #FFFDFB;
  color: #8A6C58;
  font-size: 13.5px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.pager-btn:hover:not(:disabled):not(.active) { border-color: var(--warm-orange); color: var(--warm-orange); transform: translateY(-1px); }
.pager-btn.active {
  background: linear-gradient(135deg, var(--warm-orange), #FF7AA0);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}
.pager-btn:disabled { opacity: 0.38; cursor: not-allowed; }

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

.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 windowLight {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  15%, 45% { opacity: 1; transform: scale(1.1); }
  60% { opacity: 0.4; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@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: 1024px) {
  .nav-inner { padding: 0 16px; }
  .section { padding: 60px 18px; }
  .hero { padding-top: 108px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* 移动端：汉堡菜单 + 单列布局 */
@media (max-width: 860px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-inner { height: 56px; }
  .announcement-bar { top: 56px; }
  .aid-two { grid-template-columns: 1fr; }
  .about-two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 44px 14px; }
  .announcement-bar { padding: 9px 38px 9px 12px; font-size: 13px; }
  .announcement-text { line-height: 1.4; }
  .story-quote { font-size: 16px; padding: 0 10px; }
  .story-quote::before, .story-quote::after { display: none; }
  .hero { padding-top: 92px; }
  .section-head h2 { letter-spacing: 2px; }
  .section-head { margin-bottom: 28px; }
  /* 树洞分类 tab：横向滚动 */
  .tree-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .tree-tabs::-webkit-scrollbar { display: none; }
  .tree-tab { flex: none; white-space: nowrap; }
  /* 树洞/留言表单：输入控件放大 + 底部堆叠 */
  .wall-form textarea, .tree-form textarea { font-size: 16px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-foot .btn-primary { width: 100%; }
  .char-count { font-size: 12px; }
  /* 留言卡片：作者与送花换行 */
  .msg-card-top { flex-wrap: wrap; gap: 8px; }
  .msg-author { font-size: 13px; }
  .flower-btn { font-size: 12px; }
  /* 热线卡片紧凑 */
  .hotline-card { padding: 16px; }
  .hotline-num { font-size: 15px; word-break: break-all; }
  /* 文章卡片 */
  .article-card { padding: 14px; }
  .reborn-card { padding: 16px 14px; }
  /* 问卷 */
  .quiz-card { padding: 18px; }
  .quiz-option { font-size: 14px; padding: 11px 14px; }
  /* hero 按钮与提示 */
  .lamp-btn { padding: 12px 26px; font-size: 14px; }
  .hero-hint { font-size: 13px; }
  .aid-tip { font-size: 13px; padding: 12px 14px; }
}

/* 小屏手机：单列卡片、精简间距 */
@media (max-width: 480px) {
  .hero-title { letter-spacing: 3px; }
  .story-grid { grid-template-columns: 1fr; }
  .fatcat-arrow { width: 32px; height: 32px; margin: 0 -2px; }
  .aid-grid { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .article-img { width: 100%; height: 130px; }
  /* hero 内容适配 */
  .hero-sub { letter-spacing: 2px; }
  .hero-slogan { font-size: 13px; padding: 5px 16px; letter-spacing: 1px; }
  .hero-action { margin-top: 20px; }
  /* 灯盏动画缩放 */
  .lamp-anim { transform: scale(0.85); }
  /* 导航 logo */
  .nav-logo { font-size: 16px; gap: 7px; }
  .nav-logo svg { width: 20px; height: 20px; }
  /* 板块标题 */
  .section-head h2 { font-size: 24px; }
  .section-badge { font-size: 11px; padding: 5px 12px; }
  /* 表单与提示 */
  .wall-form, .tree-form { padding: 16px 14px; }
  .form-note { font-size: 11px; line-height: 1.6; }
  .tree-form-title { font-size: 13px; }
  .tree-cats { gap: 6px; }
  .tree-cat { padding: 7px 11px; font-size: 12px; }
  /* 卡片细节 */
  .story-card h3 { font-size: 17px; }
  .reborn-card h4 { font-size: 16px; }
  .reborn-time { font-size: 11px; }
  .about-email { font-size: 14px; word-break: break-all; }
  .about-links, .footer-links { gap: 8px; }
  .about-links a, .footer-links a { font-size: 12px; padding: 7px 12px; }
  /* 页脚 */
  .footer-bottom p { font-size: 12px; }
  .footer-wish { font-size: 14px; }
  /* toast 适配小屏 */
  .toast-wrap { width: 88vw; }
  .toast { font-size: 13px; padding: 11px 16px; }
  /* 公告多行安全 */
  .announcement-text { white-space: normal; }
  /* 空态提示 */
  .empty-tip { font-size: 13px; }
}

/* ==========================================================
   科普文章：站内阅读弹层
   ========================================================== */
.article-clickable { cursor: pointer; }
.article-clickable .article-more { pointer-events: none; }
.article-clickable:hover .article-more { color: var(--accent, #E85D75); }

.article-modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(38, 30, 44, .55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: amFade .2s ease;
}
@keyframes amFade { from { opacity: 0; } to { opacity: 1; } }

.article-modal {
  position: relative;
  width: min(780px, 100%);
  max-height: 86vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(30, 20, 40, .28);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: amUp .28s cubic-bezier(.2,.8,.25,1);
}
@keyframes amUp { from { transform: translateY(24px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.article-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #555;
  font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: transform .15s, background .15s;
}
.article-modal-close:hover { transform: rotate(90deg) scale(1.05); background: #fff; }

.article-modal-head { padding: 26px 30px 0; }
.article-modal-cover {
  width: 100%; max-height: 260px; object-fit: cover;
  border-radius: 12px; margin-bottom: 18px;
}
.article-modal-head h2 { font-size: 24px; color: #33243B; margin: 0 0 6px; line-height: 1.4; }
.article-modal-meta { font-size: 12.5px; color: #A39BA9; margin-bottom: 14px; }

.article-modal-body { overflow-y: auto; padding: 6px 30px 30px; }
.article-modal-summary {
  font-size: 15px; color: #7A6F82; line-height: 1.75;
  background: #FAF6F9; border-left: 3px solid #F0C7CF;
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 20px;
}

.article-content { font-size: 15.5px; color: #3D3145; line-height: 1.9; word-break: break-word; }
.article-content p { margin: 0 0 16px; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
  color: #33243B; line-height: 1.4; margin: 26px 0 12px; font-weight: 700;
}
.article-content h1 { font-size: 22px; } .article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 17.5px; } .article-content h4 { font-size: 16px; }
.article-content blockquote {
  margin: 16px 0; padding: 12px 18px; color: #6E6276;
  background: #F8F4F9; border-left: 3px solid #D9A8B8; border-radius: 0 10px 10px 0;
}
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 26px; }
.article-content li { margin-bottom: 6px; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.article-content a { color: #C25067; text-decoration: underline; }
.article-content hr { border: 0; border-top: 1px solid #EEE6EF; margin: 22px 0; }

body.modal-open { overflow: hidden; }

/* ==========================================================
   科普文章：首页 6 篇 + 「查看更多」列表页
   ========================================================== */
.article-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}
.article-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 26px;
  border: 1.5px solid rgba(255, 107, 157, 0.3);
  border-radius: 999px;
  background: #fff;
  color: var(--rose-deep);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.12);
  transition: all 0.22s ease;
}
.article-more-btn:hover {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.32);
}

/* 文章列表页弹层 */
.article-list-modal { width: min(880px, 100%); }
.article-list-body { padding-top: 10px; }
.article-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.article-list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #FFFCFD;
  border: 1px solid #F3E4EA;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.article-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 157, 0.4);
  box-shadow: 0 8px 20px rgba(190, 80, 120, 0.12);
}
.article-list-item h4 {
  font-size: 15.5px;
  color: #33243B;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.article-list-item p {
  font-size: 13px;
  color: #8A7E90;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-list-item .article-more {
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #C25067;
  font-weight: 600;
}

@media (max-width: 640px) {
  .article-list-grid { grid-template-columns: 1fr; }
  .article-more-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .article-list-modal .article-modal-head { padding: 16px 16px 0; }
  .article-list-modal .article-modal-body { padding: 2px 14px 18px; }
  .article-list-item { padding: 15px 16px; }
  .article-list-item h4 { font-size: 14.5px; }
}

@media (max-width: 600px) {
  .article-modal-mask { padding: 0; }
  .article-modal { width: 100%; max-height: 100vh; border-radius: 0; }
  .article-modal-head { padding: 18px 18px 0; }
  .article-modal-head h2 { font-size: 20px; }
  .article-modal-body { padding: 4px 18px 24px; }
}

/* ==========================================================
   右侧悬浮引导栏（后台「悬浮引导栏」管理）
   ========================================================== */
.float-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s, transform 0.3s;
}
.float-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 107, 157, 0.25);
  box-shadow: 0 6px 18px rgba(120, 50, 80, 0.14);
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.float-nav-item:hover {
  background: linear-gradient(135deg, #FF9E6B, #FF7AA0);
  color: #fff;
  border-color: transparent;
  transform: translateX(-3px);
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.35);
}
.float-nav-item:focus-visible { outline: 2px solid #FF7AA0; outline-offset: 2px; }
.float-nav-txt { line-height: 1.2; }

/* 二维码浮层：悬停 / 聚焦时在按钮左侧弹出 */
.float-nav-qr {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  width: 140px;
  height: 140px;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(60, 30, 50, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 10;
}
.float-nav-item:hover .float-nav-qr,
.float-nav-item:focus .float-nav-qr {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* 小屏：悬浮栏收窄为图标化胶囊，避免遮挡内容 */
@media (max-width: 768px) {
  .float-nav { right: 10px; gap: 8px; }
  .float-nav-item { min-width: 38px; min-height: 38px; padding: 6px 11px; font-size: 12px; }
  .float-nav-qr { width: 120px; height: 120px; right: calc(100% + 10px); }
}