﻿/* ================================================================
   UNITE FACILITY - 管理员招募考核系统 v3.0 样式表
   包含：考生端 + 管理后台（侧边栏/仪表盘/题库/档案室/人员名单）
   ================================================================ */

@font-face { font-family: 'Orbitron'; src: url('../fonts/Orbitron-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Noto Sans SC'; src: url('../fonts/NotoSansSC-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/SpaceGrotesk-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
    --bg: #08080c;
    --surface: #101018;
    --card: #16161f;
    --card-hover: #1c1c28;
    --border: #252535;
    --border-light: rgba(255,255,255,0.06);
    --border-glow: rgba(212,175,55,0.2);
    --accent: #d4af37;
    --accent-light: #f0d060;
    --accent-dark: #b8941e;
    --accent-gradient: linear-gradient(135deg, #f0d060 0%, #d4af37 50%, #b8941e 100%);
    --accent-rgb: 212, 175, 55;
    --text: #e8e4dc;
    --muted: #8a8690;
    --green: #34d399;
    --blue: #60a5fa;
    --orange: #fbbf24;
    --cyan: #22d3ee;
    --lime: #a3e635;
    --easy: #34d399;
    --medium: #fbbf24;
    --hard: #f87171;
    --red: #ef4444;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans SC', 'Space Grotesk', 'Microsoft YaHei', system-ui, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea, [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

.bg-pattern {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(212,175,55,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(8,8,12,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 18px 50px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 10001;
}

.logo { display: flex; align-items: center; gap: 15px; }
.logo-text { 
    font-size: 1.25rem; font-weight: 700; 
    letter-spacing: 3px; text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.2); }
.logo-sub-cn { font-size: 0.7rem; color: rgba(255,255,255,0.45); letter-spacing: 2px; }
.logo-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); letter-spacing: 1px; }

.user-info-bar { display: flex; align-items: center; gap: 25px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.timer-display {
    background: rgba(255,255,255,0.05);
    padding: 10px 20px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Consolas', monospace;
    font-size: 1.1rem; font-weight: 500; letter-spacing: 2px;
}
.timer-display.warning { background: rgba(255,200,100,0.1); border-color: rgba(255,200,100,0.3); color: #ffc864; }
.timer-display.danger { background: rgba(255,100,100,0.1); border-color: rgba(255,100,100,0.3); color: #ff6464; animation: pulse 1s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.7} }

/* ===== 容器 ===== */
.container {
    position: relative; z-index: 1;
    max-width: 1000px; margin: 0 auto;
    padding: 120px 30px 60px;
}

.page-title { text-align: center; margin-bottom: 50px; }
.page-title h1 { font-size: 2.8rem; font-weight: 300; margin-bottom: 15px; letter-spacing: 8px; text-transform: uppercase; }
.page-title .highlight { background: linear-gradient(135deg, #fff 0%, #aaa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-title p { color: rgba(255,255,255,0.5); font-size: 0.95rem; letter-spacing: 4px; text-transform: uppercase; }

/* ===== Card ===== */
.card {
    background: rgba(15,15,15,0.95);
    border-radius: 24px; border: 1px solid var(--border-light);
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.card-title {
    font-size: 1.3rem; margin-bottom: 35px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 15px;
    font-weight: 400; letter-spacing: 2px;
}
.card-title .icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #fff 0%, #666 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 28px; }
.form-label { display: block; margin-bottom: 12px; font-weight: 500; color: rgba(255,255,255,0.9); font-size: 0.9rem; letter-spacing: 1px; }
.form-label .required { color: rgba(255,255,255,0.3); margin-left: 6px; }
.form-input {
    width: 100%; padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; color: #fff;
    font-size: 1rem; transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input.error { border-color: rgba(255,100,100,0.5); }
.form-hint { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 8px; }
.form-error { color: #ff6464; font-size: 0.8rem; margin-top: 8px; display: none; }
.form-error.show { display: block; }

.verification-group { display: flex; gap: 12px; }
.verification-group .form-input { flex: 1; }

.btn-send-code {
    padding: 16px 28px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; color: #fff;
    font-weight: 500; cursor: pointer;
    white-space: nowrap; transition: all 0.3s;
}
.btn-send-code:hover { background: rgba(255,255,255,0.15); }
.btn-send-code:disabled { opacity: 0.4; cursor: not-allowed; }

.verified-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.2);
    color: #4CAF50; padding: 10px 18px; border-radius: 8px;
    font-size: 0.85rem; margin-top: 12px;
}

.exam-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.exam-type-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 30px;
    cursor: pointer; transition: all 0.2s;
    text-align: center; position: relative;
}
.exam-type-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); transform: translateY(-4px); }
.exam-type-card.selected { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.exam-type-card .icon, .exam-type-card h3, .exam-type-card p { pointer-events: none; }
.exam-type-card .icon { font-size: 2.5rem; margin-bottom: 18px; opacity: 0.8; }
.exam-type-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: #fff; font-weight: 500; letter-spacing: 2px; }
.exam-type-card p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.radio-indicator {
    position: absolute; top: 18px; right: 18px;
    width: 22px; height: 22px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; transition: all 0.3s; pointer-events: none;
}
.exam-type-card.selected .radio-indicator { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); }
.exam-type-card.selected .radio-indicator::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 8px; height: 8px; background: #fff; border-radius: 50%;
}

/* ===== 按钮 ===== */
.btn {
    padding: 16px 45px; border: none;
    border-radius: 12px; font-size: 1rem;
    font-weight: 500; cursor: pointer;
    transition: all 0.2s;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; letter-spacing: 2px; text-transform: uppercase;
}
.btn-primary { 
    background: var(--accent-gradient); 
    color: #0a0a0a; 
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.25); 
}
.btn-primary:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.btn-secondary { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-danger { background: rgba(255,100,100,0.15); color: #ff6464; border: 1px solid rgba(255,100,100,0.2); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; letter-spacing: 1px; }
.btn-group { display: flex; gap: 15px; justify-content: center; margin-top: 35px; flex-wrap: wrap; }

/* ===== 须知 ===== */
.notice-box {
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-light);
    border-radius: 16px; padding: 25px 30px; margin: 25px 0;
}
.notice-box h4 { color: rgba(255,255,255,0.9); margin-bottom: 20px; font-weight: 500; letter-spacing: 1px; }
.notice-box ul { list-style: none; padding-left: 0; }
.notice-box li {
    padding: 10px 0 10px 22px; position: relative;
    color: rgba(255,255,255,0.55); font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.notice-box li:last-child { border-bottom: none; }
.notice-box li::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%;
}

/* ===== 考试界面 ===== */
.exam-container { display: none; }
.exam-container.show { display: block; }

/* 考试左右分栏布局 */
.exam-body { display: flex; gap: 24px; align-items: flex-start; }
.exam-sidebar { width: 220px; min-width: 220px; position: sticky; top: 72px; }
.exam-main { flex: 1; min-width: 0; }
.exam-section { margin-bottom: 32px; }
.exam-section:last-of-type { margin-bottom: 0; }
.section-title { font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 2px; font-weight: 600; }
.section-title.choice { color: var(--cyan); }
.section-title.judge { color: var(--lime); }
.section-title.scenario { color: var(--orange); }

.exam-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap; gap: 20px;
}
.exam-info { display: flex; gap: 35px; flex-wrap: wrap; }
.exam-info-item { display: flex; align-items: center; gap: 10px; }
.exam-info-item .label { color: rgba(255,255,255,0.45); font-size: 0.85rem; letter-spacing: 1px; }
.exam-info-item .value { font-weight: 500; color: rgba(255,255,255,0.9); }

.answer-sheet { background: rgba(255,255,255,0.02); border-radius: 16px; padding: 20px; border: 1px solid rgba(255,255,255,0.06); }
.answer-sheet-title { font-size: 0.85rem; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.6); }
.question-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.question-nav-item {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 0.78rem;
    cursor: pointer; transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.5);
}
.question-nav-item.type-a { background: rgba(0,245,255,0.08); }
.question-nav-item.type-b { background: rgba(0,255,100,0.08); }
.question-nav-item.type-c { background: rgba(255,165,0,0.08); }
.question-nav-item.current { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.1); }
.question-nav-item.answered { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.15); }

