/* ============================================
   Campus Wall - 鍢変簩銇澧欑幇浠ｇ簿鑷撮鏍兼牱寮忚〃
   閰嶈壊锛氱矇鑹茬郴 + 绱壊 + 榛勮壊鐐圭紑锛堢簿鑷村崌绾х増锛?
   椋庢牸锛氱幇浠ｃ€佺簿鑷淬€佹湁璐ㄦ劅銆佹瘺鐜荤拑銆佸井鍔动画
   ============================================ */

/* ============================================
   1. CSS 鍙橀噺 / 璁捐绯荤粺
   ============================================ */
:root {
  /* ---- 涓昏壊璋?---- */
  --primary: #FF6B9D;
  --primary-light: #FF8FB5;
  --primary-dark: #E5558A;

  /* ---- 杈呭姪鑹?---- */
  --secondary: #A78BFA;
  --secondary-light: #C4B5FD;

  /* ---- 寮鸿皟鑹?---- */
  --accent: #F59E0B;
  --accent-light: #FCD34D;

  /* ---- 璇箟鑹?---- */
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;

  /* ---- 鑳屾櫙鑹?---- */
  --bg-primary: #FAFBFE;
  --bg-secondary: #F1F3F8;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);

  /* ---- 鏂囧瓧鑹?---- */
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;

  /* ---- 杈规 ---- */
  --border-light: #E2E8F0;
  --border-color: #CBD5E1;

  /* ---- 鍦嗚 ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ---- 阴影 ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 4px 14px rgba(255, 107, 157, 0.25);
  --shadow-secondary: 0 4px 14px rgba(167, 139, 250, 0.25);

  /* ---- 杩囨浮 ---- */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- 布局与移动端适配 ---- */
  --navbar-height: 64px;
  --container-max: 680px;
  --mobile-tabbar-height: 58px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);

  /* ---- 间距与字阶体系 ---- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 28px;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.68;

  /* ---- 字体 ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'HarmonyOS Sans SC', sans-serif;
}

/* ---- 现代深空极光夜色主题（舒适护眼、层次通透、拒绝生硬刺眼） ---- */
[data-theme="dark"] {
  color-scheme: dark;

  /* ---- 品牌强调色（夜间适度提亮） ---- */
  --primary: #ff83aa;
  --primary-light: #ffa0bd;
  --primary-dark: #ff9abc;
  --secondary: #b9a2ff;
  --secondary-light: #d0c1ff;

  /* ---- 背景层级递增 ---- */
  --bg-primary: #0F1218;
  --bg-secondary: #161B24;
  --bg-card: #1B212D;
  --bg-glass: rgba(27, 33, 45, 0.82);
  --bg-elevated: #242C3C;

  /* ---- 文字层级（WCAG 2.1 舒适对比度） ---- */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-light: #64748B;
  --text-inverse: #0F1218;

  /* ---- 柔和半透明高光边框（告别刺眼白线框） ---- */
  --border-light: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.09);

  /* ---- 深色模式阴影 ---- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.65);
  --shadow-primary: 0 4px 18px rgba(255, 117, 165, 0.3);
  --shadow-secondary: 0 4px 18px rgba(167, 139, 250, 0.3);
}

/* ============================================
   1.4 楠ㄦ灦灞忓姩鐢?
   ============================================ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-title {
  height: 16px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-text {
  height: 12px;
  width: 100%;
  margin-bottom: 6px;
}

.skeleton-text:last-child {
  width: 80%;
}

.skeleton-image {
  height: 200px;
  width: 100%;
  border-radius: var(--radius-md);
  margin-top: 12px;
}

/* ============================================
   1.5 鍥剧墖棰勮妯℃€佹
   ============================================ */
.image-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: zoom-out;
}

.image-preview-modal.show {
  opacity: 1;
  visibility: visible;
}

.image-preview-modal img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-preview-modal.show img {
  transform: scale(1);
}

.image-preview-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.image-preview-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.image-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.image-preview-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.image-preview-prev {
  left: 20px;
}

.image-preview-next {
  right: 20px;
}

.image-preview-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* ============================================
   1.6 瑙︽懜鍙嶉鍔动画
   ============================================ */
.touch-feedback {
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.touch-feedback:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-hover:active {
  transform: translateY(-2px) scale(0.98);
}

/* 鐐硅禐鍔动画 */
@keyframes likeAnimation {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.like-animate {
  animation: likeAnimation 0.4s ease;
}

/* 鏀惰棌鍔动画 */
@keyframes favoriteAnimation {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  50% { transform: scale(0.9) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.favorite-animate {
  animation: favoriteAnimation 0.5s ease;
}

/* 鎸夐挳鐐瑰嚮娉㈢汗鏁堟灉 */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ============================================
   1.5 娣辫壊妯″紡
   ============================================ */
[data-theme="dark"] {
  color-scheme: dark;
  --primary: #ff83aa;
  --primary-light: #ffa0bd;
  --primary-dark: #ff9abc;
  --secondary: #b9a2ff;
  --secondary-light: #d0c1ff;
  --accent: #FBBF24;
  --accent-light: #FDE68A;
  --success: #34D399;
  --danger: #F87171;
  --warning: #FBBF24;
  --info: #60A5FA;

  --bg-primary: #12141f;
  --bg-secondary: #191c29;
  --bg-card: #202332;
  --bg-glass: rgba(32, 35, 50, 0.88);

  --text-primary: #f4f2f8;
  --text-secondary: #c9c6d3;
  --text-light: #a5a1b2;
  --text-inverse: #171823;

  --border-light: #34384a;
  --border-color: #45495d;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 4px 16px rgba(255, 107, 157, 0.24);
  --shadow-secondary: 0 4px 16px rgba(167, 139, 250, 0.24);
}

[data-theme="dark"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .navbar {
  background: var(--bg-glass) !important;
  border-bottom-color: var(--border-light) !important;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-logo { color: var(--text-primary) !important; }
[data-theme="dark"] .nav-link { color: var(--text-secondary); }
[data-theme="dark"] .nav-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .nav-link.active { color: var(--primary); background: rgba(255, 143, 181, 0.1); }
[data-theme="dark"] .btn-login {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: 1.5px solid var(--border-color) !important;
}
[data-theme="dark"] .btn-register {
  background: var(--primary) !important;
  color: white !important;
}
[data-theme="dark"] .nav-user .nav-nickname { color: var(--text-primary); }

[data-theme="dark"] .main-content { background: var(--bg-primary); }

[data-theme="dark"] .quick-card {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .quick-card-song {
  background: linear-gradient(135deg, #2A1A2E, #1E1528);
  border-color: rgba(255, 107, 157, 0.15);
}
[data-theme="dark"] .quick-card-post {
  background: linear-gradient(135deg, #1E1A2E, #1A1528);
  border-color: rgba(167, 139, 250, 0.15);
}
[data-theme="dark"] .quick-card-gaokao {
  background: linear-gradient(135deg, #2A2510, #1E1B0A);
  border-color: rgba(245, 158, 11, 0.15);
}
[data-theme="dark"] .quick-card-hitokoto {
  background: linear-gradient(135deg, #0F2A1E, #0A1E15);
  border-color: rgba(16, 185, 129, 0.15);
}
[data-theme="dark"] .quick-card-text { color: var(--text-primary); }
[data-theme="dark"] .quick-card-hitokoto-text { color: var(--text-light); }

[data-theme="dark"] .filter-bar { background: var(--bg-glass); }
[data-theme="dark"] .filter-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}
[data-theme="dark"] .filter-tag.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
[data-theme="dark"] .sort-btn { color: var(--text-light); }
[data-theme="dark"] .sort-btn.active { color: var(--primary); }

[data-theme="dark"] .post-card {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}
[data-theme="dark"] .user-name { color: var(--text-primary); }
[data-theme="dark"] .post-time { color: var(--text-light); }
[data-theme="dark"] .post-content { color: var(--text-primary); }
[data-theme="dark"] .post-category {
  background: rgba(255, 143, 181, 0.12);
  color: var(--primary);
  border: 1px solid rgba(255, 117, 165, 0.2);
}
[data-theme="dark"] .post-actions { border-top-color: var(--border-light); }
[data-theme="dark"] .action-btn { color: var(--text-secondary); }
[data-theme="dark"] .action-btn:hover { color: var(--primary); }
[data-theme="dark"] .action-btn.liked { color: var(--primary); }
[data-theme="dark"] .action-btn.favorited { color: #FBBF24; }

[data-theme="dark"] .btn-load-more {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}
[data-theme="dark"] .btn-load-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .empty-text { color: var(--text-secondary); }
[data-theme="dark"] .empty-subtext { color: var(--text-light); }

[data-theme="dark"] .footer {
  background: var(--bg-secondary);
  border-top-color: var(--border-light);
  color: var(--text-light);
}

[data-theme="dark"] .fab-post {
  background: var(--primary) !important;
  box-shadow: var(--shadow-primary);
}

[data-theme="dark"] .bottom-tab-bar {
  background: rgba(22, 27, 36, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top-color: var(--border-light) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .tab-item { color: var(--text-light); }
[data-theme="dark"] .tab-item.active { color: var(--primary); }
[data-theme="dark"] .tab-item-center .tab-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 14px rgba(255, 143, 181, 0.3);
}

/* 娣辫壊妯″紡 - 璇︽儏椤?*/
[data-theme="dark"] .detail-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}
[data-theme="dark"] .detail-title { color: var(--text-primary); }
[data-theme="dark"] .detail-content { color: var(--text-secondary); }
[data-theme="dark"] .author-name { color: var(--text-primary); }
[data-theme="dark"] .comment-item {
  border-bottom-color: var(--border-light);
}
[data-theme="dark"] .comment-author { color: var(--text-primary); }
[data-theme="dark"] .comment-text { color: var(--text-secondary); }
[data-theme="dark"] .comment-input-wrapper {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}
[data-theme="dark"] .comment-input {
  background: transparent;
  color: var(--text-primary);
}
[data-theme="dark"] .comment-input::placeholder { color: var(--text-light); }
[data-theme="dark"] .btn-comment {
  background: var(--primary);
  color: white;
}

/* 娣辫壊妯″紡 - 鐧诲綍/娉ㄥ唽 */
[data-theme="dark"] .auth-card {
  background: var(--bg-card);
  border-color: var(--border-light);
  box-shadow: var(--shadow-xl);
}
[data-theme="dark"] .auth-title { color: var(--text-primary); }
[data-theme="dark"] .auth-subtitle { color: var(--text-light); }
[data-theme="dark"] .form-input {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}
[data-theme="dark"] .form-input::placeholder { color: var(--text-light); }
[data-theme="dark"] .form-input:focus { border-color: var(--primary); }
[data-theme="dark"] .btn-primary {
  background: var(--primary);
  color: white;
}
[data-theme="dark"] .auth-link { color: var(--text-light); }
[data-theme="dark"] .auth-link:hover { color: var(--primary); }

/* 娣辫壊妯″紡 - 鐐规瓕椤?*/
[data-theme="dark"] .radio-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}
[data-theme="dark"] .song-form-input {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}
[data-theme="dark"] .song-form-input::placeholder { color: var(--text-light); }
[data-theme="dark"] .song-item {
  border-bottom-color: var(--border-light);
}
[data-theme="dark"] .song-item:hover { background: rgba(255, 255, 255, 0.03); }

/* 娣辫壊妯″紡 - 涓汉涓績 */
[data-theme="dark"] .profile-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}
[data-theme="dark"] .profile-stat { color: var(--text-secondary); }

/* 娣辫壊妯″紡 - 鍙戝笘椤?*/
[data-theme="dark"] .post-form-card {
  background: var(--bg-card);
  border-color: var(--border-light);
}
[data-theme="dark"] .post-form-title { color: var(--text-primary); }

/* 娣辫壊妯″紡 - Toast */
[data-theme="dark"] .toast {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

/* 娣辫壊妯″紡 - Modal */
[data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.7); }
[data-theme="dark"] .modal-content {
  background: var(--bg-card);
  border-color: var(--border-light);
}
[data-theme="dark"] .modal-title { color: var(--text-primary); }

/* 娣辫壊妯″紡 - 鍥剧墖棰勮 */
[data-theme="dark"] .image-preview-overlay { background: rgba(0, 0, 0, 0.9); }

/* 涓婚鍒囨崲鎸夐挳锛堝叏灞€锛?*/
.theme-switch {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.theme-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* ============================================
   2. 鍏ㄥ眬鍩虹样式
   ============================================ */

/* ---- html ---- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ---- body ---- */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ===== 鍏夋檿鏁堟灉鑳屾櫙 ===== */
.page-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.3) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -5s;
}

.glow-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

/* ===== 鐜荤拑鎷熸€佸崱鐗?===== */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

/* 娣辫壊妯″紡鐜荤拑鏁堟灉 */
[data-theme="dark"] .glass-card {
  background: rgba(30, 34, 53, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-card-light {
  background: rgba(26, 29, 46, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---- 閫変腑鏂囧瓧 ---- */
::selection {
  background: rgba(255, 107, 157, 0.2);
  color: var(--primary-dark);
}

::-moz-selection {
  background: rgba(255, 107, 157, 0.2);
  color: var(--primary-dark);
}

/* ---- 閾炬帴榛樿样式 ---- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ---- 鍥剧墖榛樿样式 ---- */
img {
  max-width: 100%;
  display: block;
}

/* ---- 鍒楄〃閲嶇疆 ---- */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- 鎸夐挳閲嶇疆 ---- */
button {
  font-family: inherit;
  cursor: pointer;
}

/* ---- 杈撳叆妗嗛噸缃?---- */
input,
textarea,
select {
  font-family: inherit;
}

/* ============================================
   3. 鑷畾涔夋粴鍔ㄦ潯
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* 婊氬姩鏉¤建閬?*/
::-webkit-scrollbar-track {
  background: transparent;
}

/* 婊氬姩鏉℃粦鍧?*/
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--secondary-light));
  border-radius: 3px;
}

/* 婊氬姩鏉℃粦鍧楁偓鍋?*/
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

/* Firefox 婊氬姩鏉?*/
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}

/* 深色模式半透明滚动条 */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

[data-theme="dark"] * {
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

/* ============================================
   4. 字体綋灞傜骇
   ============================================ */

/* 澶ф爣棰?*/
.text-h1,
h1 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

/* 鏍囬 */
.text-h2,
h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

/* 鍓爣棰?*/
.text-h3,
h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

/* 姝ｆ枃 */
.text-body {
  font-size: 0.938rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
}

/* 杈呭姪鏂囧瓧 */
.text-caption {
  font-size: 0.813rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 灏忓瓧 */
.text-small {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-light);
}

/* ============================================
   5. 导航栏?
   ============================================ */

/* ---- 导航栏忎富浣?---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 导航栏忔粴鍔ㄥ悗样式 */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* ---- 导航栏忓唴閮ㄥ鍣?---- */
.navbar .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Logo ---- */
.navbar .nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform var(--transition-fast);
  white-space: nowrap;
}

.navbar .nav-logo:hover {
  transform: scale(1.03);
  color: transparent;
}

/* ---- 导航链接缁?---- */
.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 鍗曚釜导航链接 */
.navbar .nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.navbar .nav-link:hover {
  background: rgba(255, 107, 157, 0.08);
  color: var(--text-primary);
}

/* 褰撳墠婵€娲荤殑导航链接 */
.navbar .nav-link.active {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.12),
    rgba(167, 139, 250, 0.12)
  );
  color: var(--primary);
  font-weight: 600;
}

/* 管理后台庡彴閾炬帴样式 - 涓庡叾浠栧鑸摼鎺ヤ繚鎸佷竴鑷?*/
.navbar .nav-admin-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.navbar .nav-admin-link:hover {
  background: rgba(255, 107, 157, 0.08);
  color: var(--primary-dark);
}

.navbar .nav-admin-link span {
  margin-right: 4px;
}

/* ---- 璁よ瘉鎸夐挳缁?---- */
.navbar .nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 鐧诲綍鎸夐挳 */
.navbar .btn-login {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.navbar .btn-login:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

/* 娉ㄥ唽鎸夐挳 */
.navbar .btn-register {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: var(--shadow-primary);
}

.navbar .btn-register:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ---- 鐢ㄦ埛淇℃伅鍖?---- */
.navbar .nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 鐢ㄦ埛澶村儚 */
.navbar .nav-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* 鐢ㄦ埛鏄电О */
.navbar .nav-nickname {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 閫氱煡鎸夐挳 */
.navbar .nav-notification {
  position: relative;
  background: rgba(255, 107, 157, 0.1);
  border: none;
  padding: 3px 6px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
}

.navbar .nav-notification:hover {
  background: rgba(255, 107, 157, 0.2);
  transform: scale(1.05);
}

.navbar .nav-notification .notification-icon {
  font-size: 13px;
  line-height: 1;
}

.navbar .nav-notification .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  min-width: 12px;
  height: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  border: 1.5px solid white;
}

/* 閫€鍑虹櫥褰曟寜閽?*/
.navbar .nav-logout {
  background: rgba(255, 107, 157, 0.1);
  border: none;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 4px;
}

.navbar .nav-logout:hover {
  background: #FF6B9D;
  transform: scale(1.05);
}

/* ---- 绉诲姩绔彍鍗曟寜閽?---- */
.navbar .nav-mobile-toggle {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

/* ============================================
   6. 涓主内容区域
   ============================================ */
.main-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 12px) 16px 100px;
}

/* ============================================
   11. 鎼搜索栏?
   ============================================ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15), var(--shadow-md);
  transform: translateY(-2px) scale(1.01);
}

.search-bar svg {
  flex-shrink: 0;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.search-bar:focus-within svg {
  color: var(--primary);
  transform: scale(1.1);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: var(--text-light);
  transition: opacity 0.3s ease;
}

.search-bar:focus-within .search-input::placeholder {
  opacity: 0.5;
}

.search-clear {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.search-clear.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.search-clear:active {
  transform: scale(0.9);
  background: var(--danger);
  color: white;
}

[data-theme="dark"] .search-bar {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

/* ============================================
   12. 绛涢€夋爮
   ============================================ */

/* ---- 首页〉鐐规瓕鎾斁鍒楄〃 ---- */
.home-radio-section {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.home-radio-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.home-radio-section .section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.home-radio-section .section-more {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
}

.home-radio-section .section-more:hover {
  text-decoration: underline;
}

.home-playlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-song-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.home-song-item:hover {
  background: var(--bg-card);
}

.home-song-item.playing {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
  border: 1px solid rgba(255, 107, 157, 0.2);
}

.home-song-item.played {
  opacity: 0.6;
}

.home-song-item .song-index {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
}

.home-song-item.played .song-index {
  background: var(--text-light);
}

.home-song-item .song-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-song-item .song-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 107, 157, 0.15);
  color: var(--primary);
}

.home-song-item.played .song-status {
  background: var(--bg-secondary);
  color: var(--text-light);
}

.home-song-item.waiting .song-status {
  background: rgba(167, 139, 250, 0.15);
  color: var(--secondary);
}

.home-playlist .empty-text {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 16px;
}

/* ---- 绛涢€夋爮涓讳綋 ---- */
.filter-bar {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-xl);
  overflow: visible;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.12);
  border: 1px solid rgba(255, 107, 157, 0.15);
}

/* ---- 鍒嗙被标签缁?---- */
.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================
   退出登录确认弹窗?- 鍗″搰浼婇鏍?
   ============================================ */
.logout-confirm-modal {
  background: linear-gradient(160deg, #FFF8FA 0%, #FFF5FF 50%, #F8F0FF 100%);
  border-radius: 28px;
  padding: 36px 28px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2), 0 0 0 1px rgba(255, 107, 157, 0.08);
  max-width: 300px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: modalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.logout-modal-stars {
  position: absolute;
  top: 8px;
  left: 0; right: 0;
  font-size: 9px;
  letter-spacing: 10px;
  color: rgba(255, 107, 157, 0.15);
  pointer-events: none;
}

.logout-modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.logout-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #333);
  margin-bottom: 8px;
}

.logout-modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
  margin-bottom: 24px;
}

.logout-modal-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.logout-btn-cancel {
  padding: 12px 24px;
  border: 2px solid rgba(255, 107, 157, 0.3);
  border-radius: 20px;
  background: white;
  color: var(--text-secondary, #666);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn-cancel:hover {
  border-color: var(--primary, #ff6b9d);
  color: var(--primary, #ff6b9d);
  transform: translateY(-2px);
}

.logout-btn-confirm {
  padding: 12px 24px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff6b9d, #c44d85);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
  transition: all 0.2s;
}

.logout-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.4);
}

/* 娣辫壊涓婚适配厤 */
[data-theme="dark"] .logout-confirm-modal {
  background: linear-gradient(160deg, rgba(60, 40, 50, 0.95) 0%, rgba(50, 35, 55, 0.95) 50%, rgba(45, 30, 50, 0.95) 100%);
}

[data-theme="dark"] .logout-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 107, 157, 0.3);
  color: var(--text-primary, #f5e6f0);
}

[data-theme="dark"] .logout-btn-cancel:hover {
  background: rgba(255, 107, 157, 0.1);
}
[data-theme="dark"] .filter-tag,
[data-theme="dark"] .category-card,
[data-theme="dark"] .stat-card {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] input.form-input,
[data-theme="dark"] textarea.form-input {
  background: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

/* 鍗曚釜绛涢€夋爣绛?*/
.filter-tag {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light);
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-tag:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

/* 婵€娲荤殑绛涢€夋爣绛?*/
.filter-tag.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

/* ---- 鎺掑簭鎸夐挳缁?---- */
.filter-sort {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* 鍗曚釜鎺掑簭鎸夐挳 */
.sort-btn {
  padding: 6px 16px;
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sort-btn:hover {
  color: var(--text-secondary);
}

/* 婵€娲荤殑鎺掑簭鎸夐挳 */
.sort-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ============================================
   8. 甯栧瓙鍗＄墖锛堥噸鐐瑰崌绾э級
   ============================================ */

/* ---- 甯栧瓙鍗＄墖涓讳綋 ---- */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 甯栧瓙鍗＄墖鎮仠鏁堟灉 */
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 157, 0.15);
}

/* ---- 甯栧瓙鐢ㄦ埛淇℃伅 ---- */
.post-card .post-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* 鐢ㄦ埛澶村儚 */
.post-card .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-secondary);
  flex-shrink: 0;
}

/* 鐢ㄦ埛鍚?*/
.post-card .user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 瑙掕壊标签 */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.role-super-admin {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff;
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.role-admin {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.role-reviewer {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.role-radio-admin {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: #fff;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

/* 鍙戝竷鏃堕棿 */
.post-card .post-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ---- 甯栧瓙鏍囬 ---- */
.post-card .post-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 8px;
  word-break: break-word;
}

/* ---- 甯栧瓙鍐呭 ---- */
.post-card .post-content {
  font-size: 0.938rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 12px;
  word-break: break-word;
}

/* ---- 甯栧瓙鍥剧墖缃戞牸 - 寰俊鏈嬪弸鍦堥鏍?---- */
.post-card .post-images {
  display: grid;
  gap: 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

/* 鍗曞紶鍥剧墖 - 鏄剧ず杈冨ぇ */
.post-card .post-images.image-count-1 {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.post-card .post-images.image-count-1 .post-image-wrapper {
  max-width: 400px;
}

/* 涓ゅ紶鍥剧墖 */
.post-card .post-images.image-count-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* 涓夊紶鍥剧墖 */
.post-card .post-images.image-count-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 鍥涘紶鍥剧墖 - 2x2缃戞牸 */
.post-card .post-images.image-count-many {
  grid-template-columns: repeat(3, 1fr);
}

/* 鍥剧墖鍖呰鍣?*/
.post-card .post-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--bg-secondary);
}

/* 鍗曞紶鍥剧墖鏃惰皟鏁存瘮渚?*/
.post-card .post-images.image-count-1 .post-image-wrapper {
  aspect-ratio: auto;
  max-height: 400px;
}

/* 鍥剧墖样式 */
.post-card .post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  display: block;
}

/* 鍥剧墖鎮仠鏁堟灉 */
.post-card .post-image-wrapper:hover .post-image {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* 鍥剧墖鐐瑰嚮鍙嶉 */
.post-card .post-image-wrapper:active {
  transform: scale(0.98);
}

.post-video-wrap,
.detail-video-wrap {
  width: min(100%, 720px);
  margin: 12px 0 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #172c2a;
  box-shadow: 0 8px 24px rgba(30, 41, 59, .1);
}

.post-video,
.detail-video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #172c2a;
}

/* 鍥剧墖鍔犺浇涓殑鍗犱綅绗?*/
.post-card .post-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 0;
}

.post-card .post-image {
  position: relative;
  z-index: 1;
}

/* ---- 璇勮棰勮鍖哄煙 - 寰俊鏈嬪弸鍦堥鏍?---- */
.post-card .post-comments-preview {
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 8px 0 4px 0;
  margin-bottom: 8px;
  border: none;
}

/* 鍗曟潯璇勮棰勮 */
.post-card .comment-preview-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  font-size: 0.813rem;
  line-height: 1.5;
}

.post-card .comment-preview-item:not(:last-child) {
  border-bottom: none;
}

/* 璇勮鑰呭悕绉?*/
.post-card .comment-preview-author {
  color: var(--secondary);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.813rem;
}

/* 璇勮鍐呭 */
.post-card .comment-preview-text {
  color: var(--text-secondary);
  word-break: break-word;
  flex: 1;
  font-size: 0.813rem;
}

/* 鏌ョ湅鏇村璇勮鎻愮ず */
.post-card .comment-preview-more {
  padding-top: 4px;
  margin-top: 2px;
  border-top: none;
  color: var(--text-light);
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.post-card .comment-preview-more:hover {
  color: var(--primary);
}

/* ---- 甯栧瓙鎿嶄綔鏍?---- */
.post-card .post-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

/* 鎿嶄綔鎸夐挳 */
.post-card .action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.post-card .action-btn:hover {
  background: var(--bg-section);
  color: var(--primary);
  transform: translateY(-1px);
}

/* 宸茬偣璧炴寜閽?*/
.post-card .action-btn.liked {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
}

/* 鍒犻櫎鎸夐挳鍥炬爣澶у皬鎺у埗 */
.delete-btn .action-icon {
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 鐐硅禐鍔动画 */
.post-card .action-btn.liked .action-icon {
  animation: heartbeat 0.4s ease;
}

/* ---- 涓汉涓婚〉"鎴戠殑甯栧瓙/鏀惰棌"鍗＄墖缇庡寲 ---- */
.profile-my-post {
  position: relative;
  border: 1px solid var(--border-light, rgba(0,0,0,0.06));
  border-left: 3px solid transparent;
  border-radius: 16px;
  margin-bottom: 18px;
  background: var(--bg-card, #fff);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-left-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.profile-my-post:hover {
  border-left-color: #FF6B9D;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.12);
  transform: translateY(-2px);
}
.profile-my-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.profile-my-post-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.10), rgba(167, 139, 250, 0.10));
  color: #d6336c;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.profile-my-post-views svg {
  display: block;
  opacity: 0.7;
}
.profile-my-post .post-content {
  margin-bottom: 12px;
  padding: 0 2px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-primary, #1a1a2e);
  word-break: break-word;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-my-post-divider {
  height: 1px;
  margin: 12px 0 10px;
  background: linear-gradient(90deg, transparent, var(--border-light, rgba(0,0,0,0.08)), transparent);
}
.profile-poll-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin: 10px 0 0;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #92400e;
}
.profile-poll-label {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  font-weight: 600;
  color: #b45309;
}
.profile-my-post .post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border-top: none;
}
.profile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  background: var(--bg-section, rgba(0,0,0,0.03));
  color: var(--text-secondary, #6b7280);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.profile-action-btn:hover {
  background: rgba(255, 107, 157, 0.12);
  color: #d6336c;
  transform: translateY(-1px);
}
.profile-action-btn.liked {
  background: rgba(255, 71, 87, 0.12);
  color: #ff4757;
}
.profile-action-btn.favorited {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}
.profile-action-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.profile-action-num {
  font-weight: 700;
  font-size: 0.82rem;
}
.profile-action-del {
  margin-left: auto;
  opacity: 0.5;
}
.profile-action-del:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* 蹇冭烦鍔动画 */
@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* 宸叉敹钘忔寜閽?*/
.post-card .action-btn.favorited {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.1);
}

