/* 粉粉花花 · 五颜六色 · 稳定布局（无 backdrop-filter / 无 canvas） */

:root {
  --pink: #ff6b9d;
  --pink-light: #ffb3d1;
  --pink-pale: #fff0f6;
  --rose: #ff85a2;
  --lavender: #da77f2;
  --sky: #74c0fc;
  --mint: #63e6be;
  --sun: #ffd43b;
  --coral: #ff8787;
  --text: #5c2d4a;
  --text-muted: #9b6b8a;
  --card: rgba(255, 255, 255, 0.92);
  --card-border: rgba(255, 107, 157, 0.25);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
  --tab-home: linear-gradient(135deg, #ff6b9d, #ff8787);
  --tab-view: linear-gradient(135deg, #74c0fc, #4dabf7);
  --tab-search: linear-gradient(135deg, #63e6be, #38d9a9);
  --tab-vip: linear-gradient(135deg, #ffd43b, #fab005);
  --tab-owner: linear-gradient(135deg, #ff922b, #fd7e14);
  --tab-lubi: linear-gradient(135deg, #ff922b, #fd7e14);
  --tab-diamond: linear-gradient(135deg, #da77f2, #be4bdb);
  --page-max: 480px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background: linear-gradient(160deg, #fff0f6 0%, #ffe0ec 25%, #f3d9ff 50%, #d0ebff 75%, #fff5f8 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

.hidden { display: none !important; }

/* ===== 背景装饰（固定最底层，不挡内容） ===== */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 107, 157, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(218, 119, 242, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(116, 192, 252, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 20% 75%, rgba(255, 212, 59, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(99, 230, 190, 0.15) 0%, transparent 50%);
}

.site-bg::after {
  content: "✿ 🌸 💮 🌺 🌷 ✨ 💖 ⭐ 🦋";
  position: absolute;
  inset: 0;
  font-size: 28px;
  opacity: 0.08;
  letter-spacing: 2em;
  line-height: 4em;
  word-break: break-all;
  animation: bgPatternDrift 60s linear infinite;
}

@keyframes bgPatternDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-50px); }
}

.site-bg__petal {
  position: absolute;
  left: var(--x);
  top: -40px;
  font-size: 22px;
  opacity: 0.55;
  animation: petalFall 12s linear infinite;
  animation-delay: var(--d);
}

@keyframes petalFall {
  0% { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.5; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ===== 统一画布（PC / 手机同款宽度） ===== */
.app-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.page {
  position: relative;
  width: 100%;
  padding: 16px 12px 32px;
}

/* ===== 主布局 ===== */

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  padding: 8px 4px 20px;
}

.hero__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.hero__avatar-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--lavender), var(--sky), var(--mint));
  /* 不做 hue-rotate：避免滤镜连带把头像变色 */
  box-shadow: var(--shadow);
  box-sizing: border-box;
  overflow: hidden;
}

.hero__avatar-ring {
  display: none;
}

.hero__avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: none !important;
  animation: none !important;
}

.hero__info {
  min-width: 0;
}

.hero__spectrum {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: 6px 8px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px dashed rgba(255, 107, 157, 0.38);
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.12);
  box-sizing: border-box;
}

.hero__spectrum-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 30px;
  min-width: 0;
}

.hero__spectrum-bar {
  flex: 1;
  max-width: 6px;
  height: 18%;
  min-height: 4px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #da77f2 0%, #ff6b9d 55%, #ffa8c5 100%);
  box-shadow: 0 0 6px rgba(255, 107, 157, 0.35);
  transition: height 0.07s ease-out;
}

.hero__spectrum.is-idle .hero__spectrum-bar {
  transition: none;
  animation: spectrumIdle 1.15s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.05s);
}

.hero__spectrum.is-playing .hero__spectrum-bar {
  animation: none !important;
  transition: height 0.06s linear;
}

@keyframes spectrumIdle {
  0%, 100% { height: 16%; opacity: 0.55; }
  50% { height: 42%; opacity: 1; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  margin-bottom: 6px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #51cf66;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.hero__title em {
  font-style: normal;
  color: var(--pink);
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero__sub strong { color: var(--coral); }

.hero__wx {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero__wx span {
  color: var(--lavender);
  font-weight: 600;
}

.hero__datetime {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__clock-toggle,
.hero__date-toggle {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hero__clock-toggle:active,
.hero__date-toggle:active {
  transform: scale(0.97);
}

.hero__clock-view {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__clock-face {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff 0%, #fff8fb 55%, #ffe8f0 100%);
  border: 2.5px solid rgba(255, 107, 157, 0.55);
  box-shadow: 0 3px 14px rgba(255, 107, 157, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.hero__clock-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__clock-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.5px;
  height: 5px;
  margin-left: -0.75px;
  margin-top: -31px;
  transform-origin: 50% 31px;
  border-radius: 1px;
  background: rgba(255, 107, 157, 0.35);
}

.hero__clock-tick--major {
  width: 2.5px;
  height: 8px;
  margin-left: -1.25px;
  margin-top: -33px;
  transform-origin: 50% 33px;
  background: rgba(255, 107, 157, 0.9);
}

.hero__clock-num {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  color: #495057;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

.hero__clock-num--12 { top: 7px; left: 50%; transform: translateX(-50%); color: var(--pink); }
.hero__clock-num--3 { right: 7px; top: 50%; transform: translateY(-50%); }
.hero__clock-num--6 { bottom: 7px; left: 50%; transform: translateX(-50%); }
.hero__clock-num--9 { left: 7px; top: 50%; transform: translateY(-50%); }

.hero__clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%;
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.hero__clock-hand--hour {
  width: 4px;
  height: 18px;
  margin-left: -2px;
  margin-top: -18px;
  background: #343a40;
}

.hero__clock-hand--minute {
  width: 3px;
  height: 25px;
  margin-left: -1.5px;
  margin-top: -25px;
  background: var(--pink);
}

.hero__clock-hand--second {
  width: 1.5px;
  height: 28px;
  margin-left: -0.75px;
  margin-top: -28px;
  background: #fa5252;
  box-shadow: none;
}

.hero__clock-center {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #fff;
  z-index: 4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hero__clock-time {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--pink);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}

.hero__date-view {
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__calendar {
  width: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 107, 157, 0.4);
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.18);
  background: #fff;
}

.hero__calendar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.hero__calendar-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 4px 5px;
  min-height: 42px;
  background:
    linear-gradient(180deg, rgba(255, 240, 246, 0.9) 0%, #fff 100%);
}

.hero__calendar-day {
  font-size: 22px;
  font-weight: 800;
  color: var(--pink);
  line-height: 1;
}

.hero__calendar-week {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
}

.hero__date-view--digital {
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(255, 107, 157, 0.4);
  box-shadow: 0 2px 10px rgba(255, 107, 157, 0.18);
  box-sizing: border-box;
}

.hero__date-digital {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
}

.hero__week-digital {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  text-align: center;
}

/* ===== 主卡片 ===== */
.shell {
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

.perm-wrap {
  padding: 10px 14px 0;
}

.shell .perm-bar {
  margin: 0;
  border-radius: 14px;
}

/* ===== 快捷区 ===== */
.quick {
  text-align: center;
  padding: 18px 16px 12px;
  background: linear-gradient(180deg, rgba(255, 240, 246, 0.8) 0%, transparent 100%);
}

.quick__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  margin-bottom: 8px;
}

.quick__link:hover { color: var(--lavender); }

.quick__poster {
  display: block;
  margin: 0 auto 10px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  background: linear-gradient(90deg, var(--pink), var(--lavender), var(--sky));
  background-size: 200% 100%;
  animation: rainbowShift 4s ease infinite;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35);
}

@keyframes rainbowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.quick__clock {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.quick__kf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #51cf66;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(81, 207, 102, 0.12), rgba(99, 230, 190, 0.08));
  color: #2b8a3e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.quick__kf:active { transform: scale(0.98); }

.quick__kf-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #51cf66;
  border-radius: 8px;
  font-size: 16px;
}

/* ===== Tab ===== */
.tabs {
  display: flex;
  justify-content: space-around;
  padding: 12px 8px;
  gap: 4px;
  border-top: 1px dashed rgba(255, 107, 157, 0.2);
  border-bottom: 1px dashed rgba(255, 107, 157, 0.2);
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex: 1;
  max-width: 58px;
}

.tab-btn__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(200, 180, 190, 0.5);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tab-btn__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.tab-btn__label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.tab-btn.is-active .tab-btn__icon {
  border-color: transparent;
  background: var(--tab-color, var(--tab-home));
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.35);
  transform: scale(1.05);
}

.tab-btn.is-active .tab-btn__icon img {
  object-fit: cover;
}

.tab-btn.is-active .tab-btn__label {
  color: var(--pink);
  font-weight: 700;
}

/* ===== 权限条 ===== */
.perm-bar {
  display: block;
  text-align: center;
  padding: 10px 16px;
  margin: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--perm-bg, var(--tab-home));
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.25);
  overflow: hidden;
  -webkit-border-radius: 14px;
}

/* ===== 文案区背景场景 ===== */
.copy-scene {
  position: relative;
  margin: 0;
  min-height: 280px;
  overflow: hidden;
}

.copy-scene__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.copy-scene__rainbow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    #ff6b9d,
    #ff8787,
    #ffd43b,
    #63e6be,
    #74c0fc,
    #da77f2,
    #ff6b9d
  );
  background-size: 300% 100%;
  animation: rainbowShift 6s linear infinite;
}

.copy-scene__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 107, 157, 0.45) 0%, transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(218, 119, 242, 0.4) 0%, transparent 38%),
    radial-gradient(circle at 85% 72%, rgba(116, 192, 252, 0.42) 0%, transparent 44%),
    radial-gradient(circle at 8% 88%, rgba(255, 212, 59, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 50% 45%, rgba(99, 230, 190, 0.28) 0%, transparent 50%),
    linear-gradient(175deg, #ffe0ec 0%, #f3d9ff 35%, #d0ebff 65%, #fff0f6 100%);
  animation: meshBreath 10s ease-in-out infinite alternate;
}

@keyframes meshBreath {
  0% { filter: hue-rotate(0deg) saturate(1); }
  100% { filter: hue-rotate(18deg) saturate(1.15); }
}

.copy-scene__orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: orbFloat 8s ease-in-out infinite;
}

