html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* ==================== Z-Index 层级管理系统 ==================== */
/* 
  层级规范（从小到大）：
  -1: 背景装饰元素
   1: 普通内容
  99: 返回顶部按钮
 998: 小组件容器
 999: 导航栏、音乐播放器、极简模式按钮、小组件切换按钮
1000: 编辑按钮、保存按钮
2000: 模态框遮罩层
3000: Toast 提示
9999: 页面加载动画
10000: 滚动进度条
*/

:root {
  --milk-white: #FFF9F5;
  --milk-light: #FFFAF8;
  --soft-pink: #FFD1DC;
  --light-pink: #FFB6C1;
  --rose-pink: #FFC0CB;
  --blush-pink: #FFE4E1;
  --text-dark: #8B6F7C;
  --text-medium: #A0808C;
  
  /* ==================== 玻璃拟态统一规范 ==================== */
  --glass-white: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 209, 220, 0.4);
  --shadow-soft: 0 8px 32px rgba(255, 182, 193, 0.25);
  --shadow-hover: 0 12px 40px rgba(255, 182, 193, 0.4);
  
  /* ==================== 圆角与过渡规范 ==================== */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 25px;
  --radius-xl: 30px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* ==================== 动画缓动函数 ==================== */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* 弹性缓动 */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 平滑缓动 */
  --ease-gentle: cubic-bezier(0.4, 0, 0.2, 1); /* 柔和缓动 */
  
  /* ==================== 动画时长 ==================== */
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.6s;
  --duration-slower: 0.8s;
  
  /* 移动端安全区域 */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

/* ==================== 全局交互优化 ==================== */
button, a, .file-item, .card, input, textarea {
  transition: var(--transition-smooth);
  -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

button:active, .btn:active, .action-btn:active {
  transform: scale(0.96);
}

/* 动态渐变背景动画 - 添加浏览器前缀 */
@-webkit-keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-moz-keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  /* 修复：移除 Google Fonts，使用系统字体回退 */
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  /* 多色渐变背景，缓慢流动 - 添加浏览器前缀 */
  background: -webkit-linear-gradient(
    -45deg, 
    var(--milk-white) 0%, 
    var(--blush-pink) 25%, 
    var(--soft-pink) 50%, 
    var(--rose-pink) 75%, 
    var(--milk-light) 100%
  );
  background: -moz-linear-gradient(
    -45deg, 
    var(--milk-white) 0%, 
    var(--blush-pink) 25%, 
    var(--soft-pink) 50%, 
    var(--rose-pink) 75%, 
    var(--milk-light) 100%
  );
  background: linear-gradient(
    -45deg, 
    var(--milk-white) 0%, 
    var(--blush-pink) 25%, 
    var(--soft-pink) 50%, 
    var(--rose-pink) 75%, 
    var(--milk-light) 100%
  );
  background-size: 200% 200%;
  -webkit-animation: gradientFlow 15s ease infinite;
  -moz-animation: gradientFlow 15s ease infinite;
  animation: gradientFlow 15s ease infinite;
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: default;
  min-height: 100vh;
  /* 优化可爱字体的行高和字间距 */
  line-height: 1.8;
  letter-spacing: 0.5px;
  position: relative;
  /* iOS Safari 滚动优化 */
  -webkit-overflow-scrolling: touch;
  /* 移动端优化：禁用文本选择（提升触摸体验） */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* 禁用双击缩放 */
  touch-action: manipulation;
  /* 设备模拟测试：支持动态宽度 */
  transition: width 0.3s ease, max-width 0.3s ease, margin 0.3s ease;
}

/* 统一的主内容容器 */
.main-wrapper {
  width: 100%;
  max-width: 1200px; /* 桌面端最大宽度 */
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
  position: relative;
  /* 优化断点切换时的平滑感 */
  transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
}

html {
  scroll-behavior: smooth;
  /* Firefox 平滑滚动兼容 */
  scroll-behavior: -moz-smooth;
  /* 修复移动端 Safari 滚动条溢出问题 */
  overflow-x: hidden;
}

/* 修复：确保所有容器不超出视口宽度 */
.main-wrapper, .section, .hero {
  max-width: 100vw;
  overflow-x: hidden;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  /* 修复：移动端适配安全区域 */
  padding: calc(18px + var(--safe-area-top)) 5% 18px;
  background: var(--glass-white);
  /* 修复：为旧版浏览器提供降级方案 */
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -moz-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 209, 220, 0.3);
  z-index: 999;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border-radius: 0 0 30px 30px;
  box-shadow: var(--shadow-soft);
}
.logo {
  font-size: 26px;
  color: var(--light-pink);
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.3);
  letter-spacing: 2px;
}
.nav-links {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  gap: 35px;
}
.nav-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 16px;
  border-radius: 20px;
}
.nav-links a:hover {
  color: var(--light-pink);
  background: var(--glass-pink);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
}
.nav-links a:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 3px 10px rgba(255, 182, 193, 0.3);
}
.menu-btn {
  display: none;
  color: var(--light-pink);
  font-size: 22px;
  cursor: pointer;
}
.hero {
  height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  /* 修复：添加顶部内边距，避免被固定导航栏遮挡 */
  padding: 80px 20px 0;
  position: relative;
}
.glitch-text {
  font-size: 58px;
  color: var(--light-pink);
  position: relative;
  margin-bottom: 25px;
  text-shadow: 3px 3px 6px rgba(255, 182, 193, 0.4);
  font-weight: 600;
  letter-spacing: 3px;
}
.typewriter {
  font-size: 22px;
  color: var(--text-medium);
  border-right: 2px solid var(--light-pink);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3.5s steps(50, end), blink 0.75s step-end infinite;
}
.parallax-item {
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 209, 220, 0.3);
  transform: scale(0);
  animation: ripple 1.2s ease-out;
  pointer-events: none;
}
.section {
  min-height: 100vh;
  /* 修复：增加顶部内边距，避免被固定导航栏遮挡 */
  padding: 140px 5% 120px;
  background: transparent;
  position: relative;
}
.section-title {
  font-size: 38px;
  text-align: center;
  color: var(--light-pink);
  margin-bottom: 60px;
  text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.3);
  font-weight: 600;
  letter-spacing: 3px; /* 增加字间距，使可爱字体更清晰 */
  line-height: 1.5; /* 调整行高 */
}
.hobby-container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}
.hobby-card {
  background: var(--glass-white);
  /* 修复：为旧版浏览器提供降级方案 */
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  -moz-backdrop-filter: blur(15px);
  padding: 35px;
  border-radius: 25px;
  border: 1px solid rgba(255, 209, 220, 0.4);
  -webkit-transition: var(--transition-smooth);
  -moz-transition: var(--transition-smooth);
  transition: var(--transition-smooth);
  text-align: center;
  box-shadow: var(--shadow-soft);
  will-change: transform, box-shadow;
}
.hobby-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-hover);
}
.hobby-card h3 {
  color: var(--light-pink);
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}
.hobby-card p {
  color: var(--text-medium);
  margin-bottom: 8px;
  font-size: 15px;
}
.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--blush-pink);
  border-radius: 20px;
  margin: 8px 0 20px 0;
  overflow: hidden;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--light-pink), var(--soft-pink));
  width: 0;
  transition: width 1.8s ease;
  border-radius: 20px;
}
.daily-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.daily-card {
  background: var(--glass-white);
  /* 修复：为旧版浏览器提供降级方案 */
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 30px;
  border: 1px solid rgba(255, 209, 220, 0.4);
  transition: var(--transition-smooth);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  will-change: transform, box-shadow;
}
.daily-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-hover);
}
.daily-card h3 {
  color: var(--light-pink);
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 600;
}
.daily-card p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-medium);
}
.contact-box {
  max-width: 650px;
  margin: 0 auto;
  background: var(--glass-white);
  /* 修复：为旧版浏览器提供降级方案 */
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 50px;
  border-radius: 30px;
  text-align: center;
  border: 1px solid rgba(255, 209, 220, 0.4);
  box-shadow: var(--shadow-soft);
}
.contact-box h3 {
  color: var(--light-pink);
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 600;
}
.contact-box p {
  font-size: 17px;
  line-height: 2.2;
  color: var(--text-medium);
}
.social-links {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}
.social-links a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--glass-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-pink);
  font-size: 22px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 209, 220, 0.4);
  box-shadow: var(--shadow-soft);
}
.social-links a:hover {
  background: var(--light-pink);
  color: white;
  transform: translateY(-5px) rotate(15deg);
  box-shadow: var(--shadow-hover);
}
/* ==================== 设置中心按钮 ==================== */
.settings-btn {
  position: fixed;
  /* 修复：移动端适配安全区域，避免与底部组件重叠 */
  bottom: calc(100px + var(--safe-area-bottom));
  right: calc(35px + var(--safe-area-right));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-white);
  /* 修复：为旧版浏览器提供降级方案 */
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--light-pink);
  border: 2px solid rgba(255, 209, 220, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 999;
  box-shadow: var(--shadow-soft);
  /* 移动端优化：确保触摸区域足够大 */
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.settings-btn:hover {
  transform: scale(1.08) rotate(90deg);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  color: white;
}

.settings-btn.active {
  background: linear-gradient(135deg, #FF69B4, #FFB6C1);
  color: white;
  border-color: rgba(255, 105, 180, 0.6);
}

/* ==================== 设置中心面板 ==================== */
/* ==================== 设置面板遮罩层 v2.7.0 ==================== */
.settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-smooth), visibility 0.4s var(--ease-smooth);
}

