/* 陪学平台 - 全局样式 */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-light: #ff6b81;
  --gold: #f5a623;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e9ecef;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }

/* 导航栏 */
.navbar { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--primary); }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), var(--gold)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-weight: bold; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -22px; left: 0; right: 0; height: 3px; background: var(--accent); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.btn { padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(233,69,96,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg); }
.btn-success { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

.user-menu { position: relative; }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; cursor: pointer; font-size: 14px; }
.dropdown { position: absolute; top: 50px; right: 0; background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 180px; padding: 8px 0; display: none; z-index: 200; }
.dropdown.show { display: block; }
.dropdown a { display: block; padding: 10px 20px; font-size: 14px; color: var(--text); transition: background 0.15s; }
.dropdown a:hover { background: var(--bg); color: var(--accent); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* 容器 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 16px; }

/* Hero区域 */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0f3460 100%); color: white; padding: 80px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(233,69,96,0.15) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%); border-radius: 50%; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; opacity: 0.85; margin-bottom: 32px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stat h3 { font-size: 28px; font-weight: 800; color: var(--gold); }
.hero-stat p { font-size: 14px; opacity: 0.7; margin: 0; }
.hero-visual { position: relative; }
.hero-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 30px; border: 1px solid rgba(255,255,255,0.2); }
.hero-card-teacher { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.hero-card-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; }
.hero-card-info h4 { font-size: 16px; margin-bottom: 4px; }
.hero-card-info p { font-size: 13px; opacity: 0.7; margin: 0; }
.hero-card-stars { color: var(--gold); font-size: 14px; }