.copy-scene__orb--1 {
  width: 120px;
  height: 120px;
  left: -30px;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.55), transparent 70%);
  animation-delay: 0s;
}

.copy-scene__orb--2 {
  width: 90px;
  height: 90px;
  right: -20px;
  top: 8%;
  background: radial-gradient(circle, rgba(218, 119, 242, 0.5), transparent 70%);
  animation-delay: -2s;
}

.copy-scene__orb--3 {
  width: 140px;
  height: 140px;
  right: 5%;
  top: 42%;
  background: radial-gradient(circle, rgba(116, 192, 252, 0.45), transparent 70%);
  animation-delay: -4s;
}

.copy-scene__orb--4 {
  width: 100px;
  height: 100px;
  left: 8%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.4), transparent 70%);
  animation-delay: -1s;
}

.copy-scene__orb--5 {
  width: 80px;
  height: 80px;
  left: 45%;
  bottom: 5%;
  background: radial-gradient(circle, rgba(99, 230, 190, 0.45), transparent 70%);
  animation-delay: -3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8px, -12px) scale(1.06); }
  66% { transform: translate(-6px, 8px) scale(0.94); }
}

.copy-scene__petals {
  position: absolute;
  inset: 0;
}

.copy-scene__petals i {
  position: absolute;
  font-style: normal;
  font-size: 20px;
  opacity: 0.35;
  animation: petalDrift 14s linear infinite;
}