.settings-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ==================== 设置面板 v3.2.1 - 强制垂直居中修复 ==================== */
.settings-panel {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.85) !important;  /* 强制垂直居中 */
  width: 90% !important;
  max-width: 500px !important;
  max-height: 70vh !important;  /* 减小高度防止溢出 */
  background-color: rgba(255, 255, 255, 0.98) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 25px !important;
  border: 2px solid rgba(255, 182, 193, 0.4) !important;
  box-shadow: 
    0 20px 60px rgba(255, 182, 193, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.1) !important;
  z-index: 10000 !important;
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 0.4s var(--ease-bounce),
    visibility 0.4s var(--ease-bounce),
    transform 0.4s var(--ease-bounce) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.settings-panel.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) scale(1) !important;  /* 强制垂直居中 */
}

/* 设置面板内部元素交错淡入动画 */
.settings-panel.show .animate-setting-item {
  animation: settingItemFadeIn 0.5s var(--ease-gentle) forwards;
  opacity: 0;
}

@keyframes settingItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.95) 0%, 
    rgba(255, 192, 203, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.settings-header h3 {
  margin: 0;
  font-size: 20px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-close-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.settings-shortcut-hint {
  padding: 12px 25px;
  background: rgba(255, 248, 250, 0.8);
  border-bottom: 1px solid rgba(255, 182, 193, 0.2);
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-shortcut-hint kbd {
  background: white;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 182, 193, 0.4);
  font-family: monospace;
  font-size: 12px;
  color: #FF69B4;
}

.settings-body {
  padding: 20px 25px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;  /* 允许 flex 子项收缩 */
  max-height: calc(70vh - 140px);  /* 精确计算：总高度 - 头部(60px) - 提示(40px) - 上下padding(40px) */
  
  /* 自定义滚动条样式 v3.1.0 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 182, 193, 0.5) transparent;
}

/* Webkit 浏览器滚动条样式 */
.settings-body::-webkit-scrollbar {
  width: 6px;
}

.settings-body::-webkit-scrollbar-track {
  background: transparent;
}

.settings-body::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 193, 0.5);
  border-radius: 3px;
  transition: background 0.3s var(--ease-smooth);
}

.settings-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 182, 193, 0.7);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 182, 193, 0.15);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
  margin-right: 15px;
}

.setting-info label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  cursor: pointer;
}