/* 鏀惰棌鍔动画 */
.post-card .action-btn.favorited .action-icon {
  animation: starPop 0.3s ease;
}

@keyframes starPop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* ============================================
   9. 绌虹姸鎬?
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

/* 绌虹姸鎬佸浘鏍?*/
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
  display: block;
}

/* 娴姩鍔动画 */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 绌虹姸鎬佷富鏂囧瓧 */
.empty-state .empty-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* 绌虹姸鎬佸壇鏂囧瓧 */
.empty-state .empty-subtext {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ============================================
   10. 鍔犺浇鏇村
   ============================================ */
/* 无限滚动 sentinel：保留 1px 几何尺寸，不能 display:none，否则观察器无法再次触发。 */
.load-more-wrapper {
  display: block !important;
  width: 100%;
  height: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.load-more-wrapper .btn-load-more,
.load-more-wrapper .pagination-container,
.pagination-container,
#prevPageBtn,
#nextPageBtn,
#pageJumpBtn,
#currentPageNum,
#totalPageNum,
.page-jump-input {
  display: none !important;
}

[data-theme="dark"] .btn-load-more {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
}

/* 鍔犺浇鏇村鎸夐挳 */
.btn-load-more {
  padding: 10px 32px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-load-more:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-primary);
}

[data-theme="dark"] .pagination-container {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .page-info,
[data-theme="dark"] .page-btn {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .page-btn {
  background: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
}

/* ============================================
   10.5 分页控件
   ============================================ */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  padding: 12px;
  background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
  border-radius: 12px;
  border: 1px solid #e0e6f6;
}

.page-info {
  font-size: 0.85rem;
  color: #5b6abf;
  font-weight: 600;
  white-space: nowrap;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e0e6f6;
  border-radius: 8px;
  background: white;
  color: #5b6abf;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  border-color: #7b8fd4;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  transform: translateY(-1px);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-jump-input {
  width: 60px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e0e6f6;
  border-radius: 8px;
  background: white;
  color: #1e293b;
  font-size: 0.85rem;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

.page-jump-input:focus {
  border-color: #7b8fd4;
  box-shadow: 0 0 0 3px rgba(123, 143, 212, 0.15);
}

.page-jump-input::placeholder {
  color: #a0aec0;
}

[data-theme="dark"] .pagination-container {
  background: linear-gradient(135deg, #1e2235, #1a1d2e);
  border-color: #2d3348;
}

[data-theme="dark"] .page-info {
  color: #a0b0e0;
}

[data-theme="dark"] .page-btn {
  border-color: #2d3348;
  background: #0f1117;
  color: #a0b0e0;
}

[data-theme="dark"] .page-btn:hover:not(:disabled) {
  border-color: #6b7bcc;
  background: linear-gradient(135deg, #2a2f4a, #252a40);
}

[data-theme="dark"] .page-jump-input {
  background: #0f1117;
  border-color: #374151;
  color: #e8ecf4;
}

[data-theme="dark"] .page-jump-input:focus {
  border-color: #6b7bcc;
  box-shadow: 0 0 0 3px rgba(107, 123, 204, 0.2);
}

/* ============================================
   11. 鍔犺浇鏇村鎸夐挳
   ============================================ */
.fab-post {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.fab-post:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

.fab-post:active {
  transform: scale(0.95);
}

/* ---- 鍥炲埌椤堕儴鎸夐挳 ---- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 99;
}
.back-to-top:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
}
[data-theme="dark"] .back-to-top {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

/* ============================================
   12. 登录 / 注册页椤?
   ============================================ */

/* ---- 璁よ瘉椤典富浣?---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f7 0%, #f0e6ff 50%, #fff5f7 100%);
}

/* ---- 瑁呴グ鍏冪礌瀹瑰櫒 ---- */
.auth-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 瑁呴グ鍦嗗舰 - 绗?涓紙鍙充笂瑙掔矇鑹诧級 */
.decor-circle:nth-child(1) {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 107, 157, 0.12);
  border-radius: 50%;
  top: -50px;
  right: -50px;
  animation: floatDecor 6s ease-in-out infinite;
}

/* 瑁呴グ鍦嗗舰 - 绗?涓紙宸︿笅瑙掔传鑹诧級 */
.decor-circle:nth-child(2) {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(167, 139, 250, 0.12);
  border-radius: 50%;
  bottom: -30px;
  left: -30px;
  animation: floatDecor 6s ease-in-out infinite 1s;
}

/* 瑁呴グ鍦嗗舰 - 绗?涓紙涓棿鍋忓乏榛勮壊锛?*/
.decor-circle:nth-child(3) {
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
  top: 30%;
  left: 10%;
  animation: floatDecor 6s ease-in-out infinite 2s;
}

/* 瑁呴グ娴姩鍔动画 */
@keyframes floatDecor {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* ---- 璁よ瘉鍗＄墖 ---- */
.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- 璁よ瘉椤佃〃鎯?---- */
.auth-emoji {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 8px;
  display: block;
}

/* ---- 璁よ瘉椤垫爣棰?---- */
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* ---- 璁よ瘉椤靛壇鏍囬 ---- */
.auth-subtitle {
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ---- 璁よ瘉琛ㄥ崟 ---- */
.auth-form .form-group {
  margin-bottom: 16px;
}

/* 璁よ瘉琛ㄥ崟杈撳叆妗?*/
.auth-form .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.938rem;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
  background: var(--bg-card);
  color: var(--text-primary);
}

.auth-form .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.auth-form .form-input::placeholder {
  color: var(--text-light);
}

/* ---- 璁よ瘉椤垫寜閽?---- */

/* 鐧诲綍鎸夐挳锛堣〃鍗曞唴锛?*/
.auth-page .btn-login,
.auth-page .btn-login-submit {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-inverse);
  box-shadow: var(--shadow-primary);
}

.auth-page .btn-login:hover,
.auth-page .btn-login-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.auth-page .btn-login:active,
.auth-page .btn-login-submit:active {
  transform: scale(0.98);
}

/* 娉ㄥ唽鎸夐挳锛堣〃鍗曞唴锛?*/
.auth-page .btn-register,
.auth-page .btn-register-submit {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--text-inverse);
  box-shadow: var(--shadow-secondary);
}

.auth-page .btn-register:hover,
.auth-page .btn-register-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.auth-page .btn-register:active,
.auth-page .btn-register-submit:active {
  transform: scale(0.98);
}

/* ---- 璁颁綇鎴?---- */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-light);
  user-select: none;
}
.auth-remember input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: #FF6B9D !important;
  user-select: auto !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  position: static !important;
  transform: none !important;
}

/* ---- 璁よ瘉椤甸摼鎺?---- */
.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.auth-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link a:hover {
  color: var(--primary-dark);
}

/* ============================================
   13. 鍙戝笘椤?
   ============================================ */

/* ---- 鍙戝笘琛ㄥ崟鍗＄墖 ---- */
.post-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: slideUp 0.4s ease;
}

/* ---- 鍙戝笘琛ㄥ崟澶撮儴 ---- */
.post-form-header {
  margin-bottom: 24px;
}

/* 鍙戝笘琛ㄥ崟鏍囬 */
.post-form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* 鍙戝笘琛ㄥ崟鍓爣棰?*/
.post-form-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---- 琛ㄥ崟标签 ---- */
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* 鍙€夋爣绛?*/
.optional-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: var(--bg-secondary);
  color: var(--text-light);
  border-radius: var(--radius-sm);
}

/* 蹇呭～标签 */
.required-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-radius: var(--radius-sm);
}

/* ---- 閫氱敤琛ㄥ崟鎺т欢 ---- */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.938rem;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
}

/* 鏃ユ湡杈撳叆妗?*/
input[type="date"].form-input {
  color: var(--text-primary);
  background: var(--bg-card);
}

input[type="date"].form-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  filter: invert(0.5);
}

input[type="date"].form-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

[data-theme="dark"] input[type="date"].form-input::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
}

/* 鏂囨湰鍩?*/
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* 涓嬫媺閫夋嫨妗?*/
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* 鏄熸湡閫夋嫨鍣?*/
.weekday-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.modal .weekday-btn {
  padding: 6px 12px !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-primary) !important;
  color: var(--text-secondary) !important;
  font-size: 0.8rem !important;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.weekday-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.weekday-btn.selected {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: white !important;
  border-color: transparent !important;
}

.weekday-hint {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* 鏃堕棿閫夋嫨鍣?*/
.time-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.time-picker-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  width: 100%;
  flex-direction: row !important;
}

.time-picker-row .form-input,
.time-picker-row select {
  flex: 1 !important;
  min-width: 0 !important;
  display: inline-block;
}

.time-separator {
  color: var(--text-light);
  font-size: 0.9rem;
  flex-shrink: 0 !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

/* 琛ㄥ崟鎺т欢婧㈠嚭淇 */
.form-select,
select.form-input {
  overflow: hidden;
}

.modal-body .form-select,
.modal-body select.form-input {
  max-width: 100%;
}

/* ---- 鍥剧墖涓婁紶鍖哄煙 ---- */
.image-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-primary);
}

.image-upload-area:hover,
.image-upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(255, 107, 157, 0.04);
}

/* 涓婁紶鍥炬爣 */
.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

/* 涓婁紶涓绘枃瀛?*/
.upload-text {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 涓婁紶鎻愮ず鏂囧瓧 */
.upload-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* 闅愯棌鐨勬枃浠惰緭鍏?*/
.upload-input {
  display: none;
}

/* ---- 鍥剧墖棰勮鍒楄〃 ---- */
.image-preview-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

/* 鍥剧墖棰勮椤?*/
.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 鍒犻櫎棰勮鎸夐挳 */
.preview-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0;
  line-height: 1;
}

.image-preview-item:hover .preview-delete-btn {
  opacity: 1;
}

/* ---- 鍒嗙被标签閫夋嫨 ---- */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 鍗曚釜鍒嗙被标签 */
.category-tag {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.category-tag:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

/* 閫変腑鐨勫垎绫绘爣绛?*/
.category-tag.selected {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

/* ---- 鍖垮悕寮€鍏?---- */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* 寮€鍏充富浣?*/
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch input {
  display: none;
}

/* 寮€鍏虫粦鍧?*/
.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 寮€鍏虫縺娲荤姸鎬?*/
.toggle-switch input:checked + .toggle-slider {
  transform: translateX(20px);
}

.toggle-switch input:checked ~ .toggle-switch-wrapper-bg {
  background: var(--primary);
}

/* 寮€鍏虫彁绀烘枃瀛?*/
.toggle-hint {
  font-size: 0.813rem;
  color: var(--text-light);
}

/* ---- 琛ㄥ崟鎿嶄綔鍖?---- */
.form-actions {
  margin-top: 24px;
}

/* 鐐规瓕鍖垮悕寮€鍏?*/
.radio-anonymous {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.radio-anonymous .toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.radio-anonymous .toggle-switch input {
  display: none;
}

.radio-anonymous .toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-anonymous .toggle-switch input:checked + .toggle-slider {
  transform: translateX(20px);
}

.radio-anonymous .toggle-switch:has(input:checked) {
  background: var(--primary);
}

.radio-anonymous span:last-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 鍙戝竷鎸夐挳 */
.btn-publish {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-primary);
}

.btn-publish:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}

.btn-publish:active {
  transform: scale(0.98);
}

/* ============================================
   14. 甯栧瓙璇︽儏椤?
   ============================================ */

/* ---- 杩斿洖鎸夐挳 ---- */
.detail-back {
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #A78BFA;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255,107,157,0.06), rgba(167,139,250,0.06));
  border: 1.5px solid rgba(167, 139, 250, 0.2);
  transition: all 0.3s;
  font-weight: 600;
}

.back-link:hover {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(167,139,250,0.12));
  border-color: #A78BFA;
  color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(167,139,250,0.15);
}

/* ---- 璇︽儏鍗＄墖 ---- */
.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}
/* ---- 涓や晶瑁呴グ鍗＄墖 ---- */
@media (min-width: 1200px) {
  .side-deco-card {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 140px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 20px 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s, box-shadow 0.25s;
    opacity: 0;
    animation: side-card-fadein 0.5s ease-out forwards;
  }
  .side-deco-left {
    left: 20px;
    animation-delay: 0.1s;
  }
  .side-deco-right {
    right: 20px;
    animation-delay: 0.3s;
  }
  .side-deco-card:hover {
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,107,157,0.06);
  }
  @keyframes side-card-fadein {
    from { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
  }
  .side-deco-left:hover {
    transform: translateY(-50%) translateX(2px);
  }
  .side-deco-right:hover {
    transform: translateY(-50%) translateX(-2px);
  }
  .side-deco-icon {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .side-deco-quote {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    word-break: break-word;
  }
  .side-deco-from {
    font-size: 0.68rem;
    color: var(--text-light);
    text-align: right;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
  }
  .side-deco-title {
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B9D, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
  }
  .side-deco-sub {
    font-size: 0.72rem;
    color: var(--text-light);
    line-height: 1.6;
  }
  .side-deco-loading {
    font-size: 0.72rem;
    color: var(--text-light);
  }
}

/* ---- 绛惧埌鎸夐挳 ---- */
.btn-checkin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 24px;
  border-radius: 99px;
  background: linear-gradient(135deg, #FF6B9D, #A78BFA);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(255,107,157,0.2);
}
.btn-checkin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,157,0.3);
}
.btn-checkin:active { transform: scale(0.95); }

/* ---- 涓汉椤电Н鍒嗕俊鎭?---- */
.profile-points-info {
  margin-top: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,107,157,0.04), rgba(167,139,250,0.04));
  border-radius: 14px;
  border: 1px solid rgba(255,107,157,0.08);
}
.profile-points-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.profile-points-next {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

/* 璇︽儏鏍囬 */
.detail-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ---- 璇︽儏浣滆€呬俊鎭?---- */
.detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

/* 浣滆€呭ご鍍?*/
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-secondary);
  flex-shrink: 0;
}

/* 浣滆€呬俊鎭鍣?*/
.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

/* 浣滆€呭悕 */
.author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.938rem;
}

/* 鍙戝竷鏃堕棿锛堣鎯呴〉閫氱敤锛?*/
.post-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* 甯栧瓙鍒嗙被标签 */
.post-category-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(255, 107, 157, 0.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ---- 璇︽儏鍐呭 ---- */
.detail-content {
  font-size: 0.938rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-primary);
  word-break: break-word;
}

/* ---- 璇︽儏鍥剧墖 ---- */
.detail-images {
  display: grid;
  gap: 4px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.detail-image {
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.detail-image:hover {
  transform: scale(1.02);
}

/* ---- 璇︽儏鎿嶄綔鏍?---- */
.detail-actions {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}

/* 璇︽儏椤垫搷浣滄寜閽?*/
.detail-actions .action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  font-size: 0.813rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.detail-actions .action-btn:hover {
  background: var(--bg-section);
  color: var(--primary);
}

/* 宸茬偣璧炴寜閽?*/
.detail-actions .action-btn.liked {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.15);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* 宸叉敹钘忔寜閽?*/
.detail-actions .action-btn.favorited {
  color: #f39c12;
  background: rgba(243, 156, 18, 0.1);
}

/* ============================================
   鐐硅禐鍒楄〃锛堟湅鍙嬪湀椋庢牸锛?
   ============================================ */
.likes-list {
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.likes-list .likes-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.likes-list .like-user {
  color: #0571b5;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-right: 2px;
}

.likes-list .like-user:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   15. 璇勮鍖?
   ============================================ */

/* ---- 璇勮鍖哄鍣?---- */
.comment-section {
  margin-top: 32px;
  background: linear-gradient(160deg, #fcf6f8 0%, #faf5ff 50%, #f5f0ff 100%);
  border-radius: 24px;
  padding: 32px 28px;
  border: 1px solid rgba(255, 107, 157, 0.1);
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 24px rgba(255,107,157,0.04);
}
/* 椤堕儴褰╄櫣鏉?*/
.comment-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B9D, #A78BFA, #FCD34D, #34D399, #60A5FA, #A78BFA);
  border-radius: 24px 24px 0 0;
}
/* 装饰：漂浮小元素 */
.comment-section::after {
  content: '🌸';
  position: absolute;
  top: 12px;
  right: 24px;
  font-size: 1.6rem;
  opacity: 0.1;
  animation: float-comment-deco 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float-comment-deco {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(8deg); }
}
/* 第二个装饰 */
.comment-section-header::after {
  content: '⭐';
  position: absolute;
  top: -6px;
  left: 36px;
  font-size: 1rem;
  opacity: 0.15;
  animation: float-comment-deco 5s ease-in-out infinite 1s;
  pointer-events: none;
}

[data-theme="dark"] .comment-section {
  background: linear-gradient(160deg, #1f1825 0%, #1a1528 50%, #181828 100%);
  border-color: rgba(255,107,157,0.08);
  box-shadow: none;
}

/* ---- 璇勮鍖哄ご閮?---- */
.comment-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.comment-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF6B9D, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.comment-title-icon { font-size: 1.2rem; -webkit-text-fill-color: initial; }
.comment-count {
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FF6B9D, #A78BFA);
  color: #fff;
  padding: 2px 12px;
  border-radius: 99px;
  margin-left: 4px;
  -webkit-text-fill-color: initial;
}
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #A78BFA;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255,107,157,0.06), rgba(167,139,250,0.06));
  border: 1.5px solid rgba(167, 139, 250, 0.25);
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.back-home-btn:hover {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(167,139,250,0.12));
  border-color: #A78BFA;
  color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(167,139,250,0.2);
}

/* ---- 鎺掑簭鏍?---- */
.comment-sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 0;
  position: relative;
  z-index: 1;
}
.sort-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-right: 2px;
  font-weight: 500;
}
.sort-btn {
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
}
.sort-btn:hover {
  background: rgba(255, 107, 157, 0.06);
  color: #FF6B9D;
}
.sort-btn.active {
  background: linear-gradient(135deg, #FF6B9D, #A78BFA);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 107, 157, 0.25);
}

/* ---- 璇勮杈撳叆鍖?---- */
.comment-input-wrapper {
  background: rgba(255,255,255,0.7);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 2px dashed rgba(255, 107, 157, 0.2);
  transition: all 0.3s;
  overflow: visible;
}
.comment-input-wrapper:focus-within {
  border-color: #FF6B9D;
  background: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.1);
}
[data-theme="dark"] .comment-input-wrapper {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,107,157,0.1);
}
[data-theme="dark"] .comment-input-wrapper:focus-within {
  background: rgba(255,255,255,0.06);
}

.comment-input-area { position: relative; }
.comment-input {
  width: 100%;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  resize: none;
  min-height: 40px;
  outline: none;
  font-family: inherit;
  color: var(--text-primary);
  line-height: 1.6;
}
.comment-input::placeholder { color: #c4b5d0; }
.comment-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 107, 157, 0.08);
}
.anonymous-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #A78BFA;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}
.toggle-switch-sm {
  position: relative;
  width: 32px;
  height: 18px;
  background: #ddd;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
}
.toggle-switch-sm:has(input:checked) { background: linear-gradient(135deg, #FF6B9D, #A78BFA); }
.toggle-switch-sm .toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s;
}
.toggle-switch-sm input:checked + .toggle-slider { transform: translateX(14px); }
.toggle-switch-sm input { display: none; }

.comment-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.comment-tools { display: flex; align-items: center; gap: 4px; }
.tool-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  opacity: 0.6;
}
.tool-btn:hover { opacity: 1; background: rgba(255,107,157,0.08); transform: scale(1.12); }
.tool-btn:active { transform: scale(0.9); }

.btn-comment-submit {
  padding: 8px 22px;
  border-radius: 99px;
  background: linear-gradient(135deg, #FF6B9D, #A78BFA);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.25);
}
.btn-comment-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35); }
.btn-comment-submit:active { transform: scale(0.95); }
.btn-comment-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* 鍥炲鐩爣鎻愮ず鏉?*/
.reply-target {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255,107,157,0.08), rgba(167,139,250,0.08));
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255,107,157,0.1);
}
.reply-target .reply-to-name { color: #FF6B9D; font-weight: 700; }
.reply-cancel {
  margin-left: auto;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--text-light);
  padding: 2px 12px;
  border-radius: 99px;
  border: none;
  background: rgba(255,107,157,0.06);
  transition: all 0.2s;
  font-weight: 600;
}
.reply-cancel:hover { background: rgba(255,107,157,0.12); color: #FF6B9D; }

/* ---- 琛ㄦ儏閫夋嫨鍣?---- */
.emoji-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 12000;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(255,107,157,0.12);
  border: 2px solid rgba(255,107,157,0.1);
  padding: 12px;
  width: 290px;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}
.emoji-picker.active { display: block; }
.emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.emoji-item {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.emoji-item:hover { background: rgba(255,107,157,0.1); transform: scale(1.2); }

/* ---- 璇勮鍒楄〃 ---- */
.comment-list { margin-top: 4px; }

/* 姣忔潯璇勮 鈥?绮捐嚧鍗＄墖 */
.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,107,157,0.06);
  transition: all 0.25s;
  position: relative;
  box-shadow: 0 1px 4px rgba(255,107,157,0.02);
}
/* 宸︿晶瑁呴グ鏉?*/
.comment-item::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #FF6B9D, #A78BFA);
  opacity: 0.25;
  transition: opacity 0.25s;
}
.comment-item:hover::before {
  opacity: 0.6;
}

.comment-item:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,107,157,0.12);
  box-shadow: 0 4px 20px rgba(255,107,157,0.06);
  transform: translateY(-1px);
}
.comment-item:active { transform: scale(0.99); }

/* 鏆楄壊妯″紡 */
[data-theme="dark"] .comment-item {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,107,157,0.04);
  box-shadow: none;
}
[data-theme="dark"] .comment-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,107,157,0.1);
}

/* 澶村儚 鈥?绮夌传娓愬彉鍦?*/
.comment-item .comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  padding: 2px;
  background: linear-gradient(135deg, #FF6B9D, #A78BFA);
  box-shadow: 0 2px 8px rgba(255,107,157,0.1);
  transition: transform 0.3s;
}
.comment-item .comment-avatar:hover { transform: rotate(6deg) scale(1.05); }
.comment-item .comment-avatar[src] {
  background-clip: padding-box;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 3px, #000 3px);
  mask: radial-gradient(circle at 50% 50%, transparent 3px, #000 3px);
}

.comment-item .comment-body { flex: 1; min-width: 0; }
.comment-item .comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

/* 鐢ㄦ埛鍚?鈥?缁熶竴绮夌传娓愬彉锛堜笉寰幆浜嗭級 */
.comment-item .comment-author {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #FF6B9D, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.comment-item .comment-floor {
  font-size: 0.65rem;
  color: var(--text-light);
  background: rgba(0,0,0,0.03);
  padding: 0 8px;
  border-radius: 8px;
  line-height: 18px;
  font-weight: 500;
}
.comment-item .comment-time {
  font-size: 0.65rem;
  color: var(--text-light);
  margin-left: auto;
  background: rgba(255,255,255,0.5);
  padding: 1px 10px;
  border-radius: 99px;
  font-weight: 500;
  border: 1px solid rgba(255,107,157,0.05);
}
.comment-item .comment-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  word-break: break-word;
  margin-bottom: 8px;
}
.comment-item .comment-actions {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
  align-items: center;
}

