/* ===== 浅色主题样式 ===== */
/* CSS 变量定义 */
.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --border-color: #e1e4e8;
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-muted: #6e7781;
    --link-color: #0969da;
    --link-hover: #1f883d;
    --success: #1a7f37;
    --warning: #bf8700;
    --danger: #cf222e;
    --info: #0969da;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --progress-high: linear-gradient(90deg, #1a7f37, #2ea043);
    --progress-medium: linear-gradient(90deg, #bf8700, #cf222e);
    --progress-low: linear-gradient(90deg, #cf222e, #ff7b72);
}

/* 全局基础 */
.theme-light body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 导航栏 ===== */
.theme-light .navbar {
    background: var(--bg-secondary);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.theme-light .navbar a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.theme-light .navbar a:hover {
    color: var(--link-color);
    background: rgba(9,105,218,0.1);
}

.theme-light .logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-light .logo i {
    color: var(--link-color);
}

.theme-light .search-form {
    display: flex;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
}

.theme-light .search-form input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 6px 8px;
    outline: none;
    width: 200px;
}

.theme-light .search-form button {
    background: transparent;
    border: none;
    color: var(--link-color);
    cursor: pointer;
}

/* ===== 容器 ===== */
.theme-light .container {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* ===== 页面头部 ===== */
.theme-light .page-header {
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-light .page-header i {
    color: var(--link-color);
    background: rgba(9,105,218,0.1);
    padding: 12px;
    border-radius: 12px;
    font-size: 1.5rem;
}

.theme-light .page-header h1,
.theme-light .page-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.theme-light .page-header h1 { font-size: 1.8rem; }
.theme-light .page-header h2 { font-size: 1.4rem; }

/* ===== 卡片 ===== */
.theme-light .card,
.theme-light .dashboard-card,
.theme-light .stat-card,
.theme-light .chart-card,
.theme-light .history-card,
.theme-light .knowledge-card,
.theme-light .feature-card,
.theme-light .recommendation-card,
.theme-light .question-card,
.theme-light .mistake-item,
.theme-light .answer-card,
.theme-light .test-nav,
.theme-light .filter-bar,
.theme-light .filter-card,
.theme-light .welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
}

.theme-light .card:hover,
.theme-light .dashboard-card:hover,
.theme-light .stat-card:hover,
.theme-light .feature-card:hover,
.theme-light .question-card:hover,
.theme-light .mistake-item:hover,
.theme-light .answer-card:hover {
    border-color: var(--link-color);
    background: var(--bg-secondary);
}

/* 仪表盘卡片网格 */
.theme-light .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theme-light .dashboard-card {
    text-align: center;
    padding: 24px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.theme-light .dashboard-card i {
    font-size: 2.5rem;
    color: var(--link-color);
    background: rgba(9,105,218,0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
}

.theme-light .dashboard-card span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.theme-light .dashboard-card small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 统计卡片 */
.theme-light .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.theme-light .stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-light .stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(9,105,218,0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-light .stat-icon i {
    font-size: 30px;
    color: var(--link-color);
}

.theme-light .stat-content h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.theme-light .stat-content .value {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.theme-light .stat-content .sub {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ===== 表格 ===== */
.theme-light .table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.theme-light table {
    width: 100%;
    border-collapse: collapse;
}

.theme-light th {
    background: var(--bg-secondary);
    padding: 12px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border-color);
}

.theme-light td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.theme-light tr:hover td {
    background: var(--bg-secondary);
}

/* ===== 按钮 ===== */
.theme-light .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.theme-light .btn:hover {
    background: var(--bg-primary);
    border-color: var(--link-color);
    color: var(--link-color);
}

.theme-light .btn-primary {
    background: var(--link-color);
    color: #fff;
    border: none;
}

.theme-light .btn-primary:hover {
    background: #0a58ca;
    color: #fff;
}

.theme-light .btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}

.theme-light .btn-danger:hover {
    background: #f85149;
}

.theme-light .btn-outline {
    background: transparent;
    border: 1px solid var(--link-color);
    color: var(--link-color);
}

.theme-light .btn-outline:hover {
    background: var(--link-color);
    color: #fff;
}

.theme-light .btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* ===== 表单 ===== */
.theme-light .form-group {
    margin-bottom: 20px;
}

.theme-light label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.theme-light label i {
    color: var(--link-color);
    margin-right: 6px;
}

.theme-light .form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.theme-light .form-control:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px rgba(9,105,218,0.1);
}

.theme-light .form-control:hover {
    border-color: var(--text-muted);
}

.theme-light textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.theme-light select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357606a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.theme-light .help-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ===== 分页 ===== */
.theme-light .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 40px 0 20px;
    padding: 0;
    list-style: none;
}

.theme-light .pagination li a,
.theme-light .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.theme-light .pagination li a:hover {
    background: var(--bg-secondary);
    border-color: var(--link-color);
    color: var(--link-color);
}

.theme-light .pagination li.active span {
    background: var(--link-color);
    border-color: var(--link-color);
    color: #fff;
}

/* ===== 标签徽章 ===== */
.theme-light .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.theme-light .badge-primary {
    background: rgba(9,105,218,0.1);
    color: var(--link-color);
    border: 1px solid rgba(9,105,218,0.3);
}

.theme-light .badge-success {
    background: rgba(26,127,55,0.1);
    color: var(--success);
    border: 1px solid rgba(26,127,55,0.3);
}

.theme-light .badge-warning {
    background: rgba(191,135,0,0.1);
    color: var(--warning);
    border: 1px solid rgba(191,135,0,0.3);
}

.theme-light .badge-danger {
    background: rgba(207,34,46,0.1);
    color: var(--danger);
    border: 1px solid rgba(207,34,46,0.3);
}

/* ===== 题型标签 ===== */
.theme-light .type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.theme-light .type-single {
    background: rgba(9,105,218,0.15);
    color: var(--link-color);
    border: 1px solid rgba(9,105,218,0.3);
}

.theme-light .type-multiple {
    background: rgba(26,127,55,0.15);
    color: var(--success);
    border: 1px solid rgba(26,127,55,0.3);
}

/* ===== 难度标签 ===== */
.theme-light .difficulty-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.theme-light .difficulty-容易 {
    background: rgba(26,127,55,0.1);
    color: var(--success);
    border: 1px solid rgba(26,127,55,0.3);
}

.theme-light .difficulty-基础 {
    background: rgba(9,105,218,0.1);
    color: var(--link-color);
    border: 1px solid rgba(9,105,218,0.3);
}

.theme-light .difficulty-中档 {
    background: rgba(191,135,0,0.1);
    color: var(--warning);
    border: 1px solid rgba(191,135,0,0.3);
}

.theme-light .difficulty-较难 {
    background: rgba(207,34,46,0.1);
    color: var(--danger);
    border: 1px solid rgba(207,34,46,0.3);
}

.theme-light .difficulty-压轴 {
    background: rgba(128,0,128,0.1);
    color: #6f42c1;
    border: 1px solid rgba(128,0,128,0.3);
}

/* ===== 测试页面 ===== */
.theme-light .test-nav {
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.theme-light .test-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.theme-light .test-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 40px;
}

.theme-light .test-badge i {
    color: var(--link-color);
}

.theme-light .progress-container {
    flex: 1;
    min-width: 200px;
}

.theme-light .progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.theme-light .progress-bar-bg {
    background: var(--bg-secondary);
    height: 8px;
    border-radius: 20px;
    overflow: hidden;
}

.theme-light .progress-bar-fill {
    background: linear-gradient(90deg, var(--link-color), var(--success));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 20px;
}

.theme-light .rit-display {
    background: linear-gradient(135deg, var(--link-color), var(--success));
    padding: 12px 24px;
    border-radius: 40px;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 题目选项 */
.theme-light .options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.theme-light .option-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-light .option-item:hover {
    background: var(--bg-primary);
    border-color: var(--link-color);
}

.theme-light .option-item.selected {
    background: var(--bg-primary);
    border-color: var(--link-color);
    box-shadow: 0 0 0 2px rgba(9,105,218,0.3);
}

.theme-light .option-letter {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--link-color);
    transition: all 0.2s;
}

.theme-light .option-item.selected .option-letter {
    background: var(--link-color);
    color: #fff;
    border-color: var(--link-color);
}

.theme-light .option-content {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 答题结果卡片 */
.theme-light .result-card {
    background: var(--bg-secondary);
    border-left: 4px solid;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-light .result-card.correct {
    border-left-color: var(--success);
}

.theme-light .result-card.incorrect {
    border-left-color: var(--danger);
}

.theme-light .result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.theme-light .result-card.correct .result-icon {
    background: rgba(26,127,55,0.2);
    color: var(--success);
}

.theme-light .result-card.incorrect .result-icon {
    background: rgba(207,34,46,0.2);
    color: var(--danger);
}

.theme-light .result-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.theme-light .result-card.correct .result-title {
    color: var(--success);
}

.theme-light .result-card.incorrect .result-title {
    color: var(--danger);
}

.theme-light .result-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 测试完成卡片 */
.theme-light .finish-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.theme-light .finish-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 24px;
}

.theme-light .finish-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--link-color), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-light .finish-rit {
    font-size: 3rem;
    font-weight: 800;
    color: var(--link-color);
    margin: 24px 0;
}

/* ===== 元信息行 ===== */
.theme-light .meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 20px;
    margin: 16px 0;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.theme-light .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    padding: 4px 0;
    color: var(--text-primary);
}

.theme-light .meta-item i {
    color: var(--link-color);
    width: 16px;
    text-align: center;
}

.theme-light .user-answer {
    background: rgba(207,34,46,0.1);
    border: 1px solid rgba(207,34,46,0.3);
    color: var(--danger);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.theme-light .user-answer.correct {
    background: rgba(26,127,55,0.1);
    border: 1px solid rgba(26,127,55,0.3);
    color: var(--success);
}

.theme-light .correct-answer {
    background: rgba(26,127,55,0.1);
    border: 1px solid rgba(26,127,55,0.3);
    color: var(--success);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.theme-light .rit-change {
    background: rgba(9,105,218,0.1);
    border: 1px solid rgba(9,105,218,0.3);
    color: var(--link-color);
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== 个人中心特有 ===== */
.theme-light .welcome-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--link-color), var(--success));
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-light .edit-icon {
    cursor: pointer;
    color: var(--link-color);
    margin-left: 8px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.theme-light .edit-icon:hover {
    color: var(--success);
}

.theme-light .card details summary {
    cursor: pointer;
    color: var(--link-color);
    font-weight: 500;
    padding: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-light .guide-content {
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-top: 10px;
}

.theme-light .guide-content h3 {
    color: var(--link-color);
    margin: 15px 0 5px;
    font-size: 1.1rem;
}

.theme-light .guide-content p {
    color: var(--text-primary);
    line-height: 1.6;
}

.theme-light .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.theme-light .card-header i {
    font-size: 1.5rem;
    color: var(--link-color);
    background: rgba(9,105,218,0.1);
    padding: 10px;
    border-radius: 10px;
}

.theme-light .card-header h2,
.theme-light .card-header h3 {
    margin: 0;
    color: var(--text-primary);
}

/* 推荐卡片 */
.theme-light .recommendation-card {
    position: relative;
    overflow: hidden;
}

.theme-light .recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--link-color), var(--success));
}

.theme-light .recommendation-card.good::before {
    background: linear-gradient(180deg, var(--success), #2ea043);
}

.theme-light .recommendation-card.warning::before {
    background: linear-gradient(180deg, var(--warning), var(--danger));
}

.theme-light .recommendation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.theme-light .recommendation-header i {
    font-size: 2rem;
    background: rgba(0,0,0,0.05);
    padding: 12px;
    border-radius: 50%;
}

.theme-light .recommendation-header.good i {
    color: var(--success);
}

.theme-light .recommendation-header.warning i {
    color: var(--warning);
}

.theme-light .recommendation-header h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

.theme-light .recommendation-message {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 1.1rem;
    padding-left: 16px;
    border-left: 2px solid var(--border-color);
}

.theme-light .weak-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theme-light .weak-knowledge-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.theme-light .weak-knowledge-card:hover {
    transform: translateY(-4px);
    border-color: var(--link-color);
}

.theme-light .weak-knowledge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.theme-light .weak-knowledge-header h3 {
    color: var(--link-color);
    font-size: 1.2rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-light .wrong-badge {
    background: rgba(207,34,46,0.1);
    color: var(--danger);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(207,34,46,0.3);
    white-space: nowrap;
}

.theme-light .suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme-light .suggestion-list li {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 8px;
    transition: all 0.2s;
}

.theme-light .suggestion-list li:hover {
    border-color: var(--link-color);
}

.theme-light .suggestion-title {
    color: var(--text-primary);
    font-size: 0.85rem;
    flex: 1;
    margin-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-light .practice-btn {
    background: linear-gradient(135deg, #1a7f37, #2ea043);
    color: #fff;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26,127,55,0.3);
}

.theme-light .practice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26,127,55,0.5);
}

.theme-light .history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-light .history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.2s;
}

.theme-light .history-item:hover {
    background: var(--bg-primary);
    border-color: var(--link-color);
    transform: translateX(4px);
}

.theme-light .history-item.hidden-item {
    display: none;
}

.theme-light .history-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--link-color);
    font-size: 0.95rem;
}

.theme-light .rit-final {
    color: var(--success);
    font-size: 1.3rem;
    font-weight: 600;
}

.theme-light .rit-initial {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.theme-light .btn-view {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.theme-light .btn-view:hover {
    background: var(--bg-secondary);
    border-color: var(--link-color);
    color: var(--link-color);
}

.theme-light .btn-more {
    background: linear-gradient(135deg, #f6f8fa, #e9ecef);
    color: var(--link-color);
    border: 1px solid var(--link-color);
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: auto;
    margin: 0 auto;
}

.theme-light .btn-more:hover {
    background: var(--link-color);
    color: #fff;
    transform: translateY(-2px);
}

.theme-light .empty-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: var(--text-secondary);
}

.theme-light .empty-card i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

/* 知识点掌握进度 */
.theme-light .knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theme-light .knowledge-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.theme-light .knowledge-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-primary);
}

.theme-light .knowledge-name {
    font-weight: 500;
}

.theme-light .knowledge-percent {
    font-weight: 600;
}

.theme-light .percent-high {
    color: var(--success);
}

.theme-light .percent-medium {
    color: var(--warning);
}

.theme-light .percent-low {
    color: var(--danger);
}

.theme-light .progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.theme-light .progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.theme-light .progress-high {
    background: var(--progress-high);
}

.theme-light .progress-medium {
    background: var(--progress-medium);
}

.theme-light .progress-low {
    background: var(--progress-low);
}

/* 图表容器 */
.theme-light .chart-container,
.theme-light .radar-container {
    background: transparent;
}

/* 模态框 */
.theme-light #gradeModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.theme-light #gradeModal > div {
    background: var(--bg-card);
    border: 1px solid var(--link-color);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.theme-light #gradeModal h2 {
    color: var(--link-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.theme-light #gradeModal select {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* 页脚 */
.theme-light footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    margin-top: 40px;
}

.theme-light footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.theme-light footer a:hover {
    color: var(--link-color);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .theme-light .navbar {
        flex-direction: column;
        gap: 12px;
    }
    .theme-light .search-form {
        width: 100%;
    }
    .theme-light .search-form input {
        width: 100%;
    }
    .theme-light .page-header h1 {
        font-size: 1.5rem;
    }
    .theme-light .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .theme-light .stats-grid {
        grid-template-columns: 1fr;
    }
    .theme-light .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .theme-light .history-rit {
        align-self: flex-end;
    }
    .theme-light .feature-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .theme-light .radar-container {
        height: 300px;
    }
    .theme-light .weak-knowledge-grid {
        grid-template-columns: 1fr;
    }
    .theme-light .test-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .theme-light .test-info {
        justify-content: space-between;
    }
    .theme-light .action-buttons {
        flex-direction: column;
    }
    .theme-light .btn {
        width: 100%;
        justify-content: center;
    }
    .theme-light .finish-actions {
        flex-direction: column;
    }
}

/* ===== 浅色主题侧边栏适配 ===== */
.theme-light .admin-sidebar {
    background: var(--bg-card);
    border-right-color: var(--border-color);
}

.theme-light .sidebar-header {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

.theme-light .admin-menu li a:hover,
.theme-light .admin-menu li.active > a {
    background: var(--bg-secondary);
}

.theme-light .logout-btn {
    background: var(--bg-secondary);
}

.theme-light .logout-btn:hover {
    background: var(--danger);
    color: #fff;
}