.setting-desc {
  margin: 0;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

/* 开关按钮样式 */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background: linear-gradient(135deg, #FFB6C1, #FF69B4);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider:hover {
  box-shadow: 0 0 10px rgba(255, 182, 193, 0.5);
}

.settings-footer {
  padding: 15px 25px;
  border-top: 1px solid rgba(255, 182, 193, 0.2);
  background: rgba(255, 248, 250, 0.5);
}

.reset-settings-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(255, 192, 203, 0.2));
  border: 2px solid rgba(255, 182, 193, 0.4);
  border-radius: 12px;
  color: #FF69B4;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reset-settings-btn:hover {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(255, 192, 203, 0.3));
  border-color: rgba(255, 182, 193, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

/* 保存内容按钮 */
.save-content-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  border: 2px solid rgba(76, 175, 80, 0.4);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.save-content-btn:hover {
  background: linear-gradient(135deg, #43A047, #5CB860);
  border-color: rgba(76, 175, 80, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.save-content-btn:active {
  transform: translateY(0);
}

/* 设置项分隔线 */
.setting-item-divider {
  border-top: 2px solid rgba(255, 182, 193, 0.3);
  margin-top: 10px;
  padding-top: 20px;
}

/* 内联密码输入框 */
.edit-password-inline {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.edit-password-inline input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid rgba(255, 182, 193, 0.4);
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.edit-password-inline input:focus {
  outline: none;
  border-color: rgba(255, 182, 193, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

.inline-auth-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #FFB6C1, #FF69B4);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.inline-auth-btn:hover {
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.inline-auth-btn:active {
  transform: translateY(0);
}

/* 退出编辑模式按钮 */
.exit-edit-mode-btn {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  background: linear-gradient(135deg, #FFB6C1, #FF69B4);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
  z-index: 1001;
}

.exit-edit-mode-btn:hover {
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.4);
}

.exit-edit-mode-btn:active {
  transform: translateY(-50%) scale(0.98);
}
/* ==================== 🎵 音乐播放器 - 奶龙主题美化版（整合至信息面板）==================== */
/* 注：悬浮播放按钮已移除，功能整合到音乐信息面板中 */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  from { border-color: transparent }
  50% { border-color: var(--light-pink) }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes petalFall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}
@keyframes videoPulse {
  0%, 100% { box-shadow: 0 15px 50px rgba(255, 182, 193, 0.35), 0 5px 20px rgba(255, 182, 193, 0.2); }
  50% { box-shadow: 0 20px 60px rgba(255, 182, 193, 0.5), 0 10px 30px rgba(255, 182, 193, 0.35); }
}
@keyframes playIconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.petal {
  position: fixed;
  top: -20px;
  z-index: 1; /* 修复：普通内容层级 */
  pointer-events: none;
  animation: petalFall linear infinite;
}
.decoration {
  position: absolute;
  font-size: 20px;
  color: var(--light-pink);
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
  pointer-events: none;
}

/* 全局浮动装饰元素 - 更丰富的动画 */
@keyframes floatGentle {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, -20px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, -35px) rotate(-5deg);
  }
  75% {
    transform: translate(20px, -15px) rotate(3deg);
  }
}

.floating-decoration {
  position: fixed;
  opacity: 0.15; /* 非常透明，不干扰内容 */
  pointer-events: none; /* 不响应鼠标事件 */
  z-index: -1; /* 在粒子画布之上，但在内容之下 */
  animation: floatGentle 20s ease-in-out infinite;
  filter: blur(1px); /* 轻微模糊，增加梦幻感 */
  user-select: none;
}

.decoration-star {
  animation: twinkle 2s ease-in-out infinite;
}
/* 页面加载动画 - 可爱二次元风格 */
/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--light-pink), var(--soft-pink), var(--rose-pink));
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(255, 182, 193, 0.5), 0 0 20px rgba(255, 182, 193, 0.3);
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none; /* 修复：使用 pointer-events 替代 visibility，确保子元素动画能正常播放 */
  transition: opacity 0.3s ease-out;
}
.modal.show {
  opacity: 1;
  pointer-events: auto; /* 修复：显示时恢复交互能力 */
}
.modal-content {
  background: var(--glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  text-align: center;
  max-width: 400px;
  width: 90%;
}
.modal h3 {
  color: var(--light-pink);
  margin-bottom: 20px;
  font-size: 20px;
}
.modal input {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--soft-pink);
  border-radius: 15px;
  font-size: 16px;
  margin-bottom: 20px;
  outline: none;
  transition: var(--transition-smooth);
}
.modal input:focus {
  border-color: var(--light-pink);
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.2);
}
.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}
.log-btn {
  background: transparent;
  border: none;
  color: var(--text-medium);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 15px;
  transition: var(--transition-smooth);
}
.log-btn:hover {
  color: var(--light-pink);
}
.log-list {
  max-height: 300px;
  overflow-y: auto;
  text-align: left;
  margin-top: 15px;
}
.log-item { 
  padding: 12px; 
  border-bottom: 1px solid var(--blush-pink); 
  font-size: 13px; 
  color: var(--text-dark); 
}
.log-item:last-child { border-bottom: none; }
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.log-time { 
  color: var(--light-pink); 
  font-size: 12px; 
  font-weight: 600;
}
.log-user {
  font-size: 11px;
  color: var(--text-medium);
  background: var(--milk-light);
  padding: 2px 8px;
  border-radius: 10px;
}
.log-summary { line-height: 1.5; }
.modal-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.modal-btn.primary {
  background: var(--light-pink);
  color: white;
}
.modal-btn.secondary {
  background: var(--blush-pink);
  color: var(--text-dark);
}
.modal-btn:hover {
  transform: translateY(-2px);
}
.editable {
  transition: var(--transition-smooth);
}
.editable:hover {
  outline: 2px dashed var(--light-pink);
  outline-offset: 2px;
}
.editable.active {
  outline: 2px solid var(--light-pink);
  background: rgba(255, 209, 220, 0.1);
}
.toast {
  position: fixed;
  top: calc(20px + var(--safe-area-top));
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.toast.success {
  background: linear-gradient(135deg, #81c784, #66bb6a);
}
.toast.error {
  background: linear-gradient(135deg, #e57373, #ef5350);
}
.toast.info, .toast.loading {
  background: linear-gradient(135deg, var(--light-pink), var(--rose-pink));
}
/* 小组件容器 */
.widgets-container {
  position: fixed;
  right: calc(30px + var(--safe-area-right));
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 15px;
  z-index: 998;
  -webkit-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -moz-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* 修复：移动端防止溢出屏幕 */
  max-height: 80vh;
  overflow-y: auto;
}

/* 切换按钮样式 */
/* 小组件内容区域 */
.widgets-content {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 15px;
}

.widget {
  background: var(--glass-white);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  -moz-backdrop-filter: blur(15px);
  padding: 15px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 209, 220, 0.4);
  box-shadow: var(--shadow-soft);
  -webkit-transition: var(--transition-smooth);
  -moz-transition: var(--transition-smooth);
  transition: var(--transition-smooth);
  min-width: 140px;
  text-align: center;
  /* 修复：防止内容被裁剪，确保图标完整显示 */
  overflow: visible;
  position: relative;
}
.widget:hover {
  transform: translateX(-5px) scale(1.05);
  box-shadow: var(--shadow-hover);
}
.widget-icon {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--light-pink);
}
.widget-label {
  font-size: 11px;
  color: var(--text-medium);
  margin-bottom: 3px;
}
.widget-value {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 600;
  /* 防止数字被截断 */
  overflow: visible;
  white-space: nowrap;
  min-width: 30px;
  display: inline-block;
}
.widget-time {
  font-size: 18px;
  color: var(--light-pink);
  font-weight: 600;
  letter-spacing: 1px;
}
.widget-quote {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.6;
  max-width: 180px;
  font-style: italic;
}
.video-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 30px auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(255, 182, 193, 0.35), 0 5px 20px rgba(255, 182, 193, 0.2);
  background: -webkit-linear-gradient(135deg, var(--blush-pink) 0%, var(--soft-pink) 100%);
  background: -moz-linear-gradient(135deg, var(--blush-pink) 0%, var(--soft-pink) 100%);
  background: linear-gradient(135deg, var(--blush-pink) 0%, var(--soft-pink) 100%);
  border: 3px solid rgba(255, 255, 255, 0.6);
  -webkit-transition: var(--transition-smooth);
  -moz-transition: var(--transition-smooth);
  transition: var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(255, 182, 193, 0.45), 0 10px 30px rgba(255, 182, 193, 0.3);
}
.video-container.playing {
  animation: videoPulse 2s ease-in-out infinite;
}
.video-container.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 182, 193, 0.3);
  border-top-color: var(--light-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 5;
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
#customVideo {
  border-radius: 27px;
  object-fit: contain;
  background: transparent;
  display: block;
  width: 100%;
  /* 防止长按弹出菜单 */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* 隐藏所有浏览器原生视频控件 */
#customVideo::-webkit-media-controls {
  display: none !important;
}
#customVideo::-webkit-media-controls-enclosure {
  display: none !important;
}
#customVideo::-webkit-media-controls-panel {
  display: none !important;
}
#customVideo::-webkit-media-controls-play-button {
  display: none !important;
}
#customVideo::-webkit-media-controls-start-playback-button {
  display: none !important;
}
#customVideo::-moz-media-controls {
  display: none !important;
}
.custom-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 25px;
  background: -webkit-linear-gradient(to top, rgba(255, 249, 245, 0.95) 0%, rgba(255, 249, 245, 0.85) 100%);
  background: -moz-linear-gradient(to top, rgba(255, 249, 245, 0.95) 0%, rgba(255, 249, 245, 0.85) 100%);
  background: linear-gradient(to top, rgba(255, 249, 245, 0.95) 0%, rgba(255, 249, 245, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  -moz-backdrop-filter: blur(20px);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  -webkit-transition: var(--transition-smooth);
  -moz-transition: var(--transition-smooth);
  transition: var(--transition-smooth);
  border-top: 2px solid rgba(255, 209, 220, 0.3);
}
.video-container:hover .custom-video-controls,
.video-container.paused .custom-video-controls {
  opacity: 1;
}
.control-btn {
  background: -webkit-linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  background: -moz-linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  -webkit-transition: var(--transition-smooth);
  -moz-transition: var(--transition-smooth);
  transition: var(--transition-smooth);
  padding: 10px;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.control-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 20px rgba(255, 182, 193, 0.5);
  background: linear-gradient(135deg, var(--soft-pink), var(--light-pink));
}
.control-btn:active {
  transform: scale(0.95);
}
.progress-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 182, 193, 0.25);
  border-radius: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 220, 0.3);
  transition: var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.progress-bar-container:hover {
  height: 10px;
  background: rgba(255, 182, 193, 0.35);
}
.progress-filled {
  height: 100%;
  background: linear-gradient(90deg, var(--light-pink) 0%, var(--soft-pink) 50%, var(--rose-pink) 100%);
  border-radius: 15px;
  width: 0%;
  position: relative;
  transition: width 0.2s ease;
  box-shadow: 0 0 15px rgba(255, 182, 193, 0.6);
}
.progress-thumb {
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 182, 193, 0.8), 0 2px 8px rgba(255, 182, 193, 0.4);
  transition: var(--transition-smooth);
  border: 2px solid var(--light-pink);
}
.progress-bar-container:hover .progress-thumb {
  transform: translateY(-50%) scale(1);
}
/* 视频覆盖层 */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 82px); /* 减去控制栏高度 */
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  -webkit-transition: var(--transition-smooth);
  -moz-transition: var(--transition-smooth);
  transition: var(--transition-smooth);
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.video-container.paused .video-overlay {
  opacity: 1;
}
.video-container.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}
.overlay-play-btn {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 10px 40px rgba(255, 182, 193, 0.6), 0 0 0 8px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  border: 3px solid rgba(255, 255, 255, 0.8);
  animation: playIconBounce 2s ease-in-out infinite;
}
.video-overlay:hover .overlay-play-btn {
  transform: scale(1.1);
  box-shadow: 0 15px 50px rgba(255, 182, 193, 0.8), 0 0 0 12px rgba(255, 255, 255, 0.3);
}
@media (max-width: 1024px) {
  /* 平板端适配：优化小组件和网格布局 */
  .widgets-container {
    right: 15px;
    gap: 10px;
  }
  .widget {
    padding: 10px 15px;
    min-width: 100px;
  }
  .widget-time { font-size: 16px; }
  .widget-quote { max-width: 140px; font-size: 11px; }
  
  /* 调整主容器边距 */
  .main-wrapper {
    padding: 0 30px;
  }
}

/* ==================== 桌面端超宽屏适配 ==================== */
@media (min-width: 1440px) {
  .main-wrapper {
    max-width: 1400px;
  }
  .section-title {
    font-size: 42px;
  }
}

/* ==================== 设置中心 - 元素显示/隐藏控制 ==================== */