/* 鐐硅禐鎸夐挳 */
.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
}
.comment-like-btn:hover { background: rgba(255,107,157,0.08); color: #FF6B9D; }
.comment-like-btn.liked {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(167,139,250,0.12));
  color: #FF6B9D;
  box-shadow: 0 2px 8px rgba(255,107,157,0.1);
}
.comment-like-btn .like-icon { font-size: 0.85rem; line-height: 1; transition: transform 0.2s; }
.comment-like-btn.liked .like-icon { animation: like-pop 0.4s ease; }
@keyframes like-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.comment-like-btn .like-count { font-weight: 700; min-width: 8px; }

/* 鍥炲鎸夐挳 */
.comment-action-btn {
  font-size: 0.72rem;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 99px;
  transition: all 0.2s;
  font-weight: 600;
}
.comment-action-btn:hover { color: #8B5CF6; background: rgba(139,92,246,0.08); }

/* 鍒犻櫎鎸夐挳 */
.comment-item .comment-delete-btn {
  font-size: 0.65rem;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 99px;
  transition: all 0.2s;
  opacity: 0.35;
  font-weight: 500;
}
.comment-item .comment-delete-btn:hover { opacity: 1; color: #EF4444; background: rgba(239,68,68,0.06); }

/* 绌鸿瘎璁?*/
.comment-empty {
  text-align: center;
  padding: 28px 20px;
  color: var(--text-light);
  font-size: 0.85rem;
}
.comment-empty::before {
  content: '';
  display: block;
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23FFE0E6'/%3E%3Ctext x='50' y='62' text-anchor='middle' font-size='36'%3E%F0%9F%92%AC%3C/text%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.6;
}

/* ---- 鍥炲 ---- */
.comment-replies-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1.5px dashed rgba(255,107,157,0.12);
}
.toggle-replies-btn {
  font-size: 0.75rem;
  color: #8B5CF6;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  font-weight: 600;
}
.toggle-replies-btn:hover { color: #FF6B9D; }
.comment-replies-container { margin-top: 8px; }

.comment-reply-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  transition: all 0.2s;
  border: 1px solid rgba(0,0,0,0.03);
}
.comment-reply-item:hover {
  background: rgba(255,255,255,0.8);
  border-color: rgba(255,107,157,0.08);
}
[data-theme="dark"] .comment-reply-item { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .comment-reply-item:hover { background: rgba(255,255,255,0.05); }

.reply-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(167,139,250,0.2);
}
.reply-body { flex: 1; min-width: 0; }
.reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.reply-author-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8B5CF6;
}
.reply-time {
  font-size: 0.62rem;
  color: var(--text-light);
}
.reply-content {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  word-break: break-word;
}
.reply-content .reply-mention { color: #FF6B9D; font-weight: 600; }
.reply-actions { display: flex; gap: 4px; margin-top: 4px; }

/* ---- 璇勮鍖哄簳閮ㄨ楗?---- */
.comment-footer-deco {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(255,107,157,0.1);
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-footer-deco span {
  opacity: 0.5;
  transition: opacity 0.3s;
}
.comment-footer-deco:hover span {
  opacity: 0.8;
}

/* ===== 璇勮鍖虹粨鏉?===== */
/* ============================================
   16. 涓汉涓績
   ============================================ */

/* ---- 涓汉璧勬枡鍗＄墖 鉁?鍗″搰浼婇鏍?---- */
.profile-card {
  background: linear-gradient(160deg, #FFF8FA 0%, #FFF5FF 50%, #F8F0FF 100%);
  border-radius: 28px;
  padding: 36px 28px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1), 0 0 0 1px rgba(255, 107, 157, 0.06);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
/* 顶部装饰 */
.profile-card::before {
  content: '✦';
  position: absolute;
  top: 8px;
  left: 0; right: 0;
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(255, 107, 157, 0.42);
  text-align: center;
  pointer-events: none;
}

/* 澶村儚瀹瑰櫒 */
.profile-avatar-wrapper {
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
/* 澶村儚鍏夊湀 */
.profile-avatar-wrapper::after {
  content: '';
  position: absolute;
  top: -6px; left: -6px;
  right: -6px; bottom: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB5D8, #D4A5FF, #A5D8FF, #B5FFD8);
  z-index: -1;
  animation: rotateGlow 4s linear infinite;
}
@keyframes rotateGlow {
  0% { opacity: 0.5; transform: rotate(0deg); }
  50% { opacity: 0.8; transform: rotate(180deg); }
  100% { opacity: 0.5; transform: rotate(360deg); }
}

/* 涓汉澶村儚 */
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.25);
  object-fit: cover;
  transition: transform 0.3s;
}
.profile-avatar:hover {
  transform: scale(1.05) rotate(-3deg);
}

/* 鏄电О + 鐢ㄦ埛鍚嶅尯鍩?*/
.profile-nickname {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1F2937;
  margin-bottom: 2px;
}
.profile-username {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin-bottom: 4px;
}

/* 鍔犲叆鏃堕棿 */
.profile-join-time {
  font-size: 0.8rem;
  color: #B0B7C3;
  margin-top: 2px;
  margin-bottom: 8px;
}

/* 鐢ㄦ埛璧勬枡璇︽儏标签锛堟€у埆/MBTI/鐢熸棩/鐖卞ソ锛?*/
.profile-detail-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 0 10px;
}
.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  background: rgba(255, 107, 157, 0.06);
  color: #6B7280;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 157, 0.08);
}

/* 缁熻鏁版嵁琛?*/
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 16px auto;
  max-width: 340px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 157, 0.08);
  box-shadow: 0 2px 12px rgba(255, 107, 157, 0.06);
}

.profile-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px 12px;
  position: relative;
}

.profile-stat + .profile-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  height: calc(100% - 24px);
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,107,157,0.12), transparent);
}

.profile-stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B9D, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.profile-stat-label {
  font-size: 0.72rem;
  color: #9CA3AF;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .profile-stats {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .profile-stat + .profile-stat::before {
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06), transparent);
}

[data-theme="dark"] .profile-card {
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.06);
}
[data-theme="dark"] .profile-card::before {
  color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .profile-nickname {
  color: #F3F4F6;
}
[data-theme="dark"] .profile-join-time {
  color: #6B7280;
}

/* 缂栬緫璧勬枡鎸夐挳 */
.btn-edit-profile {
  display: block;
  width: 100%;
  margin: 8px auto 0;
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 157, 0.06);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  color: #6B7280;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  line-height: 1.5;
  box-sizing: border-box;
}

.btn-edit-profile:first-child {
  margin-top: 0;
}

.btn-edit-profile:hover {
  border-color: #FF6B9D;
  color: #FF6B9D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

/* 淇敼瀵嗙爜鎸夐挳样式 */
.btn-edit-profile.btn-secondary {
  background: rgba(243, 244, 246, 0.6);
  color: #6B7280;
  border-color: rgba(255, 107, 157, 0.06);
}

.btn-edit-profile.btn-secondary:hover {
  border-color: #C084FC;
  color: #C084FC;
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.15);
}

/* 管理后台庡彴鎸夐挳样式 - 涓庡叾浠栨寜閽繚鎸佷竴鑷寸殑澶у皬锛屼粎浠ラ鑹插尯鍒?*/
.btn-edit-profile.btn-admin {
  display: none;
  background: rgba(243, 244, 246, 0.6);
  color: #6B7280;
  border: 1px solid rgba(192, 132, 252, 0.15);
  line-height: 1.5;
}

.btn-edit-profile.btn-admin:hover {
  transform: translateY(-2px);
  border-color: #C084FC;
  color: #C084FC;
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.15);
}

/* ---- 閫氱煡鍋忓ソ璁剧疆鍗＄墖 ---- */
.notify-settings-card {
  margin-top: 24px;
}
.notify-settings-header {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.notify-settings-icon {
  font-size: 1.4rem;
}
.notify-settings-hint {
  font-size: 0.8rem;
  color: #9CA3AF;
  text-align: center;
  margin: 0 0 16px;
}
.notify-settings-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.notify-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.5);
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 157, 0.05);
  transition: all 0.2s;
}
.notify-setting-item:hover {
  background: rgba(255,255,255,0.8);
  border-color: rgba(255, 107, 157, 0.12);
}
.notify-setting-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4B5563;
}
.notify-setting-label .notify-emoji {
  font-size: 1.1rem;
}
/* 鑷畾涔夊紑鍏?*/
.notify-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.notify-switch input {
  display: none;
}
.notify-switch .slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 12px;
  transition: 0.3s;
}
.notify-switch .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.notify-switch input:checked + .slider {
  background: linear-gradient(135deg, #FF6B9D, #C084FC);
}
.notify-switch input:checked + .slider::before {
  transform: translateX(20px);
}

[data-theme="dark"] .notify-settings-header {
  color: #F3F4F6;
}
[data-theme="dark"] .notify-setting-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .notify-setting-item:hover {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .notify-setting-label {
  color: #D1D5DB;
}

@media (max-width: 480px) {
  .notify-settings-list {
    grid-template-columns: 1fr;
  }
}

/* ---- 涓汉涓績标签椤?---- */
.profile-tabs-section {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.06), 0 0 0 1px rgba(255, 107, 157, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

/* 标签椤靛ご閮?*/
.profile-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 107, 157, 0.06);
  padding: 0 4px;
}

/* 鍗曚釜标签 */
.profile-tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.25s;
  border-bottom: 3px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  position: relative;
  letter-spacing: 0.3px;
}

.profile-tab:hover {
  color: #6B7280;
  background: rgba(255, 107, 157, 0.03);
}

/* 婵€娲荤殑标签 */
.profile-tab.active {
  color: #FF6B9D;
  font-weight: 700;
  border-bottom-color: #FF6B9D;
}

/* 标签椤靛唴瀹?*/
.profile-tab-content {
  padding: 18px;
}

/* 鍔犺浇鏇村鎸夐挳 */
.btn-profile-load-more {
  display: block;
  margin: 16px auto;
  padding: 10px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 107, 157, 0.1);
  background: rgba(255,255,255,0.6);
  color: #9CA3AF;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-profile-load-more:hover {
  border-color: #FF6B9D;
  color: #FF6B9D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .profile-tabs-section {
  background: rgba(30, 41, 59, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.04);
}
[data-theme="dark"] .profile-tabs {
  border-bottom-color: rgba(255,255,255,0.06);
}

/* ============================================
   17. 广播点歌页?
   ============================================ */

/* ---- 骞挎挱椤靛ご閮?---- */
.radio-header {
  text-align: center;
  margin-bottom: 28px;
}

/* 骞挎挱椤垫爣棰?*/
.radio-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 骞挎挱椤靛壇鏍囬 */
.radio-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---- 骞挎挱鍖哄潡 ---- */
.radio-section {
  margin-bottom: 28px;
}

/* 鍖哄潡鏍囬 */
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
}

/* ============================================
   鐑棬姝屾洸鎺掕姒?
   ============================================ */
.hot-songs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hot-song-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

.hot-song-item:hover {
  box-shadow: 0 10px 40px rgba(255, 107, 157, 0.1), 0 2px 8px rgba(255, 107, 157, 0.06);
  transform: translateY(-2px);
  border-color: rgba(255, 107, 157, 0.15);
}

.hot-song-rank {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

.hot-song-content {
  flex: 1;
  min-width: 0;
}

.hot-song-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.hot-song-artist {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hot-song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.hot-song-author,
.hot-song-recipient,
.hot-song-message {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #F3F4F6;
  border-radius: 6px;
}

.hot-song-recipient {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(236, 72, 153, 0.05));
  color: #EC4899;
}

.hot-song-message {
  font-style: italic;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-song-vote {
  flex-shrink: 0;
}

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 2px solid rgba(255, 107, 157, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(255, 143, 181, 0.03));
  cursor: pointer;
  transition: all 0.3s ease;
}

.vote-btn:hover {
  border-color: rgba(255, 107, 157, 0.4);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 143, 181, 0.06));
  transform: scale(1.05);
}

.vote-btn:active {
  transform: scale(0.95);
}

.vote-icon {
  font-size: 1.5rem;
}

.vote-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* 鐑害绛夌骇 */
.hot-song-item[data-hot="hot"] {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), rgba(255, 107, 157, 0.03));
}

.hot-song-item[data-hot="warm"] {
  border-color: rgba(245, 158, 11, 0.15);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.02), rgba(255, 107, 157, 0.02));
}

/* 鏆楄壊妯″紡 */
[data-theme="dark"] .hot-song-item {
  background: linear-gradient(135deg, rgba(30,30,40,0.9), rgba(25,25,35,0.95));
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hot-song-item:hover {
  border-color: rgba(255, 107, 157, 0.2);
  box-shadow: 0 10px 40px rgba(255, 107, 157, 0.08), 0 2px 8px rgba(255, 107, 157, 0.04);
}

[data-theme="dark"] .hot-song-name {
  color: #E5E7EB;
}

[data-theme="dark"] .hot-song-artist {
  color: #A5B4FC;
}

[data-theme="dark"] .hot-song-author,
[data-theme="dark"] .hot-song-recipient,
[data-theme="dark"] .hot-song-message {
  background: rgba(255, 255, 255, 0.06);
  color: #9CA3AF;
}

[data-theme="dark"] .hot-song-recipient {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.04));
  color: #F472B6;
}

[data-theme="dark"] .vote-btn {
  border-color: rgba(255, 107, 157, 0.3);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(255, 143, 181, 0.05));
}

[data-theme="dark"] .vote-btn:hover {
  border-color: rgba(255, 107, 157, 0.5);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(255, 143, 181, 0.08));
}

[data-theme="dark"] .vote-count {
  color: #FF8FB5;
}

/* ---- 鏃堕棿娈甸€夋嫨 ---- */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* 鏃堕棿娈靛崱鐗?*/
.time-slot-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 鏃堕棿娈靛崱鐗囬《閮ㄦ笎鍙樻潯 */
.time-slot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.time-slot-card:hover::before,
.time-slot-card.selected::before {
  opacity: 1;
}

/* 閫変腑鐨勬椂闂存鍗＄墖 */
.time-slot-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

/* 鏃堕棿娈靛崱鐗囨偓鍋?*/
.time-slot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 鏃堕棿娈靛ご閮?*/
.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* 鏃堕棿娈靛悕绉?*/
.slot-name {
  font-weight: 700;
  font-size: 0.938rem;
  color: var(--text-primary);
}

/* 鏃堕棿娈靛浘鏍?*/
.slot-icon {
  font-size: 1.2rem;
}

/* 鍓╀綑鍚嶉 */
.slot-remaining {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* 鏃堕棿娈垫椂闂?*/
.slot-time {
  font-size: 0.813rem;
  color: var(--text-light);
}

/* 鍙敤鐘舵€?*/
.slot-status.available {
  color: var(--success);
}

/* 涓嶅彲鐢ㄧ姸鎬?*/
.slot-status.unavailable {
  color: var(--text-light);
}

/* ---- 鐐规瓕琛ㄥ崟鍗＄墖 ---- */
.radio-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 鐐规瓕琛ㄥ崟缁?*/
.radio-form .form-group {
  margin-bottom: 14px;
}

/* ---- 鎾斁鍒楄〃 ---- */
.playlist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.playlist::-webkit-scrollbar {
  width: 4px;
}

.playlist::-webkit-scrollbar-track {
  background: transparent;
}

.playlist::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 2px;
}

/* 鎾斁鍒楄〃椤?- 鍏ㄦ柊鍗＄墖璁捐 */
.playlist-item {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #ffffff 0%, #fdfbff 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

/* 宸︿晶褰╄壊鏉?- 鏇寸矖鏇存煍鍜?*/
.playlist-item::before {
  content: '';
  width: 5px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, #D1D5DB, #E5E7EB);
}

.playlist-item.waiting::before {
  background: linear-gradient(180deg, #6366F1, #8B5CF6);
  box-shadow: 2px 0 12px rgba(99, 102, 241, 0.3);
}

.playlist-item.played::before {
  background: linear-gradient(180deg, #D1D5DB, #E5E7EB);
}

/* 宸叉挱鏀炬贰鍖?*/
.playlist-item.played {
  opacity: 0.55;
  filter: grayscale(0.15);
}

/* 鎮仠鏁堟灉 */
.playlist-item:hover {
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(167, 139, 250, 0.06);
  transform: translateY(-3px) scale(1.008);
  border-color: rgba(139, 92, 246, 0.15);
}

.playlist-item.played:hover {
  box-shadow: var(--shadow-lg);
  opacity: 0.7;
}

/* 鍗＄墖涓讳綋 */
.playlist-item .song-main {
  flex: 1;
  padding: 18px 20px 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* 搴忓彿 - 鏇寸簿鑷寸殑鍦嗘爣 */
.playlist-item .song-index {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #FF6B9D, #E5558A);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}

/* 搴忓彿鍏夋辰 */
.playlist-item .song-index::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  border-radius: 8px 8px 100% 100%;
}

.playlist-item.waiting .song-index {
  background: linear-gradient(145deg, #6366F1, #4F46E5);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.playlist-item.waiting .song-index::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, transparent 100%);
}

.playlist-item.played .song-index {
  background: linear-gradient(145deg, #E5E7EB, #D1D5DB);
  color: #9CA3AF;
  box-shadow: none;
}

/* 鍙充晶鍐呭鍖?*/
.playlist-item .song-content {
  flex: 1;
  min-width: 0;
}

/* 姝屾洸鍚?+ 鑹轰汉 */
.playlist-item .song-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 姝屾洸鍚嶅墠鐨勯煶绗﹀浘鏍?*/
.playlist-item .song-name::before {
  content: '🎵';
  font-size: 0.95rem;
  flex-shrink: 0;
}

.playlist-item .song-artist {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
  padding: 1px 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(139, 92, 246, 0.07));
  border-radius: 6px;
}

/* 搴曢儴淇℃伅琛岋細鐐规瓕浜?+ 鏃堕棿 */
.playlist-item .song-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.playlist-item .song-author {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 2px 10px;
  background: #F3F4F6;
  border-radius: 6px;
}

/* 标签样式 */
.playlist-item .song-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.73rem;
  color: var(--text-light);
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.playlist-item .song-tag.to-whom {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(236, 72, 153, 0.05));
  color: #EC4899;
  border-color: rgba(236, 72, 153, 0.12);
  font-weight: 600;
}

/* 鍙充晶鐘舵€佸尯 */
.playlist-item .song-status-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-right: 20px;
  flex-shrink: 0;
  min-width: 80px;
}

/* 鐘舵€佹爣绛?- 鏇寸簿鑷?*/
.playlist-item .song-status {
  font-size: 0.73rem;
  padding: 5px 16px;
  border-radius: 24px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

/* 鐘舵€佹爣绛惧唴閮ㄥ厜鏁?*/
.playlist-item .song-status::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: statusShine 3s infinite;
}

@keyframes statusShine {
  0% { left: -40%; }
  50% { left: 120%; }
  100% { left: 120%; }
}

.playlist-item.waiting .song-status {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
  color: #4F46E5;
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.playlist-item.played .song-status {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), rgba(209, 213, 219, 0.06));
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.15);
}

/* 绁濈璇皵娉?- 鏇寸簿鑷?*/
.playlist-item .song-msg-bubble {
  margin-top: 8px;
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: #7C3AED;
  font-style: italic;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}

.playlist-item .song-msg-bubble::before {
  content: '💬';
  margin-right: 5px;
}

/* 鎴我的点歌瓕璁板綍鍗＄墖 - 宸茶縼绉诲埌 reservation.css锛屾澶勪繚鐣欐殫鑹查€傞厤 */
.my-song-item {
  /* 鍩虹样式鐢?reservation.css 瀹氫箟 */
}

.my-song-main {
  flex: 1;
  min-width: 0;
}

.my-song-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.my-song-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.my-song-status {
  font-weight: 600;
}

.my-song-recipient {
  font-size: 0.8rem;
  color: #FF6B9D;
  margin-top: 4px;
}

.my-song-msg {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-style: italic;
}

/* 鎾ゅ洖鎸夐挳 - 鏆楄壊妯″紡鍏煎 */
[data-theme="dark"] .my-song-cancel {
  border-color: rgba(248, 113, 113, 0.4);
}

/* 绌烘挱鏀惧垪琛?*/
.playlist-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ============================================
   暗色模式 - 点歌列表 & 鎴我的点歌瓕适配厤
   ============================================ */
[data-theme="dark"] .playlist-item {
  background: linear-gradient(135deg, rgba(30,30,40,0.9), rgba(25,25,35,0.95));
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .playlist-item:hover {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.08), 0 2px 8px rgba(139, 92, 246, 0.04);
}

[data-theme="dark"] .playlist-item .song-name {
  color: #E5E7EB;
}

[data-theme="dark"] .playlist-item .song-artist {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
  color: #A5B4FC;
}

[data-theme="dark"] .playlist-item .song-author {
  background: rgba(255, 255, 255, 0.06);
  color: #9CA3AF;
}

[data-theme="dark"] .playlist-item .song-tag {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  color: #9CA3AF;
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .playlist-item .song-tag.to-whom {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.04));
  color: #F472B6;
  border-color: rgba(236, 72, 153, 0.15);
}

[data-theme="dark"] .playlist-item .song-msg-bubble {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(91, 33, 182, 0.05));
  border-color: rgba(124, 58, 237, 0.15);
  color: #C4B5FD;
}

/* 鏆楄壊妯″紡 - 鎴我的点歌瓕 */
[data-theme="dark"] .my-song-item {
  background: linear-gradient(135deg, rgba(28,28,38,0.95), rgba(24,24,32,0.98));
  border-color: rgba(255, 107, 157, 0.08);
}

[data-theme="dark"] .my-song-item:hover {
  border-color: rgba(255, 107, 157, 0.2);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.06);
}

[data-theme="dark"] .my-song-title { color: #F3F4F6; }

[data-theme="dark"] .my-song-date {
  background: rgba(255, 255, 255, 0.06);
  color: #9CA3AF;
}

[data-theme="dark"] .my-song-recipient {
  background: rgba(236, 72, 153, 0.08);
  color: #F472B6;
}

[data-theme="dark"] .my-song-msg {
  background: linear-gradient(135deg, rgba(31,32,42,0.9), rgba(22,23,30,0.95));
  border-color: rgba(255, 255, 255, 0.06);
  color: #9CA3AF;
}

[data-theme="dark"] #mySongsSection::before {
  background: linear-gradient(135deg, rgba(255,107,157,0.03), rgba(167,139,250,0.03));
}

/* ============================================
   18. 404 閿欒椤?
   ============================================ */

/* ---- 閿欒椤典富浣?---- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f7, #f0e6ff);
}

/* ---- 閿欒椤佃楗?---- */
.error-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 閿欒椤佃楗板渾褰?*/
.error-decorations .decor-circle:nth-child(1) {
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(255, 107, 157, 0.08);
  border-radius: 50%;
  top: -80px;
  right: -80px;
  animation: floatDecor 8s ease-in-out infinite;
}

.error-decorations .decor-circle:nth-child(2) {
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(167, 139, 250, 0.08);
  border-radius: 50%;
  bottom: -60px;
  left: -60px;
  animation: floatDecor 8s ease-in-out infinite 2s;
}

.error-decorations .decor-circle:nth-child(3) {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(245, 158, 11, 0.06);
  border-radius: 50%;
  top: 40%;
  right: 15%;
  animation: floatDecor 8s ease-in-out infinite 4s;
}

/* ---- 閿欒椤靛唴瀹?---- */
.error-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

/* 閿欒鐮佹彃鍥?*/
.error-illustration {
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
}

/* 閿欒椤垫爣棰?*/
.error-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* 閿欒椤靛壇鏍囬 */
.error-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* 杩斿洖首页〉鎸夐挳 */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.938rem;
  box-shadow: var(--shadow-primary);
  transition: all 0.2s ease;
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
  color: var(--text-inverse);
}

.btn-home:active {
  transform: scale(0.97);
}

/* ============================================
   19. 椤佃剼
   ============================================ */
.footer {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-light);
  font-size: 0.813rem;
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--primary);
}

/* ============================================
   20. Toast 娑堟伅鎻愮ず
   ============================================ */

/* Toast 涓讳綋锛堢敱 app.js 鍔ㄦ€佸垱寤猴級 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toast 鏄剧ず鐘舵€?*/
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 鎴愬姛 Toast */
.toast-success {
  background: var(--success);
}

/* 閿欒 Toast */
.toast-error {
  background: var(--danger);
}

/* 璀﹀公告 Toast */
.toast-warning {
  background: var(--warning);
}

/* 淇℃伅 Toast */
.toast-info {
  background: var(--info);
}

/* ============================================
   20. 首页〉姝屽崟灞曠ず鍖?
   ============================================ */

/* ============================================
   14. 首页〉鍏公告
   ============================================ */
.home-notice-section {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFF0D6 50%, #FFFBF0 100%);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-top: 3px solid #F59E0B;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  position: relative;
  z-index: 2;
}

.notice-icon {
  font-size: 1.4rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@keyframes bell-ring {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.notice-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #92400E;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.notice-content {
  font-size: 0.9rem;
  color: #78350F;
  position: relative;
  z-index: 2;
}

.notice-item {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(245, 158, 11, 0.15);
  position: relative;
  padding-left: 16px;
}

.notice-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #F59E0B;
  border-radius: 50%;
}

