/**
 * 答题插件前端样式 - 移动端优先
 */

/* ========== 工具类 ========== */
.dr-hide { display: none !important; }

/* ========== 基础样式 ========== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fafafa;
    padding-bottom: 70px;
}

/* 内容区域 - 比顶部更淡的背景 */
.content-wrapper {
    background: #fafafa;
    min-height: calc(100vh - 60px);
}

/* 全局去掉a标签下划线 */
a, a:hover, a:active, a:focus, a:visited {
    text-decoration: none !important;
}

/* ========== 顶部标题栏 ========== */
.header-bar {
    background: #007bff;
    color: white;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}
.header-bar .header-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}
.header-bar .header-progress {
    font-size: 14px;
    flex-shrink: 0;
}
.header-bar.bg-blue { background: #007bff; }
.header-bar.bg-green { background: #52c41a; }
.header-bar.bg-orange { background: #faad14; }
.header-bar.bg-red { background: #f5222d; }
.back-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s;
}
.back-btn:hover,
.back-btn:active {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
}

/* ========== 底部导航 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}
.nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 0 5px;
    text-decoration: none !important;
    color: #999;
    transition: all 0.3s;
    position: relative;
}
.nav-item:hover,
.nav-item:active {
    text-decoration: none !important;
    color: #007bff;
    background: rgba(0,123,255,0.05);
}
.nav-item.active {
    color: #007bff;
    background: rgba(0,123,255,0.1);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #007bff;
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}
.nav-item:hover::after,
.nav-item.active::after {
    width: 40%;
}
.nav-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}
.nav-text {
    font-size: 11px;
}

/* ========== 首页样式 ========== */
.stats-container {
    display: flex;
    padding: 15px;
    gap: 10px;
    background: #ffffff;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px 5px;
    background: #007bff;
    border-radius: 8px;
    color: white;
}
.stat-number {
    font-size: 24px;
    font-weight: bold;
    display: block;
}
.stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}

.quick-actions {
    display: flex;
    padding: 15px;
    gap: 10px;
    background: #ffffff;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.quick-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.quick-btn i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.quick-btn:hover i {
    transform: scale(1.1);
}
.quick-btn:active {
    transform: translateY(-1px);
}
.btn-random {
    background: #007bff;
    color: white;
}
.btn-random:hover {
    background: #0056b3;
    color: white;
}
.btn-exam {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}
.btn-exam:hover {
    background: linear-gradient(135deg, #e87ce8 0%, #e03e54 100%);
    color: white;
}
.btn-wrong {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}
.btn-wrong:hover {
    background: linear-gradient(135deg, #3a9af5 0%, #00d4e5 100%);
    color: white;
}

.category-section {
    padding: 0 15px;
}
.category-section h5 {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
    margin-left: 5px;
}
.category-card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.category-header {
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f1 100%);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-icon {
    width: 32px;
    height: 32px;
    background: #007bff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}
.category-total {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.type-list {
    padding: 10px 15px;
}
.type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.type-item:last-child {
    border-bottom: none;
}
.type-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.type-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: white;
}
.type-badge i {
    font-size: 12px;
}
.type-badge-1 { background: #52c41a; }
.type-badge-2 { background: #1890ff; }
.type-badge-3 { background: #faad14; }
.type-badge-4 { background: #f5222d; }
.type-badge-5 { background: #0056b3; }
.type-name {
    font-size: 14px;
    color: #333;
}
.type-count {
    font-size: 14px;
    color: #999;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
}
.type-count .num {
    color: #007bff;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}
.empty-state i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 15px;
}
.empty-state .sub-text { font-size: 13px; color: #999; margin-top: 8px; }
.empty-state-sm { padding: 20px; }

/* ========== 题库页面 ========== */
.content-area {
    padding: 15px;
    background: #fafafa;
}
.section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 题库统计 */
.tiku-stats {
    background: #ffffff;
    padding: 20px 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.tiku-total {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}
.total-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}
.total-info {
    flex: 1;
}
.total-num {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
}
.total-label {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}
.tiku-type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tiku-type-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}
.type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-1 { background: #52c41a; }
.dot-2 { background: #1890ff; }
.dot-3 { background: #faad14; }
.dot-4 { background: #f5222d; }
.dot-5 { background: #722ed1; }
.type-name {
    color: #666;
}
.type-num {
    color: #007bff;
    font-weight: 600;
}

/* 分类列表 */
.category-list {
    padding: 15px;
    background: #fafafa;
}
.category-list h5 {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
    margin-left: 5px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.category-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.category-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 24px;
}
.category-item-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}
.category-item-count {
    font-size: 12px;
    color: #999;
}
.category-item-types {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.mini-type {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    color: white;
}
.mini-type.type-1 { background: #52c41a; }
.mini-type.type-2 { background: #1890ff; }
.mini-type.type-3 { background: #faad14; }
.mini-type.type-4 { background: #f5222d; }
.mini-type.type-5 { background: #0056b3; }

/* ========== 题库分类练习页面 ========== */
.cat-stats {
    background: #ffffff;
    padding: 20px 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cat-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.cat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}
.cat-detail {
    flex: 1;
}
.cat-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.cat-count {
    font-size: 14px;
    color: #007bff;
}
.cat-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cat-type-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: white;
}
.cat-type-tag.type-1 { background: #52c41a; }
.cat-type-tag.type-2 { background: #1890ff; }
.cat-type-tag.type-3 { background: #faad14; }
.cat-type-tag.type-4 { background: #f5222d; }
.cat-type-tag.type-5 { background: #0056b3; }
.tag-num {
    background: rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

/* 练习模式 */
.practice-modes {
    padding: 15px;
    background: #fafafa;
}
.practice-modes h5 {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
    margin-left: 5px;
}
.mode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mode-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 18px 15px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.mode-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mode-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}
.icon-order { background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); }
.icon-random { background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%); }
.icon-type { background: linear-gradient(135deg, #faad14 0%, #d48806 100%); }
.icon-wrong { background: linear-gradient(135deg, #f5222d 0%, #cf1322 100%); }
.icon-exam { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.mode-info {
    flex: 1;
}
.mode-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.mode-desc {
    font-size: 13px;
    color: #999;
}
.mode-arrow {
    color: #ccc;
    font-size: 18px;
}

/* ========== 题型选择页面 ========== */
.type-select h5 {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}
.type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.type-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.type-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 22px;
}
.type-card.type-1 .type-icon { background: #52c41a; }
.type-card.type-2 .type-icon { background: #1890ff; }
.type-card.type-3 .type-icon { background: #faad14; }
.type-card.type-4 .type-icon { background: #f5222d; }
.type-card.type-5 .type-icon { background: #0056b3; }
.type-grid .type-card .type-name { font-size: 15px; font-weight: 500; color: #333; margin-bottom: 4px; }
.type-grid .type-card .type-count { font-size: 13px; color: #999; }

/* ========== 练习页面通用 ========== */
.practice-page {
    min-height: 100vh;
    background: #fafafa;
}
.practice-header {
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.practice-header .back-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.practice-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}
.practice-progress {
    font-size: 14px;
}
.practice-content {
    padding: 40px 20px;
}
.btn-back-inline {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
}

/* 不同练习模式的头部颜色 */
.practice-header.bg-blue { background: #007bff; }
.practice-header.bg-green { background: #52c41a; }
.practice-header.bg-orange { background: #faad14; }
.practice-header.bg-red { background: #f5222d; }

/* ========== 顺序/随机练习 - 题目卡片 ========== */
.order-question-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.order-q-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.order-q-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.order-q-type.type-1 { background: #e6f7ff; color: #1890ff; }
.order-q-type.type-2 { background: #e6f7ff; color: #1890ff; }
.order-q-type.type-3 { background: #fff7e6; color: #fa8c16; }
.order-q-type.type-4 { background: #fff1f0; color: #f5222d; }
.order-q-type.type-5 { background: #f9f0ff; color: #722ed1; }
.order-q-num { color: #999; font-size: 14px; }
.order-q-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 24px;
}
.order-combo-sub { color: #666; font-size: 14px; }
.order-options { display: flex; flex-direction: column; gap: 12px; }
.order-opt-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #fafafa;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
}
.order-opt-item:hover { background: #f8f8f8; }
.order-opt-item.selected { border-color: #52c41a; background: #f6ffed; }
.order-opt-item.correct { border-color: #52c41a; background: #f6ffed; }
.order-opt-item.wrong { border-color: #f5222d; background: #fff1f0; }
.order-opt-item.disabled { pointer-events: none; opacity: 0.8; }
.order-opt-input { margin-top: 3px; }
.order-opt-label { font-weight: 600; color: #333; min-width: 24px; }
.order-opt-text { flex: 1; color: #333; }
.order-fill { margin-bottom: 20px; }
.order-fill-input,
.order-essay-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
}
.order-essay { margin-bottom: 20px; }
.order-essay-input { resize: vertical; min-height: 120px; }
.order-actions { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn-order-submit {
    padding: 12px 32px;
    background: #52c41a;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}
.btn-order-submit:hover { background: #389e0d; }
.btn-order-submit:disabled { background: #d9d9d9; cursor: not-allowed; }
.order-result {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.order-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.order-result-icon { font-size: 36px; }
.order-result-icon.correct { color: #52c41a; }
.order-result-icon.wrong { color: #f5222d; }
.order-result-text { font-size: 18px; font-weight: 600; }
.order-answer-row {
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #f6ffed;
    border-radius: 8px;
}
.order-answer-label { color: #666; margin-right: 8px; }
.order-answer-value { color: #333; font-weight: 500; }
.order-analysis {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #fffbe6;
    border-radius: 8px;
    border-left: 4px solid #faad14;
}
.order-analysis-label { color: #666; display: block; margin-bottom: 8px; }
.order-analysis-value { color: #333; line-height: 1.6; }
.order-wrong-tip { margin-top: 12px; padding: 10px 14px; background: #fff1f0; border-left: 4px solid #f5222d; color: #cf1322; font-size: 14px; border-radius: 6px; }

/* 顺序/随机练习 - 导航栏 */
.order-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 20px;
    margin-bottom: 8px;
}
.order-nav-bar .btn-order-prev,
.order-nav-bar .btn-order-next,
.order-nav-bar .btn-order-finish { flex-shrink: 0; }
.order-nav-progress { font-size: 15px; color: #666; font-weight: 500; }
.btn-order-prev,
.btn-order-next,
.btn-order-finish {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
}
.btn-order-prev { background: #f5f5f5; color: #666; }
.btn-order-prev.disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.btn-order-next { background: #52c41a; color: #fff; }
.btn-order-finish { background: #1890ff; color: #fff; }
.btn-order-prev:hover { background: #e8e8e8; color: #333; }
.btn-order-next:hover { background: #389e0d; color: #fff; }
.btn-order-finish:hover { background: #096dd9; color: #fff; }

/* 随机练习：下一题按钮用蓝色 */
.btn-order-next.bg-blue { background: #1890ff; }
.btn-order-next.bg-blue:hover { background: #096dd9; }

/* 按题型练习：橙色主题 */
.btn-order-next-orange { background: #fa8c16; }
.btn-order-next-orange:hover { background: #d46b08; }
.btn-order-finish-orange { background: #fa8c16; }
.btn-order-finish-orange:hover { background: #d46b08; }

/* 错题练习：红色主题 */
.btn-order-next-red { background: #f5222d; }
.btn-order-next-red:hover { background: #cf1322; }
.btn-order-finish-red { background: #f5222d; }
.btn-order-finish-red:hover { background: #cf1322; }

/* ========== 错题练习 ========== */
.wrong-stats {
    padding: 20px;
    background: #fafafa;
}
.wrong-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.wrong-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f5222d 0%, #cf1322 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}
.wrong-stat-card .stat-num {
    font-size: 32px;
    font-weight: bold;
    color: #f5222d;
    line-height: 1;
}
.wrong-stat-card .stat-label {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.btn-remove-wrong, .btn-remove-wrong-inline {
    padding: 10px 20px;
    font-size: 14px;
    color: #f5222d;
    background: #fff;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    cursor: pointer;
}
.btn-remove-wrong:hover, .btn-remove-wrong-inline:hover {
    color: #fff;
    background: #f5222d;
    border-color: #f5222d;
}
.btn-remove-wrong:disabled, .btn-remove-wrong-inline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== 试卷列表 ========== */
.exam-section {
    padding: 15px;
    background: #fafafa;
    min-height: calc(100vh - 60px);
}
.exam-section h5 {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
    margin-left: 5px;
}
.exam-card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    padding: 15px;
}
.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.exam-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.exam-icon {
    color: #007bff;
    font-size: 20px;
}
.exam-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}
.status-active {
    background: #e6f7ff;
    color: #007bff;
}
.exam-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}
.info-item {
    font-size: 13px;
    color: #666;
}
.info-item i {
    color: #999;
    margin-right: 4px;
}
.info-item.pass-score i {
    color: #52c41a;
}
.info-item.pass-score span {
    color: #52c41a;
    font-weight: 500;
}
.exam-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}
.exam-action {
    text-align: center;
}
.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #007bff;
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-start:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* ========== 模拟考试配置 ========== */
.mock-config {
    padding: 15px;
    background: #fafafa;
    min-height: 100vh;
}
.config-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
}
.config-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}
.config-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.config-subtitle {
    font-size: 13px;
    opacity: 0.9;
}
.config-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.config-section h5 {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}
.section-tip {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}
.type-config-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.type-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 10px;
    border: 1px solid #e8ecf3;
}
.type-info {
    display: flex;
    flex-direction: column;
}
.type-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.type-available {
    font-size: 12px;
    color: #999;
}
.type-config-inputs {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.input-label {
    font-size: 11px;
    color: #999;
    text-align: center;
}
.input-group {
    display: flex;
    align-items: center;
}
.btn-minus, .btn-plus {
    width: 32px;
    height: 32px;
    border: none;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
}
.btn-minus {
    border-radius: 16px 0 0 16px;
}
.btn-plus {
    border-radius: 0 16px 16px 0;
}
.btn-minus:active, .btn-plus:active {
    background: #d0d0d0;
}
.count-input {
    width: 50px;
    height: 32px;
    border: none;
    background: #e0e0e0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #007bff;
}
.score-wrap {
    display: flex;
    align-items: center;
    background: #e0e0e0;
    border-radius: 16px;
    padding: 0 10px;
}
.score-set-input {
    width: 50px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #007bff;
}
.unit-small {
    font-size: 12px;
    color: #666;
}
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.setting-row:last-child {
    border-bottom: none;
}
.setting-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.setting-label i {
    color: #007bff;
    margin-right: 8px;
    width: 20px;
}
.time-input {
    width: 60px;
    height: 32px;
    border: none;
    background: #e0e0e0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #007bff;
}
.score-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.score-input {
    width: 70px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    text-align: center;
    font-size: 15px;
}
.unit {
    font-size: 13px;
    color: #666;
}
.score-tip {
    font-size: 11px;
    color: #999;
}
.summary-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}
.summary-title {
    font-size: 15px;
    margin-bottom: 15px;
    opacity: 0.9;
}
.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.summary-item {
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}
.summary-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}
.summary-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
}
.config-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-start-exam {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-start-exam:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 46, 209, 0.3);
}
.btn-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: #666;
    padding: 12px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

/* ========== 模拟考试 ========== */
.mock-exam {
    padding: 15px;
    background: #fafafa;
    min-height: 100vh;
}
.mock-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
}
.mock-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.mock-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.9;
}
.mock-meta i {
    margin-right: 4px;
}
.mock-timer {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.timer-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.timer-display {
    font-size: 36px;
    font-weight: bold;
    color: #007bff;
    font-family: 'Courier New', monospace;
}
.mock-type-distribution {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.mock-type-distribution h6 {
    color: #333;
    font-size: 15px;
    margin-bottom: 12px;
}
.type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.type-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, #e6f2ff 0%, #cce5ff 100%);
    color: #007bff;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid #b3d9ff;
}
.mock-intro {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.mock-intro h6 {
    color: #333;
    font-size: 15px;
    margin-bottom: 12px;
}
.mock-intro ul {
    margin: 0;
    padding-left: 18px;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}
.mock-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.btn-start-mock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-start-mock:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 46, 209, 0.3);
}
.btn-back-mock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: #666;
    padding: 12px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}
.mock-questions {
    padding-bottom: 30px;
}
.question-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.question-num {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
}
.question-score {
    color: #faad14;
    font-size: 13px;
    font-weight: 500;
}
.question-content {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}
.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e8ecf3;
}
.option-item:hover {
    background: #f0f4f8;
}
.option-item input {
    margin-top: 2px;
}
.option-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}
.answer-area textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}
.submit-area {
    text-align: center;
    margin-top: 30px;
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #52c41a;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-submit:hover {
    background: #389e0d;
    transform: translateY(-2px);
}

/* ========== 我的页面 ========== */
.user-card {
    background: #007bff;
    color: white;
    padding: 30px 20px;
    text-align: center;
}
.user-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.user-name {
    font-size: 18px;
    font-weight: 500;
}

.stats-row {
    display: flex;
    background: #ffffff;
    padding: 20px 0;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stats-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}
.stats-item:last-child {
    border-right: none;
}
.stats-num {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}
.stats-label {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.menu-list {
    background: #ffffff;
    border-radius: 12px;
    margin: 0 15px 15px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
}
.menu-item:last-child {
    border-bottom: none;
}
.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}
.icon-1 { background: #52c41a; }
.icon-2 { background: #1890ff; }
.icon-3 { background: #faad14; }
.icon-4 { background: #f5222d; }
.menu-text {
    flex: 1;
    font-size: 15px;
}
.menu-arrow {
    color: #ccc;
}

.logout-area {
    padding: 20px 15px;
    text-align: center;
}
.btn-logout {
    padding: 10px 24px;
    font-size: 14px;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
}
.btn-logout:hover {
    color: #f5222d;
    border-color: #ffccc7;
}
.btn-logout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== 答题页面 exam_start ========== */
.exam-page {
    background: #fafafa;
    min-height: 100vh;
    padding-bottom: 140px;
}

.exam-top-bar {
    background: #ffffff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.exam-info-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.exam-info-right {
    flex-shrink: 0;
    margin-left: 10px;
}
.exam-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.exam-timer {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
}
.exam-timer i {
    margin-right: 5px;
}

.progress-bar {
    background: #ffffff;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}
.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.progress-line {
    height: 6px;
    background: #e8ecf3;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: var(--progress-width, 0%);
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 3px;
    transition: width 0.3s;
}

.question-container {
    padding: 15px;
    clear: both;
}

.exam-page .question-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.exam-page .question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}
.question-type-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}
.question-type-badge.type-1 { background: #52c41a; }
.question-type-badge.type-2 { background: #1890ff; }
.question-type-badge.type-3 { background: #faad14; }
.question-type-badge.type-4 { background: #f5222d; }
.question-type-badge.type-5 { background: #722ed1; }
.exam-page .question-score {
    color: #faad14;
    font-size: 14px;
    font-weight: 600;
}

.exam-page .question-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}
.exam-page .question-num {
    font-weight: 600;
    color: #007bff;
    margin-right: 5px;
}

.exam-page .options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.exam-page .option-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.exam-page .option-item:hover {
    background: #f0f4f8;
}
.exam-page .option-item.selected {
    border-color: #007bff;
    background: #e6f2ff;
}
.exam-page .option-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}
.option-input {
    display: none;
}
.option-label {
    font-weight: 600;
    color: #007bff;
    min-width: 24px;
}

.fill-input,
.essay-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}
.fill-input:focus,
.essay-textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
.essay-textarea {
    resize: vertical;
    min-height: 120px;
}

.sub-questions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sub-question-item {
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e8ecf3;
}
.sub-question-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}
.sub-answer .fill-input {
    background: #ffffff;
}

.exam-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 12px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.btn-prev,
.btn-next,
.btn-question-list {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-prev {
    background: #f0f0f0;
    color: #666;
}
.btn-prev:hover:not(:disabled) {
    background: #e0e0e0;
}
.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-next {
    background: #007bff;
    color: white;
}
.btn-next:hover {
    background: #0056b3;
}
.btn-next.btn-submit-mode {
    background: #52c41a;
}
.btn-next.btn-submit-mode:hover {
    background: #389e0d;
}
.btn-question-list {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}
.btn-question-list:hover {
    background: #e8e8e8;
}

.exam-page .submit-area {
    text-align: center;
}
.btn-submit-exam {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(82, 196, 26, 0.35);
}
.btn-submit-exam:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.45);
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
}
.btn-submit-exam:active {
    transform: translateY(0);
}

/* 交卷确认弹窗 */
.submit-confirm-modal,
.submit-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.submit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.submit-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: submitModalIn 0.3s ease;
}
@keyframes submitModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.submit-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1890ff;
}
.submit-modal-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}
.submit-modal-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    text-align: center;
}
.submit-modal-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
}
.submit-stat-item {
    text-align: center;
}
.submit-stat-item .submit-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}
.submit-stat-item.answered .submit-stat-num { color: #52c41a; }
.submit-stat-item.unanswered .submit-stat-num { color: #ff4d4f; }
.submit-stat-item .submit-stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.submit-modal-actions {
    display: flex;
    gap: 12px;
}
.btn-submit-cancel {
    flex: 1;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-submit-cancel:hover {
    background: #e8e8e8;
}
.btn-submit-confirm {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-submit-confirm:hover {
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4);
}

/* 交卷结果弹窗 */
.submit-modal-box.result-box {
    text-align: center;
}
.submit-result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.submit-result-icon.success {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    color: #52c41a;
}
.submit-result-icon.fail {
    background: linear-gradient(135deg, #fff2f0 0%, #ffccc7 100%);
    color: #ff4d4f;
}
.submit-result-score {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
.btn-submit-result-ok {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-submit-result-ok:hover {
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.question-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: block;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}
.exam-page .modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.modal-header h5 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}
.modal-body {
    padding: 20px;
    max-height: calc(70vh - 60px);
    overflow-y: auto;
}
.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.question-number {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.question-number:hover {
    background: #e0e0e0;
}
.question-number.current {
    background: #007bff;
    color: white;
}
.question-number.answered {
    background: #52c41a;
    color: white;
}
.question-number.answered.current {
    background: #007bff;
    box-shadow: 0 0 0 3px rgba(82, 196, 26, 0.3);
}

/* ========== 考试结果页 exam_result ========== */
.result-page {
    padding: 20px;
    background: #fafafa;
    min-height: 100vh;
    padding-bottom: 30px;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.result-card.pass {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
    border: 2px solid #b7eb8f;
}
.result-card.fail {
    background: linear-gradient(135deg, #fff2f0 0%, #ffccc7 100%);
    border: 2px solid #ffa39e;
}
.result-card.pending {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
    border: 2px solid #91d5ff;
}
.result-icon {
    font-size: 60px;
    margin-bottom: 10px;
}
.result-card.pass .result-icon {
    color: #52c41a;
}
.result-card.fail .result-icon {
    color: #f5222d;
}
.result-card.pending .result-icon {
    color: #1890ff;
}
.result-status {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}
.result-card.pass .result-status {
    color: #52c41a;
}
.result-card.fail .result-status {
    color: #f5222d;
}
.result-card.pending .result-status {
    color: #1890ff;
}
.result-score {
    margin-bottom: 10px;
}
.score-num {
    font-size: 48px;
    font-weight: bold;
    color: #333;
}
.score-total {
    font-size: 18px;
    color: #999;
}
.result-info {
    font-size: 14px;
    color: #666;
}

.result-page .stats-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.result-page .stats-detail .stat-item {
    background: white;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.result-page .stats-detail .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 20px;
}
.result-page .stats-detail .stat-icon.icon-correct {
    background: #52c41a;
}
.result-page .stats-detail .stat-icon.icon-wrong {
    background: #f5222d;
}
.result-page .stats-detail .stat-icon.icon-unanswered {
    background: #999;
}
.result-page .stats-detail .stat-num {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}
.result-page .stats-detail .stat-label {
    font-size: 13px;
    color: #999;
}

.exam-info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.exam-info-card h5 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    color: #666;
    font-size: 14px;
}
.info-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-retry,
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-retry {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}
.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    color: white;
}
.btn-back {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
}
.btn-back:hover {
    background: #f5f5f5;
    color: #666;
}

/* ========== 后台预览 dati-preview ========== */
.dati-preview {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}
.dati-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    padding: 20px;
    margin-bottom: 20px;
}
.dati-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}
.dati-q-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
}
.dati-q-label {
    font-weight: bold;
    margin-bottom: 8px;
}
.dati-option {
    margin: 6px 0;
}
.dati-option label {
    font-weight: normal;
    cursor: pointer;
}
.dati-sub {
    margin-left: 15px;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 3px solid #337ab7;
}
.dati-answer {
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: 14px;
}
.dati-empty {
    color: #999;
    text-align: center;
    padding: 40px;
}

/* ========== Toast 提示 ========== */
.dati-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    min-width: 160px;
    max-width: 80%;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}
.dati-toast-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.dati-toast-hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}
.dati-toast-msg {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}
.dati-toast-icon::before {
    font-family: FontAwesome;
    font-size: 18px;
}
.dati-toast-info { background: #fff; color: #333; }
.dati-toast-info .dati-toast-icon::before { content: "\f05a"; color: #1890ff; }
.dati-toast-success { background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); color: #fff; }
.dati-toast-success .dati-toast-icon::before { content: "\f00c"; color: rgba(255,255,255,0.95); }
.dati-toast-error { background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%); color: #fff; }
.dati-toast-error .dati-toast-icon::before { content: "\f06a"; color: rgba(255,255,255,0.95); }