/* 隐藏小组件 */
body.widgets-hidden .widgets-container {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 隐藏浮动装饰 */
body.decorations-hidden .floating-decoration {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 隐藏粒子画布 */
body.particles-hidden #particleCanvas {
  display: none !important;
}

@media (max-width: 768px) {
  /* 移动端基础适配 */
  body {
    font-size: 15px;
    -webkit-text-size-adjust: 100%; /* 防止 iOS 自动缩放字体 */
  }

  /* 导航栏深度优化 */
  .nav-links { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 249, 245, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 10px 0 20px;
    border-radius: 0 0 35px 35px;
    box-shadow: 0 15px 40px rgba(255, 182, 193, 0.15);
    gap: 5px;
    z-index: 1000;
  }
  .nav-links.active { display: flex; animation: slideDown 0.3s ease-out; }
  .nav-links a { 
    width: 90%; 
    margin: 0 auto;
    text-align: center; 
    padding: 14px; 
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    /* 修复：确保触摸区域足够大 */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .menu-btn { 
    display: block; 
    padding: 10px;
    /* 修复：增大触摸区域 */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 退出编辑模式按钮移动端适配 */
  .exit-edit-mode-btn {
    right: 60px;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* 首屏视觉重构 */
  .hero { 
    height: auto; 
    min-height: 100vh; 
    /* 修复：移动端增加顶部内边距，避免被导航栏遮挡 */
    padding: 140px 20px 60px; 
    justify-content: flex-start;
  }
  .glitch-text { 
    font-size: 42px; 
    margin-bottom: 25px; 
    letter-spacing: 3px; 
    line-height: 1.2;
  }
  .typewriter { 
    font-size: 17px; 
    white-space: normal; 
    animation: none; 
    border-right: none; 
    max-width: 90%;
    line-height: 1.8;
    color: var(--text-dark);
  }
  
  /* 板块呼吸感增强 */
  .section-title { font-size: 28px; margin-bottom: 40px; letter-spacing: 1px; }
  .hobby-container, .daily-grid { grid-template-columns: 1fr; gap: 25px; }
  /* 修复：移动端增加顶部内边距，避免被导航栏遮挡 */
  .section { padding: 100px 6% 80px; }
  #video.section { padding: 100px 4% 80px; }
  
  /* 卡片精致化处理 */
  .hobby-card, .daily-card, .contact-box, #about div { 
    padding: 35px 25px; 
    border-radius: 25px; 
    margin-bottom: 10px;
  }
  .hobby-card h3, .daily-card h3 { font-size: 20px; }
  .hobby-card p, .daily-card p { font-size: 15px; line-height: 1.7; }
  
  /* 底部灵动小组件栏 */
  .widgets-container {
    position: fixed;
    bottom: calc(25px + var(--safe-area-bottom));
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: 92%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.75);
    padding: 12px 15px;
    border-radius: 35px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
    z-index: 998;
    gap: 5px;
    /* 防止内容被裁剪 */
    overflow: visible;
    /* 修复：移动端防止溢出 */
    max-height: none;
  }
  
  .widget { 
    min-width: auto; 
    padding: 10px 6px; 
    background: transparent;
    box-shadow: none;
    border: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 修复：确保图标不被裁剪，增加最小高度 */
    overflow: visible;
    min-height: 50px;
  }
  .widget:hover { transform: translateY(-3px); }
  .widget-label { display: none; }
  .widget-quote { display: none; }
  .widget-icon { font-size: 18px; margin-bottom: 4px; color: var(--light-pink); }
  .widget-value, .widget-time { font-size: 13px; font-weight: 700; color: var(--text-dark); }
  
  /* 设置中心按钮移动端调整 - 避免与音乐播放器重叠 */
  .settings-btn {
    bottom: calc(190px + var(--safe-area-bottom));
    right: calc(20px + var(--safe-area-right));
    width: 44px;
    height: 44px;
    font-size: 18px;
    /* 修复：确保触摸区域足够大 */
    min-width: 44px;
    min-height: 44px;
  }
  
  /* 设置面板移动端适配 v3.2.0 - 使用统一的新媒体查询 */
  /* 注意：具体样式已在文件末尾的 @media (max-width: 768px) 中定义 */
  
  .settings-header {
    padding: 18px 20px;
  }
  
  .settings-header h3 {
    font-size: 18px;
  }
  
  .settings-body {
    padding: 15px 20px;
  }
  
  .setting-item {
    padding: 15px 0;
  }
  
  .setting-info label {
    font-size: 14px;
  }
  
  .setting-desc {
    font-size: 11px;
  }
  
  /* 视频播放器移动端适配 - 固定相框沉浸式模式 */
  .video-container {
    max-width: 100%;
    margin: 20px auto;
    border-radius: 25px;
    /* 禁用所有触摸手势 */
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    /* 防止用户选择 */
    -webkit-user-select: none;
    user-select: none;
  }
  .video-container:hover {
    transform: none;
  }
  
  /* 隐藏所有控制元素 */
  .video-container .custom-video-controls {
    display: none !important;
  }
  .video-container .video-overlay {
    display: none !important;
  }
  
  /* 视频画面优化 */
  #customVideo {
    object-fit: contain;
    width: 100%;
    height: auto;
    /* 禁用所有交互 */
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  #video .contact-box {
    max-width: 100% !important;
    padding: 15px !important;
  }
  .overlay-play-btn {
    width: 70px;
    height: 70px;
    font-size: 28px;
    /* 增加触摸热区 */
    min-width: 44px;
    min-height: 44px;
  }
  .control-btn {
    width: 44px; /* 增大按钮尺寸 */
    height: 44px;
    font-size: 18px;
    padding: 10px;
    /* 确保易于点击 */
    min-width: 44px;
    min-height: 44px;
  }
  .custom-video-controls {
    padding: 18px 20px; /* 增加内边距 */
    gap: 15px; /* 增加按钮间距 */
    /* 确保毛玻璃效果在移动端清晰 */
    background: linear-gradient(to top, rgba(255, 249, 245, 0.98) 0%, rgba(255, 249, 245, 0.95) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }
  
  /* 模态框移动端适配 */
  .modal-content { 
    width: 88%; 
    padding: 30px 25px; 
    margin: 0 auto;
    border-radius: 30px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .modal h3 { font-size: 20px; margin-bottom: 25px; }
  .modal input { padding: 16px; font-size: 16px; }
  .log-item { padding: 15px 10px; }
}

@media (max-width: 480px) {
  /* 极小屏幕精细化调整 */
  .glitch-text { font-size: 36px; letter-spacing: 2px; }
  .typewriter { font-size: 15px; }
  .logo { font-size: 20px; }
  
  /* 修复：超小屏幕增加顶部内边距 */
  .section { padding: 90px 5% 60px; }
  .section-title { font-size: 24px; margin-bottom: 30px; }
  #video.section { padding: 90px 3% 60px; }
  
  .hobby-card, .daily-card, .contact-box, #about div { 
    padding: 30px 20px; 
    border-radius: 22px; 
  }
  
  /* 进一步优化小组件在超窄屏的表现 - 增加内边距防止图标裁剪 */
  .widgets-container { 
    bottom: calc(15px + var(--safe-area-bottom));
    padding: 12px 10px; 
    width: 96%; 
    border-radius: 25px;
    gap: 8px;
  }
  .widget-icon { 
    font-size: 17px; 
    margin-bottom: 3px;
    display: block;
  }
  .widget-value, .widget-time { 
    font-size: 12px;
    line-height: 1.3;
    min-width: auto;
  }
  
  /* 设置中心按钮超小屏幕调整 */
  .settings-btn {
    bottom: calc(165px + var(--safe-area-bottom));
    right: calc(20px + var(--safe-area-right));
    width: 40px;
    height: 40px;
    font-size: 16px;
    /* 修复：确保触摸区域足够大 */
    min-width: 44px;
    min-height: 44px;
  }
  
  /* 设置面板超小屏幕适配 v3.2.0 - 使用统一的新媒体查询 */
  /* 注意：具体样式已在文件末尾的 @media (max-width: 480px) 中定义 */
  
  .settings-header {
    padding: 16px 20px;
  }
  
  .settings-header h3 {
    font-size: 18px;
  }
  
  .settings-shortcut-hint {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .settings-body {
    padding: 15px;
    max-height: calc(85vh - 130px);  /* 精确计算移动端滚动区域 */
  }
  
  .setting-item {
    padding: 12px 0;
  }
  
  .setting-info label {
    font-size: 14px;
  }
  
  .setting-info p {
    font-size: 12px;
  }
  
  /* 视频播放器超小屏幕适配 */
  .video-container {
    max-width: 100%;
    margin: 15px auto;
    border-radius: 20px;
    border-width: 2px;
  }
  #customVideo {
    border-radius: 18px;
  }
  .video-overlay {
    height: calc(100% - 70px);
  }
  .overlay-play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.2);
  }
  .control-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
    padding: 7px;
  }
  .custom-video-controls {
    padding: 12px 15px;
    gap: 8px;
  }
  .progress-bar-container {
    height: 6px;
  }
  .progress-bar-container:hover {
    height: 8px;
  }
  .progress-thumb {
    width: 14px;
    height: 14px;
  }
  /* 移动端控制栏始终可见 */
  .video-container .custom-video-controls {
    opacity: 1;
  }
}