.nav-legend { display: flex; gap: 25px; margin-top: 18px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.nav-legend-item { display: flex; align-items: center; gap: 8px; }
.nav-legend-item .dot { width: 10px; height: 10px; border-radius: 4px; }

.question-container { background: rgba(255,255,255,0.02); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.question-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.question-type-tag { padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 500; letter-spacing: 1px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.08); }
.question-type-tag.choice { border-color: rgba(0,245,255,0.2); color: var(--cyan); }
.question-type-tag.judge { border-color: rgba(0,255,100,0.2); color: var(--lime); }
.question-type-tag.scenario { border-color: rgba(255,165,0,0.2); color: var(--orange); }
.question-score { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; }
.question-content { font-size: 1.05rem; line-height: 1.9; margin-bottom: 24px; color: rgba(255,255,255,0.9); }

.question-options { display: flex; flex-direction: column; gap: 14px; }
.option-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px; cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.06);
}
.option-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.option-item.selected { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.option-letter {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 8px; font-weight: 600;
    color: rgba(255,255,255,0.7); flex-shrink: 0;
}
.option-item.selected .option-letter { background: rgba(255,255,255,0.15); color: #fff; }
.option-text { flex: 1; line-height: 1.7; color: rgba(255,255,255,0.8); }

.judge-options { display: flex; gap: 20px; }
.judge-option {
    flex: 1; padding: 28px; text-align: center;
    background: rgba(255,255,255,0.02);
    border-radius: 14px; cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.06);
}
.judge-option:hover { background: rgba(255,255,255,0.04); }
.judge-option.selected { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.judge-option .icon { font-size: 2.2rem; margin-bottom: 12px; opacity: 0.7; }
.judge-option .text { font-size: 1.1rem; font-weight: 500; color: rgba(255,255,255,0.8); }

.scenario-textarea {
    width: 100%; min-height: 260px; padding: 22px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; color: #fff;
    font-size: 1rem; line-height: 1.9;
    resize: vertical; font-family: inherit;
}
.scenario-textarea:focus { outline: none; border-color: rgba(255,255,255,0.2); }
.scenario-textarea::placeholder { color: rgba(255,255,255,0.35); }

.question-navigation {
    display: flex; justify-content: space-between;
    margin-top: 35px; padding-top: 28px;
    border-top: 1px solid var(--border-light);
}

.progress-bar { background: rgba(255,255,255,0.05); border-radius: 10px; height: 6px; margin-top: 16px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.6)); border-radius: 10px; transition: width 0.3s; }