.copy-scene__petals i:nth-child(1) { left: 6%; top: 22%; animation-delay: 0s; font-size: 18px; }
.copy-scene__petals i:nth-child(2) { left: 78%; top: 15%; animation-delay: -3s; font-size: 22px; }
.copy-scene__petals i:nth-child(3) { left: 88%; top: 55%; animation-delay: -6s; font-size: 16px; }
.copy-scene__petals i:nth-child(4) { left: 12%; top: 68%; animation-delay: -2s; font-size: 24px; }
.copy-scene__petals i:nth-child(5) { left: 55%; top: 30%; animation-delay: -8s; font-size: 14px; }
.copy-scene__petals i:nth-child(6) { left: 35%; top: 82%; animation-delay: -5s; font-size: 20px; }
.copy-scene__petals i:nth-child(7) { left: 68%; top: 78%; animation-delay: -1s; font-size: 17px; }
.copy-scene__petals i:nth-child(8) { left: 42%; top: 12%; animation-delay: -7s; font-size: 19px; }

@keyframes petalDrift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  50% { opacity: 0.45; }
  100% { transform: translateY(-24px) rotate(180deg); opacity: 0.2; }
}

.copy-scene__sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 107, 157, 0.8);
  animation: sparkleTwinkle 3s ease-in-out infinite;
}