/* 超小屏幕适配 (iPhone SE 等 320-375px) */
@media (max-width: 375px) {
  .glitch-text { 
    font-size: 32px; 
    letter-spacing: 1px; 
  }
  .typewriter { 
    font-size: 14px; 
    line-height: 1.6;
  }
  .logo { 
    font-size: 18px; 
  }
  
  .section { 
    /* 修复：超小屏幕增加顶部内边距 */
    padding: 80px 4% 50px; 
  }
  .section-title { 
    font-size: 22px; 
    margin-bottom: 25px; 
  }
  #video.section { 
    /* 修复：超小屏幕增加顶部内边距 */
    padding: 80px 3% 50px; 
  }
  
  .hobby-card, .daily-card, .contact-box, #about div { 
    padding: 25px 18px; 
    border-radius: 20px; 
  }
  .hobby-card h3, .daily-card h3 { 
    font-size: 18px; 
  }
  .hobby-card p, .daily-card p { 
    font-size: 14px; 
  }
  
  /* 小组件进一步优化 - 增加图标间距 */
  .widgets-container { 
    bottom: calc(12px + var(--safe-area-bottom));
    padding: 10px 8px; 
    width: 98%; 
    border-radius: 22px;
    gap: 6px;
  }
  .widget-icon { 
    font-size: 15px; 
    margin-bottom: 2px;
    display: block;
  }
  .widget-value, .widget-time { 
    font-size: 11px;
    line-height: 1.2;
  }
  
  /* 视频播放器超小屏幕优化 - 固定相框模式 */
  .video-container {
    margin: 12px auto;
    border-radius: 18px;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* 确保控制栏和覆盖层隐藏 */
  .video-container .custom-video-controls,
  .video-container .video-overlay {
    display: none !important;
  }
  
  /* 禁用视频交互 */
  #customVideo {
    pointer-events: none;
    object-fit: contain;
  }
  
  /* 模态框优化 */
  .modal-content { 
    width: 92%; 
    padding: 25px 20px; 
    border-radius: 25px;
  }
  .modal h3 { 
    font-size: 18px; 
    margin-bottom: 20px; 
  }
  .modal input { 
    padding: 14px; 
    font-size: 14px; 
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 奶龙视频弹窗样式 - 极简模式 ==================== */

/* 视频弹窗容器 - 毛玻璃效果 */
.video-modal-content {
  max-width: 750px;
  width: 92%;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid rgba(255, 182, 193, 0.3);
  
  /* 多层阴影，增强立体感 */
  box-shadow: 
    0 20px 60px rgba(255, 182, 193, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  
  /* 入场动画初始状态 */
  opacity: 0;
  transform: scale(0.7) translateY(50px);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 弹窗显示时的动画状态 - 弹性展开效果 */
.modal.show .video-modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* 退出动画 */
.modal.closing .video-modal-content {
  opacity: 0;
  transform: scale(0.8) translateY(-30px);
  transition: opacity 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53),
              transform 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

/* 修复：注释掉标题栏样式（极简模式不需要标题栏） */
/* .video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.95) 0%, 
    rgba(255, 192, 203, 0.95) 50%,
    rgba(255, 209, 220, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  position: relative;
  overflow: hidden;
}

.video-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.2) 0%, 
    transparent 70%);
  animation: headerGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes headerGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10%, 10%) rotate(180deg); }
}

.video-modal-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.video-close-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.video-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.video-close-btn:active {
  transform: rotate(90deg) scale(0.95);
} */

/* 修复：注释掉视频主体区域样式（极简模式不需要） */
/* .video-modal-body {
  padding: 25px;
  background: linear-gradient(180deg, 
    rgba(255, 248, 250, 0.9) 0%, 
    rgba(255, 255, 255, 0.95) 100%);
} */

/* 视频包装器 */
.video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #000 0%, #1a1a2e 100%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 182, 193, 0.2) inset;
}

/* 悬浮关闭按钮 - 极简模式 */
.video-close-btn-floating {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.video-close-btn-floating:hover {
  background: rgba(255, 182, 193, 0.8);
  border-color: rgba(255, 182, 193, 1);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.5);
}

.video-close-btn-floating:active {
  transform: rotate(90deg) scale(0.95);
}

/* 修复：注释掉出场动画样式（极简模式不需要） */
/* ==================== 酷炫出场动画样式 ==================== */

/* .video-entrance-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, 
    rgba(255, 182, 193, 0.3) 0%, 
    rgba(255, 105, 180, 0.4) 50%,
    rgba(255, 20, 147, 0.5) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  pointer-events: none;
}

.video-entrance-animation.active {
  opacity: 1;
  visibility: visible;
}

.animation-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(255, 182, 193, 0.6);
  box-shadow: 
    0 0 30px rgba(255, 182, 193, 0.8),
    0 0 60px rgba(255, 105, 180, 0.6),
    inset 0 0 30px rgba(255, 182, 193, 0.4);
}

.ring-1 {
  width: 100px;
  height: 100px;
  animation: ringExpand 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ring-2 {
  width: 150px;
  height: 150px;
  animation: ringExpand 2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.ring-3 {
  width: 200px;
  height: 200px;
  animation: ringExpand 2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

@keyframes ringExpand {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(3) rotate(360deg);
    opacity: 0;
  }
}

.animation-sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  font-size: 24px;
  animation: sparkleFloat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 25%;
  right: 20%;
  animation-delay: 0.3s;
}

.sparkle:nth-child(3) {
  bottom: 30%;
  left: 25%;
  animation-delay: 0.6s;
}

.sparkle:nth-child(4) {
  bottom: 25%;
  right: 15%;
  animation-delay: 0.9s;
}

.sparkle:nth-child(5) {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1.2s;
  font-size: 32px;
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  50% {
    transform: translateY(-30px) scale(1.3);
    opacity: 1;
  }
}

.animation-text {
  font-size: 36px;
  font-weight: 900;
  color: white;
  text-shadow: 
    0 0 20px rgba(255, 182, 193, 1),
    0 0 40px rgba(255, 105, 180, 0.8),
    0 0 60px rgba(255, 20, 147, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.3);
  animation: textBounce 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 21;
  letter-spacing: 3px;
}

@keyframes textBounce {
  0% {
    transform: scale(0) translateY(50px);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) translateY(-10px);
    opacity: 1;
  }
  70% {
    transform: scale(0.95) translateY(5px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
} */

/* 修复：注释掉旧的加载动画样式 */
/* .video-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.1) 0%, 
    rgba(255, 192, 203, 0.15) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.video-loader.hidden {
  opacity: 0;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid rgba(255, 182, 193, 0.2);
  border-top-color: #FFB6C1;
  border-right-color: #FFC0CB;
  animation: spin 1s linear infinite;
  box-shadow: 
    0 0 20px rgba(255, 182, 193, 0.4),
    0 0 40px rgba(255, 182, 193, 0.2);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
} */

/* 视频元素 */
.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 20px;
  /* 隐藏默认控制栏 */
  object-fit: contain;
  background: #000;
}

/* 修复：注释掉自定义控制栏样式（简洁相框模式不需要控制栏） */
/* ==================== 自定义控制栏样式 ==================== */
/* .custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, 
    rgba(0, 0, 0, 0.85) 0%, 
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 15px 20px 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0 0 20px 20px;
}

.video-wrapper:hover .custom-controls,
.video-wrapper.playing .custom-controls {
  opacity: 1;
}

.controls-progress {
  margin-bottom: 12px;
}

.progress-bar {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: height 0.2s ease;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 182, 193, 0.5);
  transition: transform 0.2s ease;
}

.progress-bar::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 182, 193, 0.5);
}

.controls-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.control-btn:hover {
  background: rgba(255, 182, 193, 0.4);
  border-color: rgba(255, 182, 193, 0.6);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFB6C1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 182, 193, 0.4);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFB6C1;
  cursor: pointer;
  border: none;
}

.fullscreen-btn {
  margin-left: 8px;
}

.time-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.time-separator {
  color: rgba(255, 255, 255, 0.5);
} */

/* 移动端视频弹窗适配 */
@media (max-width: 768px) {
  .video-modal-content {
    width: 96%;
    max-width: none;
    border-radius: 25px;
  }
  
  .video-wrapper {
    border-radius: 15px;
  }
  
  .video-wrapper video {
    border-radius: 15px;
  }
  
  /* 悬浮关闭按钮移动端适配 */
  .video-close-btn-floating {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    width: 98%;
    border-radius: 20px;
  }
  
  .video-wrapper {
    border-radius: 12px;
  }
  
  .video-wrapper video {
    border-radius: 12px;
  }
  
  /* 小屏幕悬浮关闭按钮适配 */
  .video-close-btn-floating {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* 修复：注释掉歌词显示区域样式（歌词属于音乐播放器，不属于视频播放器） */
/* ==================== 歌词显示区域样式 ==================== */

/* 歌词容器 - 毛玻璃效果 */
/* .lyrics-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px; 
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 显示状态 */
.lyrics-container.show {
  opacity: 1;
  visibility: visible;
}

/* 歌词内容区域 */
.lyrics-content {
  width: 90%;
  max-height: 70%;
  overflow-y: auto;
  padding: 20px;
  text-align: center;
  scroll-behavior: smooth;
}

/* 自定义滚动条 */
.lyrics-content::-webkit-scrollbar {
  width: 6px;
}

.lyrics-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.lyrics-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF9EB5, #FFB6C1);
}

/* 歌词行 */
.lyric-line {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 2;
  margin: 8px 0;
  transition: all 0.3s ease;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 当前播放的歌词行 - 高亮显示 */
.lyric-line.active {
  color: #FFB6C1;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 
    0 0 20px rgba(255, 182, 193, 0.8),
    0 0 40px rgba(255, 182, 193, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

/* 即将播放的歌词行 */
.lyric-line.upcoming {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

/* 已播放的歌词行 */
.lyric-line.passed {
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .lyrics-container {
    bottom: 50px;
  }
  
  .lyrics-content {
    width: 95%;
    padding: 15px;
  }
  
  .lyric-line {
    font-size: 14px;
    line-height: 1.8;
  }
  
  .lyric-line.active {
    font-size: 17px;
  }
  
  .lyric-line.upcoming {
    font-size: 15px;
  }
  
  .lyric-line.passed {
    font-size: 13px;
  }
} */

/* 修复：注释掉第二处歌词显示区域样式（歌词属于音乐播放器，不属于视频播放器） */
/* 歌词容器 - 毛玻璃效果 */
/* .lyrics-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px; 
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 显示状态 */
.lyrics-container.show {
  opacity: 1;
  visibility: visible;
}

/* 歌词内容区域 */
.lyrics-content {
  width: 90%;
  max-height: 70%;
  overflow-y: auto;
  padding: 20px;
  text-align: center;
  scroll-behavior: smooth;
}

/* 自定义滚动条 */
.lyrics-content::-webkit-scrollbar {
  width: 6px;
}

.lyrics-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.lyrics-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF9EB5, #FFB6C1);
}

/* 歌词行 */
.lyric-line {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 2;
  margin: 8px 0;
  transition: all 0.3s ease;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 当前播放的歌词行 - 高亮显示 */
.lyric-line.active {
  color: #FFB6C1;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 
    0 0 20px rgba(255, 182, 193, 0.8),
    0 0 40px rgba(255, 182, 193, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

/* 即将播放的歌词行 */
.lyric-line.upcoming {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

/* 已播放的歌词行 */
.lyric-line.passed {
  color: rgba(255, 255, 255, 0.4);
  font-size: 15px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .lyrics-container {
    bottom: 50px;
  }
  
  .lyrics-content {
    width: 95%;
    padding: 15px;
  }
  
  .lyric-line {
    font-size: 14px;
    line-height: 1.8;
  }
  
  .lyric-line.active {
    font-size: 17px;
  }
  
  .lyric-line.upcoming {
    font-size: 15px;
  }
  
  .lyric-line.passed {
    font-size: 13px;
  }
} */

/* ==================== 加载更多按钮样式 ==================== */

.load-more-container {
  text-align: center;
  margin: 40px auto;
  max-width: 700px;
  padding: 0 20px;
}

.load-more-btn {
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 6px 20px rgba(255, 182, 193, 0.4),
    0 3px 10px rgba(255, 182, 193, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.load-more-btn:hover::before {
  left: 100%;
}

.load-more-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(255, 182, 193, 0.5),
    0 5px 15px rgba(255, 182, 193, 0.35);
}

.load-more-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.load-more-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: rotate(180deg);
}

.load-more-status {
  margin-top: 12px;
  color: var(--text-medium);
  font-size: 14px;
  font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .load-more-container {
    margin: 30px auto;
    padding: 0 15px;
  }
  
  .load-more-btn {
    padding: 12px 28px;
    font-size: 15px;
    width: 90%;
    max-width: 320px;
  }
}

/* ==================== 留言簿样式 v2.0 - 留言墙模式 ==================== */

/* 表单简化样式 */
.guestbook-form-container {
  max-width: 700px;
  margin: 30px auto;
  padding: 25px;
  background: var(--glass-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group.compact {
  margin-bottom: 15px;
  flex: 1;
}

.guestbook-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
}

.guestbook-form label i {
  margin-right: 6px;
  color: var(--light-pink);
}

.guestbook-form input[type="text"],
.guestbook-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--blush-pink);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition-smooth);
  background: white;
  color: var(--text-dark);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--light-pink);
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.2);
}

.guestbook-form textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-btn.compact {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.submit-btn.compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.submit-btn.compact:active {
  transform: translateY(0);
}

/* 筛选标签 */
.guestbook-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px auto;
  max-width: 700px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--glass-white);
  border: 2px solid var(--blush-pink);
  border-radius: 25px;
  color: var(--text-medium);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-btn i {
  margin-right: 6px;
}

.filter-btn:hover {
  background: var(--blush-pink);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  color: white;
  border-color: var(--light-pink);
  box-shadow: var(--shadow-soft);
}

/* 留言墙网格布局 */
.guestbook-wall {
  max-width: 1200px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));  /* 增加最小宽度 */
  gap: 24px;  /* 增加间距 */
  padding: 0 20px;
}

/* 留言卡片 v2.9.0 - 精致玻璃拟态效果 */
.guestbook-card {
  background: var(--glass-white);
  backdrop-filter: blur(15px);  /* 增强模糊效果 */
  -webkit-backdrop-filter: blur(15px);
  padding: 24px;  /* 增加内边距 */
  border-radius: 22px;  /* 更圆润的圆角 */
  box-shadow: 
    0 8px 32px rgba(255, 182, 193, 0.2),
    0 2px 8px rgba(255, 182, 193, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);  /* 内部高光 */
  border: 2px solid rgba(255, 209, 220, 0.5);  /* 粉色边框 */
  transition: 
    transform 0.4s var(--ease-bounce),
    box-shadow 0.4s var(--ease-smooth),
    border-color 0.4s var(--ease-smooth);
  animation: cardFadeInUp 0.6s var(--ease-gentle) forwards;
  opacity: 0;  /* 初始隐藏，用于交错动画 */
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;  /* 增加最小高度 */
  overflow: hidden;  /* 防止装饰元素溢出 */
}

/* 卡片悬停效果 - 增强交互反馈 */
.guestbook-card:hover {
  transform: translateY(-8px) scale(1.02);  /* 更明显的上浮和缩放 */
  box-shadow: 
    0 16px 48px rgba(255, 182, 193, 0.35),
    0 4px 12px rgba(255, 182, 193, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 182, 193, 0.7);  /* 边框颜色加深 */
}

/* 卡片装饰性角落图标 - 使用伪元素 */
.guestbook-card::before {
  content: '✨';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 18px;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-bounce);
  pointer-events: none;
}

.guestbook-card:hover::before {
  opacity: 1;
  transform: rotate(15deg) scale(1.2);
}

/* 卡片底部装饰线 */
.guestbook-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 182, 193, 0.4) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.guestbook-card:hover::after {
  opacity: 1;
}

/* 留言卡片交错淡入动画 v2.9.0 */
@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.guestbook-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;  /* 增加间距 */
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 209, 220, 0.6);  /* 更柔和的边框 */
}