.notice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notice-item-top {
  display: inline-block;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 8px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.notice-item-title {
  font-weight: 600;
  color: #92400E;
  margin-bottom: 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.notice-item-body {
  font-size: 0.88rem;
  color: #A16207;
  line-height: 1.6;
  white-space: pre-line;
  position: relative;
  z-index: 2;
}

.notice-item-time {
  font-size: 0.75rem;
  color: #CA8A04;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.notice-item-time::before {
  content: '🕐';
  font-size: 0.7rem;
}

[data-theme="dark"] .notice-content {
  color: #FCD34D !important;
}

[data-theme="dark"] .notice-item {
  border-bottom-color: rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .notice-item::before {
  background: #FBBF24;
}

[data-theme="dark"] .notice-item-title {
  color: #FDE68A !important;
}

[data-theme="dark"] .notice-item-body {
  color: #FCD34D !important;
}

[data-theme="dark"] .notice-item-time {
  color: #FBBF24 !important;
}

.home-playlist-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.playlist-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.playlist-icon {
  font-size: 1.4rem;
}

.playlist-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.playlist-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  justify-content: center;
}

.playlist-loading,
.playlist-empty {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.playlist-loading::before {
  content: '🎵';
  font-size: 1.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.playlist-empty {
  color: var(--text-light);
}

.playlist-empty::before {
  content: '📻';
  font-size: 1.2rem;
}

.playlist-empty::after {
  content: '暂无播放曲目，快去点一首吧~';
  font-size: 0.85rem;
  color: var(--text-muted);
}

.home-playlist-section .playlist-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  gap: 12px;
}

.home-playlist-section .playlist-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.home-playlist-section .playlist-item.playing {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(255, 107, 157, 0.2);
}

.home-playlist-section .playlist-item.played {
  opacity: 0.6;
}

.home-playlist-section .playlist-item .song-index {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.home-playlist-section .playlist-item.playing .song-index {
  background: var(--secondary);
}

.home-playlist-section .playlist-item.played .song-index {
  background: var(--text-light);
}

.home-playlist-section .playlist-item .song-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-playlist-section .playlist-item .song-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-playlist-section .playlist-item .song-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-playlist-section .playlist-item .song-status {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.home-playlist-section .playlist-item.waiting .song-status {
  background: rgba(99, 179, 237, 0.15);
  color: #3b82f6;
}

.home-playlist-section .playlist-item.playing .song-status {
  background: rgba(255, 107, 157, 0.15);
  color: var(--primary);
}

.home-playlist-section .playlist-item.played .song-status {
  background: rgba(156, 163, 175, 0.15);
  color: var(--text-light);
}

@media (max-width: 768px) {
  .home-playlist-section {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
  }

  .home-playlist-section .playlist-item {
    padding: 14px;
    border-radius: 14px;
    gap: 10px;
  }

  .home-playlist-section .playlist-item .song-index {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .home-playlist-section .playlist-item .song-info {
    gap: 4px;
  }

  .home-playlist-section .playlist-item .song-name {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .home-playlist-section .playlist-item .song-meta {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
  }

  .home-playlist-section .playlist-item .song-status {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .home-playlist-section .playlist-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .home-playlist-section .playlist-title {
    font-size: 1rem;
  }
}

/* 法律说明页也使用统一的移动端菜单和底部导航。 */
@media (max-width: 768px) {
  body.legal-page {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  body.legal-page .navbar .nav-mobile-toggle {
    display: inline-flex;
  }

  body.legal-page .navbar .nav-links {
    display: none;
  }

  body.legal-page .navbar .nav-links.show {
    display: flex;
  }
}

/* 管理后台壳层已迁至 /admin/css/admin.css。通用骨架动画保留在全站样式。 */

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-section) 25%, #E2E8F0 50%, var(--bg-section) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line {
  height: 16px;
  margin-bottom: 12px;
}

.skeleton-line:last-child {
  width: 60%;
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-xl);
}

/* 鍚庡彴椤甸潰鏍囬 */
.admin-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* ---- 缁熻鍗＄墖 ---- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 缁熻鍗＄墖鍥炬爣 */
.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* 缁熻鍗＄墖鏁板€?*/
.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

/* 缁熻鍗＄墖标签 */
.stat-card .stat-label {
  font-size: 0.813rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---- 鍚庡彴琛ㄦ牸 ---- */
.admin-table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

/* 琛ㄦ牸澶撮儴宸ュ叿鏍?*/
.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* 鍒嗛〉澶у皬閫夋嫨鍣?*/
.table-size-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.table-size-selector select {
  padding: 6px 10px;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.table-size-selector select:hover {
  border-color: var(--primary);
}

.table-size-selector select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.admin-table-header .table-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 琛ㄦ牸鎼滅储妗?*/
.admin-search-input {
  padding: 8px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.813rem;
  outline: none;
  transition: all 0.2s ease;
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 220px;
  box-sizing: border-box;
}

.admin-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.admin-search-input::placeholder {
  color: var(--text-light);
}

/* 琛ㄦ牸涓讳綋 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

/* 琛ㄥご */
.admin-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.813rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  white-space: nowrap;
}

/* 琛ㄦ牸鍗曞厓鏍?*/
.admin-table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

/* 琛ㄦ牸琛屾偓鍋?*/
.admin-table tbody tr:hover {
  background: var(--bg-primary);
}

/* 琛ㄦ牸琛屾渶鍚庝竴琛屾棤搴曢儴杈规 */
.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* 琛ㄦ牸鍐呭鎴柇 */
.admin-table .table-cell-truncate {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 閫氱敤鎸夐挳 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.813rem;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.95);
}

/* 涓昏壊鎸夐挳 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-primary);
}

/* 鎴愬姛鎸夐挳 */
.btn-success {
  background: var(--success);
  color: var(--text-inverse);
}

.btn-success:hover {
  opacity: 0.9;
}

/* 鍗遍櫓鎸夐挳 */
.btn-danger {
  background: var(--danger);
  color: var(--text-inverse);
}

.btn-danger:hover {
  opacity: 0.9;
}

/* 璀﹀公告鎸夐挳 */
.btn-warning {
  background: var(--warning);
  color: var(--text-inverse);
}

.btn-warning:hover {
  opacity: 0.9;
}

/* 淇℃伅鎸夐挳 */
.btn-info {
  background: var(--info);
  color: var(--text-inverse);
}

.btn-info:hover {
  opacity: 0.9;
}

/* 骞界伒鎸夐挳 */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
}

/* 灏忓彿鎸夐挳 */
.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* 澶у彿鎸夐挳 */
.btn-lg {
  padding: 10px 20px;
  font-size: 0.938rem;
}

/* ---- 鐘舵€佸窘绔?---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* 鐘舵€佸窘绔?- 鎴愬姛 */
.status-badge.status-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* 鐘舵€佸窘绔?- 鍗遍櫓 */
.status-badge.status-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* 鐘舵€佸窘绔?- 璀﹀公告 */
.status-badge.status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* 鐘舵€佸窘绔?- 淇℃伅 */
.status-badge.status-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

/* 鐘舵€佸窘绔?- 榛樿 */
.status-badge.status-default {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* ---- 鍚庡彴妯℃€佹 ---- */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.admin-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  animation: scaleIn 0.3s ease;
}

/* 璇︽儏寮圭獥閬僵 */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.admin-modal-overlay.show {
  display: flex;
}

.admin-modal-overlay .admin-modal {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.admin-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--bg-section);
  color: var(--text-primary);
}

/* 妯℃€佹鏍囬 */
.admin-modal .modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* 妯℃€佹搴曢儴鎿嶄綔 */
.admin-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* ---- 鍚庡彴鍒嗛〉 ---- */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 20px;
}

.admin-pagination .page-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-secondary);
  font-size: 0.813rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.admin-pagination .page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-pagination .page-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-inverse);
  border-color: transparent;
}

.admin-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- 鍚庡彴绌虹姸鎬?---- */
.admin-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
}

.admin-empty .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.admin-empty .empty-text {
  font-size: 0.938rem;
  font-weight: 500;
}

/* ============================================
   22. 蹇嵎鍔熻兘鍗＄墖
   ============================================ */
.quick-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding: 4px;
}

/* 澶у睆骞曚紭鍖栵細宸﹀彸鏈夊崱鐗囨椂锛屽揩鎹峰崱鐗囧崰婊′腑闂?*/
@media (min-width: 1201px) {
  .quick-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 8px 100px;
  }

  .quick-card {
    flex: 1;
    max-width: 320px;
    min-width: 220px;
  }
}

.quick-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--primary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quick-card:hover::before {
  opacity: 1;
}

.quick-card:active {
  transform: translateY(-2px) scale(0.98);
}

.quick-card-icon {
  font-size: 2rem;
  line-height: 1;
  transition: transform var(--transition-normal);
}

.quick-card:hover .quick-card-icon {
  transform: scale(1.1);
}

.quick-card-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* 鐐规瓕鍗＄墖 */
.quick-card-song {
  background: linear-gradient(135deg, #FFF0F5, #FDE8F0);
  border: 1px solid rgba(255, 107, 157, 0.2);
  --card-accent: linear-gradient(90deg, #FF6B9D, #FF8FB5);
}
.quick-card-song:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.25);
}

/* 鍙戝笘鍗＄墖 */
.quick-card-post {
  background: linear-gradient(135deg, #F0F0FF, #EDE8FD);
  border: 1px solid rgba(167, 139, 250, 0.2);
  --card-accent: linear-gradient(90deg, #A78BFA, #C4B5FD);
}
.quick-card-post:hover {
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
}

/* 楂樿€冨€掕鏃跺崱鐗?*/
.quick-card-gaokao {
  background: linear-gradient(135deg, #FFF8E1, #FEF3C7);
  border: 1px solid rgba(245, 158, 11, 0.2);
  --card-accent: linear-gradient(90deg, #F59E0B, #FBBF24);
}
.quick-card-gaokao:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.quick-card-countdown {
  font-size: 0.95rem;
  font-weight: 800;
  color: #D97706;
  letter-spacing: 0.5px;
}

/* 涓€瑷€鍗＄墖 */
.quick-card-hitokoto {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1px solid rgba(16, 185, 129, 0.2);
  --card-accent: linear-gradient(90deg, #10B981, #34D399);
}
.quick-card-hitokoto:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.quick-card-hitokoto-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ============================================
   23. 搴曢儴Tab瀵艰埅锛堢Щ鍔ㄧ锛?
   ============================================ */
.bottom-tab-bar {
  display: none; /* 榛樿闅愯棌锛岀Щ鍔ㄧ鏄剧ず */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  align-items: center;
  justify-content: space-around;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  min-width: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* 鐐瑰嚮鍙嶉鍔动画 */
.tab-item:active {
  transform: scale(0.9);
  opacity: 0.7;
}

.tab-item.active {
  color: var(--primary);
}

/* 婵€娲荤姸鎬佹寚绀哄櫒锛堝皬鍦嗙偣锛?*/
.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateX(-50%) scale(0.8); }
}

.tab-icon {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 婵€娲绘椂鍥炬爣杞诲井寮硅烦 */
.tab-item.active .tab-icon {
  transform: scale(1.15) translateY(-2px);
}

.tab-label {
  line-height: 1;
  transition: transform 0.3s ease;
}

.tab-item.active .tab-label {
  font-weight: 600;
  transform: scale(1.05);
}

/* 涓棿鍙戝笘鎸夐挳 */
.tab-item-center {
  position: relative;
  top: -10px;
}

.tab-item-center .tab-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.4);
}

.tab-item-center:active .tab-icon {
  transform: scale(0.92);
}

/* ============================================
   23.5 閫氱煡涓績样式
   ============================================ */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #EF4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9px;
  margin-left: 6px;
  vertical-align: middle;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.notification-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.notification-item.unread {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(167, 139, 250, 0.05));
  border-left: 3px solid var(--primary);
}

.notification-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notification-icon.comment { background: #DBEAFE; }
.notification-icon.like { background: #FCE7F3; }
.notification-icon.system { background: #E0E7FF; }
.notification-icon.mention { background: #FEF3C7; }

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.notification-actions button {
  padding: 4px 12px;
  font-size: 0.8rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notification-actions .btn-read {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.notification-actions .btn-read:hover {
  background: var(--border-color);
}

.notification-read-state {
  color: var(--text-light);
  font-size: 0.8rem;
}

.notification-actions .btn-delete {
  background: transparent;
  color: var(--danger);
}

.notification-actions .btn-delete:hover {
  background: rgba(239, 68, 68, 0.1);
}

.notification-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.notification-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.notification-empty-text {
  font-size: 0.95rem;
}

.notification-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.notification-toolbar button {
  padding: 6px 14px;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notification-toolbar .btn-mark-all {
  background: var(--primary);
  color: white;
}

.notification-toolbar .btn-mark-all:hover {
  background: var(--primary-dark);
}

.notification-toolbar .btn-clear-all {
  background: transparent;
  color: var(--danger);
}

.notification-toolbar .btn-clear-all:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   24. 鍝嶅簲寮忚璁?
   ============================================ */

/* ---- 骞虫澘鍙婁互涓?(< 768px) ---- */
@media (max-width: 768px) {
  /* 璋冩暣导航栏忛珮搴?*/
  :root {
    --navbar-height: 56px;
  }

  /* 鏄剧ず搴曢儴Tab瀵艰埅 */
  .bottom-tab-bar {
    display: flex;
  }

  /* 闅愯棌娴姩鍙戝笘鎸夐挳锛堢敤搴曢儴Tab鏇夸唬锛?*/
  .fab-post {
    display: none;
  }

  /* 闅愯棌椤堕儴绉诲姩绔彍鍗曟寜閽紙鐢ㄥ簳閮═ab鏇夸唬锛?*/
  .navbar .nav-mobile-toggle {
    display: none;
  }

  /* 闅愯棌椤堕儴鐧诲綍娉ㄥ唽鎸夐挳锛堢Щ鍔ㄧ鐢ㄥ簳閮═ab锛?*/
  .navbar .nav-auth {
    display: none;
  }

  .navbar .btn-login {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    border-width: 1px;
    box-shadow: none;
  }

  .navbar .btn-register {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(255, 107, 157, 0.2);
  }

  /* 闅愯棌椤堕儴鐢ㄦ埛淇℃伅锛堢Щ鍔ㄧ鐢ㄥ簳閮═ab锛?*/
  .navbar .nav-user {
    display: none !important;
  }

  /* 搴曢儴鐣欏嚭Tab楂樺害 */
  .main-content {
    padding: calc(var(--navbar-height) + 8px) 12px 80px;
  }

  /* 闅愯棌椤佃剼锛堢Щ鍔ㄧ鏈夊簳閮═ab锛?*/
  .footer {
    display: none;
  }

  /* 蹇嵎鍗＄墖闂磋窛缂╁皬 */
  .quick-cards {
    gap: 10px;
    margin-bottom: 16px;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .quick-card {
    padding: 16px 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }

  .quick-card-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
  }

  .quick-card-text {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .quick-card-countdown {
    font-size: 0.85rem;
    font-weight: 800;
  }

  .quick-card-hitokoto-text {
    font-size: 0.7rem;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
  }

  /* 绉诲姩绔瓕鍗曞尯鍩熶紭鍖?*/
  .home-playlist-section {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
  }

  .playlist-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .playlist-icon {
    font-size: 1.2rem;
  }

  .playlist-title {
    font-size: 0.95rem;
  }

  .home-song-item {
    padding: 10px;
    gap: 8px;
  }

  .song-index {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.7rem !important;
  }

  .song-name {
    font-size: 0.85rem !important;
  }

  .song-meta {
    font-size: 0.7rem !important;
  }

  .song-status {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
  }

  /* 绛涢€夋爮绉诲姩绔紭鍖?*/
  .filter-bar {
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: var(--radius-lg);
  }

  .filter-categories {
    gap: 6px;
    flex-wrap: wrap;
  }

  .filter-tag {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .filter-sort {
    margin-top: 10px;
    padding-top: 10px;
    gap: 4px;
  }

  .sort-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* 甯栧瓙鍗＄墖绉诲姩绔紭鍖?*/
  .post-card {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-lg);
  }

  .post-card .post-user {
    margin-bottom: 10px;
    gap: 10px;
  }

  .post-card .user-avatar {
    width: 36px;
    height: 36px;
  }

  .post-card .user-name {
    font-size: 0.85rem;
  }

  .post-card .post-time {
    font-size: 0.7rem;
  }

  .post-card .post-content {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .post-card .post-images {
    gap: 4px;
    margin-bottom: 10px;
  }

  .post-card .post-image-wrapper {
    border-radius: 6px;
  }

  .post-card .post-actions {
    padding-top: 12px;
    gap: 6px;
  }

  .post-card .action-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    gap: 4px;
  }

  .action-icon {
    font-size: 1rem;
  }

  /* 璇勮棰勮绉诲姩绔紭鍖?*/
  .post-card .post-comments-preview {
    padding: 6px 0 2px 0;
    margin-bottom: 6px;
  }

  .post-card .comment-preview-item {
    padding: 2px 0;
    font-size: 0.78rem;
  }

  .post-card .comment-preview-author {
    font-size: 0.78rem;
  }

  .post-card .comment-preview-text {
    font-size: 0.78rem;
  }

  .post-card .comment-preview-more {
    font-size: 0.72rem;
    padding-top: 3px;
  }

  /* 鎼滅储妗嗙Щ鍔ㄧ浼樺寲 - 鏇寸揣鍑?*/
  .search-bar {
    padding: 2px 8px !important;
    margin-bottom: 6px !important;
    gap: 3px !important;
    border-width: 1px !important;
    min-height: 26px !important;
    border-radius: 13px !important;
  }

  .search-input {
    font-size: 0.7rem !important;
    padding: 0 !important;
  }

  .search-input::placeholder {
    font-size: 0.7rem !important;
  }

  .search-clear {
    width: 16px !important;
    height: 16px !important;
    font-size: 0.55rem !important;
  }

  .search-bar svg {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0;
  }

  /* 绌虹姸鎬佺Щ鍔ㄧ浼樺寲 */
  .empty-state {
    padding: 40px 20px;
  }

  .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }

  .empty-text {
    font-size: 0.9rem;
  }

  .empty-subtext {
    font-size: 0.8rem;
  }

  /* 鍔犺浇鏇村鎸夐挳 */
  .btn-load-more {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  /* 绉诲姩绔鑸摼鎺ラ殣钘?*/
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  /* 绉诲姩绔鑸摼鎺ュ睍寮€ */
  .navbar .nav-links.show {
    display: flex;
  }

  /* 绉诲姩绔鑸摼鎺ユ牱寮?*/
  .navbar .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
  }

  /* 绉诲姩绔鐞嗗悗鍙伴摼鎺ユ牱寮忓悓姝?*/
  .navbar .nav-admin-link {
    padding: 12px 16px;
    border-radius: var(--radius-md);
  }

  /* 甯栧瓙鍗＄墖内边距*/
  .post-card {
    padding: 16px;
  }

  /* 璁よ瘉鍗＄墖内边距*/
  .auth-card {
    padding: 28px 20px;
  }

  /* 鍙戝笘琛ㄥ崟内边距*/
  .post-form-card {
    padding: 20px;
  }

  /* 鍥剧墖棰勮鍒楄〃 */
  .image-preview-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 鏃堕棿娈甸€夋嫨 */
  .time-slots {
    grid-template-columns: 1fr;
  }

  /* 鐐规瓕椤甸潰鎵嬫満绔紭鍖?*/
  .radio-header {
    padding: 16px 0;
    text-align: center;
  }

  .radio-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .radio-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }

  .radio-section {
    margin-bottom: 16px;
  }

  .radio-section .section-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .time-slot-card {
    padding: 14px;
  }

  .slot-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .slot-remaining {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .slot-time {
    font-size: 0.8rem;
  }

  .radio-form-card {
    padding: 16px;
  }

  .radio-form .form-label {
    font-size: 0.85rem;
  }

  .radio-form .form-input,
  .radio-form textarea {
    padding: 10px 12px;
    font-size: 0.875rem;
  }

  .radio-form .btn-primary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .song-list-card {
    padding: 14px;
  }

  .song-item {
    padding: 12px 0;
  }

  .song-info .song-name {
    font-size: 0.9rem;
  }

  .song-info .song-meta {
    font-size: 0.75rem;
  }

  /* 骞挎挱绔欐瓕鏇插垪琛ㄧЩ鍔ㄧ浼樺寲 */
  .playlist-item {
    flex-direction: column;
    padding: 0;
  }
  .playlist-item::before {
    width: 100%;
    height: 4px;
  }
  .playlist-item .song-main {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px 8px;
    gap: 8px;
  }
  .playlist-item .song-index {
    position: absolute;
    top: 8px;
    left: 14px;
    font-size: 0.7rem;
    width: 22px;
    height: 22px;
  }
  .playlist-item .song-index::before {
    display: none;
  }
  .playlist-item .song-content {
    padding-left: 28px;
  }
  .playlist-item .song-name {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
  .playlist-item .song-footer {
    flex-wrap: wrap;
    gap: 4px;
  }
  .playlist-item .song-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .playlist-item .song-status-area {
    padding: 0 14px 12px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    min-width: auto;
  }
  .playlist-item .song-status {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
  .playlist-item .song-msg-bubble {
    margin: 4px 14px 12px;
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  /* 缁熻鍗＄墖 */
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 鍚庡彴妯℃€佹 */
  .admin-modal {
    margin: 12px;
    max-width: calc(100% - 24px);
  }

  /* 鍚庡彴琛ㄦ牸妯悜婊氬姩 */
  .admin-table-wrapper {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 600px;
  }

  /* 管理后台庡彴绉诲姩绔紭鍖?*/
  .admin-sidebar .sidebar-nav {
    padding: 10px 0;
  }

  .admin-sidebar .nav-section-title {
    padding: 12px 16px 6px;
    font-size: 0.65rem;
  }

  .admin-sidebar .sidebar-link {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .admin-sidebar .sidebar-link .link-text {
    font-size: 0.85rem;
  }

  .admin-sidebar .sidebar-footer {
    padding: 16px;
  }

  .admin-sidebar .footer-avatar {
    width: 36px;
    height: 36px;
  }

  .admin-sidebar .footer-info {
    flex: 1;
    margin-left: 10px;
  }

  .admin-sidebar .footer-name {
    font-size: 0.85rem;
  }

  .admin-sidebar .footer-role {
    font-size: 0.7rem;
  }

  .admin-page-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .admin-panel {
    padding: 0;
  }

  .admin-section-title {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card .stat-value {
    font-size: 1.4rem;
  }

  .stat-card .stat-label {
    font-size: 0.75rem;
  }

  .admin-search-input {
    padding: 8px 12px 8px 36px;
    font-size: 0.85rem;
  }

  /* 鎼滅储妗嗙Щ鍔ㄧ浼樺寲 */
  .search-bar {
    padding: 6px 12px;
    margin-bottom: 10px;
    gap: 6px;
    border-width: 1.5px;
    min-height: 36px;
  }

  .search-input {
    font-size: 0.85rem;
    padding: 4px 0;
  }

  .search-clear {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .search-bar svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .filter-section {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .filter-bar-admin {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .filter-bar-admin .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .admin-table th {
    font-size: 0.75rem;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .btn-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  /* 鐐规瓕绠＄悊琛ㄦ牸鎿嶄綔鎸夐挳妯悜鎺掑垪 */
  #panel-songs .table-actions {
    flex-wrap: nowrap !important;
    gap: 3px;
  }

  #panel-songs .table-actions .action-btn-text {
    font-size: 0.72rem !important;
    padding: 4px 6px !important;
    flex-shrink: 0;
  }

  #panel-songs .admin-table td {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  .admin-pagination .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  /* 鐐规瓕绠＄悊闈㈡澘鎵嬫満绔紭鍖?*/
  .filter-bar-admin {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .filter-bar-admin .filter-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    flex-shrink: 0;
  }

  #panel-songs .admin-table-wrapper {
    margin: 0 -12px;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #panel-songs .admin-table {
    min-width: 650px;
  }

  #panel-songs .admin-table th,
  #panel-songs .admin-table td {
    padding: 8px 6px;
    font-size: 0.75rem;
    word-break: break-word;
  }

  #panel-songs .admin-table td {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #panel-songs .table-actions {
    flex-wrap: nowrap !important;
    gap: 3px;
  }

  #panel-songs .table-actions .action-btn-text {
    font-size: 0.7rem !important;
    padding: 4px 6px !important;
    flex-shrink: 0;
  }

  /* 鏃舵璁剧疆闈㈡澘鎵嬫満绔紭鍖?*/
  .panel-header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }

  .panel-header-actions .panel-title {
    font-size: 1rem;
  }

  .panel-header-actions .btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .slots-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .slot-admin-card {
    padding: 12px;
  }

  .slot-card-header {
    margin-bottom: 8px;
  }

  .slot-card-name {
    font-size: 0.9rem;
  }

  .slot-card-info .info-row {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .slot-card-actions {
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .slot-card-actions .btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* 姒傝闈㈡澘鎵嬫満绔紭鍖?*/
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .overview-section {
    padding: 12px;
  }

  .overview-section .section-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
}

/* ---- 鎵嬫満 (< 480px) ---- */
@media (max-width: 480px) {
  /* 绛涢€夋爣绛鹃棿璺?*/
  .filter-categories {
    gap: 6px;
  }

  /* 绛涢€夋爣绛惧昂瀵?*/
  .filter-tag {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  /* 甯栧瓙鍥剧墖闂磋窛 */
  .post-card .post-images {
    gap: 2px;
  }

  /* 鍥剧墖棰勮鍒楄〃 */
  .image-preview-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 缁熻鍗＄墖鍗曞垪 */
  .stat-cards {
    grid-template-columns: 1fr;
  }

  /* 璇︽儏鍗＄墖内边距*/
  .detail-card {
    padding: 16px;
  }

  /* 涓汉璧勬枡鍗＄墖内边距*/
  .profile-card {
    padding: 24px 16px;
  }

  /* 骞挎挱琛ㄥ崟鍗＄墖 */
  .radio-form-card {
    padding: 16px;
  }

  /* 璁よ瘉鍗＄墖 */
  .auth-card {
    padding: 24px 16px;
  }
}

/* ============================================
   23. 鍔动画宸ュ叿绫?
   ============================================ */

/* 娣″叆 */
.fade-in {
  animation: fadeIn 0.4s ease;
}

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

/* 涓婃粦 */
.slide-up {
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 缂╂斁杩涘叆 */
.scale-in {
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   24. 宸ュ叿绫?
   ============================================ */

/* 鏂囧瓧瀵归綈 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Flex 甯冨眬 */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

/* 闂磋窛 */
.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

/* 内边距*/
.p-16 {
  padding: 16px;
}

.p-20 {
  padding: 20px;
}

.p-24 {
  padding: 24px;
}

/* 鍦嗚 */
.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* 鏂囧瓧棰滆壊 */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-light {
  color: var(--text-light);
}

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

/* 鏂囧瓧鎴柇 */
.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 闅愯棌 */
.hidden {
  display: none !important;
}

/* 涓嶅彲瑙佷絾鍗犳嵁绌洪棿 */
.invisible {
  visibility: hidden;
}

/* ============================================
   25. 鍥剧墖鐏 / 棰勮
   ============================================ */

/* 鐏閬僵 */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
  cursor: zoom-out;
}

/* 鐏鍥剧墖 */
.image-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  animation: scaleIn 0.3s ease;
}

/* 鐏鍏抽棴鎸夐挳 */
.image-lightbox .lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.image-lightbox .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   26. 鍔犺浇鐘舵€?
   ============================================ */

/* 楠ㄦ灦灞?*/
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    #e8ecf2 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 楠ㄦ灦灞?- 澶村儚 */
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* 楠ㄦ灦灞?- 鏂囧瓧琛?*/
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

/* 楠ㄦ灦灞?- 鏍囬 */
.skeleton-title {
  height: 20px;
  width: 40%;
  margin-bottom: 16px;
}

/* 楠ㄦ灦灞?- 鍥剧墖 */
.skeleton-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
}

/* 鍔犺浇鏃嬭浆 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 鍔犺浇鏇村鏃嬭浆 */
.btn-load-more .loading-spinner {
  margin-right: 6px;
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* ============================================
   27. 纭瀵硅瘽妗?
   ============================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.confirm-dialog {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: scaleIn 0.3s ease;
}

.confirm-dialog .confirm-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.confirm-dialog .confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirm-dialog .confirm-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirm-dialog .confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.confirm-dialog .btn-cancel {
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.confirm-dialog .btn-cancel:hover {
  border-color: var(--text-light);
}

.confirm-dialog .btn-confirm {
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--danger);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.confirm-dialog .btn-confirm:hover {
  opacity: 0.9;
}

/* ============================================
   28. 标签椤电粍浠讹紙閫氱敤锛?
   ============================================ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  gap: 0;
}

.tab-item {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--text-primary);
}

.tab-item.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: 16px 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ============================================
   29. 寰界珷 / 璁℃暟鍣?
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  font-size: 0.688rem;
  font-weight: 700;
  line-height: 1;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

.badge-secondary {
  background: var(--secondary);
  color: white;
}

.badge-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  background: var(--danger);
  border-radius: 50%;
}

/* ============================================
   30. 分隔线?
   ============================================ */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.813rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ============================================
   31. 澶村儚缁勪欢
   ============================================ */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-xs {
  width: 24px;
  height: 24px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 40px;
  height: 40px;
}

.avatar-lg {
  width: 48px;
  height: 48px;
}

.avatar-xl {
  width: 64px;
  height: 64px;
}

.avatar-2xl {
  width: 80px;
  height: 80px;
}

/* ============================================
   32. 鍗＄墖閫氱敤样式
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.card-body {
  padding: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

/* ============================================
   33. 杈撳叆妗嗗寮?
   ============================================ */

/* 甯﹀浘标签殑杈撳叆妗?*/
.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}

.input-group .form-input {
  padding-left: 40px;
}

.input-group .input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* 杈撳叆妗嗛獙璇佺姸鎬?*/
.form-input.is-valid,
.form-textarea.is-valid {
  border-color: var(--success);
}

.form-input.is-valid:focus,
.form-textarea.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--danger);
}

.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 閿欒鎻愮ず */
.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   34. 涓嬫媺鑿滃崟
   ============================================ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* ============================================
   35. 杩涘害鏉?
   ============================================ */
.progress {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.progress-bar.progress-success {
  background: var(--success);
}

.progress-bar.progress-danger {
  background: var(--danger);
}

.progress-bar.progress-warning {
  background: var(--warning);
}

/* ============================================
   36. 标签
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-primary {
  background: rgba(255, 107, 157, 0.1);
  color: var(--primary);
}

.tag-secondary {
  background: rgba(167, 139, 250, 0.1);
  color: var(--secondary);
}

.tag-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.tag-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.tag-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.tag-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

/* ============================================
   37. 鎻愮ず淇℃伅
   ============================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
  background: rgba(59, 130, 246, 0.08);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============================================
   38. Tooltip 鎻愮ず
   ============================================ */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper .tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: var(--text-primary);
  color: white;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.tooltip-wrapper .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
}

.tooltip-wrapper:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   39. 绉诲姩绔晶杈规爮閬僵
   ============================================ */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   40. 鎵撳嵃样式
   ============================================ */
@media print {
  .navbar,
  .fab-post,
  .footer,
  .admin-sidebar,
  .filter-bar {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .main-content {
    max-width: 100%;
    padding: 0;
  }

  .post-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* ============================================
   41. 宸﹀彸涓や晶娴姩鍗＄墖锛堢編鍖栫増锛?
   ============================================ */
.side-cards-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.side-cards-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
  pointer-events: auto;
}

.side-cards-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.side-cards-right {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.side-card {
  width: 110px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
  overflow: hidden; /* 鍖呭惈娴姩瑁呴グ鍏冪礌鍦ㄥ渾瑙掑唴 */
}

.side-cards-group .side-card:nth-child(1) {
  animation: slideInCard 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.side-cards-group .side-card:nth-child(2) {
  animation: slideInCard 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
  opacity: 0;
}

@keyframes slideInCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.side-cards-left .side-card {
  background: linear-gradient(145deg, rgba(255, 248, 225, 0.95), rgba(254, 243, 199, 0.9));
  box-shadow:
    0 8px 32px rgba(245, 158, 11, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.side-cards-right .side-card {
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.9));
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* 鎮仠鏁堟灉 */
.side-card:hover {
  transform: scale(1.08);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.side-card-left:hover {
  background: linear-gradient(145deg, rgba(255, 250, 235, 0.98), rgba(254, 247, 209, 0.95));
}

.side-card-right:hover {
  background: linear-gradient(145deg, rgba(240, 255, 250, 0.98), rgba(219, 254, 239, 0.95));
}

/* 点击效果灉 */
.side-card:active {
  transform: translateY(-50%) scale(0.92);
  transition: all 0.1s ease;
}

/* 瑙︽懜璁惧浼樺寲 */
@media (hover: none) and (pointer: coarse) {
  .side-card {
    -webkit-tap-highlight-color: transparent;
  }

  .side-card:active {
    opacity: 0.85;
    transform: translateY(-50%) scale(0.95);
  }

  /* 瑙︽懜鏃舵坊鍔犲厜鏅曟晥鏋?*/
  .side-card-left:active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.2));
    animation: ripple 0.6s ease-out;
  }

  .side-card-right:active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.3), rgba(52, 211, 153, 0.2));
    animation: ripple 0.6s ease-out;
  }

  @keyframes ripple {
    from {
      opacity: 1;
      transform: scale(1);
    }
    to {
      opacity: 0;
      transform: scale(1.1);
    }
  }
}

/* 姣忔棩鎵撳崱鍗＄墖样式 */
.side-card-checkin {
  width: 140px;
  padding: 16px 12px;
  background: linear-gradient(145deg, rgba(255, 248, 225, 0.95), rgba(254, 243, 199, 0.9));
  box-shadow:
    0 8px 32px rgba(245, 158, 11, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.side-card-checkin:hover {
  background: linear-gradient(145deg, rgba(255, 250, 235, 0.98), rgba(254, 247, 209, 0.95));
}

.checkin-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.checkin-level {
  display: flex;
  align-items: center;
  gap: 4px;
}

.level-icon {
  font-size: 1.2rem;
}

.level-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checkin-streak {
  text-align: center;
}

.streak-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #D97706;
  display: block;
}

.streak-label {
  font-size: 0.6rem;
  color: var(--text-light);
}

.checkin-exp {
  width: 100%;
}

.exp-text {
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-align: center;
  display: block;
}

.checkin-btn {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  margin-top: 8px;
}

.checkin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.checkin-btn:active {
  transform: translateY(0);
}

.checkin-btn.checked {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  cursor: default;
}

.checkin-btn-text {
  display: block;
}

/* 鍗＄墖鍥炬爣 */
.side-card-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.side-card:hover .side-card-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* 鍗＄墖鏍囬 */
.side-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 楂樿€冨€掕鏃舵暟瀛?*/
.side-card-countdown {
  font-size: 1.1rem;
  font-weight: 800;
  color: #D97706;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 涓€瑷€鍐呭 */
.side-card-content {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  max-height: 3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* 涓€瑷€鏉ユ簮淇℃伅 */
.side-card-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  color: var(--text-light);
}

.hitokoto-author {
  font-weight: 600;
  color: var(--text-secondary);
}

.hitokoto-from {
  opacity: 0.7;
}

/* 鍒锋柊鎸夐挳 */
.refresh-btn {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: 3px solid white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
  transition: all 0.3s ease;
  animation: bounce 2s ease-in-out infinite;
}

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

.refresh-btn:hover {
  transform: scale(1.15) rotate(180deg);
  box-shadow: 0 6px 16px rgba(255, 107, 157, 0.5);
}

.refresh-btn:active {
  transform: scale(0.9) rotate(180deg);
}

.refresh-btn.spinning {
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 杩涘害鐜?*/
.side-card-progress {
  position: relative;
  width: 50px;
  height: 50px;
  margin-top: 4px;
}

.progress-ring {
  position: relative;
  width: 100%;
  height: 100%;
}

.progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.progress-bg {
  fill: none;
  stroke: rgba(245, 158, 11, 0.15);
  stroke-width: 6;
}

.progress-bar {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: #D97706;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 瑁呴グ鍏冪礌 */
.side-card-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}

.float-element {
  position: absolute;
  font-size: 0.8rem;
  opacity: 0.5;
  /* 杞诲井娴姩鍔动画 */
  animation: gentleFloat 4s ease-in-out infinite;
}

/* 闈欐€佸畾浣嶏紝閬垮厤椋樺嚭鍗＄墖 */
.float-1 {
  top: 10%;
  left: 8%;
  animation-delay: 0s;
}

.float-2 {
  top: 50%;
  right: 10%;
  left: auto;
  animation-delay: 1s;
}

.float-3 {
  bottom: 12%;
  left: 15%;
  animation-delay: 2s;
}

/* 娓╁拰鐨勬诞鍔ㄥ姩鐢?*/
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(3deg); }
}

@keyframes floatAround {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.4;
  }
  25% {
    transform: translate(3px, -5px) rotate(5deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(-2px, -8px) rotate(-3deg);
    opacity: 0.4;
  }
  75% {
    transform: translate(4px, -4px) rotate(8deg);
    opacity: 0.5;
  }
}

/* 绉诲姩绔殣钘?- 鍙湪澶у睆骞曟樉绀?*/
@media (max-width: 1200px) {
  .side-cards-container {
    display: none;
  }

  .bg-decorations {
    display: none;
  }
}

/* 澶у睆骞曟椂涓诲唴瀹逛笌涓や晶鍗＄墖瀵归綈 */
@media (min-width: 1201px) {
  .main-content {
    /* 侧栏使用 fixed 定位，不再用 160px 内缩主内容；否则详情页会被挤成手机窄栏。 */
    padding-left: 16px;
    padding-right: 16px;
  }

  .filter-bar {
    margin-left: 0;
    margin-right: 0;
    border-radius: 24px;
  }
}

/* ============================================
   44. 鍏公告娣辫壊妯″紡适配厤
   ============================================ */
[data-theme="dark"] .home-notice-section {
  background: linear-gradient(135deg, #3D2E1F 0%, #2D2218 50%, #3A2E1F 100%);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.15);
}

[data-theme="dark"] .home-notice-section::before {
  background: linear-gradient(90deg, #F59E0B, #FCD34D, #F59E0B);
}

[data-theme="dark"] .notice-header {
  border-bottom-color: rgba(251, 191, 36, 0.25);
}

[data-theme="dark"] .notice-title {
  color: #FCD34D;
}

[data-theme="dark"] .notice-content {
  color: #FCD34D !important;
  font-size: 1rem;
  min-height: 60px;
  padding: 10px 0;
}

[data-theme="dark"] .notice-content:empty {
  display: none;
}

[data-theme="dark"] .notice-item {
  border-bottom-color: rgba(251, 191, 36, 0.2);
}

[data-theme="dark"] .notice-item::before {
  background: #FBBF24;
}

[data-theme="dark"] .notice-item-title {
  color: #FDE68A;
}

[data-theme="dark"] .notice-item-body {
  color: #FDE68A;
}

[data-theme="dark"] .notice-item-time {
  color: #F59E0B;
}

/* ============================================
   45. 鑳屾櫙瑁呴グ鍏冪礌
   ============================================ */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* 娓愬彉鍏夋檿 */
.bg-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: floatGradient 20s ease-in-out infinite;
}

.bg-gradient-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.4), rgba(167, 139, 250, 0.3));
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.bg-gradient-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(59, 130, 246, 0.4));
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.bg-gradient-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.3));
  bottom: 20%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes floatGradient {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.4;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.25;
  }
}

/* 鍦嗗舰瑁呴グ */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatCircle 15s ease-in-out infinite;
}

.bg-circle-1 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 107, 157, 0.3);
  top: 15%;
  right: 20%;
  animation-delay: 0s;
}

.bg-circle-2 {
  width: 80px;
  height: 80px;
  background: rgba(167, 139, 250, 0.1);
  top: 40%;
  left: 15%;
  animation-delay: -3s;
}

.bg-circle-3 {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  bottom: 30%;
  right: 15%;
  animation-delay: -6s;
}

.bg-circle-4 {
  width: 60px;
  height: 60px;
  background: rgba(245, 158, 11, 0.1);
  bottom: 15%;
  left: 30%;
  animation-delay: -9s;
}

@keyframes floatCircle {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(20px, -20px) rotate(180deg);
  }
}

/* 绾挎潯瑁呴グ */
.bg-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.3), transparent);
  animation: moveLine 10s linear infinite;
}