/* 卡片 */
.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img { width: 100%; height: 180px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; color: white; font-size: 48px; position: relative; overflow: hidden; }
.card-img.kids { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.card-img.adult { background: linear-gradient(135deg, #667eea, #764ba2); }
.card-img.business { background: linear-gradient(135deg, #f093fb, #f5576c); }
.card-img.exam { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.card-badge.hot { background: var(--danger); }
.card-badge.new { background: var(--success); }
.card-body { padding: 20px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--primary); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 13px; color: var(--text-light); margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-teacher { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); }
.card-teacher-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; font-weight: 600; }
.card-price { display: flex; align-items: baseline; gap: 8px; }
.card-price .current { font-size: 22px; font-weight: 800; color: var(--accent); }
.card-price .original { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.card-footer { display: flex; gap: 8px; }

/* 网格 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 筛选栏 */
.filter-bar { background: white; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-group label { font-size: 14px; color: var(--text-light); white-space: nowrap; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab { padding: 6px 16px; border-radius: 20px; font-size: 13px; background: var(--bg); color: var(--text); cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active { background: var(--accent); color: white; }
.search-box { display: flex; align-items: center; background: var(--bg); border-radius: 20px; padding: 0 16px; flex: 1; min-width: 200px; max-width: 300px; }
.search-box input { border: none; background: transparent; padding: 8px 0; width: 100%; font-size: 14px; }
.search-box span { color: var(--text-light); }

/* 教师卡片 */
.teacher-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: all 0.3s; text-align: center; }
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.teacher-avatar-large { width: 100%; height: 200px; background: linear-gradient(135deg, var(--primary-light), #0f3460); display: flex; align-items: center; justify-content: center; font-size: 64px; color: white; position: relative; }
.teacher-rating-badge { position: absolute; top: 12px; right: 12px; background: rgba(245,166,35,0.95); color: white; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.teacher-info { padding: 20px; }
.teacher-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.teacher-meta { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.teacher-specialties { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.teacher-specialty { background: var(--bg); color: var(--primary); padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.teacher-stats { display: flex; justify-content: space-around; padding-top: 14px; border-top: 1px solid var(--border); }
.teacher-stat h4 { font-size: 18px; font-weight: 700; color: var(--primary); }
.teacher-stat p { font-size: 12px; color: var(--text-light); }

/* 详情页 */
.detail-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 50px 0; }
.detail-hero-content { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.detail-title { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.detail-subtitle { font-size: 16px; opacity: 0.8; margin-bottom: 24px; }
.detail-tags { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-tag { background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px; font-size: 13px; }
.detail-meta-row { display: flex; gap: 32px; flex-wrap: wrap; }
.detail-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.9; }
.detail-meta-item strong { font-size: 18px; color: var(--gold); }
.purchase-card { background: white; border-radius: var(--radius); padding: 28px; color: var(--text); }
.purchase-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.purchase-price .now { font-size: 36px; font-weight: 800; color: var(--accent); }
.purchase-price .before { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.purchase-info { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.purchase-info:last-of-type { border-bottom: none; margin-bottom: 20px; }
.purchase-actions { display: flex; flex-direction: column; gap: 10px; }

.detail-body { padding: 50px 0; }
.detail-body-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.detail-section { background: white; border-radius: var(--radius); padding: 32px; margin-bottom: 24px; box-shadow: var(--shadow); }
.detail-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 10px; }
.detail-section h3::before { content: ''; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.syllabus-item { padding: 16px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 12px; border-left: 4px solid var(--accent); }
.syllabus-item h4 { font-size: 15px; margin-bottom: 6px; color: var(--primary); }
.syllabus-item p { font-size: 13px; color: var(--text-light); }

/* 侧边栏 */
.sidebar-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.sidebar-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.teacher-mini { display: flex; align-items: center; gap: 12px; }
.teacher-mini-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-weight: bold; }
.teacher-mini-info h5 { font-size: 15px; margin-bottom: 2px; }
.teacher-mini-info p { font-size: 12px; color: var(--text-light); }

/* 评价 */
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 600; }
.review-name { font-size: 14px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--text-light); }
.review-stars { color: var(--gold); font-size: 13px; margin-left: auto; }
.review-content { font-size: 14px; color: var(--text); padding-left: 48px; }

/* 登录注册 */
.auth-page { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 40px 20px; }
.auth-card { background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); width: 100%; max-width: 440px; padding: 40px; }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .logo { justify-content: center; margin-bottom: 16px; }
.auth-header h2 { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.auth-header p { color: var(--text-light); font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-control { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: #bdc3c7; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-light); }
.auth-switch a { color: var(--accent); font-weight: 600; }
.auth-tip { background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: #f57f17; margin-bottom: 20px; }

/* 用户中心 */
.dashboard { padding: 40px 0; min-height: calc(100vh - 68px); }
.dashboard-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.sidebar-menu { background: white; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.sidebar-menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); cursor: pointer; transition: all 0.2s; margin-bottom: 4px; }
.sidebar-menu-item:hover { background: var(--bg); }
.sidebar-menu-item.active { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: white; }
.sidebar-menu-item .icon { font-size: 18px; }
.dashboard-content { min-width: 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-header h2 { font-size: 24px; font-weight: 800; color: var(--primary); }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.stat-card.primary::before { background: var(--accent); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.info::before { background: #3498db; }
.stat-card .label { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-card .sub { font-size: 12px; color: var(--text-light); margin-top: 6px; }

/* 表格 */
.table-wrapper { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--bg); padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--text-light); border-bottom: 2px solid var(--border); }
.table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: var(--bg); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

/* 分销中心 */
.qr-section { background: white; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: center; margin-bottom: 32px; }
.qr-code-img { width: 220px; height: 220px; margin: 0 auto 20px; border: 8px solid white; box-shadow: var(--shadow); border-radius: var(--radius-sm); }
.qr-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.promote-url { background: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-light); word-break: break-all; margin-top: 16px; }

.team-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.team-tab { padding: 8px 20px; border-radius: var(--radius-sm); font-size: 14px; background: var(--bg); cursor: pointer; transition: all 0.2s; }
.team-tab.active { background: var(--primary); color: white; }

/* 排行榜 */
.ranking-list { list-style: none; }
.ranking-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ranking-item:last-child { border-bottom: none; }
.ranking-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.ranking-num.top1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: white; }
.ranking-num.top2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: white; }
.ranking-num.top3 { background: linear-gradient(135deg, #cd7f32, #b06820); color: white; }
.ranking-num.normal { background: var(--bg); color: var(--text-light); }
.ranking-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; }
.ranking-info { flex: 1; }
.ranking-name { font-size: 14px; font-weight: 600; }
.ranking-team { font-size: 12px; color: var(--text-light); }
.ranking-value { font-size: 16px; font-weight: 700; color: var(--accent); }

/* 管理后台 */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 68px); }
.admin-sidebar { background: var(--primary); color: white; padding: 20px 0; }
.admin-sidebar-item { padding: 12px 24px; font-size: 14px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.admin-sidebar-item:hover { background: rgba(255,255,255,0.1); }
.admin-sidebar-item.active { background: var(--accent); border-left: 4px solid var(--gold); }
.admin-main { padding: 32px; background: var(--bg); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.admin-stat-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.admin-stat-card .label { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.admin-stat-card .value { font-size: 28px; font-weight: 800; }

/* 模态框 */
.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: 1000; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: white; border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { font-size: 24px; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Toast */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 2000; }
.toast { background: white; border-radius: var(--radius-sm); padding: 14px 20px; box-shadow: var(--shadow-hover); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 14px; animation: slideIn 0.3s; border-left: 4px solid var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; color: var(--text-light); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

/* 页脚 */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand h3 { color: white; font-size: 22px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: white; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* 进度条 */
.progress-bar { width: 100%; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 4px; transition: width 0.3s; }

/* 响应式 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; }
  .detail-hero-content { grid-template-columns: 1fr; }
  .detail-body-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar-menu { position: static; display: flex; overflow-x: auto; gap: 8px; }
  .sidebar-menu-item { white-space: nowrap; margin: 0; }
  .hero h1 { font-size: 32px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; }
  .admin-sidebar-item { white-space: nowrap; }
  .table-wrapper { overflow-x: auto; }
  .table { min-width: 600px; }
}