.guestbook-card-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 17px;  /* 稍微增大字体 */
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);  /* 文字阴影增强可读性 */
}

.guestbook-card-name::before {
  content: '💖';  /* 更换为爱心图标 */
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(255, 182, 193, 0.4));  /* 图标阴影 */
}

.guestbook-card-time {
  color: var(--text-medium);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 248, 250, 0.6);  /* 轻微背景 */
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 220, 0.3);
}

.guestbook-card-message {
  color: var(--text-dark);
  line-height: 1.8;  /* 增加行高，提升可读性 */
  font-size: 15px;  /* 稍微增大字体 */
  word-wrap: break-word;
  flex: 1;
  margin-bottom: 16px;
  padding: 12px;  /* 增加内边距 */
  background: rgba(255, 255, 255, 0.4);  /* 轻微背景 */
  border-radius: 14px;  /* 圆角 */
  border-left: 3px solid rgba(255, 182, 193, 0.4);  /* 左侧装饰线 */
  position: relative;
}

/* 引用标记 - 使用伪元素 */
.guestbook-card-message::before {
  content: '"';
  position: absolute;
  top: -5px;
  left: 8px;
  font-size: 48px;
  color: rgba(255, 182, 193, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.guestbook-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 209, 220, 0.4);  /* 更柔和的边框 */
}

