/* 浅色主题覆盖样式 - 保留玻璃态和iOS风格 */

/* 全局文字颜色 */
body {
  color: #1a1a1a !important;
}

/* 玻璃态导航栏 - 浅色 */
.glass-navbar {
  background: rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.glass-navbar .nav-brand,
.glass-navbar .nav-link,
.glass-navbar .brand-text {
  color: #1a1a1a !important;
}

.glass-navbar .nav-link:hover {
  color: #007AFF !important;
  background: rgba(0, 122, 255, 0.1) !important;
}

/* 玻璃态页脚 - 浅色 */
.glass-footer {
  background: rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #1a1a1a !important;
}

.glass-footer .footer-title,
.glass-footer .footer-desc,
.glass-footer .footer-link {
  color: #1a1a1a !important;
}

.glass-footer .footer-link:hover {
  color: #007AFF !important;
}

/* 主内容区 */
.main-content {
  color: #1a1a1a !important;
}

/* Hero区域 - 适配浅色背景 */
.hero-section .hero-title {
  color: #1a1a1a !important;
}

.hero-section .hero-title .title-sub {
  color: rgba(0, 0, 0, 0.5) !important;
}

.hero-section .hero-description {
  color: rgba(0, 0, 0, 0.7) !important;
}

.hero-section .hero-description .highlight {
  color: #007AFF !important;
  background: rgba(0, 122, 255, 0.1) !important;
}

/* 按钮样式 - 浅色主题 */
.hero-section .hero-actions .btn-secondary {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.hero-section .hero-actions .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* 分类卡片 - 浅色玻璃态 */
.categories-section .category-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.categories-section .category-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

.categories-section .category-card .category-name {
  color: #1a1a1a !important;
}

.categories-section .category-card .category-count {
  color: rgba(0, 0, 0, 0.5) !important;
}

.categories-section .category-card .category-arrow {
  color: rgba(0, 0, 0, 0.3) !important;
}

/* 特性卡片 - 浅色玻璃态 */
.features-section .feature-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.features-section .feature-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

.features-section .feature-card .feature-title {
  color: #1a1a1a !important;
}

.features-section .feature-card .feature-description {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* 文章卡片 - 浅色 */
.article-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

.article-card .article-title {
  color: #1a1a1a !important;
}

.article-card .article-excerpt {
  color: rgba(0, 0, 0, 0.6) !important;
}

.article-card .article-meta {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* 区块标题 */
.section-title {
  color: #1a1a1a !important;
}

/* 查看更多链接 */
.view-all {
  color: #007AFF !important;
}

.view-all:hover {
  color: #0056CC !important;
}

/* 空状态 */
.empty-state {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px dashed rgba(0, 0, 0, 0.1) !important;
}

.empty-state .empty-text {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* 后台管理 - 浅色 */
.admin-layout {
  background: #f5f7fa !important;
}

.admin-sidebar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.admin-sidebar .sidebar-menu-item {
  color: #1a1a1a !important;
}

.admin-sidebar .sidebar-menu-item:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007AFF !important;
}

.admin-sidebar .sidebar-menu-item.active {
  background: rgba(0, 122, 255, 0.15) !important;
  color: #007AFF !important;
}

.admin-header {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.admin-main {
  background: #f5f7fa !important;
}

/* Dashboard 统计卡片 - 浅色玻璃态 */
.stat-card {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.stat-card .stat-value {
  color: #1a1a1a !important;
}

.stat-card .stat-label {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* 表格 - 浅色 */
.data-table {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.data-table th {
  background: rgba(0, 0, 0, 0.03) !important;
  color: #1a1a1a !important;
}

.data-table td {
  color: #1a1a1a !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* 搜索框 - 浅色 */
.search-box {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.search-box input {
  color: #1a1a1a !important;
}

.search-box input::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}

/* 标签 - 浅色 */
.tag {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007AFF !important;
}

.tag:hover {
  background: rgba(0, 122, 255, 0.2) !important;
}

/* 分页 - 浅色 */
.pagination .page-item {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #1a1a1a !important;
}

.pagination .page-item:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007AFF !important;
}

.pagination .page-item.active {
  background: #007AFF !important;
  color: #fff !important;
}

/* 表单元素 - 浅色 */
input, textarea, select {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #1a1a1a !important;
}

input::placeholder, textarea::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}

/* 按钮 - 主要 */
.btn-primary {
  background: linear-gradient(135deg, #007AFF, #5856D6) !important;
  color: #fff !important;
}

/* 按钮 - 次要 */
.btn-secondary {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* 链接 */
a {
  color: #007AFF !important;
}

a:hover {
  color: #0056CC !important;
}

/* 通知 */
.notification {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  color: #1a1a1a !important;
}

/* 加载动画颜色 */
.loading-spinner {
  border-color: rgba(0, 122, 255, 0.1) !important;
  border-top-color: #007AFF !important;
}

.loading-text {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* 修复后台管理布局暗色背景 */
.admin-layout {
  background: #f5f7fa !important;
}

/* 修复登录页面暗色背景 */
.login-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #eef2f6 100%) !important;
}

/* 修复侧边栏 */
.sidebar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.sidebar-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* 修复顶部栏 */
.topbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.topbar-left .page-title {
  color: #1a1a1a !important;
}

.topbar-right .user-name {
  color: rgba(0, 0, 0, 0.7) !important;
}

/* 修复导航项 */
.nav-item {
  color: rgba(0, 0, 0, 0.7) !important;
}

.nav-item:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007AFF !important;
}

.nav-item.active {
  background: rgba(0, 122, 255, 0.15) !important;
  color: #007AFF !important;
  border: 1px solid rgba(0, 122, 255, 0.2) !important;
}

/* 修复表单标签 */
.form-label {
  color: rgba(0, 0, 0, 0.7) !important;
}

/* 修复单选按钮标签 */
.radio-option .radio-label {
  color: rgba(0, 0, 0, 0.7) !important;
}

/* 修复工具栏按钮悬停 */
.toolbar-btn:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  color: #007AFF !important;
}

/* 修复内容预览区 */
.content-preview {
  color: rgba(0, 0, 0, 0.8) !important;
}

.content-preview .empty-hint {
  color: rgba(0, 0, 0, 0.4) !important;
}

/* 修复下拉选项背景 */
.setting-select option {
  background: #fff !important;
  color: #1a1a1a !important;
}

/* 修复按钮次要样式 */
.btn.btn-secondary {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.btn.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* 修复占位符颜色 */
input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.4) !important;
}

/* 修复登录卡片阴影 */
.login-card {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1) !important;
}
