:root {
  --font-family: 'Nunito', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* 明亮日间模式色彩 */
  --bg-gradient: radial-gradient(ellipse at 15% 15%, #f2ebff 0%, transparent 40%),
                      radial-gradient(ellipse at 85% 80%, #efe7ff 0%, transparent 42%),
                      radial-gradient(ellipse at 50% 50%, #fbf9ff 0%, #f6f1fd 100%);
  --bg-base: #f7f3fd;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(234, 224, 252, 0.9);
  --card-inner-glow: rgba(255, 255, 255, 0.7);
  --text-main: #4d436a;
  --text-title: #614a87;
  --text-muted: #8b80a5;
  --text-light: #b2a6cc;
  --accent-purple: #7f64ae;
  --accent-purple-hover: #6d519d;
  --accent-soft: #f4effe;
  --accent-badge: #eee5fc;
  --time-panel-bg: rgba(246, 241, 255, 0.85);
  --time-panel-border: #ede4fb;
  --card-shadow: 0 20px 50px rgba(119, 98, 160, 0.11), 0 4px 15px rgba(119, 98, 160, 0.04);
  --hover-shadow: 0 24px 60px rgba(119, 98, 160, 0.18), 0 8px 24px rgba(119, 98, 160, 0.08);
  --input-bg: #f9f6ff;
  --input-border: #e3d7fa;
}

[data-theme="dark"] {
  /* 梦幻星夜模式色彩 */
  --bg-gradient: radial-gradient(ellipse at 20% 15%, #241c42 0%, transparent 45%),
                      radial-gradient(ellipse at 80% 85%, #1c1538 0%, transparent 45%),
                      radial-gradient(ellipse at 50% 50%, #15102a 0%, #0d0a1c 100%);
  --bg-base: #0f0b20;
  --card-bg: rgba(27, 21, 48, 0.85);
  --card-border: rgba(135, 114, 192, 0.28);
  --card-inner-glow: rgba(160, 138, 222, 0.08);
  --text-main: #e2dbf5;
  --text-title: #c8b7f5;
  --text-muted: #a395c6;
  --text-light: #776a99;
  --accent-purple: #9f80e6;
  --accent-purple-hover: #b49af0;
  --accent-soft: #231b40;
  --accent-badge: #2a204e;
  --time-panel-bg: rgba(23, 17, 43, 0.88);
  --time-panel-border: rgba(135, 114, 192, 0.3);
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(112, 79, 194, 0.12);
  --hover-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 8px 30px rgba(159, 128, 230, 0.2);
  --input-bg: #1c1538;
  --input-border: #44356e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
  line-height: 1.6;
}

/* 背景星尘 Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page-container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部玻璃导航栏 */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  margin-top: 18px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: 40px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: 0.04em;
}

.brand-sparkle {
  color: var(--accent-purple);
  animation: pulse-sparkle 2.5s infinite;
}

.brand-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
  user-select: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: blink 2s infinite ease-in-out;
}

.icon-btn {
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  transform: translateY(-2px) rotate(15deg);
  background: var(--card-border);
}

/* 主体容器 */
.page-content {
  flex: 1;
  padding: 130px 0 60px;
  position: relative;
}

/* 漂浮装饰微星 */
.sparkle {
  position: absolute;
  color: var(--accent-purple);
  opacity: 0.55;
  pointer-events: none;
  animation: float-sparkle 4s ease-in-out infinite;
  text-shadow: 0 0 10px var(--accent-purple);
}

.sparkle-one { top: 70px; left: 6%; font-size: 1.8rem; animation-delay: 0s; }
.sparkle-two { top: 220px; right: 8%; font-size: 1.4rem; animation-delay: 1.5s; }
.sparkle-three { top: 380px; left: 10%; font-size: 2.2rem; animation-delay: 2.5s; }
.sparkle-four { top: 480px; right: 12%; font-size: 1.6rem; animation-delay: 3.2s; }

/* 核心舞台：趴在卡片上的小白龙与欢迎卡片 */
.card-stage {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto 55px;
}

/* 小白龙图片双层穿插 */
.dragon-image {
  position: absolute;
  height: auto;
  width: min(500px, 94%);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.dragon-behind {
  z-index: 1;
  top: -222px;
  filter: drop-shadow(0 10px 25px rgba(119, 98, 160, 0.16));
}

.dragon-arms {
  z-index: 4;
  top: -222px;
  clip-path: inset(66% 0 14% 0);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 86%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 86%);
  filter: drop-shadow(0 4px 5px rgba(84, 67, 114, 0.15));
}

/* 萌龙互动点击热区 */
.dragon-interactive-zone {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 85%);
  height: 220px;
  z-index: 6;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.dragon-hint-badge {
  position: absolute;
  top: 15px;
  right: 18%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-purple);
  box-shadow: 0 4px 15px rgba(119, 98, 160, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
  animation: bounce-hint 2.2s infinite ease-in-out;
  pointer-events: none;
  opacity: 0.9;
}

.hint-paw {
  font-size: 0.85rem;
}

/* 萌龙对话气泡 */
.dragon-dialogue {
  position: absolute;
  top: 50px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--accent-purple);
  padding: 10px 20px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(119, 98, 160, 0.25);
  color: var(--text-title);
  font-size: 0.92rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  z-index: 10;
}

.dragon-dialogue.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dialogue-tail {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: var(--card-bg);
  border-left: 1.5px solid var(--accent-purple);
  border-top: 1.5px solid var(--accent-purple);
}

/* 欢迎卡片主体 */
.welcome-card {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 34px;
  padding: 86px 42px 34px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card-glass-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--card-inner-glow) 0%, transparent 60%);
  pointer-events: none;
}

.welcome-header {
  position: relative;
  z-index: 3;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-purple);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.eyebrow-symbol {
  font-size: 0.75rem;
  opacity: 0.7;
}

h1 {
  margin: 0 0 10px;
  color: var(--text-title);
  font-size: clamp(2rem, 5.2vw, 2.85rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0 auto 28px;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* 时间面板 */
.time-panel {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--time-panel-bg);
  border: 1px solid var(--time-panel-border);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 3;
}

.time-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-label {
  color: var(--text-light);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.time-badge {
  background: var(--accent-badge);
  color: var(--accent-purple);
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.date-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.clock {
  font-size: clamp(2.3rem, 7vw, 3.1rem);
  line-height: 1.15;
  color: var(--accent-purple);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(127, 100, 174, 0.2);
}

.quote-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--time-panel-border);
}

.daily-quote {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  transition: opacity 0.3s ease;
}

.refresh-quote-btn {
  background: none;
  border: none;
  color: var(--accent-purple);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.4s ease, color 0.2s;
  flex-shrink: 0;
}

.refresh-quote-btn:hover {
  transform: rotate(180deg);
  color: var(--accent-purple-hover);
}

.bottom-note {
  margin-top: 26px;
  color: var(--text-light);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.cloud-icon {
  color: var(--accent-purple);
  opacity: 0.6;
}

/* =========================================
   Bento Grid 网格模块设计
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--accent-purple);
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.badge-icon {
  font-size: 1.35rem;
  background: var(--accent-soft);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bento-card h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-title);
  margin: 0;
}

/* Bento 布局比例分配 */
.bento-profile {
  grid-column: span 7;
}

.bento-sound {
  grid-column: span 5;
}

.bento-energy {
  grid-column: span 4;
}

.bento-works {
  grid-column: span 8;
}

.bento-wishes {
  grid-column: span 12;
}

/* 卡片1: 关于我 */
.profile-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.65;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.tag-pill {
  background: var(--accent-soft);
  color: var(--accent-purple);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: default;
}

.tag-pill:hover {
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(-2px);
}

.profile-status {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* 卡片2: 疗愈白噪音播放器 */
.sound-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.sound-player-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.sound-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sound-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sound-mode-btn:hover {
  border-color: var(--accent-purple);
  transform: scale(1.02);
}

.sound-mode-btn.active {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  box-shadow: 0 4px 15px rgba(127, 100, 174, 0.35);
}

.sound-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--time-panel-bg);
  border: 1px solid var(--time-panel-border);
  padding: 10px 16px;
  border-radius: 18px;
}

.sound-toggle-btn {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 7px 15px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.sound-toggle-btn:hover {
  background: var(--accent-purple-hover);
  transform: translateY(-1px);
}

.sound-toggle-btn.playing {
  background: #10b981;
}

/* 音频律动跳跃条 */
.sound-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.sound-visualizer .bar {
  width: 3px;
  height: 4px;
  background: var(--accent-purple);
  border-radius: 3px;
  transition: height 0.15s ease;
}

.sound-visualizer.active .bar:nth-child(1) { animation: sound-bounce 0.8s infinite alternate 0.1s; }
.sound-visualizer.active .bar:nth-child(2) { animation: sound-bounce 0.6s infinite alternate 0.3s; }
.sound-visualizer.active .bar:nth-child(3) { animation: sound-bounce 0.9s infinite alternate 0.2s; }
.sound-visualizer.active .bar:nth-child(4) { animation: sound-bounce 0.7s infinite alternate 0.4s; }
.sound-visualizer.active .bar:nth-child(5) { animation: sound-bounce 1.0s infinite alternate 0.15s; }

.volume-slider-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider-box input[type="range"] {
  width: 65px;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

/* 卡片3: 快乐能量发生器 */
.energy-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.energy-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: auto 0;
}

.tap-energy-btn {
  position: relative;
  background: linear-gradient(135deg, var(--accent-purple) 0%, #9e7ff0 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(127, 100, 174, 0.32);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.tap-energy-btn:active {
  transform: scale(0.92);
}

.energy-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-purple);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.energy-progress-wrap {
  margin-top: 16px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--accent-soft);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple) 0%, #f472b6 100%);
  border-radius: 6px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
  text-align: right;
}

/* 卡片4: 奇思妙想空间 */
.works-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.work-item {
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.28s ease;
  cursor: pointer;
  position: relative;
}

.work-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  background: var(--card-bg);
  box-shadow: 0 10px 24px rgba(119, 98, 160, 0.12);
}