.guestbook-card-actions {
  display: flex;
  gap: 12px;  /* 增加间距 */
}

.action-btn {
  background: transparent;
  border: 2px solid transparent;  /* 添加边框 */
  color: var(--text-medium);
  font-size: 13px;
  cursor: pointer;
  transition: 
    all 0.3s var(--ease-bounce),
    transform 0.2s var(--ease-bounce);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 18px;  /* 更圆润 */
  font-weight: 600;
}

.action-btn i {
  font-size: 15px;
  transition: transform 0.3s var(--ease-bounce);
}

.action-btn:hover {
  background: rgba(255, 248, 250, 0.8);
  border-color: rgba(255, 182, 193, 0.5);  /* 粉色边框 */
  color: var(--light-pink);
  transform: translateY(-2px);  /* 轻微上浮 */
}

.action-btn:hover i {
  transform: scale(1.2);  /* 图标放大 */
}

.action-btn.like-btn.liked {
  color: #ff4757;
  border-color: rgba(255, 71, 87, 0.3);
  background: rgba(255, 71, 87, 0.08);
}

.action-btn.like-btn.liked i {
  animation: heartBeat 0.6s var(--ease-bounce);
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

/* 删除按钮样式 - 危险操作，使用警告色 */
.action-btn.delete-btn {
  color: #ff6b81;
  border-color: rgba(255, 107, 129, 0.3);
  background: rgba(255, 107, 129, 0.08);
}

.action-btn.delete-btn:hover {
  background: rgba(255, 107, 129, 0.15);
  border-color: rgba(255, 107, 129, 0.6);
  color: #ff4757;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 129, 0.3);
}

.action-btn.delete-btn:hover i {
  transform: scale(1.3) rotate(-10deg);
}

.action-btn.delete-btn:active {
  transform: translateY(0) scale(0.98);
}

/* 淡出动画 - 用于删除留言时的过渡效果 */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

.likes-count {
  font-weight: 600;
  min-width: 20px;
  display: inline-block;
}

/* 回复区域 */
.replies-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--blush-pink);
  display: none;
}

.replies-section.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.reply-item {
  background: rgba(255, 240, 245, 0.5);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12px;
}

.reply-name {
  font-weight: 600;
  color: var(--text-dark);
}

.reply-time {
  color: var(--text-medium);
}

.reply-content {
  color: var(--text-dark);
  line-height: 1.6;
}

.reply-form {
  margin-top: 10px;
  display: none;
}

.reply-form.show {
  display: block;
}

.reply-input {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--blush-pink);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 8px;
  resize: vertical;
  min-height: 60px;
}

.reply-submit {
  padding: 6px 15px;
  background: var(--light-pink);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.reply-submit:hover {
  background: var(--soft-pink);
  transform: translateY(-1px);
}

/* 加载和空状态 */
.loading-message {
  text-align: center;
  padding: 40px;
  color: var(--text-medium);
  font-size: 16px;
  grid-column: 1 / -1;
}

.empty-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-medium);
  font-size: 16px;
  grid-column: 1 / -1;
}

.empty-message i {
  font-size: 60px;
  display: block;
  margin-bottom: 15px;
  color: var(--blush-pink);
  opacity: 0.5;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .guestbook-form-container {
    margin: 20px 15px;
    padding: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .guestbook-filters {
    margin: 20px 15px;
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .guestbook-wall {
    grid-template-columns: 1fr;  /* 单列布局 */
    gap: 18px;  /* 增加间距 */
    padding: 0 15px;
  }
  
  .guestbook-card {
    padding: 20px;  /* 保持足够的内边距 */
    min-height: auto;
    border-radius: 20px;  /* 稍微减小圆角 */
  }
  
  .guestbook-card::before {
    font-size: 16px;  /* 缩小装饰图标 */
    top: 10px;
    right: 10px;
  }
  
  .guestbook-card-name {
    font-size: 16px;
  }
  
  .guestbook-card-message {
    font-size: 14px;
    padding: 10px;
    line-height: 1.7;
  }
  
  .action-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .action-btn i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .guestbook-form-container {
    padding: 18px;
  }
  
  .guestbook-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .guestbook-wall {
    gap: 14px;  /* 稍微增加间距 */
    padding: 0 12px;
  }
  
  .guestbook-card {
    padding: 16px;  /* 保持足够内边距 */
    border-radius: 18px;
  }
  
  .guestbook-card::before {
    font-size: 14px;  /* 进一步缩小装饰图标 */
  }
  
  .guestbook-card-name {
    font-size: 15px;
  }
  
  .guestbook-card-message {
    font-size: 13px;
    padding: 8px;
    line-height: 1.6;
  }
  
  .guestbook-card-time {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* ==================== 移动端动画降级优化 ==================== */
/* 在低端设备或移动设备上禁用复杂动画,提升流畅度 */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  /* 禁用背景渐变动画 */
  body {
    animation: none !important;
    background-size: 100% 100% !important;
  }
  
  /* 禁用浮动装饰元素 */
  .floating-decoration,
  .decoration {
    display: none !important;
  }
  
  /* 简化卡片悬停效果 */
  .hobby-card:hover,
  .daily-card:hover {
    transform: none !important;
  }
  
  /* 禁用打字机动画 */
  .typewriter {
    animation: none !important;
    border-right: none !important;
  }
  
  /* 减少阴影效果 */
  .navbar,
  .hobby-card,
  .daily-card,
  .contact-box {
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.15) !important;
  }
}

/* 超低端设备进一步优化 */
@media (max-width: 480px) and (pointer: coarse) {
  /* 完全禁用粒子画布 */
  #particleCanvas {
    display: none !important;
  }
  
  /* 简化所有过渡效果 */
  * {
    transition-duration: 0.15s !important;
  }
}

/* ==================== 全局动画系统 v2.6.0 ==================== */
/* 统一、流畅、性能优化的动画效果 */

/* ---------- 1. 页面加载入场动画 ---------- */

/* Fade In Up - 淡入上滑（用于卡片、内容块） */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In - 淡入（用于图片、图标） */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide In Left/Right - 左右滑入（用于侧边栏、面板） */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In - 缩放进入（用于模态框、弹窗） */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce In - 弹性进入（用于按钮、徽章） */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse - 脉冲动画（用于提示、通知） */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Float - 浮动动画（用于装饰元素） */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Shake - 抖动动画（用于错误提示） */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ---------- 2. 通用动画类 ---------- */

/* 页面加载动画应用 */
.animate-fade-in-up {
  animation: fadeInUp var(--duration-slow) var(--ease-smooth) both;
}

.animate-fade-in {
  animation: fadeIn var(--duration-normal) var(--ease-gentle) both;
}

.animate-slide-in-left {
  animation: slideInLeft var(--duration-slow) var(--ease-smooth) both;
}

.animate-slide-in-right {
  animation: slideInRight var(--duration-slow) var(--ease-smooth) both;
}

.animate-scale-in {
  animation: scaleIn var(--duration-normal) var(--ease-bounce) both;
}

.animate-bounce-in {
  animation: bounceIn var(--duration-slower) var(--ease-bounce) both;
}

.animate-pulse {
  animation: pulse 2s var(--ease-gentle) infinite;
}

.animate-float {
  animation: float 3s var(--ease-gentle) infinite;
}

.animate-shake {
  animation: shake 0.5s var(--ease-smooth);
}

/* 延迟类（用于交错动画） */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ---------- 3. 导航栏动画优化 ---------- */

.navbar {
  animation: fadeInDown var(--duration-slow) var(--ease-smooth) both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--light-pink), var(--rose-pink));
  transition: all var(--duration-normal) var(--ease-bounce);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a:hover {
  color: var(--light-pink);
  transform: translateY(-2px);
}