/* ===== 成绩单 ===== */
.scorecard { display: none; }
.scorecard.show { display: block; }

.scorecard-header {
    text-align: center; padding: 50px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 24px; margin-bottom: 35px;
    border: 1px solid rgba(255,255,255,0.05);
}
.scorecard-header h2 { font-size: 1.8rem; margin-bottom: 12px; font-weight: 300; letter-spacing: 4px; }
.score-value { font-size: 5.5rem; font-weight: 200; margin: 25px 0; letter-spacing: -2px; }
.score-status {
    font-size: 1.2rem; padding: 12px 35px;
    border-radius: 30px; display: inline-block;
    letter-spacing: 3px; text-transform: uppercase;
}
.score-status.pass { background: rgba(76,175,80,0.15); color: #4CAF50; border: 1px solid rgba(76,175,80,0.3); }
.score-status.fail { background: rgba(255,100,100,0.1); color: #ff6464; border: 1px solid rgba(255,100,100,0.15); }

.score-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 35px 0; }
.score-detail-item { background: rgba(255,255,255,0.02); padding: 28px; border-radius: 16px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.score-detail-item .icon { font-size: 1.6rem; margin-bottom: 12px; opacity: 0.6; }
.score-detail-item .label { color: rgba(255,255,255,0.5); margin-bottom: 10px; font-size: 0.8rem; letter-spacing: 1px; }
.score-detail-item .value { font-size: 1.6rem; font-weight: 400; color: rgba(255,255,255,0.9); }

.answer-detail-section { margin-top: 35px; }
.answer-detail-section h3 { margin-bottom: 22px; padding-bottom: 15px; border-bottom: 1px solid var(--border-light); font-weight: 400; color: rgba(255,255,255,0.7); letter-spacing: 2px; font-size: 1rem; }

.detail-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.01); border-radius: 14px; overflow: hidden; }
.detail-table th { background: rgba(255,255,255,0.03); padding: 16px 18px; text-align: left; font-weight: 500; color: rgba(255,255,255,0.6); font-size: 0.8rem; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.detail-table td { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.03); color: rgba(255,255,255,0.7); }
.detail-table tr:last-child td { border-bottom: none; }

.scenario-answer-section { margin-top: 35px; }
.scenario-answer-item { background: rgba(255,255,255,0.02); border-radius: 16px; padding: 28px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); }
.scenario-answer-item h4 { color: rgba(255,255,255,0.8); margin-bottom: 18px; font-weight: 400; letter-spacing: 1px; }
.scenario-answer-item .question { background: rgba(255,255,255,0.02); padding: 18px; border-radius: 10px; margin-bottom: 18px; border-left: 3px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; }
.scenario-answer-item .answer { background: rgba(255,255,255,0.03); padding: 18px; border-radius: 10px; border-left: 3px solid rgba(255,255,255,0.1); min-height: 100px; line-height: 1.8; color: rgba(255,255,255,0.75); }
.scenario-answer-item .answer.empty { color: rgba(255,255,255,0.35); font-style: italic; }

.email-send-section { background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.12); border-radius: 18px; padding: 35px; margin-top: 35px; text-align: center; }
.email-send-section h3 { color: rgba(255,255,255,0.85); margin-bottom: 15px; font-weight: 400; letter-spacing: 2px; }
.email-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none; align-items: center; justify-content: center;
    z-index: 20000;
}
.modal-overlay.show { display: flex; }
.modal {
    background: rgba(20,20,20,0.98);
    border-radius: 24px; padding: 45px;
    max-width: 480px; width: 90%; text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}
.modal h3 { font-size: 1.3rem; margin-bottom: 20px; font-weight: 400; letter-spacing: 2px; }
.modal p { color: rgba(255,255,255,0.5); margin-bottom: 28px; font-size: 0.95rem; }
.modal-buttons { display: flex; gap: 15px; justify-content: center; }

.hidden { display: none !important; }