.copy-scene__sparkles span:nth-child(1) { left: 20%; top: 35%; animation-delay: 0s; background: #ffb3d1; }
.copy-scene__sparkles span:nth-child(2) { left: 70%; top: 25%; animation-delay: -0.8s; background: #eebefa; }
.copy-scene__sparkles span:nth-child(3) { left: 50%; top: 60%; animation-delay: -1.6s; background: #a5d8ff; }
.copy-scene__sparkles span:nth-child(4) { left: 85%; top: 40%; animation-delay: -2.2s; background: #ffec99; }
.copy-scene__sparkles span:nth-child(5) { left: 15%; top: 55%; animation-delay: -1.2s; background: #96f2d7; }
.copy-scene__sparkles span:nth-child(6) { left: 60%; top: 85%; animation-delay: -2.8s; background: #ffc9c9; }

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.copy-scene__body {
  position: relative;
  z-index: 1;
  padding: 14px 0 4px;
}

/* 文案区背景纹理（点阵） */
.copy-scene__decor::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 107, 157, 0.35) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ===== 使用提示 ===== */
.tips-zone { padding: 0 16px 12px; }

.tips-board {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 107, 157, 0.35);
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 8px 24px rgba(255, 107, 157, 0.12);
}

.tips-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 107, 157, 0.15), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(116, 192, 252, 0.12), transparent 50%);
}

.tips-board__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff6b9d, #ff8787, #da77f2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tips-board__head span {
  font-size: 16px;
  animation: bounce 2.5s ease infinite;
}

.tips-board__head span:last-child {
  animation-delay: -1.2s;
}

.tips-board__content {
  position: relative;
  z-index: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== 群内功能菜单 ===== */
.func-menu-content { padding: 10px 8px 8px; }

.func-menu { display: flex; flex-direction: column; gap: 10px; }

.func-menu__section {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(255, 107, 157, 0.25);
}

.func-menu__grid {
  display: grid;
  gap: 6px;
}

.func-menu__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.func-menu__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.func-menu__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.func-menu__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 4px;
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 249, 0.85));
  border: 1px solid rgba(255, 107, 157, 0.18);
  box-shadow: 0 2px 6px rgba(255, 107, 157, 0.08);
}

.func-menu__name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #5c3d52;
  word-break: break-all;
}

.func-menu__foot {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: #7a5c72;
  background: rgba(139, 124, 246, 0.08);
}

.func-menu__foot a {
  color: #e91e8c;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 480px) {
  .func-menu__name { font-size: 12px; }
  .func-menu__item { min-height: 38px; padding: 6px 5px; }
}

@media (max-width: 360px) {
  .func-menu__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tips-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 11px 12px 11px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #5c2d4a;
  border: 2px solid rgba(255, 107, 157, 0.2);
  box-shadow: 0 3px 10px rgba(255, 107, 157, 0.08);
}

.tips-line:nth-child(5n+1) {
  background: linear-gradient(135deg, rgba(255, 240, 246, 0.95), rgba(255, 255, 255, 0.85));
  border-color: rgba(255, 107, 157, 0.35);
  color: #c2255c;
}

.tips-line:nth-child(5n+2) {
  background: linear-gradient(135deg, rgba(248, 240, 252, 0.95), rgba(255, 255, 255, 0.85));
  border-color: rgba(190, 75, 219, 0.3);
  color: #9c36b5;
}

.tips-line:nth-child(5n+3) {
  background: linear-gradient(135deg, rgba(231, 245, 255, 0.95), rgba(255, 255, 255, 0.85));
  border-color: rgba(51, 154, 240, 0.3);
  color: #1864ab;
}

.tips-line:nth-child(5n+4) {
  background: linear-gradient(135deg, rgba(230, 252, 245, 0.95), rgba(255, 255, 255, 0.85));
  border-color: rgba(32, 201, 151, 0.3);
  color: #087f5b;
}

.tips-line:nth-child(5n+5) {
  background: linear-gradient(135deg, rgba(255, 249, 219, 0.95), rgba(255, 255, 255, 0.85));
  border-color: rgba(250, 176, 5, 0.35);
  color: #e67700;
}

.tips-line__badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255, 107, 157, 0.35);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.15);
}