.bg-line-1 {
  width: 200px;
  top: 25%;
  left: 10%;
  animation-delay: 0s;
}

.bg-line-2 {
  width: 150px;
  bottom: 35%;
  right: 20%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
  animation-delay: -5s;
}

@keyframes moveLine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 鐐硅楗?*/
.bg-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.4;
  animation: twinkle 3s ease-in-out infinite;
}

.bg-dot-1 {
  background: rgba(255, 107, 157, 0.6);
  top: 20%;
  left: 25%;
  animation-delay: 0s;
}

.bg-dot-2 {
  background: rgba(167, 139, 250, 0.6);
  top: 45%;
  right: 25%;
  animation-delay: -0.5s;
}

.bg-dot-3 {
  background: rgba(16, 185, 129, 0.6);
  bottom: 40%;
  left: 20%;
  animation-delay: -1s;
}

.bg-dot-4 {
  background: rgba(245, 158, 11, 0.6);
  top: 70%;
  right: 30%;
  animation-delay: -1.5s;
}

.bg-dot-5 {
  background: rgba(59, 130, 246, 0.6);
  bottom: 25%;
  left: 45%;
  animation-delay: -2s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }
}

/* 娣辫壊涓婚鑳屾櫙瑁呴グ */
[data-theme="dark"] .bg-gradient {
  opacity: 0.2;
}

[data-theme="dark"] .bg-circle {
  opacity: 0.2;
}

[data-theme="dark"] .bg-dot {
  opacity: 0.5;
}

/* 澶у睆骞曟椂闅愯棌椤堕儴蹇嵎鍗＄墖 */
@media (min-width: 1201px) {
  .quick-card-gaokao,
  .quick-card-hitokoto {
    display: none;
  }
}

/* 娣辫壊涓婚适配厤 - 渚ц竟鍗＄墖 */
[data-theme="dark"] .side-cards-left .side-card {
  background: linear-gradient(145deg, rgba(80, 60, 40, 0.9), rgba(60, 45, 30, 0.85));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .side-cards-right .side-card {
  background: linear-gradient(145deg, rgba(40, 65, 55, 0.9), rgba(30, 50, 40, 0.85));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .side-card-title {
  color: var(--text-primary);
}

[data-theme="dark"] .side-card-content {
  color: var(--text-secondary);
}

/* 娣辫壊涓婚 - 澶╂皵鍗＄墖鐗规畩澶勭悊 */
[data-theme="dark"] .side-cards-left .side-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(40, 60, 80, 0.9), rgba(30, 50, 70, 0.85));
}

/* 娣辫壊涓婚 - 鍘嗗彶涓婄殑浠婂ぉ鍗＄墖 */
[data-theme="dark"] .side-cards-right .side-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(80, 45, 55, 0.9), rgba(60, 35, 45, 0.85));
}

/* 娣辫壊涓婚 - 瑁呴グemoji鑳屾櫙 */
[data-theme="dark"] .side-card-decoration {
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   42. 澶╂皵鍗＄墖样式
   ============================================ */
.side-cards-left .side-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(199, 230, 255, 0.95), rgba(180, 220, 255, 0.9));
  box-shadow:
    0 8px 32px rgba(59, 130, 246, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather-temp {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1E40AF;
  text-shadow: 0 2px 4px rgba(30, 64, 175, 0.15);
}

.weather-icon {
  font-size: 1.8rem;
  /* 杞诲井娴姩鍔动画 */
  animation: weatherFloat 3s ease-in-out infinite;
}

@keyframes weatherFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.weather-info {
  width: 100%;
  text-align: center;
}

.weather-item {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.weather-detail {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.65rem;
  color: var(--text-light);
}

.weather-aqi {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  margin-top: 4px;
}

.aqi-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.aqi-value {
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
}

.aqi-value.good { color: #059669; }
.aqi-value.moderate { color: #D97706; }
.aqi-value.unhealthy { color: #DC2626; }

/* 深色主题天气卡片 */
[data-theme="dark"] .side-cards-left .side-card:nth-child(2) {
  background: var(--bg-card);
}

[data-theme="dark"] .weather-temp {
  color: #DBEAFE;
  text-shadow: 0 2px 4px rgba(219, 234, 254, 0.3);
}

/* ============================================
   43. 鐑悳鍗＄墖样式
   ============================================ */
.side-cards-right .side-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(255, 240, 245, 0.95), rgba(255, 230, 238, 0.9));
  box-shadow:
    0 8px 32px rgba(255, 107, 157, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hotsearch-list {
  width: 100%;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 157, 0.3) transparent;
}

.hotsearch-list::-webkit-scrollbar {
  width: 2px;
}

.hotsearch-list::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 157, 0.3);
  border-radius: 2px;
}

.hotsearch-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
  padding: 1px 2px;
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.hotsearch-item:hover {
  color: var(--primary);
  transform: scale(1.02);
}

.hotsearch-item.hot-1 {
  color: #EF4444;
  font-weight: 700;
}

.hotsearch-item.hot-2 {
  color: #F59E0B;
  font-weight: 600;
}

.hotsearch-item.hot-3 {
  color: #D97706;
  font-weight: 600;
}

.hotsearch-item.loading {
  text-align: center;
  color: var(--text-light);
  animation: pulse 1.5s ease-in-out infinite;
}

/* 鍘嗗彶涓婄殑浠婂ぉ - 鍒楄〃鏉＄洰样式锛堜豢鍙嶉璁板綍鍗＄墖锛?*/
.hotsearch-item.history-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 10px 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.hotsearch-item.history-item:last-child {
  margin-bottom: 0;
}

.hotsearch-item.history-item .hotsearch-rank {
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 1px;
}

/* 鍘嗗彶涓婄殑浠婂ぉ - 鏃ユ湡鍜屼簨浠跺垎琛屾樉绀?*/
.hotsearch-item.history-item .history-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hotsearch-item.history-item .history-date {
  font-size: 0.7rem;
  color: #9CA3AF;
  font-weight: 500;
  line-height: 1.3;
}
.hotsearch-item.history-item .history-event {
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}
[data-theme="dark"] .hotsearch-item.history-item .history-date {
  color: #6B7280;
}

.hotsearch-item.history-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 107, 157, 0.2);
  transform: none;
  color: inherit;
}

[data-theme="dark"] .hotsearch-item.history-item:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-light) !important;
}

/* 深色主题热搜/历史卡片 */
[data-theme="dark"] .side-cards-right .side-card:nth-child(2) {
  background: var(--bg-card);
}

/* ============================================
   44. 意见反馈页布局
   ============================================ */
body.feedback-screen .feedback-page {
  max-width: 760px;
  padding: 28px 20px 120px;
}

body.feedback-screen .feedback-card {
  background: var(--bg-card, #fff);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 14px 42px rgba(31, 41, 55, 0.08);
}

body.feedback-screen .feedback-heading {
  text-align: center;
}

body.feedback-screen .feedback-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #A78BFA;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

body.feedback-screen .feedback-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--text-primary, #1F2937);
  background: none;
  font-size: 1.7rem;
  font-weight: 800;
  -webkit-text-fill-color: initial;
}

body.feedback-screen .feedback-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #FDF2F8;
  border: 1px solid #FCE7F3;
  font-size: 1.25rem;
}

body.feedback-screen .feedback-subtitle {
  max-width: 480px;
  margin: 0 auto;
  color: var(--text-secondary, #64748B);
  font-size: 0.9rem;
  line-height: 1.6;
}

body.feedback-screen .feedback-tip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid #EDE9FE;
  border-radius: 14px;
  background: #FAF8FF;
  color: #6D5AA8;
}

body.feedback-screen .feedback-tip-icon {
  flex: 0 0 auto;
  font-size: 1rem;
}

body.feedback-screen .feedback-tip strong,
body.feedback-screen .feedback-tip span:not(.feedback-tip-icon) {
  display: block;
}

body.feedback-screen .feedback-tip strong {
  margin-bottom: 3px;
  color: #5B4A8A;
  font-size: 0.84rem;
}

body.feedback-screen .feedback-tip span:not(.feedback-tip-icon) {
  color: #8B7DB3;
  font-size: 0.75rem;
  line-height: 1.45;
}

body.feedback-screen .feedback-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
  color: var(--text-primary, #1F2937);
  font-size: 0.98rem;
  font-weight: 750;
}

body.feedback-screen .feedback-section-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.feedback-screen .feedback-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #F3E8FF;
  color: #8B5CF6;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.feedback-screen .feedback-required-note,
