/* 湖南成人高考通关宝 - 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --success: #34a853;
  --warning: #fbbc04;
  --danger: #ea4335;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #202124;
  --text-secondary: #5f6368;
  --border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }

/* Header */
.header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 60px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; }
.logo-text { font-size: 18px; font-weight: 600; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 6px; color: var(--text-secondary); font-size: 14px; transition: all 0.2s; }
.nav a:hover, .nav a.active { background: #e8f0fe; color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 12px; }
.search-input { padding: 7px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; width: 200px; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--primary); }
.admin-link { font-size: 13px; color: var(--text-secondary); padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; }
.admin-link:hover { border-color: var(--primary); color: var(--primary); }

/* Main */
.main { max-width: 1200px; margin: 0 auto; padding: 24px 20px; min-height: calc(100vh - 140px); }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }

/* Grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Level cards */
.level-card { background: var(--card); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; text-align: center; }
.level-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,115,232,0.15); }
.level-card .level-icon { font-size: 36px; margin-bottom: 8px; }
.level-card .level-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.level-card .level-desc { font-size: 13px; color: var(--text-secondary); }

/* Subject list */
.subject-item { display: flex; align-items: center; padding: 14px 16px; background: var(--card); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.subject-item:hover { background: #e8f0fe; }
.subject-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; margin-right: 12px; font-size: 16px; }
.subject-info { flex: 1; }
.subject-name { font-weight: 600; font-size: 15px; }
.subject-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.subject-arrow { color: var(--text-secondary); }

/* Unit list */
.unit-item { padding: 12px 16px; background: var(--card); border-radius: 6px; margin-bottom: 6px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background 0.2s; }
.unit-item:hover { background: #e8f0fe; }
.unit-name { font-size: 14px; }
.unit-count { font-size: 12px; color: var(--text-secondary); }

/* Question */
.question-card { background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.question-type { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.type-single { background: #e8f0fe; color: var(--primary); }
.type-multi { background: #fef7e0; color: #b06000; }
.type-judge { background: #e6f4ea; color: var(--success); }
.type-fill { background: #fce8e6; color: var(--danger); }
.type-essay, .type-app { background: #f3e8fd; color: #7627bb; }
.question-stem { font-size: 15px; margin-bottom: 14px; line-height: 1.7; }
.question-options { display: flex; flex-direction: column; gap: 8px; }
.option-item { padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.2s; font-size: 14px; }
.option-item:hover { border-color: var(--primary); background: #f8faff; }
.option-item.selected { border-color: var(--primary); background: #e8f0fe; }
.option-item.correct { border-color: var(--success); background: #e6f4ea; }
.option-item.wrong { border-color: var(--danger); background: #fce8e6; }
.question-actions { margin-top: 16px; display: flex; gap: 10px; }
.btn { padding: 8px 20px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.question-analysis { margin-top: 14px; padding: 14px; background: #f8f9fa; border-radius: 6px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.question-analysis .label { font-weight: 600; color: var(--primary); }

/* Exam paper */
.exam-card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; }
.exam-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.exam-name { font-weight: 500; font-size: 14px; }
.exam-meta { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-number { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Footer */
.footer { text-align: center; padding: 20px; font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--border); background: var(--card); }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--border); }
.tab { padding: 10px 18px; cursor: pointer; font-size: 14px; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

/* Empty */
.empty { text-align: center; padding: 40px; color: var(--text-secondary); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* Progress bar */
.progress-bar { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; }
