/* ============================================
   情侣双人私密空间 · 粉色浪漫主题
   ============================================ */
:root {
  --pink-1: #ffd9ea;
  --pink-2: #ffc1dc;
  --pink-3: #ff9ec6;
  --pink-4: #ff7fb2;
  --pink-deep: #e8588f;
  --pink-dark: #c93e73;
  --purple: #b98cff;
  --bg-grad: linear-gradient(160deg, #ffe3ef 0%, #ffd1e4 40%, #ffdff1 100%);
  --card: rgba(255, 255, 255, 0.86);
  --card-border: rgba(255, 255, 255, 0.9);
  --text-main: #5c2a45;
  --text-sub: #a06a85;
  --shadow: 0 8px 28px rgba(232, 88, 143, 0.18);
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-grad);
  color: var(--text-main);
  overflow-x: hidden;
  user-select: none;
}

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 76px; }

/* ---------- 爱心漂浮 ---------- */
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.heart-float {
  position: absolute; bottom: -40px; animation: floatUp linear infinite;
  font-size: 18px; opacity: 0.55; will-change: transform, opacity;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); opacity: 0.55; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-110vh) translateX(30px) rotate(40deg) scale(1.15); opacity: 0; }
}

/* ---------- 页面容器 ---------- */
.page { position: relative; z-index: 2; padding: calc(var(--safe-top) + 14px) 16px 20px; animation: pageIn 0.25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.topbar .brand { font-size: 20px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.topbar .brand .logo { font-size: 22px; }
.top-composite { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: var(--shadow); background: #fff; }
.top-composite img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

/* ---------- 情侣状态卡 ---------- */
.status-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,214,234,0.92));
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.status-card::after {
  content: "💞"; position: absolute; right: -8px; top: -6px; font-size: 56px; opacity: 0.25; transform: rotate(15deg);
}
.couple-avatars { display: flex; justify-content: center; align-items: center; gap: -10px; margin-bottom: 12px; }
.couple-avatars .ava {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; object-fit: cover;
  box-shadow: 0 4px 14px rgba(232,88,143,0.3); background: #fff;
}
.couple-avatars .ava + .ava { margin-left: -14px; }
.couple-names { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.days-big { font-size: 40px; font-weight: 900; color: var(--pink-deep); line-height: 1.1; text-shadow: 0 2px 8px rgba(232,88,143,0.25); }
.days-label { font-size: 13px; color: var(--text-sub); margin: 4px 0 8px; }
.quote { font-size: 13px; color: var(--pink-dark); background: rgba(255,255,255,0.75); border-radius: 999px; padding: 8px 14px; display: inline-block; }

/* ---------- 功能入口 ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.entry {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 14px 4px; text-align: center; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.15s;
}
.entry:active { transform: scale(0.94); }
.entry .e-icon { font-size: 26px; display: block; margin-bottom: 6px; }
.entry .e-name { font-size: 12px; font-weight: 600; color: var(--text-main); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px;
  display: flex; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(232, 88, 143, 0.12);
  padding: 6px 10px calc(8px + var(--safe-bottom));
  z-index: 50;
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--text-sub); padding: 4px 0; cursor: pointer; transition: color 0.15s;
}
.tab-item .tab-icon { font-size: 22px; filter: grayscale(0.4); transition: filter 0.15s, transform 0.15s; }
.tab-item.active { color: var(--pink-deep); font-weight: 700; }
.tab-item.active .tab-icon { filter: none; transform: scale(1.12); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform 0.12s, opacity 0.12s; font-family: inherit;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: linear-gradient(135deg, var(--pink-3), var(--pink-deep)); color: #fff; box-shadow: 0 6px 18px rgba(232,88,143,0.35); }
.btn-ghost { background: rgba(255,255,255,0.85); color: var(--pink-deep); border: 1.5px solid var(--pink-3); }
.btn-danger { background: #fff; color: #e5484d; border: 1.5px solid #f2b8b8; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- 输入框 ---------- */
.input, .textarea {
  width: 100%; border: 1.5px solid rgba(232,88,143,0.25); border-radius: 14px;
  padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--text-main);
  background: rgba(255,255,255,0.9); outline: none; transition: border-color 0.15s;
}
.input:focus, .textarea:focus { border-color: var(--pink-3); }
.textarea { min-height: 90px; resize: vertical; user-select: text; }
label.field { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 6px; color: var(--text-sub); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(92, 42, 69, 0.45); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 0.2s;
}
.modal-mask.center { align-items: center; padding: 20px; }
.modal {
  background: #fff; border-radius: 22px 22px 0 0; max-width: 520px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 20px 18px calc(18px + var(--safe-bottom));
  animation: slideUp 0.25s ease;
}
.modal-mask.center .modal { border-radius: 22px; }
.modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; text-align: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0.5; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 16px; font-size: 18px; color: var(--text-sub); cursor: pointer; padding: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%) translateY(-10px);
  background: rgba(60, 20, 40, 0.88); color: #fff; font-size: 13px; padding: 10px 18px;
  border-radius: 999px; z-index: 200; opacity: 0; pointer-events: none; transition: all 0.25s;
  max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 时间轴 ---------- */