body.feedback-screen .feedback-optional,
body.feedback-screen .history-caption {
  color: var(--text-light, #94A3B8);
  font-size: 0.72rem;
  font-weight: 500;
}

body.feedback-screen .type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

body.feedback-screen .type-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 11px;
  min-width: 0;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  background: #FFF;
  color: var(--text-primary, #1F2937);
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.feedback-screen .type-item:hover,
body.feedback-screen .type-item:focus-visible {
  border-color: #C4B5FD;
  background: #FCFAFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.16);
}

body.feedback-screen .type-item.active {
  border-color: #A78BFA;
  background: #FAF7FF;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

body.feedback-screen .type-item .type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-bottom: 0;
  border-radius: 11px;
  background: #F8FAFC;
  font-size: 1.2rem;
}

body.feedback-screen .type-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

body.feedback-screen .type-item .type-label,
body.feedback-screen .type-item .type-desc {
  display: block;
  margin: 0;
}

body.feedback-screen .type-item .type-label {
  color: var(--text-primary, #1F2937);
  font-size: 0.88rem;
  font-weight: 700;
}

body.feedback-screen .type-item .type-desc {
  overflow: hidden;
  color: var(--text-light, #94A3B8);
  font-size: 0.7rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.feedback-screen .type-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-left: auto;
  border-radius: 50%;
  background: #8B5CF6;
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.feedback-screen .type-item.active .type-check {
  opacity: 1;
  transform: scale(1);
}

body.feedback-screen .feedback-form-section-head {
  margin-top: 28px;
}

body.feedback-screen .form-group {
  margin-bottom: 17px;
}

body.feedback-screen .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--text-primary, #1F2937);
  font-size: 0.84rem;
  font-weight: 700;
}

body.feedback-screen .form-required {
  color: #EC4899;
  font-size: 0.68rem;
  font-weight: 600;
}

body.feedback-screen .form-optional {
  color: var(--text-light, #94A3B8);
  font-size: 0.68rem;
  font-weight: 500;
}

body.feedback-screen .form-input {
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  background: #FFF;
  color: var(--text-primary, #1F2937);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.feedback-screen .form-input::placeholder {
  color: #A8B1C1;
}

body.feedback-screen .form-input:focus {
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.14);
}

body.feedback-screen .form-textarea {
  min-height: 138px;
  line-height: 1.55;
  resize: vertical;
}

body.feedback-screen .feedback-submit-row {
  margin-top: 22px;
}

body.feedback-screen .submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #8B5CF6;
  box-shadow: 0 7px 18px rgba(139, 92, 246, 0.22);
  font-size: 0.94rem;
}

body.feedback-screen .submit-btn:hover:not(:disabled) {
  background: #7C3AED;
  box-shadow: 0 9px 22px rgba(124, 58, 237, 0.25);
}

body.feedback-screen .submit-btn-arrow {
  font-size: 1.05rem;
  line-height: 1;
}

body.feedback-screen .feedback-submit-note {
  margin: 8px 0 0;
  color: var(--text-light, #94A3B8);
  font-size: 0.72rem;
  text-align: center;
}

body.feedback-screen .history-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #EEF2F7;
}

body.feedback-screen .history-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.feedback-screen .history-heading-row .feedback-section-head {
  margin: 0 0 12px;
}

body.feedback-screen .history-title {
  color: var(--text-primary, #1F2937);
  font-size: 0.98rem;
  font-weight: 750;
}

body.feedback-screen .history-item {
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1px solid #EEF2F7;
  border-radius: 13px;
  background: #FAFBFC;
}

body.feedback-screen .history-item:hover {
  border-color: #DDD6FE;
}

body.feedback-screen .history-item-header {
  gap: 10px;
  margin-bottom: 7px;
}

body.feedback-screen .history-item-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary, #1F2937);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.feedback-screen .history-item-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.68rem;
}

body.feedback-screen .history-item-content {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-secondary, #64748B);
  font-size: 0.78rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.feedback-screen .history-item-time {
  margin-top: 8px;
  color: var(--text-light, #94A3B8);
  font-size: 0.68rem;
}

body.feedback-screen .history-empty {
  padding: 24px 12px 10px;
  color: var(--text-light, #94A3B8);
  font-size: 0.8rem;
}

body.feedback-screen .success-msg {
  padding: 42px 20px;
  text-align: center;
}

body.feedback-screen .success-icon {
  margin-bottom: 14px;
  font-size: 3.3rem;
}

body.feedback-screen .success-msg h2 {
  margin: 0;
  color: var(--text-primary, #1F2937);
  font-size: 1.35rem;
}

body.feedback-screen .success-msg p {
  margin: 9px 0 0;
  color: var(--text-secondary, #64748B);
  font-size: 0.86rem;
}

body.feedback-screen .success-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 10px;
  background: #8B5CF6;
  color: #FFF;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

body.feedback-screen .feedback-toast {
  position: fixed;
  top: calc(var(--navbar-height, 64px) + 16px);
  left: 50%;
  z-index: 10000;
  max-width: calc(100vw - 32px);
  padding: 11px 17px;
  border-radius: 10px;
  color: #FFF;
  font-size: 0.82rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  transform: translateX(-50%);
}

body.feedback-screen .feedback-toast-error { background: #DC4C64; }
body.feedback-screen .feedback-toast-success { background: #0F9F6E; }

[data-theme="dark"] body.feedback-screen .feedback-card {
  border-color: var(--border-light, rgba(255, 255, 255, 0.12));
  background: var(--bg-card, #242033);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] body.feedback-screen .feedback-tip {
  border-color: rgba(196, 181, 253, 0.2);
  background: rgba(139, 92, 246, 0.12);
}

[data-theme="dark"] body.feedback-screen .type-item,
[data-theme="dark"] body.feedback-screen .form-input {
  border-color: var(--border-light, rgba(255, 255, 255, 0.14));
  background: var(--bg-secondary, #2D273D);
}

[data-theme="dark"] body.feedback-screen .type-item:hover,
[data-theme="dark"] body.feedback-screen .type-item:focus-visible,
[data-theme="dark"] body.feedback-screen .type-item.active {
  background: rgba(139, 92, 246, 0.16);
}

[data-theme="dark"] body.feedback-screen .history-item {
  border-color: var(--border-light, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  body.feedback-screen .feedback-page {
    padding: 14px 0 100px;
  }

  body.feedback-screen .feedback-card {
    padding: 22px 16px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(31, 41, 55, 0.07);
  }

  body.feedback-screen .feedback-eyebrow {
    margin-bottom: 7px;
    font-size: 0.62rem;
  }

  body.feedback-screen .feedback-title {
    font-size: 1.42rem;
  }

  body.feedback-screen .feedback-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 1.05rem;
  }

  body.feedback-screen .feedback-subtitle {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  body.feedback-screen .feedback-tip {
    margin-top: 18px;
    padding: 11px 12px;
  }

  body.feedback-screen .feedback-tip strong { font-size: 0.78rem; }
  body.feedback-screen .feedback-tip span:not(.feedback-tip-icon) { font-size: 0.68rem; }

  body.feedback-screen .feedback-section-head {
    margin-top: 22px;
    font-size: 0.88rem;
  }

  body.feedback-screen .feedback-step {
    width: 23px;
    height: 23px;
    border-radius: 7px;
    font-size: 0.62rem;
  }

  body.feedback-screen .type-grid {
    gap: 8px;
  }

  body.feedback-screen .type-item {
    min-height: 66px;
    gap: 8px;
    padding: 10px 9px;
    border-radius: 12px;
  }

  body.feedback-screen .type-item .type-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 1rem;
  }

  body.feedback-screen .type-item .type-label { font-size: 0.76rem; }
  body.feedback-screen .type-item .type-desc { font-size: 0.61rem; }

  body.feedback-screen .type-check {
    width: 17px;
    height: 17px;
    font-size: 0.62rem;
  }

  body.feedback-screen .form-label { font-size: 0.78rem; }
  body.feedback-screen .form-input { min-height: 43px; font-size: 0.82rem; }
  body.feedback-screen .form-textarea { min-height: 112px; }
  body.feedback-screen .submit-btn { min-height: 46px; font-size: 0.88rem; }
  body.feedback-screen .history-item-header { align-items: flex-start; }
  body.feedback-screen .history-item-title { white-space: normal; }
}



/* ============================================
   24. 编辑资料页面
   ============================================ */

/* 杩斿洖鎸夐挳 */
.edit-profile-back {
  margin-bottom: 16px;
}
.edit-profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #A78BFA;
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255,107,157,0.06), rgba(167,139,250,0.06));
  border: 1.5px solid rgba(167, 139, 250, 0.25);
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 600;
}
.edit-profile-back-btn:hover {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(167,139,250,0.12));
  border-color: #A78BFA;
  color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(167,139,250,0.2);
}
.edit-profile-back-icon {
  font-size: 1.1rem;
  font-weight: 600;
}

/* 缂栬緫璧勬枡鍗＄墖 */
.edit-profile-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.4s ease;
}

.edit-profile-header {
  text-align: center;
  padding: 32px 24px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.06) 0%, rgba(167, 139, 250, 0.06) 100%);
  border-bottom: 1px solid var(--border-light);
}

.edit-profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.edit-profile-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.edit-profile-body {
  padding: 24px;
}

/* 琛ㄥ崟鍖哄潡 */
.edit-profile-section {
  margin-bottom: 24px;
}

.edit-profile-section:last-child {
  margin-bottom: 0;
}

.edit-profile-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.edit-profile-required {
  color: var(--danger);
}

.edit-profile-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* 杈撳叆妗?*/
.edit-profile-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.edit-profile-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-profile-input::placeholder {
  color: var(--text-light);
}

/* 涓嬫媺閫夋嫨妗?*/
.edit-profile-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  box-sizing: border-box;
}

.edit-profile-select:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* 鏂囨湰鍩?*/
.edit-profile-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.edit-profile-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-profile-textarea::placeholder {
  color: var(--text-light);
}

/* 澶村儚涓婁紶 */
.edit-avatar-upload {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}

.edit-avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-light);
  transition: all 0.2s ease;
}

.edit-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.edit-avatar-overlay span {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}

.edit-avatar-upload:hover .edit-avatar-overlay {
  opacity: 1;
}

.edit-avatar-upload:hover .edit-avatar-preview {
  border-color: var(--primary);
}

/* 鎬у埆閫夐」鍗?*/
.edit-gender-tabs {
  display: flex;
  gap: 10px;
}

.edit-gender-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.edit-gender-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(255, 107, 157, 0.04);
}

.edit-gender-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 157, 0.08);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-gender-icon {
  font-size: 1.1rem;
}

/* 淇濆瓨鎸夐挳鍖哄煙 */
.edit-profile-footer {
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border-light);
}

.edit-profile-save-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
}

.edit-profile-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.edit-profile-save-btn:active {
  transform: translateY(0);
}

.edit-profile-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 娣辫壊妯″紡 - 编辑资料页面 */
[data-theme="dark"] .edit-profile-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-back-btn:hover {
  background: rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .edit-profile-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-header {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-input,
[data-theme="dark"] .edit-profile-select,
[data-theme="dark"] .edit-profile-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

[data-theme="dark"] .edit-profile-input:focus,
[data-theme="dark"] .edit-profile-select:focus,
[data-theme="dark"] .edit-profile-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

[data-theme="dark"] .edit-profile-input::placeholder,
[data-theme="dark"] .edit-profile-textarea::placeholder {
  color: #64748B;
}

[data-theme="dark"] .edit-gender-tab {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

[data-theme="dark"] .edit-gender-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

[data-theme="dark"] .edit-gender-tab.active {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .edit-profile-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-avatar-preview {
  border-color: rgba(255, 255, 255, 0.15);
}

/* 绉诲姩绔€傞厤 - 编辑资料页面 */
@media (max-width: 768px) {
  .edit-profile-header {
    padding: 24px 20px 12px;
  }

  .edit-profile-title {
    font-size: 1.3rem;
  }

  .edit-profile-body {
    padding: 20px;
  }

  .edit-profile-footer {
    padding: 12px 20px 24px;
  }

  .edit-gender-tabs {
    gap: 8px;
  }

  .edit-gender-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .edit-profile-body {
    padding: 16px;
  }

  .edit-profile-footer {
    padding: 12px 16px 20px;
  }

  .edit-gender-tab {
    padding: 10px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }
}

/* ============================================
   澶囨鍙锋牱寮?
   ============================================ */
.beian-text {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-light);
}

.beian-text a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.beian-text a:hover {
  color: var(--primary);
}

/* ============================================
   鐢ㄦ埛鍗忚鍕鹃€夋样式
   ============================================ */
.agreement-section {
  margin: 16px 0;
  padding: 12px;
  background: rgba(255, 107, 157, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 107, 157, 0.1);
}

.agreement-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.agreement-checkbox input[type="checkbox"] {
  display: none;
}

.agreement-checkbox .checkmark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-card);
  transition: all var(--transition-fast);
  position: relative;
  margin-top: 2px;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.agreement-checkbox:hover .checkmark {
  border-color: var(--primary);
}

.agreement-text {
  flex: 1;
}

.agreement-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.agreement-text a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* ============================================
   鍗忚寮圭獥样式
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content,
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

/* 妯℃€佹鍐呴儴婊氬姩 */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-primary);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.modal-body h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.modal-body h5 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 20px 0 10px 0;
  font-weight: 600;
}

.modal-body p {
  margin: 10px 0;
  text-align: justify;
}

.modal-body ul {
  margin: 10px 0;
  padding-left: 20px;
}

.modal-body li {
  margin: 6px 0;
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  gap: 12px;
}

.modal-footer .btn-primary {
  padding: 10px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-primary);
}

.modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}

/* 绉诲姩绔€傞厤 */
@media (max-width: 640px) {
  .modal-content {
    max-height: 90vh;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 16px 20px;
    font-size: 0.85rem;
  }

  .modal-footer {
    padding: 12px 20px;
  }
}

/* ============================================
   瀵嗙爜淇敼闈㈡澘 - 鐙珛鍗＄墖样式锛堟棤閬僵锛?
   ============================================ */
.password-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.password-panel.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.password-panel-inner {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.password-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.password-panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon {
  font-size: 1.3rem;
}

.password-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.password-panel-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.password-panel-body {
  padding: 24px;
}

.password-field {
  margin-bottom: 20px;
}

.password-field:last-of-type {
  margin-bottom: 0;
}

.password-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.field-icon {
  font-size: 1rem;
}

.password-field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--bg-card);
  color: var(--text-primary);
  box-sizing: border-box;
}

.password-field-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
  outline: none;
}

.password-field-input::placeholder {
  color: var(--text-light);
}

.password-visibility-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.password-visibility-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.visibility-icon {
  font-size: 1.2rem;
}

.password-strength-meter {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.strength-meter-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.strength-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s ease;
  background: #EF4444;
}

.strength-meter-fill.weak { width: 33%; background: #EF4444; }
.strength-meter-fill.medium { width: 66%; background: #F59E0B; }
.strength-meter-fill.strong { width: 100%; background: #10B981; }

.strength-meter-text {
  font-size: 0.75rem;
  color: var(--text-light);
  min-width: 70px;
  text-align: right;
}

.password-panel-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-cancel,
.btn-confirm {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 2px solid var(--border-light);
}

.btn-cancel:hover {
  background: var(--bg-section);
  color: var(--text-primary);
}

.btn-confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-icon {
  font-size: 1rem;
}

/* 娣辫壊妯″紡适配厤 */
[data-theme="dark"] .password-field-input {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .password-field-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .strength-meter-bar {
  background: var(--bg-primary);
}

/* 绉诲姩绔€傞厤 */
@media (max-width: 640px) {
  .password-panel {
    padding: 10px;
    align-items: flex-end;
  }

  .password-panel-inner {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    animation: slideUpMobile 0.3s ease;
  }

  @keyframes slideUpMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .password-panel-body {
    padding: 20px 16px;
  }

  .password-field-input {
    padding: 14px 48px 14px 14px;
    font-size: 16px;
  }

  .btn-cancel,
  .btn-confirm {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}

/* ============================================
   24. 编辑资料页面
   ============================================ */

/* 杩斿洖鎸夐挳 */
.edit-profile-back {
  margin-bottom: 16px;
}
.edit-profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #A78BFA;
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255,107,157,0.06), rgba(167,139,250,0.06));
  border: 1.5px solid rgba(167, 139, 250, 0.25);
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 600;
}
.edit-profile-back-btn:hover {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(167,139,250,0.12));
  border-color: #A78BFA;
  color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(167,139,250,0.2);
}
.edit-profile-back-icon {
  font-size: 1.1rem;
  font-weight: 600;
}

/* 缂栬緫璧勬枡鍗＄墖 */
.edit-profile-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.4s ease;
}

.edit-profile-header {
  text-align: center;
  padding: 32px 24px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.06) 0%, rgba(167, 139, 250, 0.06) 100%);
  border-bottom: 1px solid var(--border-light);
}

.edit-profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.edit-profile-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.edit-profile-body {
  padding: 24px;
}

/* 琛ㄥ崟鍖哄潡 */
.edit-profile-section {
  margin-bottom: 24px;
}

.edit-profile-section:last-child {
  margin-bottom: 0;
}

.edit-profile-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.edit-profile-required {
  color: var(--danger);
}

.edit-profile-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* 杈撳叆妗?*/
.edit-profile-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.edit-profile-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-profile-input::placeholder {
  color: var(--text-light);
}

/* 鏃ユ湡杈撳叆妗嗙編鍖?*/
.edit-profile-input[type="date"] {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.edit-profile-input[type="date"]:hover {
  border-color: var(--primary-light);
}

.edit-profile-input[type="date"]:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

/* 鏃ユ湡杈撳叆妗嗘棩鍘嗗浘鏍囬鑹?*/
.edit-profile-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.edit-profile-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* 涓嬫媺閫夋嫨妗?*/
.edit-profile-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  box-sizing: border-box;
}

.edit-profile-select:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* 鏂囨湰鍩?*/
.edit-profile-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.edit-profile-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-profile-textarea::placeholder {
  color: var(--text-light);
}

/* 澶村儚涓婁紶 */
.edit-avatar-upload {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}

.edit-avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-light);
  transition: all 0.2s ease;
}

.edit-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.edit-avatar-overlay span {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}

.edit-avatar-upload:hover .edit-avatar-overlay {
  opacity: 1;
}

.edit-avatar-upload:hover .edit-avatar-preview {
  border-color: var(--primary);
}

/* 鎬у埆閫夐」鍗?*/
.edit-gender-tabs {
  display: flex;
  gap: 10px;
}

.edit-gender-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.edit-gender-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(255, 107, 157, 0.04);
}

.edit-gender-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 157, 0.08);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-gender-icon {
  font-size: 1.1rem;
}

/* 淇濆瓨鎸夐挳鍖哄煙 */
.edit-profile-footer {
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border-light);
}

.edit-profile-save-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
}

.edit-profile-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.edit-profile-save-btn:active {
  transform: translateY(0);
}

.edit-profile-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 娣辫壊妯″紡 - 编辑资料页面 */
[data-theme="dark"] .edit-profile-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-back-btn:hover {
  background: rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .edit-profile-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-header {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-input,
[data-theme="dark"] .edit-profile-select,
[data-theme="dark"] .edit-profile-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

[data-theme="dark"] .edit-profile-input:focus,
[data-theme="dark"] .edit-profile-select:focus,
[data-theme="dark"] .edit-profile-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

[data-theme="dark"] .edit-profile-input::placeholder,
[data-theme="dark"] .edit-profile-textarea::placeholder {
  color: #64748B;
}

[data-theme="dark"] .edit-gender-tab {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

[data-theme="dark"] .edit-gender-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

[data-theme="dark"] .edit-gender-tab.active {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .edit-profile-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-avatar-preview {
  border-color: rgba(255, 255, 255, 0.15);
}

/* 绉诲姩绔€傞厤 - 编辑资料页面 */
@media (max-width: 768px) {
  .edit-profile-header {
    padding: 24px 20px 12px;
  }

  .edit-profile-title {
    font-size: 1.3rem;
  }

  .edit-profile-body {
    padding: 20px;
  }

  .edit-profile-footer {
    padding: 12px 20px 24px;
  }

  .edit-gender-tabs {
    gap: 8px;
  }

  .edit-gender-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .edit-profile-body {
    padding: 16px;
  }

  .edit-profile-footer {
    padding: 12px 16px 20px;
  }

  .edit-gender-tab {
    padding: 10px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }
}


/* ============================================
   24. 编辑资料页面
   ============================================ */

/* 杩斿洖鎸夐挳 */
.edit-profile-back {
  margin-bottom: 16px;
}
.edit-profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #A78BFA;
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255,107,157,0.06), rgba(167,139,250,0.06));
  border: 1.5px solid rgba(167, 139, 250, 0.25);
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 600;
}
.edit-profile-back-btn:hover {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(167,139,250,0.12));
  border-color: #A78BFA;
  color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(167,139,250,0.2);
}
.edit-profile-back-icon {
  font-size: 1.1rem;
  font-weight: 600;
}

/* 缂栬緫璧勬枡鍗＄墖 */
.edit-profile-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.4s ease;
}

.edit-profile-header {
  text-align: center;
  padding: 32px 24px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.06) 0%, rgba(167, 139, 250, 0.06) 100%);
  border-bottom: 1px solid var(--border-light);
}

.edit-profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.edit-profile-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.edit-profile-body {
  padding: 24px;
}

/* 琛ㄥ崟鍖哄潡 */
.edit-profile-section {
  margin-bottom: 24px;
}

.edit-profile-section:last-child {
  margin-bottom: 0;
}

.edit-profile-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.edit-profile-required {
  color: var(--danger);
}

.edit-profile-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* 杈撳叆妗?*/
.edit-profile-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.edit-profile-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-profile-input::placeholder {
  color: var(--text-light);
}

/* 鏃ユ湡杈撳叆妗嗙編鍖?*/
.edit-profile-input[type="date"] {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6B9D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  background-color: var(--bg-secondary);
}

.edit-profile-input[type="date"]:hover {
  border-color: var(--primary);
  background-color: var(--bg-card);
}

.edit-profile-input[type="date"]:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

/* 鏃ユ湡杈撳叆妗嗘棩鍘嗗浘鏍囬鑹?*/
.edit-profile-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  padding: 4px;
  border-radius: 4px;
  filter: sepia(0) saturate(2) hue-rotate(320deg) saturate(5);
}

.edit-profile-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: sepia(0) saturate(2) hue-rotate(320deg) saturate(5);
}

/* Firefox鏃ユ湡閫夋嫨鍣?*/
.edit-profile-input[type="date"]::-moz-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  color: var(--primary);
}

.edit-profile-input[type="date"]::-moz-calendar-picker-indicator:hover {
  opacity: 1;
}

/* 鏃ユ湡杈撳叆妗嗗勾浠?鏈堜唤閫夋嫨鍣ㄧ編鍖?*/
.edit-profile-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 2px 0;
}

.edit-profile-input[type="date"]::-webkit-datetime-edit {
  padding: 4px 0;
}

.edit-profile-input[type="date"]::-webkit-datetime-edit-year-field,
.edit-profile-input[type="date"]::-webkit-datetime-edit-month-field,
.edit-profile-input[type="date"]::-webkit-datetime-edit-day-field {
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.edit-profile-input[type="date"]:focus::-webkit-datetime-edit-year-field,
.edit-profile-input[type="date"]:focus::-webkit-datetime-edit-month-field,
.edit-profile-input[type="date"]:focus::-webkit-datetime-edit-day-field {
  background-color: rgba(255, 107, 157, 0.1);
}

/* 涓嬫媺閫夋嫨妗?*/
.edit-profile-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  box-sizing: border-box;
}

.edit-profile-select:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* 鏂囨湰鍩?*/
.edit-profile-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.edit-profile-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-profile-textarea::placeholder {
  color: var(--text-light);
}

/* 澶村儚涓婁紶 */
.edit-avatar-upload {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}

.edit-avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-light);
  transition: all 0.2s ease;
}

.edit-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.edit-avatar-overlay span {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}

.edit-avatar-upload:hover .edit-avatar-overlay {
  opacity: 1;
}

.edit-avatar-upload:hover .edit-avatar-preview {
  border-color: var(--primary);
}

/* 鎬у埆閫夐」鍗?*/
.edit-gender-tabs {
  display: flex;
  gap: 10px;
}

.edit-gender-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.edit-gender-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(255, 107, 157, 0.04);
}

.edit-gender-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 157, 0.08);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-gender-icon {
  font-size: 1.1rem;
}

/* 淇濆瓨鎸夐挳鍖哄煙 */
.edit-profile-footer {
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border-light);
}

.edit-profile-save-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
}

.edit-profile-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.edit-profile-save-btn:active {
  transform: translateY(0);
}

.edit-profile-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 娣辫壊妯″紡 - 编辑资料页面 */
[data-theme="dark"] .edit-profile-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-back-btn:hover {
  background: rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .edit-profile-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-header {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-input,
[data-theme="dark"] .edit-profile-select,
[data-theme="dark"] .edit-profile-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

[data-theme="dark"] .edit-profile-input:focus,
[data-theme="dark"] .edit-profile-select:focus,
[data-theme="dark"] .edit-profile-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

[data-theme="dark"] .edit-profile-input::placeholder,
[data-theme="dark"] .edit-profile-textarea::placeholder {
  color: #64748B;
}

[data-theme="dark"] .edit-gender-tab {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

[data-theme="dark"] .edit-gender-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

[data-theme="dark"] .edit-gender-tab.active {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .edit-profile-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-avatar-preview {
  border-color: rgba(255, 255, 255, 0.15);
}

/* 绉诲姩绔€傞厤 - 编辑资料页面 */
@media (max-width: 768px) {
  .edit-profile-header {
    padding: 24px 20px 12px;
  }

  .edit-profile-title {
    font-size: 1.3rem;
  }

  .edit-profile-body {
    padding: 20px;
  }

  .edit-profile-footer {
    padding: 12px 20px 24px;
  }

  .edit-gender-tabs {
    gap: 8px;
  }

  .edit-gender-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .edit-profile-body {
    padding: 16px;
  }

  .edit-profile-footer {
    padding: 12px 16px 20px;
  }

  .edit-gender-tab {
    padding: 10px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }
}


/* ============================================
   24. 编辑资料页面
   ============================================ */

/* 杩斿洖鎸夐挳 */
.edit-profile-back {
  margin-bottom: 16px;
}
.edit-profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #A78BFA;
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255,107,157,0.06), rgba(167,139,250,0.06));
  border: 1.5px solid rgba(167, 139, 250, 0.25);
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 600;
}
.edit-profile-back-btn:hover {
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(167,139,250,0.12));
  border-color: #A78BFA;
  color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(167,139,250,0.2);
}
.edit-profile-back-icon {
  font-size: 1.1rem;
  font-weight: 600;
}

/* 缂栬緫璧勬枡鍗＄墖 */
.edit-profile-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.4s ease;
}

.edit-profile-header {
  text-align: center;
  padding: 32px 24px 16px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.06) 0%, rgba(167, 139, 250, 0.06) 100%);
  border-bottom: 1px solid var(--border-light);
}

.edit-profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.edit-profile-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.edit-profile-body {
  padding: 24px;
}

/* 琛ㄥ崟鍖哄潡 */
.edit-profile-section {
  margin-bottom: 24px;
}

.edit-profile-section:last-child {
  margin-bottom: 0;
}

.edit-profile-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.edit-profile-required {
  color: var(--danger);
}

.edit-profile-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* 杈撳叆妗?*/
.edit-profile-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.edit-profile-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-profile-input::placeholder {
  color: var(--text-light);
}

/* 鐢熸棩涓夎仈鍔ㄤ笅鎷夋 */
.birthday-selects {
  display: flex;
  gap: 8px;
}

.birthday-selects .edit-profile-select {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.birthday-selects .birthday-year {
  flex: 1.2;
}

.birthday-selects .birthday-month,
.birthday-selects .birthday-day {
  flex: 1;
}

@media (max-width: 480px) {
  .birthday-selects {
    gap: 6px;
  }

  .birthday-selects .edit-profile-select {
    padding: 8px 8px;
    font-size: 0.85rem;
  }
}

/* 鏃ユ湡杈撳叆妗嗘棩鍘嗗浘鏍?*/
.edit-profile-input[type="date"] {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF6B9D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  background-color: var(--bg-secondary);
}

.edit-profile-input[type="date"]:hover {
  border-color: var(--primary);
  background-color: var(--bg-card);
}

.edit-profile-input[type="date"]:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

/* 鏃ユ湡杈撳叆妗嗘棩鍘嗗浘鏍囬鑹?*/
.edit-profile-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  padding: 4px;
  border-radius: 4px;
  filter: sepia(0) saturate(2) hue-rotate(320deg) saturate(5);
}

.edit-profile-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Firefox鏃ユ湡閫夋嫨鍣?*/
.edit-profile-input[type="date"]::-moz-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
  color: var(--primary);
}

.edit-profile-input[type="date"]::-moz-calendar-picker-indicator:hover {
  opacity: 1;
}

