/**
 * 移动端高级感深色主题
 * 参考 Geniyan 风格设计
 */

/* ==================== 电脑端默认隐藏移动端元素 ==================== */
.mobile-only {
  display: none !important;
}

.bottom-nav {
  display: none !important;
}

/* ==================== 移动端深色主题 ==================== */
@media (max-width: 768px) {
  
  /* 移动端显示 mobile-only 元素 */
  .mobile-only {
    display: block !important;
  }
  
  .bottom-nav {
    display: flex !important;
  }

  /* CSS变量 - 深色主题 */
  :root {
    --dark-bg: #0a0a1a;
    --dark-bg-secondary: #12122a;
    --dark-card: rgba(30, 30, 60, 0.6);
    --dark-card-border: rgba(100, 100, 180, 0.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-warm: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glow-primary: 0 0 30px rgba(102, 126, 234, 0.4);
    --glow-secondary: 0 0 20px rgba(79, 172, 254, 0.3);
  }

  /* 全局背景 */
  body {
    background: var(--dark-bg) !important;
    background-image: 
      radial-gradient(ellipse at top, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at bottom right, rgba(118, 75, 162, 0.1) 0%, transparent 50%) !important;
    min-height: 100vh;
    padding-bottom: 80px;
  }

  /* ==================== 导航栏 ==================== */
  .navbar {
    background: rgba(10, 10, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .navbar-container {
    padding: 0 1.25rem;
    height: 60px;
  }

  .logo {
    color: var(--text-white) !important;
    font-size: 1.2rem;
  }

  .logo-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
  }

  .logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ==================== Hero区域 ==================== */
  .hero {
    margin-top: 60px !important;
    min-height: calc(100vh - 140px) !important;
    padding: 2rem 1.25rem !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    padding: 0 !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-bottom: 1rem !important;
    color: var(--text-white) !important;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    color: var(--text-gray) !important;
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
  }

  /* CTA按钮 - 渐变风格 */
  .cta-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem 2.5rem !important;
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 50px !important;
    color: var(--text-white) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: var(--glow-primary) !important;
    transition: all 0.3s ease !important;
  }

  .cta-button:active {
    transform: scale(0.98) !important;
  }

  /* ==================== Section通用样式 ==================== */
  .features-section,
  .modules-section,
  .resources-section,
  .method-section {
    padding: 2rem 1.25rem !important;
    background: transparent !important;
  }

  .section-header {
    margin-bottom: 1.5rem !important;
    text-align: center;
  }

  .section-title {
    font-size: 1.4rem !important;
    color: var(--text-white) !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700;
  }

  .section-subtitle {
    font-size: 0.9rem !important;
    color: var(--text-gray) !important;
  }

  /* ==================== 模块网格 ==================== */
  .modules-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* 模块卡片 - 毛玻璃效果 */
  .module-card {
    background: var(--dark-card) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 20px !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .module-card:active {
    transform: scale(0.97) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
  }

  .module-icon-wrapper {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 0.75rem !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
  }

  /* 不同模块不同渐变背景 */
  .module-card:nth-child(1) .module-icon-wrapper { 
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4)) !important; 
  }
  .module-card:nth-child(2) .module-icon-wrapper { 
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.4), rgba(0, 242, 254, 0.4)) !important; 
  }
  .module-card:nth-child(3) .module-icon-wrapper { 
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.4), rgba(245, 87, 108, 0.4)) !important; 
  }
  .module-card:nth-child(4) .module-icon-wrapper { 
    background: linear-gradient(135deg, rgba(245, 175, 25, 0.4), rgba(241, 39, 17, 0.4)) !important; 
  }
  .module-card:nth-child(5) .module-icon-wrapper { 
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.4), rgba(56, 239, 125, 0.4)) !important; 
  }
  .module-card:nth-child(6) .module-icon-wrapper { 
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.4), rgba(253, 29, 29, 0.4)) !important; 
  }

  .module-icon-wrapper i {
    color: var(--text-white) !important;
    font-size: 1.4rem !important;
  }

  .module-content h3 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-white) !important;
    margin-bottom: 0 !important;
  }

  .module-content p {
    display: none !important; /* 移动端隐藏描述 */
  }

  /* ==================== 特色区域 ==================== */
  .feature-list-container {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 20px !important;
    padding: 1rem !important;
    max-height: none !important;
    height: auto !important;
  }

  .feature-item {
    background: var(--dark-bg-secondary) !important;
    border-radius: 12px !important;
    padding: 0.875rem 1rem !important;
    margin-bottom: 0.5rem !important;
    color: var(--text-white) !important;
    font-size: 0.9rem !important;
    border: none !important;
  }

  .feature-item:last-child {
    margin-bottom: 0 !important;
  }

  .feature-icon {
    color: #667eea !important;
  }

  /* ==================== 学习方法区域 ==================== */
  .method-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
  }

  .method-card {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 16px !important;
    padding: 1.25rem 0.75rem !important;
    text-align: center !important;
  }

  .method-card .card-icon,
  .method-card .method-number {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 0.5rem !important;
    background: var(--gradient-primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--text-white) !important;
  }

  .method-card .method-title,
  .method-card h3 {
    color: var(--text-white) !important;
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
  }

  .method-card .method-description,
  .method-card p {
    display: none !important;
  }

  /* ==================== CTA区域 ==================== */
  .cta-section {
    padding: 2.5rem 1.5rem !important;
    background: var(--gradient-primary) !important;
    margin: 1.5rem 1.25rem !important;
    border-radius: 24px !important;
    text-align: center !important;
  }

  .cta-section .cta-title,
  .cta-section h2 {
    color: var(--text-white) !important;
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
  }

  .cta-section .cta-description,
  .cta-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }

  .cta-section .cta-button {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
  }

  /* ==================== 页脚 ==================== */
  .footer {
    background: var(--dark-bg-secondary) !important;
    padding: 2rem 1.25rem 5rem !important;
    text-align: center !important;
  }

  .footer-content {
    color: var(--text-gray) !important;
    font-size: 0.85rem !important;
  }

  .footer-links {
    margin-bottom: 1rem !important;
  }

  .footer-links a,
  .footer-link {
    color: var(--text-gray) !important;
    text-decoration: none !important;
    margin: 0 0.5rem !important;
    font-size: 0.8rem !important;
  }

  .footer-text,
  .footer p {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
  }

  /* ==================== 浮动按钮 ==================== */
  .float-buttons {
    right: 1rem !important;
    bottom: 90px !important;
  }

  .float-button {
    width: 46px !important;
    height: 46px !important;
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(10px) !important;
  }

  .float-button i {
    color: var(--text-white) !important;
    font-size: 1.1rem !important;
  }

  /* ==================== 底部导航栏 ==================== */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
  }

  .bottom-nav-item.active {
    background: rgba(102, 126, 234, 0.2);
  }

  .bottom-nav-icon {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    color: #667eea;
  }

  .bottom-nav-label {
    font-size: 0.65rem;
    color: var(--text-muted);
  }

  .bottom-nav-item.active .bottom-nav-label {
    color: #667eea;
  }

  /* ==================== 隐藏/显示控制 ==================== */
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  /* 隐藏顶部导航链接 */
  .nav-links {
    display: none !important;
  }

  /* ==================== 滚动条美化 ==================== */
  ::-webkit-scrollbar {
    width: 4px;
  }

  ::-webkit-scrollbar-track {
    background: var(--dark-bg);
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 2px;
  }

  /* ==================== 语言切换按钮调整 ==================== */
  .lang-switcher {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-white) !important;
    bottom: 80px !important;
  }

  /* ==================== Topics 主题选择页面 ==================== */
  .topics-main {
    padding: 1.5rem 1.25rem !important;
    padding-bottom: 2rem !important;
  }

  .topics-header {
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }

  .topics-header h1 {
    font-size: 1.5rem !important;
    color: var(--text-white) !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
  }

  .topics-header p {
    font-size: 0.9rem !important;
    color: var(--text-gray) !important;
  }

  /* 主题网格 - 2列布局 */
  .topics-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* 主题卡片 - 毛玻璃效果 */
  .topic-card {
    background: var(--dark-card) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 20px !important;
    padding: 1.25rem 1rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
  }

  .topic-card:active {
    transform: scale(0.97) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    background: rgba(102, 126, 234, 0.15) !important;
  }

  .topic-icon {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 0.75rem !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3)) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
  }

  /* 不同卡片不同渐变色 */
  .topic-card:nth-child(3n+1) .topic-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4)) !important;
  }
  .topic-card:nth-child(3n+2) .topic-icon {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.4), rgba(0, 242, 254, 0.4)) !important;
  }
  .topic-card:nth-child(3n) .topic-icon {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.4), rgba(245, 87, 108, 0.4)) !important;
  }

  .topic-card h3 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-white) !important;
    margin-bottom: 0.25rem !important;
  }

  .topic-card p {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
  }

  /* 加载提示样式 */
  .loading-message {
    text-align: center !important;
    padding: 4rem 1rem !important;
  }

  .loading-message p {
    color: var(--text-gray) !important;
  }

  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 4px solid #667eea !important;
  }

  /* 错误提示样式 */
  .error-message {
    text-align: center !important;
    padding: 4rem 1rem !important;
  }

  .error-message p {
    color: var(--text-gray) !important;
    margin-bottom: 1rem !important;
  }

  .error-message button {
    background: var(--gradient-primary) !important;
    color: var(--text-white) !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
  }

  /* ==================== Player 学习播放器页面 ==================== */
  .player-container {
    padding: 1rem 1rem 2rem !important;
    max-width: 100% !important;
  }

  /* 顶栏 */
  .top-bar {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 16px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .dropdown-row {
    justify-content: center !important;
  }

  .topic-label {
    color: var(--text-gray) !important;
    font-size: 0.85rem !important;
  }

  .topic-name {
    color: var(--text-white) !important;
    font-weight: 600 !important;
  }

  #totalCount {
    color: var(--text-muted) !important;
  }

  #gearBtn {
    color: var(--text-gray) !important;
  }

  #rangeInputs {
    color: var(--text-gray) !important;
  }

  #rangeInputs input {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-white) !important;
  }

  #rangeInputs input:focus {
    border-color: #667eea !important;
  }

  /* 预览区 */
  #preview {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 20px !important;
    margin-bottom: 100px !important;
    min-height: 50vh !important;
  }

  #preview-content {
    color: var(--text-white) !important;
  }

  #preview-content p {
    color: var(--text-gray) !important;
  }

  #preview-content h2 {
    color: var(--text-white) !important;
  }

  /* 字幕区域 */
  .text-area-fixed {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px) !important;
  }

  .text-en, .adaptive-text-en {
    color: var(--text-white) !important;
  }

  .text-cn {
    color: var(--text-gray) !important;
  }

  /* 控制按钮区 - 只修改颜色，保持原有布局 */
  .controls {
    background: rgba(20, 20, 40, 0.9) !important;
    border: 1px solid rgba(60, 60, 100, 0.3) !important;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2) !important;
    /* 底部位置需要为底部导航栏留出空间 */
    bottom: 75px !important;
  }

  .controls button {
    background: rgba(40, 40, 70, 0.8) !important;
    border: 1px solid rgba(80, 80, 120, 0.3) !important;
  }

  .controls button::before {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .controls button:active {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
  }

  .controls button.active {
    background: rgba(102, 126, 234, 0.4) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
  }

  /* 语言切换按钮文字调暗 */
  #langToggleBtn {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  /* ==================== 字幕文字颜色修复 ==================== */
  /* 调暗字幕颜色，不要太亮 */
  .word {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .text-en, .adaptive-text-en {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .text-cn, .adaptive-text-zh {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  /* ==================== 隐藏弱网状态图标 ==================== */
  #weakNetworkIndicator {
    display: none !important;
  }

  /* ==================== 隐藏右下角语言切换按钮 ==================== */
  .lang-switcher {
    display: none !important;
  }

  /* ==================== 顶部头像按钮 ==================== */
  .profile-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.2s ease;
    overflow: hidden;
    padding: 0;
  }

  .profile-btn:active {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
  }
  
  .profile-btn.has-avatar {
    background: transparent;
  }
  
  .nav-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .nav-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50%;
  }

  /* ==================== 个人中心页面导航栏 ==================== */
  .profile-page .navbar,
  body:has(.profile-page) .navbar {
    background: rgba(10, 10, 26, 0.95) !important;
    backdrop-filter: blur(20px);
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 1rem;
  }

  .back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
  }

  .nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
  }

  .nav-placeholder {
    width: 40px;
  }

  /* 更多面板 - 调暗颜色 */
  #morePanel {
    background: rgba(20, 20, 40, 0.95) !important;
    border: 1px solid rgba(60, 60, 100, 0.3) !important;
    border-radius: 12px !important;
    padding: 0.75rem !important;
  }

  #morePanel button {
    background: rgba(40, 40, 70, 0.8) !important;
    border: 1px solid rgba(80, 80, 120, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 8px !important;
  }

  #morePanel button::before {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .repeatBox, .speedBox {
    background: rgba(40, 40, 70, 0.8) !important;
    border: 1px solid rgba(80, 80, 120, 0.3) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .repeatBox input, .speedBox select {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: none !important;
  }

  /* ==================== Level System 关卡系统 ==================== */
  /* 关卡选择界面 */
  .level-selector {
    background: transparent !important;
  }

  .level-header h2 {
    color: var(--text-white) !important;
  }

  .level-subtitle {
    color: var(--text-gray) !important;
  }

  /* 关卡卡片 - 锁定状态 */
  .level-card.locked {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-muted) !important;
  }

  .level-card.locked .level-range {
    color: var(--text-muted) !important;
  }

  /* 自由模式卡片 */
  .free-play-card {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-white) !important;
  }

  .free-play-card:active {
    border-color: rgba(102, 126, 234, 0.5) !important;
  }

  /* 重置按钮 */
  .reset-progress-btn {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-gray) !important;
  }

  /* ==================== Flashcard 闪卡挑战页面 ==================== */
  /* 主题选择界面 */
  #themeSelectionScreen {
    background: var(--dark-bg) !important;
    background-image: 
      radial-gradient(ellipse at top, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at bottom right, rgba(118, 75, 162, 0.1) 0%, transparent 50%) !important;
    min-height: 100vh !important;
    padding: 1.5rem !important;
  }

  .theme-selection-container {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 24px !important;
    padding: 2rem 1.5rem !important;
  }

  .theme-selection-header h1 {
    color: var(--text-white) !important;
    font-size: 1.5rem !important;
  }

  .theme-selection-header p {
    color: var(--text-gray) !important;
  }

  /* 主题网格 */
  .theme-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .theme-card {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 16px !important;
    padding: 1.25rem 1rem !important;
  }

  .theme-card:active {
    border-color: rgba(102, 126, 234, 0.5) !important;
    background: rgba(102, 126, 234, 0.15) !important;
  }

  .theme-card-title {
    color: var(--text-white) !important;
  }

  .theme-card-count {
    color: var(--text-muted) !important;
  }

  /* 加载界面 */
  .loading-screen {
    background: rgba(10, 10, 26, 0.95) !important;
  }

  .loading-content {
    color: var(--text-white) !important;
  }

  .loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1) !important;
    border-top-color: #667eea !important;
  }

  /* 返回按钮 */
  .back-button {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-white) !important;
  }

  /* 主容器 */
  .main-container {
    background: var(--dark-bg) !important;
    background-image: 
      radial-gradient(ellipse at top, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at bottom right, rgba(118, 75, 162, 0.1) 0%, transparent 50%) !important;
    padding: 1rem !important;
    padding-bottom: 5rem !important;
  }

  /* 顶部信息 */
  .top-info {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 16px !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .theme-title {
    color: var(--text-white) !important;
    font-size: 1.1rem !important;
  }

  .progress-info {
    color: var(--text-gray) !important;
  }

  .progress-info input {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-white) !important;
  }

  .progress-info button {
    background: var(--gradient-primary) !important;
    border: none !important;
  }

  /* 图片卡片 */
  .image-card {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 20px !important;
    min-height: 45vh !important;
  }

  .empty-state {
    color: var(--text-gray) !important;
  }

  .empty-state h3 {
    color: var(--text-white) !important;
  }

  .subtitle-text {
    color: var(--text-white) !important;
  }

  /* 进度条 */
  .progress-bar {
    background: var(--dark-bg-secondary) !important;
    border-radius: 10px !important;
  }

  .progress-fill {
    background: var(--gradient-primary) !important;
  }

  /* 控制按钮 */
  .control-buttons {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 16px !important;
    padding: 0.75rem !important;
    position: fixed !important;
    bottom: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    display: flex !important;
    justify-content: space-around !important;
    z-index: 100 !important;
  }

  .control-btn {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-white) !important;
    border-radius: 12px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .control-btn:active,
  .control-btn.active {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: #667eea !important;
  }

  /* 设置栏 */
  .settings-bar {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-card-border) !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .setting-item {
    color: var(--text-white) !important;
  }

  .setting-dropdown {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-white) !important;
  }

  .setting-toggle {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-card-border) !important;
    color: var(--text-white) !important;
  }

  .setting-toggle.active {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: #667eea !important;
  }

  .setting-checkbox span {
    color: var(--text-gray) !important;
  }

}
