/* ============ 全局重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-image: url('../images/photo4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
}

/* ============ 导航栏 ============ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 40px;
    background-color: #204d79;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .logo { display: flex; align-items: center; font-weight: 600; font-size: 15px; }
.navbar .logo i { margin-right: 10px; }
.navbar .nav-links { display: flex; gap: 24px; font-size: 14px; }
.navbar .nav-links a {
    color: #e0e7ef;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.navbar .nav-links a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.navbar .nav-icons {
    display: flex;
    gap: 20px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    position: relative;
}

/* ============ 用户下拉菜单 ============ */
.user-menu-container { position: relative; cursor: pointer; padding-bottom: 10px; }
.user-menu-container i { font-size: 20px; }
.user-dropdown {
    display: none;
    position: absolute;
    right: -10px;
    top: 30px;
    background: #fff;
    width: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 999;
    color: #333;
    font-size: 14px;
}
.user-dropdown.show { display: block; }
.user-dropdown .dropdown-header {
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: bold;
    text-align: center;
    color: #1a3b5c;
}
.user-dropdown a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
    cursor: pointer;
}
.user-dropdown a:hover { background: #f1f5f9; }

/* ============ 全屏提示 ============ */
.fullscreen-hint {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
.fullscreen-hint.show { opacity: 1; animation: fadeOut 3s forwards; }
@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* ============ 居中提示弹层 ============ */
.alert-layer {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.alert-layer.show { display: flex; opacity: 1; }
.alert-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 32px 28px 22px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(10px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.alert-layer.show .alert-box { transform: scale(1) translateY(0); }
.alert-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 16px;
    animation: iconPop 0.4s ease 0.1s backwards;
}
@keyframes iconPop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.alert-icon.error   { background: #fff2f0; color: #ff4d4f; }
.alert-icon.success { background: #f6ffed; color: #52c41a; }
.alert-icon.info    { background: #e6f4ff; color: #1677ff; }
.alert-icon.warning { background: #fffbe6; color: #faad14; }
.alert-title { font-size: 17px; font-weight: bold; color: #1a3b5c; margin-bottom: 10px; }
.alert-message {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: center;
}
.alert-btn {
    width: 100%;
    padding: 11px 0;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.alert-btn:hover { background: #1d4ed8; }
.alert-btn.error   { background: #ff4d4f; }
.alert-btn.error:hover { background: #d9363e; }
.alert-btn.success { background: #52c41a; }
.alert-btn.success:hover { background: #389e0d; }
.alert-btn.warning { background: #faad14; }
.alert-btn.warning:hover { background: #d48806; }

/* ============ 登录页 ============ */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 56px);
    padding: 20px;
}
.login-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 50px 40px;
    text-align: center;
}
.login-card h2 { color: #1a3b5c; margin-bottom: 10px; }
.login-card p { color: #888; font-size: 14px; margin-bottom: 30px; }
.login-form-group { margin-bottom: 20px; text-align: left; }
.login-form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 5px; }
.login-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}
.login-form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.login-form-group input:disabled { background: #f3f4f6; }
.login-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    line-height: 1.6;
    text-align: left;
}
.btn-login {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px 0;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}
.btn-login:hover { background: #1d4ed8; }
.btn-login:disabled { background: #93b4f5; cursor: wait; }

/* ============ 主页 ============ */
#home-screen {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: calc(100vh - 56px);
}
.main-card {
    background: #fff;
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    display: flex;
    gap: 50px;
}
.left-panel { flex: 0 0 320px; }
.left-panel h3 { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 15px; }
.left-panel ol {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    padding-left: 20px;
    font-weight: bold;
}
.left-panel ol li { margin-bottom: 6px; }
.right-panel { flex: 1; }
.right-panel h2 {
    font-size: 22px;
    text-align: center;
    color: #1a3b5c;
    margin-bottom: 15px;
    font-weight: 500;
}
#user-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 15px;
    color: #333;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* ============ 考试项卡片 ============ */
.exam-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    background-color: #fdfdfd;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    outline: 2px solid transparent;
    outline-offset: -2px;
}
.exam-item.selected {
    border-color: #3b82f6;
    background-color: #f7fbff;
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
    box-shadow: 0 0 0 1px #3b82f6;
}
.exam-item.selected .exam-title { color: #000000; }
.exam-info { display: flex; flex-direction: column; gap: 6px; }
.exam-title { font-size: 15px; font-weight: bold; color: #1a3b5c; }
.exam-meta { font-size: 13px; color: #888; display: flex; gap: 15px; align-items: center; }
.exam-meta span { display: flex; align-items: center; gap: 4px; }
.exam-result { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.exam-score { font-size: 16px; font-weight: bold; }
.exam-score.fail { color: #ff4d4f; }
.exam-score.pass { color: #52c41a; }
.exam-status { font-size: 13px; }
.exam-status.fail { color: #ff4d4f; }
.exam-status.pass { color: #52c41a; }

/* ============ 复选框 ============ */
.checkbox-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    position: relative;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    background-color: transparent;
    transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-container label { cursor: pointer; transition: color 0.3s ease; }
.checkbox-container.checkbox-error {
    border-color: #ff4d4f;
    background-color: #fff2f0;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15);
}
.checkbox-container:not(.checkbox-error) {
    border-color: transparent;
    background-color: transparent;
    box-shadow: none;
}

/* ============ 开始按钮 ============ */
.btn-start {
    width: 100%;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 20px;
    transition: all 0.3s;
}
.btn-start.inactive { background-color: #a8d5ff; color: #ffffff; cursor: not-allowed; }
.btn-start.active { background-color: #2563eb; color: #fff; cursor: pointer; }
.btn-start.active:hover { background-color: #1d4ed8; }

/* ============ 加载遮罩 ============ */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.loading-card {
    background: #ffffff;
    width: 420px;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.load-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #4a83f2;
    margin-bottom: 10px;
}
.load-title { font-size: 18px; font-weight: bold; color: #111; margin-top: -10px; }
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.steps-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 5px 0 15px 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #aaa;
}
.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ddd;
    transition: all 0.3s;
    background: white;
}
.step-item.active .step-icon {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f7ff;
}
.step-item.active { color: #111; }
.tips {
    width: 100%;
    background: #f0f7ff;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
    color: #333;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.tips span { font-weight: bold; color: #3b82f6; }

/* ============ 考试页 ============ */
#exam-screen {
    display: none;
    flex-direction: column;
    padding: 20px;
    height: calc(100vh - 56px);
    background: rgba(245, 247, 250, 0.5);
    backdrop-filter: blur(8px);
    width: 100%;
}
.exam-layout {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    width: 100%;
}
.side-panel-left {
    flex: 0 0 220px;
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}
.side-panel-left .avatar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f2f6fc;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin-bottom: 10px;
}
.side-panel-left .total-score { font-weight: bold; font-size: 14px; margin-bottom: 15px; }
.side-panel-left .timer-title { color: #666; font-size: 13px; margin-bottom: 5px; }
.side-panel-left .timer-display { font-size: 28px; font-weight: 600; color: #111; margin-bottom: 15px; }
#exam-student-info {
    text-align: center;
    margin-bottom: 12px;
    width: 100%;
    background: #f8fafc;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
#exam-student-info .exam-name { font-weight: bold; font-size: 14px; color: #1a3b5c; margin-bottom: 2px; }
#exam-student-info .exam-id { font-size: 12px; color: #888; }

.btn-submit {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 8px;
    margin-bottom: 12px;
}
.btn-submit:hover { background: #1d4ed8; }
.btn-submit.disabled { background: #ccc; cursor: not-allowed; }

.warning-box {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    margin-bottom: 20px;
    display: none;
    align-items: flex-start;
    gap: 10px;
    transition: opacity 0.5s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-8px);
}
.warning-box.show { display: flex; opacity: 1; transform: translateY(0); }
.warning-box i { color: #ff4d4f; margin-top: 2px; }
.warning-box .w-title { font-size: 13px; color: #ff4d4f; font-weight: bold; margin-bottom: 2px; }
.warning-box .w-desc { font-size: 12px; color: #ff4d4f; line-height: 1.4; }

.filter-area {
    display: none;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.filter-area.show { display: block; }
.filter-area .filter-title { font-weight: bold; margin-bottom: 6px; color: #1a3b5c; font-size: 14px; }
.filter-area label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-area input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.btn-home {
    width: 100%;
    background: #6b7280;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 8px;
}
.btn-home:hover { background: #4b5563; }

.main-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    position: relative;
    overflow-y: auto;
}
.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 20px 30px;
    background: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.exam-header .title {
    text-align: center;
    color: #1a3b5c;
    flex: 1;
    font-size: 17px;
    font-weight: bold;
}
.exam-header .progress-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    flex: 1;
    justify-content: flex-end;
}
.exam-header .progress-info:first-child { justify-content: flex-start; }

#questions-container { padding: 20px 30px; }
.question-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fcfcfc;
}
.q-head { display: flex; justify-content: space-between; margin-bottom: 15px; }
.q-head span { font-size: 16px; font-weight: bold; color: #1a3b5c; }
.q-options label {
    display: block;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
    font-size: 14px;
}
.q-options label:hover { background: #f6faff; border-color: #d1e4f5; }
.q-options input[type="radio"] { margin-right: 10px; }
.q-options label:has(input:checked) { border-color: #3b82f6; background: #f0f7ff; }

/* ============ 右侧答题卡 ============ */
.side-panel-right {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.answer-sheet-static { flex-shrink: 0; }
.answer-sheet-title { font-size: 15px; font-weight: bold; margin-bottom: 10px; color: #1a3b5c; }
.progress-wrap { margin-bottom: 20px; }
.progress-text {
    font-size: 13px;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.progress-bar-line {
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    width: 100%;
    position: relative;
}
.progress-bar-fill {
    height: 100%;
    background: #52c41a;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s;
}
.legend { display: flex; gap: 15px; font-size: 12px; margin-bottom: 20px; }
.legend span::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}
.legend .done::before { background: #4a83f2; }
.legend .doing::before { background: #f9c82e; }
.legend .todo::before { background: #f2f2f2; border: 1px solid #e1e1e1; }
.legend .correct::before { background: #52c41a; }
.legend .wrong::before { background: #ff4d4f; }
.question-type { font-weight: 500; font-size: 14px; margin: 0 0 10px 0; color: #1a3b5c; }
.grid-scroll-container { flex: 1; overflow-y: auto; padding-right: 5px; }
.grid-scroll-container::-webkit-scrollbar { width: 6px; }
.grid-scroll-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid-item {
    height: 32px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    background: #f2f2f2;
    border: 1px solid #e1e1e1;
}
.grid-item.done { background: #4a83f2; color: #fff; border-color: #4a83f2; }
.grid-item.correct { background: #52c41a; color: #fff; border-color: #52c41a; }
.grid-item.wrong { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }
.grid-item.card-hover {
    background: #f9c82e !important;
    color: #fff !important;
    border-color: #f9c82e !important;
    transform: scale(1.05);
    z-index: 1;
}

/* ============ 提交弹窗 ============ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-box {
    background: #fff;
    width: 420px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.modal-header h3 { font-size: 16px; font-weight: bold; color: #1a3b5c; }
.modal-header i { cursor: pointer; color: #999; }
.modal-header i:hover { color: #333; }
.modal-body { margin-bottom: 24px; }
.modal-body p { font-size: 14px; color: #333; margin-bottom: 8px; }
.modal-body .statistics { font-size: 13px; color: #333; }
.modal-body .statistics span { font-weight: bold; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; }
.modal-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}
.modal-btn-cancel { background: #f3f4f6; color: #4b5563; }
.modal-btn-cancel:hover { background: #e5e7eb; }
.modal-btn-confirm { background: #2563eb; color: white; }
.modal-btn-confirm:hover { background: #1d4ed8; }

/* ============ 显示/隐藏状态 ============ */
#login-screen.hide { display: none; }
#home-screen.show { display: flex; }
#loading-overlay.show { display: flex; }
#exam-screen.show { display: flex; }
.modal-overlay.show { display: flex; }
.result-area.show { display: flex; }

/* ============ 结果页 ============ */
.result-option {
    display: block;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
    cursor: default;
}
.result-option.correct-answer { border: 2px solid #52c41a; background: #f6ffed; color: #333; }
.result-option.wrong-answer { border: 2px solid #ff4d4f; background: #fff2f0; color: #333; }
.feedback-box {
    margin-top: 15px;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ffccc7;
    background: #fff2f0;
}
.feedback-box .exp-title {
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.feedback-box .exp-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-top: 5px;
}
.result-area {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 30px;
    flex: 1;
    background: #fff;
}
.icon-check {
    font-size: 70px;
    border: 5px solid #52c41a;
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 20px;
    background: #f6ffed;
}
.icon-check.pass { color: #52c41a; border-color: #52c41a; background: #f6ffed; }
.icon-check.fail { color: #ff4d4f; border-color: #ff4d4f; background: #fff2f0; }
.result-title { font-size: 20px; font-weight: 500; color: #111; margin-bottom: 10px; }
.result-score { font-size: 48px; font-weight: bold; margin-bottom: 20px; }
.result-score.pass { color: #52c41a; }
.result-score.fail { color: #ff4d4f; }
.result-status-title { font-size: 16px; font-weight: bold; margin-bottom: 30px; }
.result-status-title.pass { color: #52c41a; }
.result-status-title.fail { color: #ff4d4f; }
.result-actions { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.action-btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}
.btn-green { background: #52c41a; }
.btn-blue { background: #3b82f6; }
.btn-orange { background: #f59e0b; }
.result-hint { font-size: 13px; color: #666; margin-bottom: 20px; }
.countdown-box {
    width: 100%;
    max-width: 400px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 30px;
}
.countdown-box span { font-weight: bold; color: #111; }

/* ============ 后台管理 ============ */
#admin-screen {
    display: none;
    padding: 20px;
    min-height: calc(100vh - 56px);
    justify-content: center;
    align-items: flex-start;
}
.admin-card {
    background: #fff;
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-top: 30px;
}
.admin-card h2 {
    font-size: 22px;
    text-align: center;
    color: #1a3b5c;
    margin-bottom: 25px;
    font-weight: 500;
}
.admin-actions { display: flex; justify-content: space-between; margin-bottom: 20px; }
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
th, td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
th { background: #f8fafc; color: #1a3b5c; font-weight: bold; }
tr:last-child td { border-bottom: none; }
.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.status-pass { background: #f6ffed; color: #52c41a; }
.status-fail { background: #fff2f0; color: #ff4d4f; }
.btn-danger {
    background: #ff4d4f;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.btn-danger:hover { background: #d9363e; }
.btn-blue-admin {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
#no-records { text-align: center; padding: 30px; color: #888; display: none; }
#admin-screen.show { display: flex; }

/* ============ 我的记录 ============ */
#my-records-screen {
    display: none;
    padding: 20px;
    min-height: calc(100vh - 56px);
    justify-content: center;
    align-items: flex-start;
}
.records-card {
    background: #fff;
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-top: 30px;
}
.records-card h2 {
    font-size: 22px;
    text-align: center;
    color: #1a3b5c;
    margin-bottom: 25px;
    font-weight: 500;
}
#my-records-screen.show { display: flex; }

/* ============ 刷新恢复弹层 ============ */
.refresh-restore-box {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}
.refresh-restore-box.show { display: flex; }
.refresh-restore-box .restore-card {
    background: #fff;
    padding: 40px 50px;
    border-radius: 16px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.refresh-restore-box .restore-card .icon { font-size: 50px; color: #f59e0b; margin-bottom: 16px; }
.refresh-restore-box .restore-card h3 { font-size: 20px; color: #1a3b5c; margin-bottom: 10px; }
.refresh-restore-box .restore-card p { font-size: 14px; color: #666; line-height: 1.6; }
.refresh-restore-box .restore-card .btn-restore {
    margin-top: 20px;
    padding: 10px 30px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.refresh-restore-box .restore-card .btn-restore:hover { background: #1d4ed8; }