/* 浅色模式样式 - 高对比度版本 */
body.light-mode {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Hero区域 */
body.light-mode .hero-section h1 { color: #0f172a !important; }
body.light-mode .hero-section p { color: #334155 !important; }
body.light-mode .hero-badge { 
  color: #4f46e5 !important; 
  background: rgba(79, 70, 229, 0.12) !important; 
  border-color: rgba(79, 70, 229, 0.4) !important; 
}

/* 区块标题 */
body.light-mode .section-title h2,
body.light-mode .section-title,
body.light-mode h2.section-title { color: #0f172a !important; }
body.light-mode .section-title p { color: #475569 !important; }

/* 统计数据 */
body.light-mode .stat-item h3 { color: #4338ca !important; font-weight: 700 !important; }
body.light-mode .stat-item p { color: #334155 !important; }
body.light-mode .stat-item { 
  background: rgba(255, 255, 255, 0.98) !important; 
  border-color: rgba(79, 70, 229, 0.2) !important; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* 特性卡片 */
body.light-mode .feature-card h3 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .feature-card p { color: #334155 !important; }
body.light-mode .feature-card { background: rgba(255, 255, 255, 0.98) !important; border: 1px solid #e2e8f0 !important; }

/* 推荐/好评卡片 */
body.light-mode .testimonial-card p { color: #1e293b !important; }
body.light-mode .testimonial-card { background: rgba(255, 255, 255, 0.98) !important; border: 1px solid #e2e8f0 !important; }
body.light-mode .testimonial-info h4 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .testimonial-info p { color: #475569 !important; }

body.light-mode .loading { color: #334155 !important; }

/* 服务器卡片 */
body.light-mode .server-card h3 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .server-card p { color: #334155 !important; }
body.light-mode .server-meta span { color: #334155 !important; }
body.light-mode .server-players { color: #1e293b !important; font-weight: 600 !important; }
body.light-mode .online { color: #059669 !important; font-weight: 600 !important; }
body.light-mode .offline { color: #dc2626 !important; font-weight: 600 !important; }
body.light-mode .server-card { 
  background: rgba(255, 255, 255, 0.98) !important; 
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

/* 资源卡片 */
body.light-mode .resource-card h3 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .resource-card p { color: #334155 !important; }
body.light-mode .resource-card { 
  background: rgba(255, 255, 255, 0.98) !important; 
  border: 1px solid #e2e8f0 !important; 
}
body.light-mode .resource-type { color: #4338ca !important; font-weight: 600 !important; }

/* 导航栏 */
body.light-mode .nav-link,
body.light-mode .nav-item { color: #1e293b !important; font-weight: 500 !important; }
body.light-mode .nav-link:hover,
body.light-mode .nav-item:hover { color: #4338ca !important; }
body.light-mode .nav-item-active,
body.light-mode .nav-link.active { color: #4338ca !important; font-weight: 600 !important; }
body.light-mode .nav-item-accent { color: #4338ca !important; }

/* 下拉菜单 */
body.light-mode .dropdown-menu a { color: #1e293b !important; font-weight: 500 !important; }
body.light-mode .dropdown-menu a:hover { 
  background: rgba(79, 70, 229, 0.12) !important; 
  color: #4338ca !important; 
}
body.light-mode .dropdown-menu { 
  background: #ffffff !important; 
  border: 1px solid #cbd5e1 !important; 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .dropdown-submenu {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .dropdown-submenu a {
  color: #1e293b !important;
}
body.light-mode .dropdown-submenu a:hover {
  background: rgba(79, 70, 229, 0.12) !important;
  color: #4338ca !important;
}

/* 头部 */
body.light-mode .header { 
  background: rgba(255, 255, 255, 0.98) !important; 
  border-bottom-color: #cbd5e1 !important; 
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .header .settings-menu > a,
body.light-mode .header .settings-btn {
  color: #1e293b !important;
}

/* 用户菜单 */
body.light-mode .user-dropdown-toggle { color: #4338ca !important; font-weight: 600 !important; }
body.light-mode .user-menu .user-menu-btn {
  color: #1e293b !important;
}
body.light-mode .user-menu .username {
  color: #1e293b !important;
  font-weight: 600 !important;
}
body.light-mode .user-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .user-card-info h4 {
  color: #0f172a !important;
}
body.light-mode .user-card-info p {
  color: #475569 !important;
}
body.light-mode .user-menu-item {
  color: #1e293b !important;
  font-weight: 500 !important;
}
body.light-mode .user-menu-item:hover {
  background: rgba(79, 70, 229, 0.12) !important;
  color: #4338ca !important;
}

/* 页脚 */
body.light-mode .footer { 
  background: #f8fafc !important; 
  border-top-color: #cbd5e1 !important; 
}
body.light-mode .footer-brand h3 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .footer-brand p { color: #334155 !important; }
body.light-mode .footer-links h4 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .footer-links a { color: #334155 !important; font-weight: 500 !important; }
body.light-mode .footer-links a:hover { color: #4338ca !important; }
body.light-mode .footer-bottom { color: #475569 !important; }
body.light-mode .footer-section h3 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .footer-section p { color: #334155 !important; }
body.light-mode .footer-content p,
body.light-mode .footer p {
  color: #334155 !important;
}

/* 玻璃态卡片 */
body.light-mode .glass-card h3 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .glass-card p { color: #1e293b !important; }
body.light-mode .glass-card { 
  background: rgba(255, 255, 255, 0.98) !important; 
  border: 1px solid #e2e8f0 !important; 
}

/* 内容区域 */
body.light-mode .content h1,
body.light-mode .content h2,
body.light-mode .content h3,
body.light-mode .content h4 { 
  color: #0f172a !important; 
  text-shadow: none !important; 
  font-weight: 700 !important;
}
body.light-mode .content p { 
  color: #1e293b !important; 
  text-shadow: none !important; 
}
body.light-mode .content ul li,
body.light-mode .content ol li { 
  color: #1e293b !important; 
  text-shadow: none !important; 
}
body.light-mode .content { 
  background: rgba(255, 255, 255, 0.98) !important; 
  border: 1px solid #e2e8f0 !important;
}

/* 页面头部 */
body.light-mode .page-header h2,
body.light-mode .page-header h1 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .page-header p { color: #334155 !important; }

/* 分类卡片 */
body.light-mode .category-card h3 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .category-card p { color: #334155 !important; }
body.light-mode .category-card { 
  background: rgba(255, 255, 255, 0.98) !important; 
  border: 1px solid #e2e8f0 !important; 
}

/* 教程内容 */
body.light-mode .tutorial-content h1,
body.light-mode .hosting-tutorial-section h1 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .tutorial-content h2 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .tutorial-content h3,
body.light-mode .hosting-tutorial-section h2,
body.light-mode .hosting-tutorial-section h3 { color: #1e293b !important; font-weight: 600 !important; }
body.light-mode .tutorial-content p,
body.light-mode .hosting-tutorial-section p { color: #1e293b !important; font-size: 15px !important; line-height: 1.8 !important; }
body.light-mode .tutorial-content li { color: #1e293b !important; }
body.light-mode .hosting-tutorial-section {
  color: #1e293b !important;
}

/* 教程侧边栏 */
body.light-mode .sidebar-nav a { color: #1e293b !important; font-weight: 500 !important; }
body.light-mode .sidebar-nav a:hover { 
  color: #4338ca !important; 
  background: rgba(79, 70, 229, 0.1) !important;
}
body.light-mode .sidebar-nav a.active { 
  color: #4338ca !important; 
  font-weight: 600 !important;
  background: rgba(79, 70, 229, 0.15) !important;
}
body.light-mode .sidebar { 
  background: #f8fafc !important; 
  border-right: 1px solid #cbd5e1 !important; 
}
body.light-mode .sidebar-title { color: #0f172a !important; font-weight: 700 !important; }

/* 论坛帖子 */
body.light-mode .forum-post h3 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .forum-post p { color: #1e293b !important; }
body.light-mode .forum-post { 
  background: rgba(255, 255, 255, 0.98) !important; 
  border: 1px solid #e2e8f0 !important; 
}
body.light-mode .forum-meta { color: #475569 !important; font-weight: 500 !important; }
body.light-mode .forum-header h1,
body.light-mode .forum-header h2 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .forum-header p { color: #334155 !important; }
body.light-mode .forum-content h2 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .forum-content p,
body.light-mode .forum-content h2,
body.light-mode .forum-content p,
body.light-mode .forum-content li,
body.light-mode .forum-content span { color: #1e293b !important; font-weight: 500 !important; }
body.light-mode .forum-content p { opacity: 1 !important; }

/* 攻略内容 */
body.light-mode .guide-content h1 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .guide-content h2 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .guide-content h3 { color: #1e293b !important; font-weight: 600 !important; }
body.light-mode .guide-content p { color: #1e293b !important; line-height: 1.8 !important; }
body.light-mode .guide-content li { color: #1e293b !important; }

/* 新闻内容 */
body.light-mode .news-content h1 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .news-content h2 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .news-content p { color: #1e293b !important; line-height: 1.8 !important; }

/* 列表/表格 */
body.light-mode .list-group-item { 
  background: #ffffff !important; 
  color: #1e293b !important; 
  border-color: #e2e8f0 !important;
}

body.light-mode .table th { color: #0f172a !important; font-weight: 700 !important; background: #f1f5f9 !important; }
body.light-mode .table td { color: #1e293b !important; }
body.light-mode .table { border-color: #e2e8f0 !important; }

/* 表单 */
body.light-mode .form-group label,
body.light-mode .form-label { color: #1e293b !important; font-weight: 600 !important; }
body.light-mode .form-group input,
body.light-mode .form-control,
body.light-mode .form-group textarea { 
  background: #ffffff !important; 
  color: #0f172a !important; 
  border: 1px solid #cbd5e1 !important;
  font-weight: 500 !important;
}
body.light-mode .form-group input::placeholder,
body.light-mode .form-control::placeholder {
  color: #64748b !important;
}
body.light-mode .form-group input:focus,
body.light-mode .form-control:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
}
body.light-mode .form-options .remember-me label {
  color: #334155 !important;
}

/* 论坛头部 */
body.light-mode .forum-header h1 { color: #0f172a !important; font-weight: 700 !important; }
body.light-mode .forum-header p { color: #334155 !important; }

/* 像素风文字 */
body.light-mode .pixel-text, 
body.light-mode .content h1, 
body.light-mode .content p, 
body.light-mode .content li { 
  color: #0f172a !important; 
  text-shadow: none !important; 
}

/* 设置页面/用户页面样式 */
body.light-mode .settings-page h1,
body.light-mode .settings-page h2,
body.light-mode .settings-page h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
body.light-mode .settings-page p,
body.light-mode .settings-page label,
body.light-mode .settings-page span,
body.light-mode .settings-page div {
  color: #1e293b !important;
}

/* 服务器详情页 */
body.light-mode .server-detail h1,
body.light-mode .server-detail h2,
body.light-mode .server-detail h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
body.light-mode .server-detail p,
body.light-mode .server-detail span,
body.light-mode .server-detail li,
body.light-mode .server-detail td,
body.light-mode .server-detail th {
  color: #1e293b !important;
}

/* 按钮浅色模式优化 */
body.light-mode .btn-secondary {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600 !important;
}
body.light-mode .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* 帖子项 */
body.light-mode .post-item {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e2e8f0 !important;
}
body.light-mode .post-item h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
body.light-mode .post-item p {
  color: #334155 !important;
}
body.light-mode .post-meta,
body.light-mode .post-meta span {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* 关于/联系页面 */
body.light-mode .about-section h1,
body.light-mode .about-section h2,
body.light-mode .about-section h3,
body.light-mode .contact-page h1,
body.light-mode .contact-page h2,
body.light-mode .contact-page h3 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
body.light-mode .about-section p,
body.light-mode .about-section li,
body.light-mode .contact-page p,
body.light-mode .contact-page li {
  color: #1e293b !important;
  line-height: 1.8 !important;
}

/* 通用标签 */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
  color: #0f172a !important;
}
body.light-mode p,
body.light-mode li,
body.light-mode span,
body.light-mode div,
body.light-mode td,
body.light-mode label {
  color: #1e293b;
}
body.light-mode a:not(.btn) {
  color: #4338ca !important;
  font-weight: 500 !important;
}
body.light-mode a:not(.btn):hover {
  color: #4f46e5 !important;
  text-decoration: underline !important;
}

/* Cookie Banner */
body.light-mode .cookie-banner {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}
body.light-mode .cookie-text,
body.light-mode .cookie-text p {
  color: #1e293b !important;
}
body.light-mode .cookie-btn.decline {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}