/* ===== 切屏警告 ===== */
.cheat-warning {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(255,100,100,0.95);
    color: #fff; padding: 15px 30px; border-radius: 12px;
    z-index: 30000; font-size: 0.95rem; letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255,100,100,0.3);
    animation: slideDown 0.3s ease;
    display: none;
}
.cheat-warning.show { display: block; }
@keyframes slideDown { from { transform: translateX(-50%) translateY(-100%); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

.tab-switch-counter { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; background: rgba(255,100,100,0.15); border-radius: 20px; font-size: 0.8rem; color: #ff6464; }

.recruitment-closed-notice { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 25px; background: rgba(255,100,100,0.1); border: 1px solid rgba(255,100,100,0.3); border-radius: 8px; margin-bottom: 20px; }
.recruitment-closed-notice .notice-text { font-size: 1.1rem; font-weight: bold; color: #ff6464; letter-spacing: 2px; }

/* ===== 管理员登录 ===== */
.admin-login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,10,10,0.95);
    z-index: 10010;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s;
}
.admin-login-overlay.show { opacity: 1; visibility: visible; }
.admin-login-card {
    background: rgba(20,20,20,0.98);
    border-radius: 24px; border: 1px solid rgba(255,255,255,0.1);
    padding: 50px; width: 100%; max-width: 420px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.admin-login-card h2 { text-align: center; font-size: 1.5rem; font-weight: 400; margin-bottom: 10px; letter-spacing: 4px; }
.admin-login-card .subtitle { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 35px; letter-spacing: 1px; }
.admin-form-group { margin-bottom: 20px; }
.admin-form-group label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; letter-spacing: 1px; }
.admin-form-group input {
    width: 100%; padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: #fff;
    font-size: 1rem; letter-spacing: 1px; transition: all 0.3s;
}
.admin-form-group input:focus { outline: none; border-color: rgba(255,255,255,0.3); }
.admin-login-error { color: #ff6464; font-size: 0.85rem; margin-top: 10px; text-align: center; min-height: 20px; }
.admin-btn {
    width: 100%; padding: 15px; border: none;
    border-radius: 12px; font-size: 1rem;
    letter-spacing: 2px; cursor: pointer;
    transition: all 0.3s; margin-top: 10px;
}
.admin-btn-primary { background: linear-gradient(135deg, #fff 0%, #ccc 100%); color: #0a0a0a; }
.admin-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,0.15); }
.admin-btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.admin-entry-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: rgba(255,255,255,0.5);
    font-size: 0.75rem; letter-spacing: 1px;
    cursor: pointer; transition: all 0.3s;
}
.admin-entry-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }

/* ===== 管理后台布局 ===== */
.admin-layout {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg);
    z-index: 10009;
    display: none;
}
.admin-layout.show { display: flex; }

.admin-sidebar {
    width: 230px; background: var(--surface); min-height: 100vh;
    border-right: 1px solid var(--border); display: flex; flex-direction: column;
    flex-shrink: 0;
}
.admin-sidebar-brand {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 18px; border-bottom: 1px solid var(--border);
    font-size: 16px; font-weight: bold; color: var(--accent);
}
.admin-sidebar-close {
    background: none; border: 1px solid var(--border); color: var(--muted);
    width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: .2s;
}
.admin-sidebar-close:hover { border-color: var(--accent); color: var(--accent); }

.admin-sidebar-nav { flex: 1; padding: 12px 0; }
.admin-sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; color: var(--muted);
    text-decoration: none; font-size: 14px; transition: .2s;
    border-left: 3px solid transparent;
}
.admin-sidebar-nav a:hover, .admin-sidebar-nav a.active { color: #fff; background: rgba(212,175,55,0.08); border-left-color: var(--accent); }

.admin-sidebar-logout {
    margin: 16px; padding: 10px;
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); border-radius: 8px; cursor: pointer;
    font-size: 13px; transition: .2s;
}
.admin-sidebar-logout:hover { border-color: var(--accent); color: var(--accent); }

.admin-main { flex: 1; overflow-y: auto; padding: 32px 40px; }
.admin-page { display: none; }
.admin-page.active { display: block; }
.admin-page-title { font-size: 22px; font-weight: bold; margin-bottom: 24px; }
.admin-page-title span { color: var(--accent); }

/* ===== 仪表盘 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--card); padding: 22px; border-radius: 12px; border: 1px solid var(--border); text-align: center; }
.stat-card .num { font-size: 32px; font-weight: bold; margin-bottom: 6px; }
.num.c1 { color: var(--accent2); } .num.c2 { color: var(--blue); }
.num.c3 { color: var(--green); } .num.c4 { color: var(--orange); }
.stat-card .label { color: var(--muted); font-size: 13px; }

.section-subtitle { margin-bottom: 20px; font-size: 16px; color: var(--muted); }

.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card {
    background: var(--card); padding: 32px 24px; border-radius: 12px;
    border: 1px solid var(--border); text-decoration: none; color: var(--text);
    transition: .25s; cursor: pointer; text-align: center;
}
.quick-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.15); }
.quick-card .q-icon { font-size: 40px; margin-bottom: 14px; }
.quick-card h3 { font-size: 17px; margin-bottom: 6px; }
.quick-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }

.dashboard-recent { color: var(--muted); font-size: 13px; }
.dashboard-recent table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dashboard-recent th { padding: 8px 12px; text-align: left; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: normal; }
.dashboard-recent td { padding: 8px 12px; border-bottom: 1px solid var(--border); }

/* ===== 考试管理卡片 ===== */
.admin-panel-card {
    background: var(--card); border-radius: 16px;
    border: 1px solid var(--border); padding: 30px; margin-bottom: 24px;
}
.admin-panel-card h3 { font-size: 1.05rem; font-weight: 400; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); letter-spacing: 2px; }