/* 鏃ユ湡杈撳叆妗嗗勾浠?鏈堜唤閫夋嫨鍣ㄧ編鍖?*/
.edit-profile-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 2px 0;
}

.edit-profile-input[type="date"]::-webkit-datetime-edit {
  padding: 4px 0;
}

.edit-profile-input[type="date"]::-webkit-datetime-edit-year-field,
.edit-profile-input[type="date"]::-webkit-datetime-edit-month-field,
.edit-profile-input[type="date"]::-webkit-datetime-edit-day-field {
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.edit-profile-input[type="date"]:focus::-webkit-datetime-edit-year-field,
.edit-profile-input[type="date"]:focus::-webkit-datetime-edit-month-field,
.edit-profile-input[type="date"]:focus::-webkit-datetime-edit-day-field {
  background-color: rgba(255, 107, 157, 0.1);
}

/* 涓嬫媺閫夋嫨妗?*/
.edit-profile-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  box-sizing: border-box;
}

.edit-profile-select:focus {
  border-color: var(--primary);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* 鏂囨湰鍩?*/
.edit-profile-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.edit-profile-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-profile-textarea::placeholder {
  color: var(--text-light);
}

/* 澶村儚涓婁紶 */
.edit-avatar-upload {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}

.edit-avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border-light);
  transition: all 0.2s ease;
}

.edit-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.edit-avatar-overlay span {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}

.edit-avatar-upload:hover .edit-avatar-overlay {
  opacity: 1;
}

.edit-avatar-upload:hover .edit-avatar-preview {
  border-color: var(--primary);
}

/* 鎬у埆閫夐」鍗?*/
.edit-gender-tabs {
  display: flex;
  gap: 10px;
}

.edit-gender-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.edit-gender-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: rgba(255, 107, 157, 0.04);
}

.edit-gender-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 157, 0.08);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.edit-gender-icon {
  font-size: 1.1rem;
}

/* 淇濆瓨鎸夐挳鍖哄煙 */
.edit-profile-footer {
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border-light);
}

.edit-profile-save-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
}

.edit-profile-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.edit-profile-save-btn:active {
  transform: translateY(0);
}

.edit-profile-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 娣辫壊妯″紡 - 编辑资料页面 */
[data-theme="dark"] .edit-profile-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-back-btn:hover {
  background: rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .edit-profile-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-header {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-profile-input,
[data-theme="dark"] .edit-profile-select,
[data-theme="dark"] .edit-profile-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

[data-theme="dark"] .edit-profile-input:focus,
[data-theme="dark"] .edit-profile-select:focus,
[data-theme="dark"] .edit-profile-textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

[data-theme="dark"] .edit-profile-input::placeholder,
[data-theme="dark"] .edit-profile-textarea::placeholder {
  color: #64748B;
}

[data-theme="dark"] .edit-gender-tab {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
}

[data-theme="dark"] .edit-gender-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

[data-theme="dark"] .edit-gender-tab.active {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(255, 107, 157, 0.12);
}

[data-theme="dark"] .edit-profile-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .edit-avatar-preview {
  border-color: rgba(255, 255, 255, 0.15);
}

/* 绉诲姩绔€傞厤 - 编辑资料页面 */
@media (max-width: 768px) {
  .edit-profile-header {
    padding: 24px 20px 12px;
  }

  .edit-profile-title {
    font-size: 1.3rem;
  }

  .edit-profile-body {
    padding: 20px;
  }

  .edit-profile-footer {
    padding: 12px 20px 24px;
  }

  .edit-gender-tabs {
    gap: 8px;
  }

  .edit-gender-tab {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .edit-profile-body {
    padding: 16px;
  }

  .edit-profile-footer {
    padding: 12px 16px 20px;
  }

  .edit-gender-tab {
    padding: 10px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }
}

/* ===== Easter Egg - 褰╄泲 ===== */

/* 娴姩鐖卞績 */
.easter-heart {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  animation: heartFloat 1.2s ease-out forwards;
  z-index: 999;
}

@keyframes heartFloat {
  0% { opacity: 1; transform: translateY(0) scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: translateY(-60px) scale(1.2) rotate(15deg); }
  100% { opacity: 0; transform: translateY(-120px) scale(0.8) rotate(-10deg); }
}

/* 鍚愭Ы姘旀场 */
.easter-bubble {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 8px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF6B9D, #FF8FB5);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(255,107,157,0.3);
  animation: bubblePop 2.2s ease-out forwards;
}

.easter-bubble::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #FF6B9D;
}

@keyframes bubblePop {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.8); }
  15% { opacity: 1; transform: translateX(-50%) translateY(-2px) scale(1.05); }
  25% { transform: translateX(-50%) translateY(0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.9); }
}

[data-theme="dark"] .easter-bubble {
  box-shadow: 0 4px 12px rgba(255,107,157,0.5);
}


/* ===== Easter Egg v2 - 鏂板鐗规晥 ===== */

/* 杩涘害鏉?*/
.easter-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  justify-content: center;
  width: 100%;
}
.easter-progress-bar {
  width: 80px;
  height: 4px;
  background: rgba(255,107,157,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.easter-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B9D, #FFD700);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.easter-progress-text {
  font-size: 0.65rem;
  color: rgba(255,107,157,0.7);
  font-weight: 600;
  white-space: nowrap;
}

/* 绮掑瓙锛堢埍蹇?鏄熸槦绛夛級 */
.easter-particle {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  animation: particleFloat 1.4s ease-out forwards;
  z-index: 999;
}
@keyframes particleFloat {
  0% { opacity: 1; transform: translateY(0) scale(0.5) rotate(0deg); }
  40% { opacity: 1; transform: translateY(-40px) scale(1.3) rotate(20deg); }
  100% { opacity: 0; transform: translateY(-100px) scale(0.6) rotate(-15deg); }
}

/* 鍏ㄥ睆emoji闆?*/
.easter-rain {
  position: fixed;
  top: -30px;
  pointer-events: none;
  z-index: 9999;
  animation: rainFall 2.5s ease-in forwards;
}
@keyframes rainFall {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 1; }
  80% { opacity: 0.8; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* 杈规闂儊 */
.easter-flash {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 6px solid transparent;
  pointer-events: none;
  z-index: 9998;
  animation: flashPulse 0.5s ease-out forwards;
  border-radius: 0;
  box-sizing: border-box;
}
@keyframes flashPulse {
  0% { opacity: 0; }
  30% { opacity: 0.6; }
  100% { opacity: 0; }
}

/* 鏆楄壊妯″紡适配厤 */
[data-theme="dark"] .easter-progress-text {
  color: rgba(255,143,181,0.8);
}
[data-theme="dark"] .easter-progress-bar {
  background: rgba(255,107,157,0.15);
}
[data-theme="dark"] .easter-bubble {
  box-shadow: 0 4px 12px rgba(255,107,157,0.5);
}

/* ============================================
   绉诲姩绔紭鍖栵細profile 甯栧瓙鍗＄墖 + 标签鏍?
   ============================================ */
/* 鍏ㄥ眬锛氱粰 fixed navbar 鐣欎綅缃紙浠呭灞?main-container锛?*/
.main-container {
  padding-top: calc(var(--navbar-height, 60px) + 12px);
}
/* 宓屽鐨?page-container 涓嶉噸澶嶅姞 padding-top */
.main-container > .page-container {
  padding-top: 0;
}
@media (max-width: 768px) {
  /* 标签鏍忥細绱у噾 + 妯悜婊氬姩 */
  .profile-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab {
    flex: 0 0 auto;
    padding: 12px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* 标签鍐呭锛氬幓鎺夊唴边距璁╁崱鐗囧崰婊?*/
  .profile-tab-content {
    padding: 12px !important;
  }

  /* 甯栧瓙鍗＄墖锛氱揣鍑?+ 鍙偣鍑绘劅 */
  .post-card {
    padding: 14px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.06) !important;
    border: 1px solid rgba(118, 75, 162, 0.08) !important;
    transition: transform 0.2s ease;
  }
  .post-card:active { transform: scale(0.98); }

  .post-card .user-avatar {
    width: 36px;
    height: 36px;
    border-width: 1.5px;
  }
  .post-card .user-name { font-size: 0.85rem; }
  .post-card .post-time { font-size: 0.7rem; }
  .post-card .post-title {
    font-size: 1rem !important;
    line-height: 1.4;
  }
  .post-card .post-content {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }
  .post-card .post-images {
    gap: 4px !important;
    margin-bottom: 10px !important;
  }
  .post-card .post-actions {
    padding-top: 10px !important;
    margin-top: 10px !important;
    gap: 4px !important;
  }
  .post-card .action-btn {
    font-size: 0.78rem;
    padding: 4px 8px !important;
    min-width: 0;
    flex: 0 0 auto;
  }
  .post-card .action-btn span:last-child { font-size: 0.78rem; }
  .post-card .action-icon { font-size: 0.95rem; }
  .post-card .post-views { font-size: 0.75rem !important; }
}

@media (max-width: 380px) {
  .post-card { padding: 12px !important; }
  .post-card .post-actions { gap: 2px !important; }
  .post-card .action-btn { padding: 3px 6px !important; font-size: 0.72rem; }
}

/* ===== 鎶曠エ甯栨牱寮?===== */
.poll-section {
  margin-top: 20px;
  padding: 18px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-color);
}
.poll-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.poll-total {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
}
.poll-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.poll-option {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}
.poll-option:hover {
  border-color: var(--primary-light);
  background: rgba(255, 107, 157, 0.03);
}
.poll-option.voted {
  border-color: var(--primary);
  background: rgba(255, 107, 157, 0.05);
}
.poll-option-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255, 107, 157, 0.12), rgba(192, 132, 252, 0.08));
  border-radius: 10px 0 0 10px;
  transition: width 0.5s ease;
  z-index: 0;
}
.poll-option-text {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}
.poll-option-votes {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}
.poll-option-count {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: var(--text-light);
  min-width: 24px;
  text-align: center;
}
.poll-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-light);
}
.poll-voted-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

/* ===== 鏂板缓鎶曠エ甯栭€夐」样式 ===== */
.poll-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.poll-option-row .poll-option-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid var(--border-color) !important;
  font-size: 0.92rem !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.poll-option-row .poll-option-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.12) !important;
  outline: none;
}
.btn-del-option {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
  line-height: 1;
}
.btn-del-option:hover {
  background: rgba(239, 68, 68, 0.18);
  transform: scale(1.1);
}
.btn-del-option:active {
  transform: scale(0.95);
}

/* 鍏佽澶氶€?checkbox 缇庡寲 */
.poll-multiple-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  user-select: none;
}
.poll-multiple-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* 绉诲姩绔姇绁ㄩ€夐」 */
@media (max-width: 768px) {
  .poll-option-row {
    gap: 6px;
  }
  .poll-option-row .poll-option-input {
    padding: 10px 12px !important;
    font-size: 15px !important;
  }
  .btn-del-option {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .poll-multiple-label {
    font-size: 0.82rem;
  }
}

.btn-add-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255, 107, 157, 0.08);
  border: 1px dashed var(--primary);
  color: var(--primary);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-add-option:hover {
  background: rgba(255, 107, 157, 0.15);
  transform: translateY(-1px);
}

/* ===== 棰勮寮圭獥浼樺寲 ===== */
.preview-poll-section {
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}
.preview-poll-section .preview-poll-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.preview-poll-item {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--bg-section);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-poll-item::before {
  content: '🔘';
  font-size: 0.85rem;
  flex-shrink: 0;
}
.preview-poll-item.multi::before {
  content: '☑️';
}

@media (max-width: 768px) {
  .preview-poll-item {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}

/* ============================================
   45. 分页面排版优化
   说明：保留每个页面自己的气质，只修正容器宽度、信息层级、触控间距和响应式行为。
   ============================================ */

/* ---- 首页：浏览优先，筛选不抢内容 ---- */
body.home-page .main-content {
  max-width: 760px;
  padding-top: calc(var(--navbar-height) + 20px);
}

body.home-page .search-bar {
  padding: 10px 14px;
  margin-bottom: 12px;
  border-width: 1px;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.08);
}

body.home-page .filter-bar {
  padding: 12px 14px 10px;
  margin-bottom: 18px;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(255, 107, 157, 0.08);
}

body.home-page .filter-categories {
  gap: 7px;
}

body.home-page .filter-tag {
  padding: 7px 13px;
  border-width: 1px;
  font-size: 0.8rem;
}

body.home-page .filter-sort {
  margin-top: 10px;
  padding-top: 9px;
}

body.home-page .post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.home-page .post-card {
  margin-bottom: 0;
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(30, 41, 59, 0.045);
}

body.home-page .post-card .post-user {
  margin-bottom: 13px;
}

body.home-page .post-card .post-content {
  font-size: 0.96rem;
  line-height: 1.75;
}

body.home-page .post-card .post-actions {
  gap: 6px;
  padding-top: 12px;
}

body.home-page .post-card .action-btn {
  flex: 1;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
}

body.home-page .quick-cards {
  gap: 10px;
  margin-bottom: 16px;
  padding: 0;
}

body.home-page .quick-card {
  min-height: 96px;
  padding: 16px 10px;
  border-radius: 18px;
}

body.home-page .home-radio-section {
  padding: 14px;
  border-radius: 18px;
}

/* ---- 点歌页：输入区和列表区明确分层 ---- */
body.radio-page .main-content {
  max-width: 760px;
  padding-top: calc(var(--navbar-height) + 18px);
}

body.radio-page .radio-header {
  margin: 0 auto 22px;
  max-width: 560px;
}

body.radio-page .radio-section {
  margin-bottom: 22px;
}

body.radio-page .radio-form-card {
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(167, 139, 250, 0.1);
}

body.radio-page .form-group {
  margin-bottom: 16px;
}

body.radio-page .form-label {
  margin-bottom: 7px;
}

body.radio-page .form-input,
body.radio-page .form-textarea {
  min-height: 44px;
}

body.radio-page .form-textarea {
  min-height: 100px;
}

body.radio-page .hot-songs-list {
  gap: 10px;
}

body.radio-page .hot-song-item {
  padding: 13px 14px;
  border-radius: 18px;
}

/* ---- 个人中心：资料、反馈、账号操作分组阅读 ---- */
body.profile-page .main-content {
  max-width: 700px;
  padding-top: calc(var(--navbar-height) + 20px);
}

body.profile-page #profileCard {
  padding: 34px 24px 22px;
  margin-bottom: 18px;
}

body.profile-page .profile-stats {
  max-width: 390px;
  margin-top: 18px;
}

body.profile-page .profile-menu-item {
  min-height: 48px;
  margin-top: 18px !important;
  box-sizing: border-box;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

body.profile-page .profile-menu-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 157, 0.25) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

body.profile-page #feedbackInlineForm {
  margin-top: 10px !important;
  padding: 14px !important;
}

body.profile-page #feedbackInlineForm input,
body.profile-page #feedbackInlineForm select,
body.profile-page #feedbackInlineForm textarea {
  min-height: 42px;
}

/* 个人中心反馈入口：从“突兀按钮”改成资料卡里的功能入口 */
body.profile-page #feedbackToggleBtn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 64px;
  box-sizing: border-box;
  gap: 12px !important;
  padding: 12px 16px 12px 14px !important;
  margin-top: 18px !important;
  border: 1px solid rgba(255, 107, 157, 0.16) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,246,252,0.9)) !important;
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

body.profile-page #feedbackToggleBtn::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #ff6b9d, #c084fc);
}

body.profile-page #feedbackToggleBtn > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin-left: 2px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,107,157,0.12), rgba(192,132,252,0.16));
  font-size: 1.12rem !important;
}

body.profile-page #feedbackToggleBtn > span:nth-child(2) {
  color: #4b4057;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.profile-page #feedbackToggleBtn #feedbackArrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,107,157,0.08);
  color: #c084fc !important;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

body.profile-page #feedbackToggleBtn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 157, 0.28) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,241,249,0.96)) !important;
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.13), inset 0 1px 0 rgba(255,255,255,0.9);
}

body.profile-page #feedbackToggleBtn:hover #feedbackArrow {
  transform: translateX(2px);
  background: rgba(255,107,157,0.14);
}

body.profile-page #feedbackInlineForm {
  border: 1px solid rgba(192, 132, 252, 0.16) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(252,245,255,0.88)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

body.profile-page #feedbackInlineForm input,
body.profile-page #feedbackInlineForm select,
body.profile-page #feedbackInlineForm textarea {
  border-color: rgba(167, 139, 250, 0.18) !important;
  background: rgba(255,255,255,0.72) !important;
  border-radius: 12px !important;
}

body.profile-page #feedbackInlineForm #fbSubmitBtn {
  min-height: 44px;
  border-radius: 14px !important;
  box-shadow: 0 6px 14px rgba(255,107,157,0.16);
}

[data-theme="dark"] body.profile-page #feedbackToggleBtn {
  border-color: rgba(255,255,255,0.08) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(167,139,250,0.1)) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

[data-theme="dark"] body.profile-page #feedbackToggleBtn > span:nth-child(2) {
  color: #f4eafa;
}

[data-theme="dark"] body.profile-page #feedbackInlineForm {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(167,139,250,0.09)) !important;
}

[data-theme="dark"] body.profile-page #feedbackInlineForm input,
[data-theme="dark"] body.profile-page #feedbackInlineForm select,
[data-theme="dark"] body.profile-page #feedbackInlineForm textarea {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-primary) !important;
}

body.profile-page #profileCard > .btn-edit-profile {
  min-height: 46px;
  margin-top: 10px;
}

body.profile-page .wechat-bind-card,
body.profile-page .notify-settings-card {
  border-radius: 22px;
  margin-bottom: 18px;
}

body.profile-page .profile-tabs-section {
  margin-bottom: 22px;
}

body.profile-page .profile-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}

body.profile-page .profile-tabs::-webkit-scrollbar {
  display: none;
}

body.profile-page .profile-tab {
  min-width: 92px;
  white-space: nowrap;
}

/* ---- 反馈页：保留已完成的独立布局，补足阅读边界 ---- */
body.feedback-screen .main-content {
  max-width: 680px;
}

body.feedback-screen .feedback-content {
  padding-bottom: 24px;
}

/* ---- 发帖 / 编辑：把编辑器做成连续工作面 ---- */
body.new-post-page .main-content,
body.edit-post-page .main-content {
  max-width: 760px;
  padding-top: calc(var(--navbar-height) + 20px);
}

body.new-post-page .post-form-card,
body.edit-post-page .post-form-card {
  padding: 26px;
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(167, 139, 250, 0.1);
}

body.new-post-page .post-form-header,
body.edit-post-page .post-form-header {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}

body.new-post-page .form-group,
body.edit-post-page .form-group {
  margin-bottom: 20px;
}

body.new-post-page .editor-toolbar,
body.edit-post-page .editor-toolbar {
  padding: 10px 12px;
  gap: 8px;
}

body.new-post-page .editor-btn,
body.edit-post-page .editor-btn {
  min-width: 38px;
  min-height: 38px;
  padding: 6px 11px;
}

body.new-post-page .form-textarea,
body.edit-post-page .form-textarea {
  min-height: 190px;
}

body.new-post-page .category-tags,
body.edit-post-page .category-tags {
  gap: 8px;
}

body.new-post-page .category-tag,
body.edit-post-page .category-tag {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

body.new-post-page .form-actions,
body.edit-post-page .form-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  margin: 24px -8px -8px;
  padding: 12px 8px 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96) 28%);
}

/* ---- 编辑资料：信息填写页，减少表单疲劳 ---- */
body.edit-profile-page .main-content {
  max-width: 680px;
  padding-top: calc(var(--navbar-height) + 20px);
}

body.edit-profile-page .edit-profile-card {
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(255, 107, 157, 0.1);
}

body.edit-profile-page .edit-profile-section {
  padding: 16px 0;
}

body.edit-profile-page .edit-profile-input,
body.edit-profile-page .edit-profile-select,
body.edit-profile-page .edit-profile-textarea {
  min-height: 46px;
  border-radius: 14px;
}

body.edit-profile-page .edit-profile-footer {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.95) 28%);
}

/* ---- 帖子详情：阅读宽度优先，评论作为第二层 ---- */
body.post-detail-page .main-content {
  width: 100%;
  max-width: 1120px;
  padding-top: calc(var(--navbar-height) + 20px);
}

body.post-detail-page .detail-back {
  margin-bottom: 12px;
}

body.post-detail-page .detail-card {
  padding: 24px;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(30, 41, 59, 0.06);
}

body.post-detail-page .comment-section {
  margin-top: 16px;
  padding: 20px;
  border-radius: 22px;
}

body.post-detail-page .comment-section-header {
  gap: 12px;
}

body.post-detail-page .comment-input-wrapper {
  margin-top: 14px;
}

body.post-detail-page .comment-input {
  min-height: 92px;
  line-height: 1.65;
}

body.post-detail-page .comment-list {
  margin-top: 16px;
}

body.post-detail-page .detail-video-wrap {
  margin-top: 16px;
}

@media (min-width: 769px) {
  body.post-detail-page .detail-video-wrap {
    width: min(100%, 780px);
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    margin: 16px auto 20px;
    border: 1px solid rgba(39, 83, 77, 0.22);
    border-radius: 20px;
    background: linear-gradient(145deg, #173d3a, #244f49);
    box-shadow: 0 14px 30px rgba(35, 75, 69, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  body.post-detail-page .detail-video {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #142c2a;
  }
}

@media (max-width: 768px) {
  body.post-detail-page .detail-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 14px 0 18px;
    border-radius: 16px;
  }

  body.post-detail-page .detail-video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }
}

/* ---- 登录 / 注册：保持可爱背景，提升表单节奏 ---- */
body.login-page-shell .login-card,
body.register-page-shell .register-card {
  box-sizing: border-box;
  box-shadow: 0 18px 54px rgba(255, 107, 157, 0.16), 0 0 0 1px rgba(255,255,255,0.55) inset;
}

body.login-page-shell .login-header,
body.register-page-shell .register-header {
  margin-bottom: 24px;
}

body.login-page-shell .form-group,
body.register-page-shell .form-group {
  margin-bottom: 16px;
}

body.login-page-shell .input-wrap,
body.register-page-shell .input-wrap {
  min-height: 48px;
}

body.login-page-shell .form-input,
body.register-page-shell .form-input {
  min-height: 46px;
}

body.login-page-shell .login-btn,
body.register-page-shell .register-btn {
  min-height: 50px;
  margin-top: 4px;
}

body.login-page-shell .login-links,
body.register-page-shell .register-links {
  flex-wrap: wrap;
  row-gap: 8px;
}

/* ---- 重置密码：单任务、强反馈 ---- */
body.reset-page-shell {
  min-height: 100vh;
  padding: 24px 16px;
  box-sizing: border-box;
}

body.reset-page-shell .reset-card {
  max-width: 440px;
  padding: 34px 30px;
  box-shadow: 0 18px 52px rgba(167, 139, 250, 0.16);
}

body.reset-page-shell .reset-card .form-input {
  min-height: 46px;
  box-sizing: border-box;
}

body.reset-page-shell .btn-reset {
  min-height: 48px;
}

/* ---- 协议 / 隐私：长文档阅读模式 ---- */
body.legal-page .agreement-page,
body.legal-page .privacy-page {
  padding: calc(var(--navbar-height) + 24px) 16px 88px;
}

body.legal-page .agreement-card,
body.legal-page .privacy-card {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 30px 34px;
  box-shadow: 0 10px 34px rgba(167, 139, 250, 0.1);
}

body.legal-page .agreement-header,
body.legal-page .privacy-header {
  margin-bottom: 26px;
  padding-bottom: 18px;
}

body.legal-page .agreement-content,
body.legal-page .privacy-content {
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

body.legal-page .agreement-content h2,
body.legal-page .privacy-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: var(--text-primary);
}

body.legal-page .agreement-content p,
body.legal-page .privacy-content p {
  margin-bottom: 12px;
}

/* ---- 404：让空状态成为可回到站内的入口 ---- */
body.error-page .error-page {
  min-height: calc(100vh - 84px);
  padding: 40px 18px 88px;
  box-sizing: border-box;
}

body.error-page .error-content {
  width: min(100%, 500px);
  padding: 40px 28px;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(255, 107, 157, 0.12);
}

body.error-page .error-subtitle {
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 邮件配置是独立设置页：沿用粉紫气质，但让表单更像一条完整流程 */
body.admin-email-page {
  background: linear-gradient(135deg, #fff8fb 0%, #f8f3ff 58%, #f1f7ff 100%) !important;
  padding-top: 28px !important;
  padding-bottom: 48px !important;
}

body.admin-email-page .smtp-card {
  border: 1px solid rgba(255, 107, 157, 0.12);
  box-shadow: 0 12px 34px rgba(167, 139, 250, 0.12);
}

body.admin-email-page .smtp-body {
  padding: 24px clamp(18px, 4vw, 34px);
}

body.admin-email-page .form-group {
  margin-bottom: 18px;
}

body.admin-email-page .form-group input,
body.admin-email-page .form-group select {
  min-height: 44px;
  border-radius: 12px;
}

body.admin-email-page .test-section {
  margin-top: 22px;
  border-radius: 16px;
}

/* ---- 触控和窄屏：每页单独收紧，不破坏桌面信息层级 ---- */
@media (max-width: 768px) {
  body.home-page .main-content,
  body.radio-page .main-content,
  body.new-post-page .main-content,
  body.edit-post-page .main-content,
  body.post-detail-page .main-content,
  body.profile-page .main-content,
  body.edit-profile-page .main-content {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: calc(var(--navbar-height) + 12px);
  }

  body.home-page .quick-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  body.home-page .quick-card {
    min-width: 0;
    width: auto;
  }

  body.home-page .quick-card-text {
    white-space: normal;
    word-break: break-word;
  }

  body.home-page .post-card {
    padding: 15px;
    border-radius: 17px;
  }

  body.home-page .post-card .post-actions {
    flex-wrap: wrap;
  }

  body.home-page .post-card .action-btn {
    min-width: calc(33.333% - 5px);
  }

  body.profile-page #profileCard {
    padding: 30px 14px 18px;
  }

  body.profile-page .profile-stats {
    width: 100%;
  }

  body.new-post-page .post-form-card,
  body.edit-post-page .post-form-card,
  body.post-detail-page .detail-card,
  body.post-detail-page .comment-section {
    padding: 18px 14px;
    border-radius: 18px;
  }

  body.new-post-page .form-actions,
  body.edit-post-page .form-actions {
    bottom: 64px;
    margin-left: -4px;
    margin-right: -4px;
  }

  body.legal-page .agreement-page,
  body.legal-page .privacy-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.legal-page .agreement-card,
  body.legal-page .privacy-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  body.legal-page .agreement-content,
  body.legal-page .privacy-content {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  body.reset-page-shell .reset-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  body.error-page .error-content {
    padding: 32px 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.home-page .post-card,
  body.admin-page .stat-card,
  body.profile-page .profile-menu-item {
    transition: none;
  }
}

/* 参考图还原：顶部用户操作组保持图标、文字和分隔关系 */
.navbar .nav-user {
  gap: 8px;
}

.navbar .nav-notification,
.navbar .nav-logout {
  position: relative;
  width: auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 4px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6c747c;
  box-shadow: none;
  line-height: 1;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.navbar .nav-notification {
  margin-left: 18px;
}

.navbar .nav-logout {
  margin-left: 18px;
}

.navbar .nav-notification::before,
.navbar .nav-logout::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 6px;
  width: 1px;
  height: 32px;
  background: #e9e5eb;
}

.navbar .nav-control-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.navbar .nav-control-icon {
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border: 1px solid #e8e3e9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.navbar .nav-control-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: currentColor;
}

.navbar .nav-notification:hover,
.navbar .nav-logout:hover {
  color: #aa5c87;
  transform: translateY(-1px);
}

.navbar .nav-notification:hover .nav-control-icon,
.navbar .nav-logout:hover .nav-control-icon {
  background: #fffafc;
  border-color: #e7bfd2;
  box-shadow: 0 3px 9px rgba(197, 123, 165, 0.12);
}

.navbar .nav-notification:focus-visible,
.navbar .nav-logout:focus-visible {
  outline: 3px solid rgba(230, 128, 177, 0.22);
  outline-offset: 2px;
}

.navbar .nav-notification:active,
.navbar .nav-logout:active {
  transform: translateY(0);
}

.navbar .nav-notification .notification-icon,
.navbar .nav-logout .nav-action-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar .nav-notification .notification-badge {
  top: -4px;
  right: -4px;
  width: 8px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 0;
}

.navbar .nav-logout {
  margin-left: 14px;
}

/* 每日签到：PC 侧卡还原为说明区 + 独立签到行，移动端积分行继续紧凑 */
#sideCheckin {
  width: 130px;
  min-width: 130px;
  box-sizing: border-box;
  padding: 12px 8px 10px;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(91, 172, 142, 0.2) !important;
  border-radius: 16px;
  background: #effaf6 !important;
  box-shadow: 0 10px 24px rgba(73, 156, 121, 0.14), 0 2px 7px rgba(0, 0, 0, 0.05) !important;
  cursor: default;
}

#sideCheckin:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(73, 156, 121, 0.17), 0 3px 8px rgba(0, 0, 0, 0.06) !important;
}

#sideCheckin .checkin-card-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

#sideCheckin .side-card-icon {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1.65rem;
}

#sideCheckin .checkin-card-copy {
  min-width: 0;
}