.work-emoji {
  font-size: 1.6rem;
}

.work-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-title);
  margin-bottom: 2px;
}

.work-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.work-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  padding: 2px 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--accent-purple);
  font-weight: 600;
}

/* 卡片5: 漂流瓶许愿池 */
.wishes-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.wish-form {
  margin-bottom: 22px;
}

.wish-input-wrap {
  display: flex;
  gap: 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  padding: 6px 6px 6px 18px;
  border-radius: 30px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.wish-input-wrap:focus-within {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(127, 100, 174, 0.18);
}

.wish-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
}

.wish-input-wrap input::placeholder {
  color: var(--text-light);
}

.wish-send-btn {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 24px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.wish-send-btn:hover {
  background: var(--accent-purple-hover);
  transform: translateY(-1px);
}

.wish-stream-container {
  overflow: hidden;
}

.wish-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.wish-card {
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  padding: 14px 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: pop-in 0.4s ease-out;
  transition: transform 0.2s ease;
}

.wish-card:hover {
  transform: translateY(-2px);
}

.wish-card-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.wish-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-light);
}

/* 页脚 */
.page-footer {
  text-align: center;
  padding: 30px 0 36px;
  color: var(--text-light);
  font-size: 0.84rem;
  position: relative;
  z-index: 2;
}