.recruitment-control { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: rgba(255,255,255,0.02); border-radius: 14px; border: 1px solid var(--border-light); }
.recruitment-info h4 { font-size: 1rem; font-weight: 400; margin-bottom: 8px; }
.recruitment-info p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.toggle-switch { position: relative; width: 70px; height: 36px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,100,100,0.3); border-radius: 36px; transition: all 0.4s; border: 1px solid rgba(255,100,100,0.4); }
.toggle-slider::before { content: ''; position: absolute; width: 28px; height: 28px; left: 3px; bottom: 3px; background: #ff6464; border-radius: 50%; transition: all 0.4s; }
.toggle-switch input:checked + .toggle-slider { background: rgba(76,175,80,0.3); border-color: rgba(76,175,80,0.4); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(34px); background: #4CAF50; }

.current-status { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,0.02); border-radius: 10px; font-size: 0.9rem; }

.admin-list-container { max-height: 300px; overflow-y: auto; }
.admin-list-container table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-list-container th { padding: 8px 12px; text-align: left; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: normal; position: sticky; top: 0; background: var(--card); }
.admin-list-container td { padding: 8px 12px; border-bottom: 1px solid var(--border); }

.btn-admin-danger { background: rgba(244,67,54,0.3); color: #f44336; border: 1px solid rgba(244,67,54,0.5); padding: 8px 16px; border-radius: 6px; cursor: pointer; white-space: nowrap; }

/* ===== 题库编辑器 ===== */
.qb-toolbar { display: flex; gap: 10px; padding: 12px 0; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.qb-toolbar select, .qb-toolbar button, .qb-toolbar label {
    padding: 8px 14px; border-radius: 6px; font-size: 13px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    transition: .15s;
}
.qb-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.qb-toolbar button { border: none; color: #fff; white-space: nowrap; }
.qb-toolbar button:hover { filter: brightness(1.15); }
.qb-toolbar .qb-sep { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.qb-toolbar .qb-stats { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; }
.qb-toolbar .qb-stats span { color: var(--text); font-weight: bold; }
.qb-toast { color: var(--green); font-size: 12px; opacity: 0; transition: .3s; }
.qb-toast.show { opacity: 1; }

.btn-accent { background: var(--accent); }
.btn-blue { background: var(--blue); }
.btn-green { background: var(--green); }
.btn-export { background: #7c3aed; }

.qb-main { display: flex; height: calc(100vh - 280px); }
.qb-sidebar { width: 55%; border-right: 1px solid var(--border); overflow-y: auto; padding: 12px 16px; }
.qb-sidebar .qb-section { margin-bottom: 20px; }
.qb-sidebar .qb-section h2 {
    font-size: 13px; margin-bottom: 8px; padding-bottom: 5px;
    border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px;
}
.qb-item {
    background: var(--surface); padding: 8px 10px; border-radius: 6px;
    border: 1px solid var(--border); margin-bottom: 4px; display: flex;
    align-items: flex-start; gap: 8px; font-size: 12px;
    cursor: pointer; transition: .15s; border-left: 3px solid transparent;
}
.qb-item:hover { border-color: #444; }
.qb-item.active { border-left-color: var(--accent); background: #1e1e32; }
.qb-item.disabled { opacity: 0.55; }
.qb-item.disabled .qb-text { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.2); }
.qb-item .qb-num { color: var(--muted); min-width: 22px; font-weight: bold; }
.qb-item .qb-body { flex: 1; min-width: 0; }
.qb-item .qb-text { word-break: break-all; margin-bottom: 2px; line-height: 1.4; }
.qb-item .qb-meta { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.qb-item .qb-actions { display: flex; gap: 3px; flex-shrink: 0; }
.qb-item .qb-actions button { padding: 2px 6px; border-radius: 3px; font-size: 11px; cursor: pointer; background: transparent; border: 1px solid var(--border); color: var(--muted); }
.qb-item .qb-actions button:hover { border-color: var(--blue); color: var(--blue); }
.qb-item .qb-actions button.del:hover { border-color: var(--accent); color: var(--accent); }

.diff-tag { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 8px; font-weight: 600; }
.diff-tag.easy { background: rgba(46,204,113,0.15); color: var(--easy); }
.diff-tag.medium { background: rgba(243,156,18,0.15); color: var(--medium); }
.diff-tag.hard { background: rgba(233,69,96,0.15); color: var(--hard); }
.enabled-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.enabled-dot.on { background: var(--green); }
.enabled-dot.off { background: #555; }

.qb-right { width: 45%; display: flex; flex-direction: column; }
.qb-preview { flex: 1; overflow-y: auto; padding: 20px 24px; background: #0a0a0a; }
.qb-preview-hint { text-align: center; color: rgba(255,255,255,0.18); padding: 60px 20px; font-size: 0.9rem; }

.preview-box { background: rgba(15,15,15,0.95); border-radius: 16px; border: 1px solid rgba(255,255,255,0.06); padding: 28px; }
.preview-box .p-header { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.preview-box .p-type-tag { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 0.7rem; font-weight: 500; }
.preview-box .p-type-tag.choice { border: 1px solid rgba(0,245,255,0.2); color: var(--cyan); background: rgba(0,245,255,0.06); }
.preview-box .p-type-tag.judge { border: 1px solid rgba(0,255,100,0.2); color: var(--lime); background: rgba(0,255,100,0.06); }
.preview-box .p-type-tag.scenario { border: 1px solid rgba(255,165,0,0.2); color: var(--orange); background: rgba(255,165,0,0.06); }
.preview-box .p-diff-tag { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 600; }
.preview-box .p-diff-tag.easy { border: 1px solid rgba(46,204,113,0.2); color: var(--easy); background: rgba(46,204,113,0.06); }
.preview-box .p-diff-tag.medium { border: 1px solid rgba(243,156,18,0.2); color: var(--medium); background: rgba(243,156,18,0.06); }
.preview-box .p-diff-tag.hard { border: 1px solid rgba(233,69,96,0.2); color: var(--hard); background: rgba(233,69,96,0.06); }
.preview-box .p-disabled-tag { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 0.65rem; color: #555; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.preview-box .p-q-text { font-size: 0.95rem; line-height: 1.8; margin-bottom: 22px; color: rgba(255,255,255,0.9); white-space: pre-wrap; }
.preview-box .p-options { display: flex; flex-direction: column; gap: 10px; }
.preview-box .p-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,0.02); border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); }
.preview-box .p-opt.correct { border-color: rgba(46,204,113,0.3); background: rgba(46,204,113,0.06); }
.preview-box .p-opt .letter { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border-radius: 6px; font-weight: 600; color: rgba(255,255,255,0.7); flex-shrink: 0; font-size: 0.8rem; }
.preview-box .p-opt.correct .letter { background: rgba(46,204,113,0.2); color: var(--green); }
.preview-box .p-opt-text { flex: 1; line-height: 1.5; color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.preview-box .p-judge-row { display: flex; gap: 12px; }
.preview-box .p-judge-btn { flex: 1; padding: 18px; text-align: center; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); font-size: 0.9rem; }
.preview-box .p-judge-btn .icon { font-size: 1.5rem; margin-bottom: 6px; }
.preview-box .p-judge-btn.correct { border-color: rgba(46,204,113,0.3); background: rgba(46,204,113,0.06); }
.preview-box .p-answer-box { background: rgba(255,255,255,0.02); border-radius: 10px; padding: 14px; border: 1px solid rgba(255,165,0,0.1); line-height: 1.7; color: rgba(255,255,255,0.6); white-space: pre-wrap; font-size: 0.85rem; }
.preview-box .p-answer-box .label { color: var(--orange); font-weight: bold; margin-bottom: 6px; font-size: 0.8rem; }

.qb-edit { border-top: 1px solid var(--border); padding: 14px 16px; background: var(--surface); max-height: 45vh; overflow-y: auto; }
.qb-edit h3 { font-size: 12px; margin-bottom: 10px; color: var(--accent); }
.qb-edit label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; margin-top: 6px; }
.qb-edit textarea, .qb-edit input, .qb-edit select {
    width: 100%; padding: 6px; border-radius: 4px;
    background: var(--bg); border: 1px solid var(--border); color: #fff;
    font-size: 13px; font-family: inherit;
}
.qb-edit textarea { min-height: 50px; resize: vertical; }
.qb-edit .opt-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.qb-edit .opt-row span { color: var(--muted); width: 16px; font-size: 11px; }
.qb-edit .opt-row input { flex: 1; }
.qb-edit .meta-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; }
.qb-edit .meta-row .field { flex: 1; }
.qb-edit .enabled-check { display: flex; align-items: center; gap: 6px; padding-top: 16px; }
.qb-edit .enabled-check input { width: auto; accent-color: var(--green); }
.qb-edit-btns { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; }
.qb-edit-btns button { padding: 5px 12px; border-radius: 4px; font-size: 11px; cursor: pointer; border: none; color: #fff; }
.qb-btn-save { background: var(--accent); }
.qb-btn-cancel { background: var(--border); }
.qb-btn-new { background: var(--blue); margin-right: auto; }

/* ===== 档案室 ===== */
.archive-toolbar {
    display: none; align-items: center; justify-content: space-between;
    padding: 8px 16px; background: #0a0a18; border-bottom: 1px solid var(--border);
    font-size: 12px; color: var(--orange); margin-bottom: 12px; border-radius: 6px;
}
.archive-toolbar.show { display: flex; }
.archive-toolbar button { padding: 4px 12px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 12px; transition: .15s; margin-left: 8px; }
.archive-toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.archive-toolbar button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.archive-layout { display: flex; height: calc(100vh - 220px); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.archive-sidebar { width: 260px; background: var(--surface); border-right: 1px solid var(--border); flex-shrink: 0; overflow-y: auto; display: flex; flex-direction: column; }
.archive-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; border-bottom: 1px solid var(--border); }
.archive-sidebar-header h3 { font-size: 13px; color: var(--accent); }
.archive-sidebar-header button {
    width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--border);
    background: transparent; color: var(--muted); cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.archive-sidebar-header button.active { background: rgba(233,69,96,.15); border-color: var(--accent); color: var(--accent); }
.archive-sidebar-nav { flex: 1; overflow-y: auto; }

.archive-cat-group { border-bottom: 1px solid rgba(255,255,255,.03); }
.archive-cat-header { display: flex; align-items: center; gap: 5px; padding: 9px 12px; cursor: pointer; transition: .15s; }
.archive-cat-header:hover { background: rgba(255,255,255,.03); }
.archive-cat-header .arrow { font-size: 8px; color: var(--muted); width: 12px; text-align: center; transition: transform .2s; }
.archive-cat-header .arrow.open { transform: rotate(90deg); }
.archive-cat-header .cat-name { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; flex: 1; font-weight: 600; }
.archive-cat-header .cat-count { font-size: 10px; color: var(--muted); opacity: .5; }
.archive-cat-docs { overflow: hidden; }
.archive-cat-docs.collapsed { display: none; }
.archive-doc-item {
    display: flex; align-items: center; gap: 5px; padding: 7px 14px 7px 30px;
    color: var(--muted); text-decoration: none; font-size: 13px; cursor: pointer;
    transition: .12s; border-left: 3px solid transparent;
}
.archive-doc-item:hover { color: #fff; background: rgba(255,255,255,.03); }
.archive-doc-item.active { color: var(--accent); background: rgba(233,69,96,.08); border-left-color: var(--accent); }
.archive-doc-item .doc-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-add-bar { display: none; padding: 8px 12px; gap: 5px; border-top: 1px solid var(--border); }
.archive-add-bar.show { display: flex; flex-wrap: wrap; }
.archive-add-bar button {
    padding: 4px 9px; border-radius: 4px; border: 1px dashed var(--border);
    background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; transition: .15s;
}
.archive-add-bar button:hover { border-color: var(--accent); color: var(--accent); }

.archive-content { flex: 1; padding: 24px 32px; overflow-y: auto; }
.archive-content h1 { font-size: 22px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--accent); }
.archive-content h2 { font-size: 16px; margin: 20px 0 10px; color: #fff; }
.archive-content h3 { font-size: 14px; margin: 14px 0 7px; color: var(--blue); }
.archive-content p, .archive-content li { line-height: 1.8; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.archive-content ul, .archive-content ol { padding-left: 18px; margin-bottom: 10px; }
.archive-content strong { color: var(--text); }
.archive-content .highlight { background: rgba(233,69,96,.15); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 5px 5px 0; margin: 10px 0; }
.archive-content .highlight p { margin: 0; color: #fff; }
.archive-content table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12px; }
.archive-content th, .archive-content td { padding: 7px 10px; border: 1px solid var(--border); text-align: left; }
.archive-content th { background: var(--surface); color: var(--accent); font-weight: bold; }
.archive-content td { color: var(--muted); }
.archive-empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ===== 人员名单 ===== */
.staff-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.staff-tab-btn { padding: 10px 24px; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .2s; }
.staff-tab-btn:hover { color: #fff; }
.staff-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.staff-tab-content { display: none; }
.staff-tab-content.active { display: block; }

.staff-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.staff-toolbar input { padding: 8px 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: #fff; font-size: 13px; width: 220px; }
.staff-toolbar button { padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 13px; color: #fff; }
.staff-toolbar .btn-refresh { background: var(--blue); }
.staff-toolbar .btn-ban { background: var(--accent); }
.staff-count { color: var(--muted); font-size: 12px; margin-left: 12px; }

.staff-table-wrap { overflow-y: auto; max-height: calc(100vh - 340px); }
.staff-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.staff-table th { padding: 10px 12px; text-align: left; color: var(--muted); font-weight: normal; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); }
.staff-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.staff-table tr:hover td { background: rgba(255,255,255,.03); }
.staff-empty { text-align: center; padding: 30px 20px; color: var(--muted); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.tag-server { background: rgba(52,152,219,.2); color: var(--blue); }
.tag-community { background: rgba(46,204,113,.2); color: var(--green); }
.tag-pass { background: rgba(46,204,113,.2); color: var(--green); }
.tag-fail { background: rgba(233,69,96,.2); color: var(--accent); }
.tag-pending { background: rgba(243,156,18,.2); color: var(--orange); }
.tag-banned { background: rgba(233,69,96,.3); color: #fff; }
.tag-success { background: rgba(46,204,113,.2); color: var(--green); }
.tag-danger { background: rgba(233,69,96,.2); color: var(--accent); }

/* 通用辅助 */
.empty-text, .empty-cell { text-align: center; padding: 30px 20px; color: var(--muted); font-size: 13px; }

/* 题库新标签系统 */
.qb-tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 9px; font-weight: 600; margin-right: 4px; }
.qb-tag-type { background: rgba(0,245,255,.15); color: var(--cyan); }
.qb-tag-easy { background: rgba(46,204,113,.15); color: var(--easy); }
.qb-tag-medium { background: rgba(243,156,18,.15); color: var(--medium); }
.qb-tag-hard { background: rgba(233,69,96,.15); color: var(--hard); }
.qb-tag-off { background: rgba(255,255,255,.06); color: #555; }
.qb-label { font-size: 11px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-disabled { opacity: 0.55; }
.qb-disabled .qb-label { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.2); }

/* 题库预览 */
.preview-type { font-size: 11px; color: var(--cyan); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.preview-q { font-size: 14px; line-height: 1.8; margin-bottom: 16px; color: rgba(255,255,255,0.9); white-space: pre-wrap; }
.preview-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.preview-opts div { padding: 10px 14px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: rgba(255,255,255,0.7); }
.preview-a { padding: 12px 16px; background: rgba(46,204,113,.08); border-radius: 8px; border: 1px solid rgba(46,204,113,.2); font-size: 13px; color: var(--green); }

/* 人员名单面板 */
.staff-panel { display: none; }
.staff-panel.active { display: block; }

/* 档案室编辑区域 */
.archive-edit-area { padding: 24px; }
.archive-edit-area .form-group { margin-bottom: 16px; }
.archive-edit-area .form-group label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.archive-count { font-size: 10px; color: var(--muted); background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 8px; }
.archive-body { line-height: 1.8; }
.archive-body h2, .archive-body h3, .archive-body h4 { color: var(--accent); margin: 16px 0 8px; }
.archive-body ul { padding-left: 18px; margin-bottom: 10px; }
.archive-body li { color: var(--muted); margin-bottom: 4px; font-size: 13px; }
.archive-body strong { color: var(--text); }
.archive-body br { display: block; margin-bottom: 4px; content: ''; }

/* 答卷详情弹窗 */
.record-detail-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.7); z-index: 25000; display: none;
    align-items: center; justify-content: center;
}
.record-detail-modal.show { display: flex; }
.record-detail-modal .modal-content {
    background: var(--card); border-radius: 16px; border: 1px solid var(--border);
    padding: 30px; max-width: 700px; width: 95%; max-height: 80vh; overflow-y: auto;
}
.record-detail-modal h3 { margin-bottom: 16px; color: var(--accent); }
.record-detail-modal h4 { margin: 16px 0 8px; color: var(--blue); }
.record-detail-modal p { color: var(--muted); margin-bottom: 8px; font-size: 13px; }
.result-item { padding: 8px 12px; border-radius: 6px; margin-bottom: 6px; font-size: 12px; border: 1px solid var(--border); }
.result-item.correct { border-color: rgba(46,204,113,.3); background: rgba(46,204,113,.06); }
.result-item.incorrect { border-color: rgba(233,69,96,.3); background: rgba(233,69,96,.06); }
.result-item strong { color: var(--text); }
.scenario-result { background: rgba(255,165,0,.05); border-color: rgba(255,165,0,.15); }

/* 侧边栏关闭按钮 */

/* 导航项样式 */
.admin-nav-item { 
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; color: var(--muted); text-decoration: none;
    border-left: 3px solid transparent; transition: .15s; cursor: pointer;
    font-size: 14px;
}
.admin-nav-item:hover, .admin-nav-item.active { color: #fff; background: rgba(212,175,55,0.08); border-left-color: var(--accent); }

/* Toast */
.toast { 
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    padding: 10px 24px; border-radius: 8px; font-size: 13px; z-index: 30000;
    transition: opacity .3s; pointer-events: none; opacity: 0; color: #fff;
}
.toast.show { opacity: 1; }
.toast-success { background: var(--green); }
.toast-error { background: var(--accent); }

/* ===== Toast ===== */
.global-toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: #fff; padding: 10px 24px; border-radius: 8px;
    font-size: 13px; z-index: 30000; transition: opacity .3s; pointer-events: none;
    opacity: 0;
}
.global-toast.show { opacity: 1; }
.global-toast.error { background: var(--accent); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .navbar { padding: 15px 20px; }
    .logo-text { display: none; }
    .container { padding: 100px 20px 50px; }
    .card { padding: 30px 20px; }
    .exam-type-grid { grid-template-columns: 1fr; }
    .score-details { grid-template-columns: repeat(2, 1fr); }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; }
    .admin-sidebar { width: 180px; }
    .admin-main { padding: 24px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-links { grid-template-columns: 1fr; }
    .qb-main { flex-direction: column; height: auto; }
    .qb-sidebar { width: 100%; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border); }
    .qb-right { width: 100%; }
    .archive-layout { flex-direction: column; height: auto; }
    .archive-sidebar { width: 100%; max-height: 30vh; }
    .exam-body { flex-direction: column; }
    .exam-sidebar { width: 100%; min-width: unset; position: relative; top: 0; }
    .question-container { padding: 20px; }
    .judge-options { flex-direction: column; }
}

@media print {
    .navbar, .btn-group, .modal-overlay, .email-send-section, .bg-pattern { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .question-container, .scorecard-header { background: #fff; border: 1px solid #ddd; }
}

.kbd-hint {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px; padding: 2px 8px;
    font-family: monospace; font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin: 0 4px;
}

.loading-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ===== 考试端专属样式 ===== */

/* 免责声明链接 */
.disclaimer-link {
    display: inline-block;
    color: rgba(255,165,0,0.6);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 1px;
    padding: 6px 16px;
    border: 1px solid rgba(255,165,0,0.15);
    border-radius: 6px;
    transition: all 0.3s;
    margin-bottom: 8px;
    background: rgba(255,140,0,0.04);
}
.disclaimer-link:hover {
    color: rgba(255,165,0,0.9);
    border-color: rgba(255,165,0,0.4);
    background: rgba(255,140,0,0.08);
}

/* 招募状态横幅 */
.recruitment-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    border-radius: 14px;
    margin-bottom: 24px;
    transition: all 0.4s;
    flex-wrap: wrap;
}
.recruitment-status-banner.open {
    background: linear-gradient(135deg, rgba(46,204,113,0.08) 0%, rgba(46,204,113,0.03) 100%);
    border: 1px solid rgba(46,204,113,0.3);
    box-shadow: 0 0 30px rgba(46,204,113,0.06);
}
.recruitment-status-banner.closed {
    background: linear-gradient(135deg, rgba(255,100,100,0.08) 0%, rgba(255,100,100,0.03) 100%);
    border: 1px solid rgba(255,100,100,0.3);
    box-shadow: 0 0 30px rgba(255,100,100,0.06);
}
.recruitment-status-banner .status-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}
.recruitment-status-banner.open .status-icon { color: #4CAF50; }
.recruitment-status-banner.closed .status-icon { color: #ff6464; }
.recruitment-status-banner .status-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.recruitment-status-banner.open .status-text { color: #4CAF50; }
.recruitment-status-banner.closed .status-text { color: #ff6464; }
.recruitment-status-banner .status-detail {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
}
.recruitment-status-banner .status-detail::before {
    content: '|';
    margin-right: 12px;
    color: rgba(255,255,255,0.15);
}

/* 考试界面 - 高亮动画 */
@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    70% { box-shadow: 0 0 20px 4px rgba(255,255,255,0.1); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.question-container.highlight-pulse {
    animation: highlightPulse 1.5s ease-out;
}