.tips-line:nth-child(5n+2) .tips-line__badge { border-color: rgba(190, 75, 219, 0.35); }
.tips-line:nth-child(5n+3) .tips-line__badge { border-color: rgba(51, 154, 240, 0.35); }
.tips-line:nth-child(5n+4) .tips-line__badge { border-color: rgba(32, 201, 151, 0.35); }
.tips-line:nth-child(5n+5) .tips-line__badge { border-color: rgba(250, 176, 5, 0.4); }

.tips-line::after {
  content: attr(data-idx);
  flex-shrink: 0;
  margin-left: auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 107, 157, 0.7);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  align-self: center;
}

.tips-line span,
.tips-line font {
  color: inherit !important;
  font-size: inherit !important;
  background: none !important;
}

/* ===== 指令列表 ===== */
.cmd-panel {
  padding: 8px 10px 14px;
  margin: 0 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  border: 2px solid rgba(255, 107, 157, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 6px 24px rgba(255, 107, 157, 0.1);
}

.cmd-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 4px 4px 12px;
}

.cmd-head__col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 10px rgba(255, 107, 157, 0.25);
}

.cmd-head__col--key {
  background: linear-gradient(135deg, #ff6b9d, #ff8787);
}

.cmd-head__col--desc {
  background: linear-gradient(135deg, #da77f2, #74c0fc);
}

.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmd-card {
  --card-accent: #ff6b9d;
  --card-bg: rgba(255, 255, 255, 0.82);
  position: relative;
  display: grid;
  grid-template-columns: minmax(72px, 34%) 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  border: 2px solid rgba(255, 107, 157, 0.28);
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.15s, box-shadow 0.2s;
}

.cmd-card::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  opacity: 0.15;
  border-radius: 50%;
  background: var(--card-accent);
  pointer-events: none;
}

.cmd-card:nth-child(5n+1) { --card-accent: #ff6b9d; --card-bg: rgba(255, 240, 246, 0.88); border-color: rgba(255, 107, 157, 0.35); }
.cmd-card:nth-child(5n+2) { --card-accent: #be4bdb; --card-bg: rgba(248, 240, 252, 0.88); border-color: rgba(190, 75, 219, 0.3); }
.cmd-card:nth-child(5n+3) { --card-accent: #339af0; --card-bg: rgba(231, 245, 255, 0.88); border-color: rgba(51, 154, 240, 0.3); }
.cmd-card:nth-child(5n+4) { --card-accent: #20c997; --card-bg: rgba(230, 252, 245, 0.88); border-color: rgba(32, 201, 151, 0.3); }
.cmd-card:nth-child(5n+5) { --card-accent: #fab005; --card-bg: rgba(255, 249, 219, 0.88); border-color: rgba(250, 176, 5, 0.35); }

.cmd-card:active {
  transform: scale(0.985);
}

.cmd-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.4));
  border-right: 2px dashed rgba(255, 107, 157, 0.2);
  font-size: 13px;
  font-weight: 800;
  color: var(--card-accent);
  word-break: break-all;
  line-height: 1.35;
}

.cmd-card:nth-child(5n+1) .cmd-key { background: linear-gradient(160deg, #ffe0ec, #fff5f8); }
.cmd-card:nth-child(5n+2) .cmd-key { background: linear-gradient(160deg, #eebefa, #f8f0fc); }
.cmd-card:nth-child(5n+3) .cmd-key { background: linear-gradient(160deg, #a5d8ff, #e7f5ff); }
.cmd-card:nth-child(5n+4) .cmd-key { background: linear-gradient(160deg, #96f2d7, #e6fcf5); }
.cmd-card:nth-child(5n+5) .cmd-key { background: linear-gradient(160deg, #ffec99, #fff9db); }

.cmd-key__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 15px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--card-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cmd-desc {
  display: flex;
  align-items: center;
  padding: 12px 14px 12px 12px;
  font-size: 13px;
  color: #5c3d52;
  word-break: break-all;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.45);
  position: relative;
}

.cmd-desc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--card-accent), transparent);
}

/* ===== 页脚 ===== */
.site-footer {
  text-align: center;
  padding: 16px;
  border-top: 1px dashed rgba(255, 107, 157, 0.2);
  background: linear-gradient(180deg, transparent, rgba(255, 240, 246, 0.5));
}

.site-footer p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

.domain-tag {
  color: var(--sky);
  font-weight: 600;
}

/* ===== 点击爱心 ===== */
.love-fly {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: loveFly 1.4s ease-out forwards;
}

@keyframes loveFly {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) scale(1.5); }
}

/* ===== 欢迎弹窗 ===== */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(92, 45, 74, 0.45);
}

.welcome-box {
  width: 100%;
  max-width: 320px;
  padding: 28px 24px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(160deg, #fff5f8, #ffe0ec, #f3d9ff);
  border: 2px solid rgba(255, 107, 157, 0.4);
  box-shadow: 0 16px 48px rgba(255, 107, 157, 0.3);
}

.welcome-box__icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.welcome-box h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.welcome-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.welcome-actions {
  display: flex;
  gap: 10px;
}

.welcome-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}

.welcome-btn:active { transform: scale(0.96); }

.welcome-btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--pink);
  border: 2px solid var(--pink-light);
}

.welcome-btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.4);
}

/* ===== 通用弹窗 ===== */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(92, 45, 74, 0.4);
}

.site-modal-box {
  width: 100%;
  max-width: 360px;
  max-height: 85vh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow);
}