.footer-cloud-divider {
  letter-spacing: 0.3em;
  color: var(--accent-purple);
  opacity: 0.4;
  margin-bottom: 12px;
}

.footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.heart-pulse {
  color: #e06c9f;
  display: inline-block;
  animation: pulse-heart 1.6s infinite ease-in-out;
}

.footer-links {
  margin-top: 8px;
}

.back-to-top {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.back-to-top:hover {
  color: var(--accent-purple);
}

/* 动态飘字与粒子效果挂载 */
#floating-effects-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.float-text-item {
  position: absolute;
  font-size: 1.1rem;
  font-weight: 800;
  pointer-events: none;
  user-select: none;
  animation: float-up-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 关键帧动画 */
@keyframes sound-bounce {
  0% { height: 4px; }
  100% { height: 18px; }
}

@keyframes float-sparkle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(18deg); }
}

@keyframes pulse-sparkle {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes float-up-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.85);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -40px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -85px) scale(0.95);
  }
}

/* 响应式适配移动设备 */
@media (max-width: 900px) {
  .bento-profile { grid-column: span 12; }
  .bento-sound { grid-column: span 12; }
  .bento-energy { grid-column: span 12; }
  .bento-works { grid-column: span 12; }
  .works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .top-nav {
    padding: 12px 18px;
    margin-top: 10px;
  }
  .brand-sub { display: none; }
  .page-content { padding-top: 100px; }
  
  .welcome-card {
    padding: 72px 20px 24px;
    border-radius: 26px;
  }
  
  .dragon-image {
    width: 100%;
    left: 0;
    transform: none;
  }
  .dragon-behind, .dragon-arms {
    top: -160px;
  }
  .dragon-interactive-zone {
    width: 100%;
    height: 160px;
    top: -160px;
    left: 0;
    transform: none;
  }
  .dragon-hint-badge {
    right: 10%;
    top: 5px;
  }
  
  .dragon-dialogue {
    top: 40px;
    font-size: 0.85rem;
    padding: 8px 14px;
    white-space: normal;
    max-width: 88vw;
    text-align: center;
  }
  .sound-buttons {
    grid-template-columns: 1fr;
  }
  
  .wish-input-wrap {
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
  }
  .wish-send-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