.tl-card { background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); border: 1px solid var(--card-border); }
.tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tl-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.tl-head .name { font-size: 13px; font-weight: 700; }
.tl-head .date { font-size: 11px; color: var(--text-sub); margin-left: auto; }
.tl-date-badge { display: inline-block; background: linear-gradient(135deg, var(--pink-2), var(--pink-3)); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }
.tl-content { font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.tl-imgs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.tl-imgs img { width: 108px; height: 108px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }

/* ---------- 3D 礼物 ---------- */
.gift-stage { perspective: 1000px; }
.gift3d {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; cursor: pointer;
  transform-style: preserve-3d; transition: transform 0.35s ease; animation: giftFloat 3.2s ease-in-out infinite;
  background: linear-gradient(145deg, #fff, #ffe9f3); border: 1px solid var(--card-border);
  box-shadow: 0 10px 24px rgba(232,88,143,0.22); display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gift3d:active { transform: rotateY(22deg) rotateX(10deg) scale(0.96); }
.gift3d .g-emoji { font-size: 46px; filter: drop-shadow(0 6px 10px rgba(232,88,143,0.35)); }
.gift3d .g-name { font-size: 12px; font-weight: 700; margin-top: 6px; }
.gift3d .g-price { font-size: 11px; color: var(--pink-deep); font-weight: 700; margin-top: 2px; }
.gift3d.received { animation: giftBounce 2.4s ease-in-out infinite; }
@keyframes giftFloat { 0%, 100% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(8deg) translateY(-6px); } }
@keyframes giftBounce { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-8px) rotate(-3deg); } 75% { transform: translateY(-4px) rotate(3deg); } }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gift-tag { position: absolute; top: 6px; right: 6px; background: rgba(232,88,143,0.9); color: #fff; font-size: 10px; border-radius: 999px; padding: 2px 8px; }
.gift-msg { font-size: 11px; color: var(--text-sub); margin-top: 4px; max-width: 90%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 会员 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plan-card {
  background: linear-gradient(160deg, #fff, #fff0f6); border: 2px solid rgba(232,88,143,0.22);
  border-radius: 18px; padding: 16px 14px; text-align: center; cursor: pointer; transition: transform 0.15s, border-color 0.15s;
}
.plan-card.selected { border-color: var(--pink-deep); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(232,88,143,0.3); }
.plan-card .p-name { font-size: 15px; font-weight: 800; }
.plan-card .p-price { font-size: 26px; font-weight: 900; color: var(--pink-deep); margin: 8px 0 2px; }
.plan-card .p-price small { font-size: 13px; font-weight: 600; }
.plan-card .p-days { font-size: 12px; color: var(--text-sub); }
.benefit-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed rgba(232,88,143,0.15); }
.benefit-item:last-child { border-bottom: none; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; background: rgba(255,255,255,0.8); border-radius: 999px; padding: 4px; margin-bottom: 14px; box-shadow: var(--shadow); }
.tabs .tab { flex: 1; text-align: center; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--text-sub); border-radius: 999px; cursor: pointer; }
.tabs .tab.active { background: linear-gradient(135deg, var(--pink-3), var(--pink-deep)); color: #fff; box-shadow: 0 4px 12px rgba(232,88,143,0.3); }

/* ---------- 列表行 ---------- */
.row-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(232,88,143,0.15); font-size: 13.5px; }
.row-item:last-child { border-bottom: none; }
.row-item .ri-icon { font-size: 20px; }
.row-item .ri-main { flex: 1; }
.row-item .ri-sub { font-size: 11.5px; color: var(--text-sub); }
.row-item .ri-right { font-weight: 700; color: var(--pink-deep); }

/* ---------- 绑定流程 ---------- */
.bind-hero { text-align: center; padding: 30px 0 16px; font-size: 46px; }
.section-tip { text-align: center; color: var(--text-sub); font-size: 13px; margin: 6px 0 14px; }

/* ---------- 头像裁剪 ---------- */
.crop-wrap { position: relative; width: 100%; height: 300px; overflow: hidden; background: #1a0f14; border-radius: 14px; touch-action: none; }
.crop-wrap canvas { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.crop-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.crop-ring { width: 220px; height: 220px; border-radius: 50%; border: 3px dashed #fff; box-shadow: 0 0 0 999px rgba(26, 15, 20, 0.55); }
.crop-zoom { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.crop-zoom input { flex: 1; accent-color: var(--pink-deep); }

/* ---------- 杂项 ---------- */
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.muted { color: var(--text-sub); font-size: 12px; line-height: 1.6; }
.money { color: var(--pink-deep); font-weight: 800; }
.badge { display: inline-block; font-size: 10px; background: linear-gradient(135deg, #ffd700, #ffb800); color: #7a4b00; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.empty { text-align: center; padding: 40px 0; color: var(--text-sub); }
.empty .e-emoji { font-size: 44px; display: block; margin-bottom: 10px; }
.pill { display: inline-block; font-size: 11px; background: rgba(232,88,143,0.12); color: var(--pink-deep); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.notice-box { background: rgba(255,255,255,0.7); border: 1px dashed rgba(232,88,143,0.4); border-radius: 12px; padding: 12px; font-size: 12.5px; color: var(--text-sub); line-height: 1.7; margin-top: 10px; }

/* ============================================
   会员权益体系样式：主题切换 / 双人头像框 / 积分商城 / 装扮中心 / 充值 / 壁纸卡片
   ============================================ */
/* ---------- 主题装扮（全局 CSS 变量覆盖） ---------- */
body[data-theme="sky"] {
  --pink-1: #d8ecff; --pink-2: #bfdcff; --pink-3: #93c2ff; --pink-4: #6fa8ff;
  --pink-deep: #4a90e2; --pink-dark: #3571bd;
  --bg-grad: linear-gradient(160deg, #e3f2ff 0%, #d0e6ff 40%, #e2efff 100%);
  --card: rgba(255,255,255,0.88);
  --text-main: #2c4468; --text-sub: #6d87a8;
  --shadow: 0 8px 28px rgba(74,144,226,0.18);
}
body[data-theme="gold"] {
  --pink-1: #fff0d6; --pink-2: #ffe4b8; --pink-3: #ffd08a; --pink-4: #ffbe5c;
  --pink-deep: #d99a2b; --pink-dark: #b87f1d;
  --bg-grad: linear-gradient(160deg, #fff6e3 0%, #ffebd0 40%, #fff3e2 100%);
  --card: rgba(255,255,255,0.9);
  --text-main: #6b4a1f; --text-sub: #a5845a;
  --shadow: 0 8px 28px rgba(217,154,43,0.2);
}
body[data-theme="lavender"] {
  --pink-1: #ece2ff; --pink-2: #ddd0ff; --pink-3: #c4aaff; --pink-4: #ab8bff;
  --pink-deep: #8b5cf6; --pink-dark: #6d3fd4;
  --bg-grad: linear-gradient(160deg, #f1e9ff 0%, #e3d6ff 40%, #efe6ff 100%);
  --card: rgba(255,255,255,0.9);
  --text-main: #46306b; --text-sub: #8470a5;
  --shadow: 0 8px 28px rgba(139,92,246,0.2);
}

/* ---------- 双人头像框（frame 权益） ---------- */
.couple-avatars { position: relative; }
.couple-avatars .ava { transition: all 0.3s ease; }
.couple-avatars.frame-heart .ava { border: 3px solid #ff5c8a; box-shadow: 0 0 0 3px #ffd0e0, 0 0 16px rgba(255,92,138,0.45); }
.couple-avatars.frame-gold .ava { border: 3px solid #f5b301; box-shadow: 0 0 0 3px #ffe9b0, 0 0 16px rgba(245,179,1,0.5); }
.couple-avatars.frame-star .ava { border: 3px solid #7c6cff; box-shadow: 0 0 0 3px #d8d0ff, 0 0 16px rgba(124,108,255,0.5); }

/* ---------- 金色会员标识 ---------- */
.badge.gold-badge { background: linear-gradient(135deg, #f5b301, #e8588f); color: #fff; }

/* ---------- 积分商城 / 装扮中心 / 充值 ---------- */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.style-item {
  border: 1.5px solid rgba(232,88,143,0.18); border-radius: 16px; padding: 12px 6px;
  text-align: center; cursor: pointer; background: rgba(255,255,255,0.6); transition: all 0.2s;
}
.style-item.active { border-color: var(--pink-deep); background: rgba(255,214,234,0.35); box-shadow: 0 0 0 2px rgba(232,88,143,0.12); }
.style-item.locked { opacity: 0.55; }
.style-item .si-icon { font-size: 26px; }
.style-item .si-name { font-size: 12px; font-weight: 700; margin-top: 4px; }
.style-item .si-state { font-size: 10px; margin-top: 3px; color: var(--pink-deep); min-height: 14px; }

.rc-tier {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid rgba(232,88,143,0.18); border-radius: 16px; padding: 14px 16px;
  margin-bottom: 10px; cursor: pointer; background: rgba(255,255,255,0.6); transition: all 0.2s;
}
.rc-tier.selected { border-color: var(--pink-deep); background: rgba(255,214,234,0.35); box-shadow: 0 0 0 2px rgba(232,88,143,0.12); }

.gift3d.locked { opacity: 0.5; cursor: not-allowed; }
.gift3d.locked .g-emoji { filter: grayscale(0.4); }

/* 壁纸/卡片图片长按保存提示 */
#wp-canvas-box img, #card-box img { -webkit-user-select: all; user-select: all; }

/* ============================================
   特效引擎（giftfx.js）：主题粒子 / 全屏特效 / 礼物飞屏
   ============================================ */
/* 主题背景粒子（页面底层氛围） */
.theme-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.theme-float {
  position: absolute; top: -50px; animation: themeDrift linear infinite;
  opacity: 0.4; will-change: transform, opacity;
}
@keyframes themeDrift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.35; }
  30%  { opacity: 0.65; }
  100% { transform: translateY(112vh) translateX(46px) rotate(50deg); opacity: 0; }
}

/* 全屏漂浮特效（爱心雨 / 星光雨，页面之上） */
.effect-fx { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.effect-float {
  position: absolute; top: -50px; animation: effectFall linear infinite;
  opacity: 0.7; will-change: transform, opacity;
}
@keyframes effectFall {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
  30%  { opacity: 1; }
  100% { transform: translateY(115vh) translateX(36px) scale(1.2); opacity: 0; }
}

/* ---------- 全屏礼物飞屏（抖音风格） ---------- */
#fx-stage {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; overflow: hidden;
  background: radial-gradient(circle at 50% 46%, rgba(70,20,55,0.82) 0%, rgba(38,8,30,0.9) 62%, rgba(20,4,16,0.94) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: fxFadeIn 0.18s ease;
}
@keyframes fxFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 放射光背景 */
.fx-burst {
  position: absolute; left: 50%; top: 52%; width: 130vmax; height: 130vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    rgba(255,120,170,0.5), rgba(255,220,120,0.28), rgba(180,120,255,0.5),
    rgba(120,200,255,0.4), rgba(255,120,170,0.5));
  border-radius: 50%; filter: blur(6px);
  animation: fxSpin 6s linear infinite; opacity: 0.85;
}
@keyframes fxSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* 光晕扫过 */
.fx-shine {
  position: absolute; left: -60%; top: 0; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: skewX(-18deg); animation: fxShine 1.6s ease-out forwards;
}
@keyframes fxShine { from { left: -60%; } to { left: 130%; } }

/* 大礼物：底部飞入 + 放大 + 弹性 */
.fx-gift-wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.fx-gift {
  font-size: 120px; line-height: 1; filter: drop-shadow(0 0 30px rgba(255,140,190,0.9)) drop-shadow(0 0 70px rgba(255,200,120,0.6));
  animation: fxGiftIn 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes fxGiftIn {
  0%   { transform: translateY(340px) scale(0.2) rotate(-14deg); opacity: 0; }
  55%  { transform: translateY(-14px) scale(1.18) rotate(4deg); opacity: 1; }
  75%  { transform: translateY(6px) scale(0.94) rotate(-2deg); }
  100% { transform: translateY(0) scale(1.04); opacity: 1; }
}
.fx-ring {
  position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px;
  border-radius: 50%; border: 4px solid rgba(255,255,255,0.75);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.12), 0 0 42px rgba(255,160,200,0.9);
  animation: fxRing 1.4s ease-out forwards;
}
@keyframes fxRing {
  0%   { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* 文字：渐显上滑 */
.fx-text { position: relative; z-index: 2; text-align: center; margin-top: 22px; animation: fxTextUp 0.6s 0.35s ease both; }
.fx-from { font-size: 15px; color: rgba(255,255,255,0.85); letter-spacing: 2px; }
.fx-name {
  font-size: 34px; font-weight: 900; color: #fff; margin-top: 4px;
  text-shadow: 0 0 18px rgba(255,150,200,0.95), 0 2px 8px rgba(0,0,0,0.4);
  background: linear-gradient(90deg, #ffd9ea, #fff, #ffd9ea);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes fxTextUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* 底部小标签 */
.fx-tag {
  position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 2px;
  animation: fxTextUp 0.8s 1s ease both;
}

/* 粒子迸发 */
.fx-particle {
  position: absolute; z-index: 2; will-change: transform, opacity;
  animation: fxBurst var(--d, 1.2s) ease-out forwards;
}
@keyframes fxBurst {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(120deg); opacity: 0; }
}

/* 屏闪 */
.fx-flash {
  position: absolute; inset: 0; background: #fff;
  animation: fxFlash 0.5s 0.08s ease-out forwards; opacity: 0;
}
@keyframes fxFlash { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* 屏震动 */
.fx-shake { animation: fxShake 0.5s ease; }
@keyframes fxShake {
  0%, 100% { transform: none; }
  20% { transform: translate(-4px, 3px); } 40% { transform: translate(5px, -3px); }
  60% { transform: translate(-3px, -2px); } 80% { transform: translate(3px, 2px); }
}

/* ---------- 头像框升级：流光旋转光环 ---------- */
.couple-avatars { position: relative; }
.couple-avatars .ava { position: relative; z-index: 1; }
.couple-avatars[class*="frame-"] { isolation: isolate; }
.couple-avatars.frame-heart .ava { border: 3px solid #ff5c8a; box-shadow: 0 0 0 3px #ffd0e0, 0 0 18px rgba(255,92,138,0.6); }
.couple-avatars.frame-gold .ava { border: 3px solid #f5b301; box-shadow: 0 0 0 3px #ffe9b0, 0 0 18px rgba(245,179,1,0.6); }
.couple-avatars.frame-star .ava { border: 3px solid #7c6cff; box-shadow: 0 0 0 3px #d8d0ff, 0 0 18px rgba(124,108,255,0.6); }
.couple-avatars[class*="frame-"]::before {
  content: ''; position: absolute; inset: -9px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, rgba(255,0,120,0.85), rgba(255,200,60,0.9), rgba(0,180,255,0.85), rgba(180,80,255,0.9), rgba(255,0,120,0.85));
  filter: blur(2px); animation: frameFlow 2.6s linear infinite;
}
@keyframes frameFlow { to { transform: rotate(360deg); } }
.couple-avatars[class*="frame-"]::after {
  content: ''; position: absolute; inset: -13px; border-radius: 50%; z-index: -2;
  box-shadow: 0 0 24px 6px rgba(255,120,180,0.55);
  animation: frameBreath 2.2s ease-in-out infinite;
}
@keyframes frameBreath { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------- 首页 7 日签到弹幕 ---------- */
.marquee-bar {
  display: flex; align-items: center; overflow: hidden; position: relative;
  background: linear-gradient(90deg, rgba(232,88,143,0.92), rgba(255,120,170,0.92));
  border-radius: 999px; margin: 10px 0 12px; height: 34px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(232,88,143,0.28);
}
.marquee-track { flex: 1; overflow: hidden; white-space: nowrap; }
.marquee-text {
  display: inline-block; padding-left: 100%; white-space: nowrap;
  font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.5px;
  animation: marquee-scroll 14s linear infinite;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee-tag {
  flex-shrink: 0; background: #fff; color: var(--pink-deep); font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 4px 10px; margin-right: 8px;
}

/* ---------- 7 日签到面板 ---------- */
.sgn-head { font-size: 17px; font-weight: 800; color: var(--pink-deep); text-align: center; }
.sgn-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sgn-box {
  border: 1.5px solid rgba(232,88,143,0.18); border-radius: 12px; padding: 8px 2px;
  text-align: center; background: rgba(255,255,255,0.6);
}
.sgn-box.done { border-color: #ffb3cc; background: rgba(255,214,234,0.5); }
.sgn-box.today { border-color: var(--pink-deep); box-shadow: 0 0 0 2px rgba(232,88,143,0.18); background: rgba(255,214,234,0.6); }
.sgn-day { font-size: 10px; color: var(--text-sub); }
.sgn-pts { font-size: 12px; font-weight: 800; color: var(--pink-deep); margin: 2px 0; }
.sgn-mark { font-size: 13px; }
.sgn-info { display: flex; justify-content: space-around; font-size: 12px; color: var(--text-sub); margin: 12px 0; }
.sgn-info b { color: var(--pink-deep); }