#sideCheckin .side-card-title {
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: left;
}

#sideCheckin .checkin-card-subtitle {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.62rem;
  line-height: 1.45;
  white-space: nowrap;
}

#sideCheckin .side-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#sideCheckin .checkin-action-row,
#sideCheckin .checkin-status-row {
  display: flex;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  flex-direction: row;
  align-items: center !important;
  justify-content: space-between;
  gap: 2px !important;
  padding: 6px 4px;
  border: 1px solid rgba(231, 186, 91, 0.35);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.9);
}

#sideCheckin .checkin-streak {
  color: var(--text-primary);
  font-size: 0.7rem;
  white-space: nowrap;
}

#sideCheckin .checkin-streak strong {
  color: #d98208;
  font-size: 1.05rem;
  font-weight: 800;
}

#sideCheckin .btn-checkin {
  min-height: 30px;
  min-width: 42px;
  padding: 5px 6px !important;
  border-radius: 8px;
  font-size: 0.74rem;
}

#sideCheckin .checkin-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 2px 0;
  border-top: 1px solid rgba(91, 172, 142, 0.16);
  color: var(--text-secondary);
  font-size: 0.68rem;
}

#sideCheckin .checkin-next-level {
  color: var(--text-light);
  font-size: 0.68rem;
  line-height: 1.4;
}

#sideCheckin .checkin-done {
  color: #4a9d76;
  font-size: 0.74rem;
  white-space: nowrap;
}

.btn-checkin {
  min-height: 30px;
  padding: 5px 11px !important;
  border-radius: 8px;
  background: #f2c572;
  color: #694d1e;
  border: 1px solid #d9aa52;
  box-shadow: 0 2px 0 #c9983f, 0 5px 12px rgba(184, 133, 42, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-checkin:hover {
  background: #f6d387;
  color: #5e4419;
  border-color: #ce9b3f;
  box-shadow: 0 2px 0 #bd8b36, 0 7px 14px rgba(184, 133, 42, 0.16);
  transform: translateY(-1px);
}

.btn-checkin:active {
  transform: translateY(0);
  background: #eab75b;
  box-shadow: none;
}

.btn-checkin:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

#sideCheckin .checkin-action-row {
  width: 100%;
}

#sideCheckin .checkin-action-row > span {
  white-space: nowrap;
}

.profile-points-info .btn-checkin {
  min-height: 30px;
  padding: 5px 10px !important;
  font-size: 0.74rem;
  margin-left: auto !important;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .navbar .nav-control-label {
    display: none;
  }

  .profile-points-info .btn-checkin {
    min-height: 30px;
    padding: 5px 10px !important;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .navbar .nav-notification,
  .navbar .nav-logout {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0 !important;
    border-radius: 10px;
    margin-left: 0;
  }

  .navbar .nav-control-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .navbar .nav-notification::before,
  .navbar .nav-logout::before,
  .navbar .nav-control-label {
    display: none;
  }
}

/* 右侧栏不压住主内容：宽度不足时隐藏，临界桌面宽度缩成窄栏 */
@media (min-width: 1201px) and (max-width: 1240px) {
  .side-cards-container {
    display: none;
  }
}

@media (min-width: 1241px) and (max-width: 1400px) {
  .side-cards-container {
    padding-right: 10px;
  }

  .side-cards-right {
    align-items: flex-end;
  }

  #sideCheckin {
    width: 130px;
    min-width: 130px;
    padding: 12px 8px 10px;
  }

  #sideCheckin .checkin-card-heading {
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
  }

  #sideCheckin .side-card-icon {
    font-size: 1.65rem;
  }

  #sideCheckin .side-card-title {
    font-size: 0.88rem;
  }

  #sideCheckin .checkin-card-subtitle {
    font-size: 0.62rem;
  }

  #sideCheckin .checkin-action-row,
  #sideCheckin .checkin-status-row {
    min-height: 44px;
    gap: 2px !important;
    padding: 6px 4px;
  }

  #sideCheckin .checkin-streak {
    font-size: 0.7rem;
  }

  #sideCheckin .checkin-streak strong {
    font-size: 1.05rem;
  }

  #sideCheckin .btn-checkin {
    min-width: 42px;
    min-height: 30px;
    padding: 5px 6px !important;
    font-size: 0.74rem;
  }
}

@media (min-width: 1401px) {
  .side-cards-container {
    padding-right: 10px;
  }

  .side-cards-right {
    align-items: flex-end;
  }
}

/* 个人中心反馈入口第三版：和下方操作菜单保持同一组视觉关系 */
body.profile-page #feedbackToggleBtn {
  min-height: 46px;
  gap: 10px !important;
  padding: 12px 20px !important;
  margin-top: 10px !important;
  border: none !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: none !important;
  transition: border-color 0.2s, background 0.2s !important;
}

body.profile-page #feedbackToggleBtn::before {
  display: none;
}

body.profile-page #feedbackToggleBtn > span:first-child {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  margin-left: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.08rem !important;
}

body.profile-page #feedbackToggleBtn > span:nth-child(2) {
  color: var(--text-primary, #4f4658);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

body.profile-page #feedbackToggleBtn #feedbackArrow {
  width: auto;
  height: auto;
  margin-left: auto !important;
  border-radius: 0;
  background: transparent;
  color: var(--text-light, #9a8ba5) !important;
  font-size: 0.98rem;
  font-weight: 400;
}

body.profile-page #feedbackToggleBtn:hover {
  transform: none;
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none !important;
}

body.profile-page #feedbackToggleBtn:hover #feedbackArrow {
  transform: none;
  background: transparent;
}

[data-theme="dark"] body.profile-page #feedbackToggleBtn {
  border-color: rgba(255, 107, 157, 0.12) !important;
  background: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] body.profile-page #feedbackToggleBtn:hover {
  background: rgba(255,255,255,0.07) !important;
}

/* ===== 前台整页优化第二轮：移动优先的布局收口 =====
 * 只处理前台公共页面，保留各页面已有的独立配色与卡片语言。
 * 重点：不产生横向滚动、不被底部导航遮挡、长文本和输入控件不溢出。
 */
html {
  overflow-x: clip;
}

body {
  min-width: 0;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

.main-content,
.main-content > *,
.post-card,
.detail-card,
.comment-section,
.profile-card,
.profile-tabs-section,
.radio-form-card,
.radio-section,
.search-bar,
.filter-bar {
  min-width: 0;
  max-width: 100%;
}

.post-content,
.detail-content,
.detail-title,
.comment-text,
.profile-nickname,
.profile-join-time,
.radio-subtitle,
.song-name,
.song-msg-bubble {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.search-input,
.form-input,
.form-textarea,
.form-select,
.comment-input,
.edit-profile-input,
.edit-profile-textarea,
.edit-profile-select,
input,
textarea,
select {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  body.home-page .main-content,
  body.radio-page .main-content,
  body.profile-page .main-content {
    width: min(calc(100% - 32px), 1120px);
    margin-inline: auto;
  }

  body.post-detail-page .main-content {
    width: min(calc(100% - 32px), 1120px);
    max-width: 1120px;
    margin-inline: auto;
  }

  body.messages-page main.messages-page {
    width: min(100%, 1200px);
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  body {
    overscroll-behavior-x: none;
  }

  .navbar {
    z-index: 1200;
  }

  .navbar .nav-inner {
    min-width: 0;
    width: 100%;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: 8px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }

  .navbar .nav-logo {
    min-width: 0;
    max-width: calc(100vw - 36px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-page .main-content,
  body.radio-page .main-content,
  body.post-detail-page .main-content,
  body.profile-page .main-content {
    width: 100%;
    margin-inline: auto;
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }

  body.home-page .search-bar {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  body.home-page .search-input {
    width: 100%;
    min-height: 42px;
  }

  body.home-page .filter-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body.home-page .filter-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
  }

  body.home-page .filter-tag {
    min-width: 0;
    padding-inline: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-page .filter-sort {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 0;
    padding-top: 10px;
  }

  body.home-page .post-card {
    width: 100%;
    padding: 14px;
    border-radius: 17px;
  }

  body.home-page .post-card .post-user,
  body.home-page .post-card .post-actions {
    min-width: 0;
  }

  body.home-page .post-card .post-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.home-page .post-card .action-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.radio-page .radio-form-card,
  body.post-detail-page .detail-card,
  body.post-detail-page .comment-section {
    width: 100%;
    overflow: hidden;
  }

  body.radio-page .radio-form-card {
    padding: 16px;
  }

  body.radio-page .radio-form,
  body.radio-page .form-group,
  body.radio-page .form-footer {
    min-width: 0;
  }

  body.radio-page .slot-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.radio-page .slot-card-item {
    min-width: 0;
    min-height: 68px;
    padding: 11px 9px;
  }

  body.radio-page .slot-card-name,
  body.radio-page .slot-card-time,
  body.radio-page .slot-card-remaining {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.radio-page .form-actions,
  body.radio-page .btn-publish {
    width: 100%;
  }

  body.radio-page .btn-publish {
    min-height: 46px;
  }

  body.post-detail-page .detail-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.post-detail-page .detail-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  body.post-detail-page .comment-input-wrapper,
  body.post-detail-page .comment-input-area,
  body.post-detail-page .comment-input-footer,
  body.post-detail-page .comment-footer-left,
  body.post-detail-page .comment-tools {
    min-width: 0;
    max-width: 100%;
  }

  body.post-detail-page .comment-input-footer {
    align-items: stretch;
  }

  body.post-detail-page .comment-tools {
    flex-wrap: wrap;
  }

  body.post-detail-page .btn-comment-submit {
    width: 100%;
    min-height: 44px;
  }

  body.profile-page #profileCard {
    width: 100%;
    padding: 24px 14px 18px;
  }

  body.profile-page .profile-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: 100%;
  }

  body.profile-page .profile-stat {
    min-width: 0;
    padding-inline: 2px;
  }

  body.profile-page .profile-stat-number,
  body.profile-page .profile-stat-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.profile-page .profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 6px;
  }

  body.profile-page .profile-tab {
    min-width: 0;
    min-height: 42px;
    padding-inline: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.profile-page #feedbackToggleBtn,
  body.profile-page #feedbackInlineForm,
  body.profile-page #feedbackInlineForm input,
  body.profile-page #feedbackInlineForm select,
  body.profile-page #feedbackInlineForm textarea,
  body.profile-page #fbSubmitBtn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.profile-page .wechat-bind-card,
  body.profile-page .notify-settings-card {
    width: 100%;
    padding: 18px 14px;
  }

  .bottom-tab-bar {
    z-index: 1300;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: max(8px, env(safe-area-inset-left, 0px));
  }

  .bottom-tab-bar .tab-item {
    min-width: 0;
    flex: 1 1 0;
    touch-action: manipulation;
  }
}

@media (max-width: 420px) {
  body.home-page .filter-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.radio-page .slot-cards-grid {
    grid-template-columns: 1fr;
  }

  body.profile-page .profile-stats {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  body.profile-page .profile-stat-label {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-enabled,
  .page-transition-enabled * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- 帖子详情页：移动端居中阅读与主题对比度收口 ---- */
body.post-detail-page .detail-card,
body.post-detail-page .comment-section,
body.post-detail-page .comment-input-wrapper,
body.post-detail-page .comment-input-area,
body.post-detail-page .comment-input-footer,
body.post-detail-page .detail-author,
body.post-detail-page .detail-actions,
body.post-detail-page .comment-item,
body.post-detail-page .comment-reply-item,
body.post-detail-page .reply-target,
body.post-detail-page .emoji-picker {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

body.post-detail-page .detail-title,
body.post-detail-page .detail-content,
body.post-detail-page .comment-text,
body.post-detail-page .reply-content,
body.post-detail-page .mentioned-user,
body.post-detail-page .reply-mention,
body.post-detail-page .mention-item,
body.post-detail-page .mention-item > div {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.post-detail-page .detail-content a {
  color: var(--secondary);
  overflow-wrap: anywhere;
}

body.post-detail-page .mentioned-user,
body.post-detail-page .reply-mention {
  color: var(--primary);
  font-weight: 700;
}

/* 详情页统一接管 @ 候选项的视觉层，避免脚本和主题互相覆盖。 */
body.post-detail-page .mention-popup {
  box-sizing: border-box;
  width: min(300px, calc(100vw - 20px)) !important;
  max-width: calc(100vw - 20px) !important;
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

/* 评论浮层独立于评论卡片的裁剪层，避免表情/@候选列表被上方内容盖住。 */
body.post-detail-page .comment-section,
body.post-detail-page .comment-input-wrapper,
body.post-detail-page .comment-input-area {
  overflow: visible;
}

/* 详情页只让文档本身承担纵向滚动，避免鼠标落在帖子内容时被局部容器截断。 */
body.post-detail-page {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

body.post-detail-page .main-content {
  overflow: visible;
}

body.post-detail-page .emoji-picker {
  z-index: 12000 !important;
  width: min(360px, calc(100vw - 32px));
  max-height: min(320px, 42vh);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border-light));
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 18px 46px rgba(42, 35, 62, 0.2);
}

body.post-detail-page .emoji-grid {
  grid-template-columns: repeat(8, minmax(30px, 1fr));
  gap: 4px;
}

body.post-detail-page .emoji-item {
  width: auto;
  min-height: 36px;
  border-radius: 10px;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

body.post-detail-page .emoji-item:hover,
body.post-detail-page .emoji-item:focus-visible {
  background: color-mix(in srgb, var(--primary) 12%, transparent) !important;
  outline: none;
  transform: translateY(-1px) scale(1.08);
}

body.post-detail-page .mention-popup {
  z-index: 12001 !important;
  width: min(320px, calc(100vw - 24px)) !important;
  max-height: min(320px, 42vh);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border-light)) !important;
  border-radius: 16px;
  background: var(--bg-card) !important;
  box-shadow: 0 18px 46px rgba(42, 35, 62, 0.2) !important;
}

body.post-detail-page .mention-item {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 11px;
  background: transparent !important;
  color: var(--text-primary) !important;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

body.post-detail-page .mention-item:hover,
body.post-detail-page .mention-item:focus-visible,
body.post-detail-page .mention-item.is-selected {
  background: color-mix(in srgb, var(--primary) 10%, transparent) !important;
  outline: none;
  transform: translateX(2px);
}

body.post-detail-page .mention-item img,
body.post-detail-page .mention-avatar {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px;
  border-radius: 12px !important;
  object-fit: cover;
}

body.post-detail-page .mention-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

body.post-detail-page .mention-name,
body.post-detail-page .mention-username {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.post-detail-page .mention-name {
  color: var(--text-primary) !important;
  font-size: 0.88rem;
  font-weight: 700;
}

body.post-detail-page .mention-username {
  color: var(--text-secondary) !important;
  font-size: 0.75rem;
}

body.post-detail-page .mention-role {
  margin-left: 4px;
  color: var(--primary);
  font-size: 0.78rem;
}

body.post-detail-page .mention-item {
  box-sizing: border-box;
  max-width: 100%;
  border-bottom-color: var(--border-light) !important;
  color: var(--text-primary) !important;
}

body.post-detail-page .mention-item:hover {
  background: var(--bg-secondary) !important;
}

body.post-detail-page .mention-item > div {
  min-width: 0;
}

body.post-detail-page .mention-item > div > div:first-child {
  color: var(--text-primary) !important;
}

body.post-detail-page .mention-item > div > div:last-child {
  color: var(--text-secondary) !important;
}

body.post-detail-page .mention-item img {
  max-width: 44px;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  body.post-detail-page .detail-back {
    display: flex;
    justify-content: center;
    margin: 0 auto 16px;
  }

  body.post-detail-page .back-link {
    min-height: 36px;
    padding: 7px 14px;
    border-width: 1px;
    box-shadow: 0 3px 12px rgba(167, 139, 250, 0.1);
  }

  body.post-detail-page .detail-card {
    margin-inline: auto;
    padding: 20px 18px;
    text-align: left;
  }

  body.post-detail-page .detail-title {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.12rem, 4.8vw, 1.3rem);
    text-align: left;
  }

  body.post-detail-page .detail-author {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: left;
  }

  body.post-detail-page .detail-author .author-info {
    flex: 1 1 140px;
    max-width: 100%;
  }

  body.post-detail-page .detail-author > .btn-ghost {
    min-width: 0;
    max-width: 100%;
    margin-left: 0 !important;
  }

  body.post-detail-page .detail-content {
    margin-inline: auto;
    text-align: left;
  }

  body.post-detail-page .detail-images,
  body.post-detail-page .detail-actions {
    width: 100%;
    margin-inline: auto;
  }

  body.post-detail-page .detail-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.post-detail-page .detail-actions .action-btn {
    min-width: 44px;
    justify-content: center;
  }

  body.post-detail-page .likes-list,
  body.post-detail-page .poll-section {
    text-align: left;
  }

  body.post-detail-page .comment-section {
    padding: 20px 16px;
  }

  body.post-detail-page .comment-section-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.post-detail-page .comment-title {
    min-width: 0;
    flex: 1 1 130px;
  }

  body.post-detail-page .back-home-btn {
    flex: 0 0 auto;
    padding-inline: 12px;
  }

  body.post-detail-page .comment-input-wrapper {
    padding: 12px;
  }

  body.post-detail-page .comment-input {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: anywhere;
  }

  body.post-detail-page .comment-input-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
  }

  body.post-detail-page .comment-tools {
    grid-column: auto;
    min-width: 0;
    flex-wrap: wrap;
  }

  body.post-detail-page .comment-footer-left {
    grid-column: 1;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  body.post-detail-page .anonymous-toggle {
    grid-column: auto;
    justify-self: auto;
    min-width: 0;
  }

  body.post-detail-page .btn-comment-submit {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto !important;
    min-width: 64px;
    max-width: 100%;
  }

  body.post-detail-page .emoji-picker {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(42vh, 320px);
    z-index: 12000 !important;
    max-width: 100%;
    padding: 10px;
  }

  body.post-detail-page .emoji-grid {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
  }

  body.post-detail-page .emoji-item {
    width: auto;
    min-width: 0;
  }

  body.post-detail-page .mention-popup {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(46vh, 360px);
  }
}

/* 暗色详情页：覆盖遗留的黑/白固定色和内联 @ 候选项样式。 */
[data-theme="dark"] body.post-detail-page .back-link,
[data-theme="dark"] body.post-detail-page .back-home-btn {
  color: var(--secondary-light);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
}

[data-theme="dark"] body.post-detail-page .back-link:hover,
[data-theme="dark"] body.post-detail-page .back-home-btn:hover {
  color: var(--primary-light);
  background: rgba(255, 107, 157, 0.14);
  border-color: var(--primary-light);
}

[data-theme="dark"] body.post-detail-page .detail-card,
[data-theme="dark"] body.post-detail-page .comment-section {
  border-color: var(--border-light);
}

[data-theme="dark"] body.post-detail-page .detail-title,
[data-theme="dark"] body.post-detail-page .author-name,
[data-theme="dark"] body.post-detail-page .comment-author {
  color: var(--text-primary);
}

[data-theme="dark"] body.post-detail-page .detail-content,
[data-theme="dark"] body.post-detail-page .comment-text,
[data-theme="dark"] body.post-detail-page .reply-content {
  color: var(--text-primary);
}

[data-theme="dark"] body.post-detail-page .detail-content a {
  color: var(--secondary-light);
}

[data-theme="dark"] body.post-detail-page .detail-author,
[data-theme="dark"] body.post-detail-page .detail-actions,
[data-theme="dark"] body.post-detail-page .comment-input-footer,
[data-theme="dark"] body.post-detail-page .comment-item,
[data-theme="dark"] body.post-detail-page .comment-reply-item {
  border-color: var(--border-light);
}

[data-theme="dark"] body.post-detail-page .detail-actions .action-btn,
[data-theme="dark"] body.post-detail-page .sort-btn,
[data-theme="dark"] body.post-detail-page .tool-btn,
[data-theme="dark"] body.post-detail-page .comment-like-btn,
[data-theme="dark"] body.post-detail-page .comment-action-btn,
[data-theme="dark"] body.post-detail-page .toggle-replies-btn,
[data-theme="dark"] body.post-detail-page .comment-delete-btn {
  color: var(--text-secondary);
}

[data-theme="dark"] body.post-detail-page .comment-floor,
[data-theme="dark"] body.post-detail-page .comment-time {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-light);
}

[data-theme="dark"] body.post-detail-page .like-user {
  color: var(--secondary-light);
}

[data-theme="dark"] body.post-detail-page .sort-btn.active {
  color: #fff;
}

[data-theme="dark"] body.post-detail-page .comment-input-wrapper {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] body.post-detail-page .comment-input-wrapper:focus-within {
  background: var(--bg-card);
  border-color: var(--primary);
}

[data-theme="dark"] body.post-detail-page .comment-input {
  color: var(--text-primary);
}

[data-theme="dark"] body.post-detail-page .comment-input::placeholder {
  color: var(--text-light);
}

[data-theme="dark"] body.post-detail-page .tool-btn {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] body.post-detail-page .tool-btn:hover {
  background: rgba(255, 107, 157, 0.16);
  border-color: var(--primary-light);
}

[data-theme="dark"] body.post-detail-page .btn-comment-submit {
  color: #fff;
}

[data-theme="dark"] body.post-detail-page .reply-target {
  color: var(--text-secondary);
  background: rgba(255, 107, 157, 0.1);
  border-color: rgba(255, 143, 181, 0.28);
}

[data-theme="dark"] body.post-detail-page .reply-cancel {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] body.post-detail-page .emoji-picker,
[data-theme="dark"] body.post-detail-page .mention-popup {
  color: var(--text-primary);
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] body.post-detail-page .emoji-item {
  color: var(--text-primary);
}

[data-theme="dark"] body.post-detail-page .emoji-item:hover,
[data-theme="dark"] body.post-detail-page .mention-item:hover {
  background: rgba(255, 107, 157, 0.16) !important;
}

[data-theme="dark"] body.post-detail-page .mention-item {
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
  border-bottom-color: var(--border-light) !important;
}

[data-theme="dark"] body.post-detail-page .mention-item > div > div:first-child {
  color: var(--text-primary) !important;
}

[data-theme="dark"] body.post-detail-page .mention-item > div > div:last-child {
  color: var(--text-secondary) !important;
}

/* 首屏主题就绪前保持整页隐藏，避免慢网时先露出默认主题。 */
html.app-booting body {
  visibility: hidden !important;
}