/* ---------- 4. Hero 区域动画 ---------- */

.hero .glitch-text {
  animation: fadeInUp var(--duration-slower) var(--ease-bounce) 0.2s both;
}

.hero .typewriter {
  animation: fadeInUp var(--duration-slower) var(--ease-bounce) 0.4s both;
}

/* ---------- 5. 卡片悬停与点击反馈 ---------- */

.hobby-card,
.daily-card,
.guestbook-card {
  transition: all var(--duration-normal) var(--ease-bounce);
  will-change: transform, box-shadow;
}

.hobby-card:hover,
.daily-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.hobby-card:active,
.daily-card:active {
  transform: translateY(-4px) scale(0.98);
  transition-duration: var(--duration-fast);
}

.guestbook-card {
  transition: all var(--duration-normal) var(--ease-gentle);
}

.guestbook-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 182, 193, 0.3);
}

/* ---------- 6. 按钮交互优化 ---------- */

button,
.btn,
.submit-btn,
.load-more-btn {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-bounce);
  will-change: transform;
}

button::before,
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::before,
.btn:active::before {
  width: 300px;
  height: 300px;
}

button:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 182, 193, 0.4);
}

button:active,
.btn:active {
  transform: translateY(-1px) scale(0.96);
  transition-duration: var(--duration-fast);
}

/* ---------- 7. 模态框动画优化 ---------- */

.modal {
  transition: opacity var(--duration-normal) var(--ease-gentle),
              visibility var(--duration-normal) var(--ease-gentle);
}

.modal.show {
  animation: modalFadeIn var(--duration-normal) var(--ease-bounce) both;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  animation: modalSlideUp var(--duration-normal) var(--ease-bounce) both;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 设置面板动画 */
.settings-panel {
  transition: transform var(--duration-normal) var(--ease-bounce),
              opacity var(--duration-normal) var(--ease-gentle);
}

.settings-panel.show {
  animation: settingsSlideIn var(--duration-normal) var(--ease-bounce) both;
}

@keyframes settingsSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- 8. Toast 提示动画 ---------- */

.toast {
  transition: all var(--duration-normal) var(--ease-bounce);
}

.toast.show {
  animation: toastSlideUp var(--duration-normal) var(--ease-bounce) both;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.hide {
  animation: toastSlideDown var(--duration-fast) var(--ease-gentle) both;
}

@keyframes toastSlideDown {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
}

/* ---------- 9. 表单输入框动画 ---------- */

input,
textarea {
  transition: all var(--duration-normal) var(--ease-gentle);
  border: 2px solid transparent;
}

input:focus,
textarea:focus {
  border-color: var(--light-pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.2);
  transform: translateY(-2px);
}

/* ---------- 10. 进度条动画 ---------- */

.progress-bar .progress {
  transition: width var(--duration-slow) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.progress-bar .progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- 11. 滚动进度条动画 ---------- */

.scroll-progress {
  transition: width 0.1s linear;
}

/* ---------- 12. 小组件动画 ---------- */

.widgets-container {
  animation: fadeIn var(--duration-slow) var(--ease-gentle) 0.5s both;
}

.widget {
  transition: all var(--duration-normal) var(--ease-bounce);
}

.widget:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 182, 193, 0.35);
}

/* ---------- 13. 视频播放器动画 ---------- */

.video-modal-content {
  animation: videoZoomIn var(--duration-normal) var(--ease-bounce) both;
}

@keyframes videoZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- 14. 开关切换动画 ---------- */

.switch .slider {
  transition: all var(--duration-normal) var(--ease-bounce);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, var(--light-pink), var(--rose-pink));
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
  transition: transform var(--duration-normal) var(--ease-bounce);
}

/* ---------- 15. 浮动装饰元素优化 ---------- */

.floating-decoration,
.decoration {
  animation: float var(--duration-slower) var(--ease-gentle) infinite;
  will-change: transform;
}

/* ---------- 16. 加载状态动画 ---------- */

.loading-message {
  animation: pulse 1.5s var(--ease-gentle) infinite;
}

/* ---------- 17. 空状态动画 ---------- */

.empty-message {
  animation: fadeIn var(--duration-normal) var(--ease-gentle) both;
}

/* ---------- 18. 筛选按钮动画 ---------- */

.filter-btn {
  transition: all var(--duration-normal) var(--ease-bounce);
  position: relative;
}

.filter-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--light-pink), var(--rose-pink));
  transition: all var(--duration-normal) var(--ease-bounce);
  transform: translateX(-50%);
  border-radius: 2px;
}

.filter-btn.active::before {
  width: 60%;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn:active {
  transform: translateY(0) scale(0.95);
}

/* ---------- 19. 平滑滚动增强 ---------- */

html {
  scroll-behavior: smooth;
}

/* ---------- 20. 减少动画偏好支持 ---------- */

@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;
  }
  
  .floating-decoration,
  .decoration {
    animation: none !important;
  }
  
  /* 设置面板动画降级 v3.1.0 - 保持一致性 */
  .settings-panel {
    transition: none !important;
  }
  
  .settings-panel.show {
    transform: translate(-50%, -50%) scale(1) !important;  /* 与主样式一致 */
  }
  
  .settings-overlay {
    transition: none !important;
  }
  
  .animate-setting-item {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ==================== 小高度屏幕优化 v3.1.0 ==================== */
/* 针对横屏手机或超小高度设备 */
@media (max-height: 600px) {
  .settings-panel {
    max-height: 85vh;  /* 增加最大高度占比 */
    transform: translate(-50%, -50%) scale(0.85);  /* 保持居中 */
  }
  
  .settings-panel.show {
    transform: translate(-50%, -50%) scale(1) !important;  /* 保持一致 */
  }
  
  .settings-header {
    padding: 12px 20px;
  }
  
  .settings-header h3 {
    font-size: 16px;
  }
  
  .settings-shortcut-hint {
    padding: 8px 20px;
    font-size: 11px;
  }
  
  .settings-body {
    padding: 12px;
    max-height: calc(85vh - 110px);  /* 精确计算小高度屏幕滚动区域 */
  }
  
  .setting-item {
    padding: 10px 0;
  }
  
  .setting-info label {
    font-size: 13px;
  }
  
  .setting-info p {
    font-size: 11px;
  }
}

/* ==================== 移动端设置面板优化 v3.1.0 ==================== */
/* 针对平板和手机端 */
@media (max-width: 768px) {
  .settings-panel {
    width: 95%;  /* 增加宽度占比 */
    max-width: none;  /* 移除最大宽度限制 */
    max-height: 80vh;  /* 调整最大高度 */
    border-radius: 20px;  /* 稍微减小圆角 */
  }
  
  .settings-header {
    padding: 16px 20px;
  }
  
  .settings-header h3 {
    font-size: 18px;
  }
  
  .settings-close-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .settings-shortcut-hint {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .settings-body {
    padding: 16px 20px;
    max-height: calc(80vh - 120px);
  }
  
  .setting-item {
    padding: 14px 0;
  }
  
  .setting-info label {
    font-size: 14px;
  }
  
  .setting-desc {
    font-size: 11px;
  }
}

/* 手机端进一步优化 */
@media (max-width: 480px) {
  .settings-panel {
    width: 98%;
    max-height: 85vh;
    border-radius: 18px;
  }
  
  .settings-header {
    padding: 14px 16px;
  }
  
  .settings-header h3 {
    font-size: 16px;
  }
  
  .settings-shortcut-hint {
    padding: 8px 16px;
    font-size: 11px;
  }
  
  .settings-body {
    padding: 12px 16px;
    max-height: calc(85vh - 110px);
  }
  
  .setting-item {
    padding: 12px 0;
  }
  
  .setting-info label {
    font-size: 13px;
  }
  
  .setting-desc {
    font-size: 10px;
  }
}