.site-modal-box.update-iframe-mode {
  max-width: 420px;
  max-height: min(90vh, 720px);
}

.site-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--pink-light), rgba(218, 119, 242, 0.3));
  border-bottom: 1px solid var(--card-border);
}

.site-modal-head h3 {
  font-size: 16px;
  color: var(--text);
}

.site-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.site-modal-body {
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.site-modal-box.update-iframe-mode .site-modal-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.site-modal-once-tip,
.site-modal-tip {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 12px;
}

.update-iframe-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-modal-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 16px;
  max-height: 52vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-modal-iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 280px;
  height: 100%;
  max-height: calc(90vh - 140px);
  border: none;
  border-radius: 0;
  margin: 0;
  background: #fff;
}

.site-modal-box.update-iframe-mode .site-modal-btn {
  flex-shrink: 0;
  margin: 10px 16px 14px;
  width: calc(100% - 32px);
}

.site-modal-wxid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--pink-pale);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 13px;
}

.site-modal-copy {
  flex-shrink: 0;
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.site-modal-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--card-border);
}

.site-modal-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  color: #fff;
}

.site-modal-btn.blue {
  background: linear-gradient(135deg, var(--sky), #4dabf7);
}

/* ===== 电脑端：整页全屏（背景+内容全部铺满） ===== */
@media (min-width: 481px) {
  :root {
    --page-max: 100%;
  }

  html, body {
    width: 100%;
    min-height: 100%;
  }

  body {
    padding: 0 !important;
    margin: 0;
  }

  .app-viewport {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .page {
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    padding: 16px 3vw 48px;
    box-sizing: border-box;
  }

  .shell,
  .hero,
  .quick,
  .tabs,
  .perm-wrap,
  .copy-scene,
  .cmd-panel,
  .site-footer {
    width: 100%;
    max-width: none;
  }

  .shell {
    border-radius: var(--radius);
  }

  .hero {
    gap: 12px 20px;
    padding: 10px 4px 24px;
  }

  .hero__top {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  .hero__avatar-wrap {
    width: 96px;
    height: 96px;
  }

  .hero__title {
    font-size: clamp(16px, 1.6vw, 22px);
  }

  .tabs {
    justify-content: space-between;
    gap: 10px;
    padding: 14px 4px;
  }

  .tab-btn {
    max-width: none !important;
    flex: 1 1 0;
    min-width: 0;
  }

  .tab-btn__icon {
    width: clamp(56px, 6vw, 80px);
    height: clamp(56px, 6vw, 80px);
  }

  .tab-btn__label {
    font-size: 13px;
    white-space: nowrap;
  }

  .welcome-box {
    max-width: 400px;
  }

  .site-modal-box {
    max-width: min(480px, 90vw);
  }

  .site-modal-box.update-iframe-mode {
    max-width: min(860px, 92vw);
  }

  .music-bar {
    left: 3vw;
    right: 3vw;
    max-width: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .app-viewport {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
}

@media (max-width: 360px) {
  .hero__title { font-size: 14px; }
  .tab-btn__icon { width: 46px; height: 46px; }
}

.music-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 99998;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}
.music-bar.hidden { display: none; }
.music-bar__btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.music-bar__btn:active { transform: scale(0.98); }
