/* ===================================================
   二中高新招生签约系统 - 现代化 UI v3
   设计理念：Glass-morphism + 微动画 + 柔和渐变
   主色调：深蓝 #0f2b5e / 品牌蓝 #1e5fbb / 活力蓝 #3b82f6
   辅助色：翡翠绿 #059669 / 琥珀橙 #d97706 / 玫红 #dc2626
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8edf5 50%, #f5f0ff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; min-height: 100vh; }

/* ===================================================
   登录页 - 保持原有设计不变
   =================================================== */
.login-page {
    width: 100%;
    height: 100vh;
    background-color: #c8d8e8;
    background-position: center 60%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    top: 0; left: 0;
    z-index: 10;
    overflow: hidden;
}

.login-bg-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.22) 40%,
        rgba(26,58,107,0.28) 100%
    );
    z-index: 0;
}

.login-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(26,58,107,0.7), 0 0 32px rgba(26,58,107,0.5), 0 1px 0 rgba(0,0,0,0.3);
    letter-spacing: 3px;
    text-align: center;
}

.login-box {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 40px 48px;
    width: 420px;
    max-width: 94vw;
    box-shadow: 0 12px 60px rgba(26,58,107,0.30), 0 2px 8px rgba(0,0,0,0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.login-box h2 {
    text-align: center;
    font-size: 19px;
    font-weight: 600;
    color: #1a3a6b;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.login-box .form-group { margin-bottom: 20px; }

.login-box .form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 7px;
    font-weight: 500;
}

.login-box .form-group input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #cdd8ea;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.login-box .form-group input:focus {
    border-color: #4a7fc1;
    box-shadow: 0 0 0 3px rgba(74,127,193,0.15);
}

.login-box .btn-primary {
    width: 100%;
    height: 46px;
    background: #1a3a6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    letter-spacing: 3px;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.login-box .btn-primary:hover { background: #2a5298; }
.login-box .btn-primary:active { transform: scale(0.98); }

.error-message {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    min-height: 18px;
}

/* ===================================================
   通用页面 - 现代化升级
   =================================================== */
.page {
    display: none;
    min-height: 100vh;
    background: linear-gradient(160deg, #f0f5ff 0%, #e8edf5 40%, #f5f0ff 100%);
    animation: pageEnter 0.35s ease-out;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   顶部导航栏 - 毛玻璃效果
   =================================================== */
.header {
    background: linear-gradient(135deg, rgba(15,43,94,0.95) 0%, rgba(30,95,187,0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(15,43,94,0.2), 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
    background: linear-gradient(90deg, #fff, #c7d7f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-right span {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-right: 4px;
    white-space: nowrap;
    font-weight: 500;
}

/* ===================================================
   按钮系统 - 现代化圆润设计 + 微动画
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.3px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    pointer-events: none;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0) scale(0.97); }

/* 主色按钮：品牌蓝渐变 */
.btn-primary {
    background: linear-gradient(135deg, #1e5fbb 0%, #3b82f6 100%);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0f2b5e 0%, #1e5fbb 100%);
    box-shadow: 0 4px 16px rgba(30,95,187,0.4);
}

/* 次色按钮 */
.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: #fff;
    border: none;
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    box-shadow: 0 4px 16px rgba(71,85,105,0.3);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
}
.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #fff;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(217,119,6,0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #fff;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    box-shadow: 0 4px 16px rgba(220,38,38,0.3);
}

.btn-info {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #fff;
}
.btn-info:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    box-shadow: 0 4px 16px rgba(2,132,199,0.3);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* 导航栏透明按钮 - 毛玻璃风格 */
.btn-outline {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.btn-outline::after { display: none; }
.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 2px 12px rgba(255,255,255,0.1);
}

/* 退出按钮 */
.btn-logout {
    background: rgba(239,68,68,0.12);
    color: #fca5a5;
    border: 1.5px solid rgba(239,68,68,0.3);
}
.btn-logout::after { display: none; }
.btn-logout:hover {
    background: rgba(239,68,68,0.25);
    color: #fff;
    border-color: rgba(239,68,68,0.6);
}

/* 表格内小按钮 - 药丸形状 */
.btn-table {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 2px;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.btn-table:hover { transform: translateY(-1px); }

.btn-edit {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1e5fbb;
    border: 1px solid #bfdbfe;
}
.btn-edit:hover { background: linear-gradient(135deg, #bfdbfe, #dbeafe); box-shadow: 0 2px 8px rgba(30,95,187,0.2); }

.btn-delete {
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    color: #dc2626;
    border: 1px solid #fecaca;
}
.btn-delete:hover { background: linear-gradient(135deg, #fecaca, #fee2e2); box-shadow: 0 2px 8px rgba(220,38,38,0.2); }

.btn-view {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: #059669;
    border: 1px solid #a7f3d0;
}
.btn-view:hover { background: linear-gradient(135deg, #a7f3d0, #d1fae5); box-shadow: 0 2px 8px rgba(5,150,105,0.2); }

/* ===================================================
   内容区域
   =================================================== */
.content {
    padding: 28px 32px;
    max-width: 1500px;
    margin: 0 auto;
}

/* ===================================================
   卡片 - 毛玻璃 + 柔和阴影
   =================================================== */
.card, .form-card, .table-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15,43,94,0.06), 0 1px 3px rgba(0,0,0,0.04);
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.6);
    transition: box-shadow 0.3s ease;
}

.card:hover, .form-card:hover, .table-card:hover {
    box-shadow: 0 8px 32px rgba(15,43,94,0.1), 0 2px 6px rgba(0,0,0,0.06);
}

.form-card h2, .table-card h2, .card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f2b5e;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #1e5fbb, #3b82f6, transparent) 1;
    letter-spacing: 0.5px;
}

/* ===================================================
   表单 - 现代化输入框
   =================================================== */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    color: #1e293b;
    background: rgba(248,250,252,0.8);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
    background: #fff;
}

.form-group textarea {
    height: 80px;
    padding: 10px 14px;
    resize: vertical;
}

.form-group input[type="file"] {
    height: auto;
    padding: 8px 12px;
    background: rgba(248,250,252,0.8);
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

/* ===================================================
   工具栏 - 毛玻璃浮动条
   =================================================== */
.admin-toolbar {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(15,43,94,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.5);
}

#searchInput {
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px 0 38px;
    font-size: 13px;
    color: #1e293b;
    background: rgba(255,255,255,0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 12px center no-repeat;
    outline: none;
    transition: all 0.25s;
    min-width: 200px;
    font-family: inherit;
}

#searchInput:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
    background-color: #fff;
}

.search-box input {
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
    transition: all 0.25s;
    font-family: inherit;
}

.search-box input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }

/* ===================================================
   数据表格 - 现代化设计
   =================================================== */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 800px;
}

thead tr {
    background: linear-gradient(135deg, #0f2b5e 0%, #1e5fbb 100%);
    color: #fff;
}

thead th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}
tbody tr:hover {
    background: linear-gradient(90deg, rgba(59,130,246,0.04), rgba(59,130,246,0.08));
}
tbody tr:last-child { border-bottom: none; }

tbody td {
    padding: 12px 16px;
    color: #334155;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================================================
   徽章 - 现代化药丸样式
   =================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-success   { background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #047857; border: 1px solid #a7f3d0; }
.badge-warning   { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #92400e; border: 1px solid #fde68a; }
.badge-danger    { background: linear-gradient(135deg, #fee2e2, #fef2f2); color: #b91c1c; border: 1px solid #fecaca; }
.badge-info      { background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #1e40af; border: 1px solid #bfdbfe; }
.badge-secondary { background: linear-gradient(135deg, #e2e8f0, #f1f5f9); color: #475569; border: 1px solid #cbd5e1; }

/* ===================================================
   弹窗 Modal - 毛玻璃遮罩
   =================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal.active { display: flex; }

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 40px;
    width: 700px;
    max-width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(15,43,94,0.2), 0 0 0 1px rgba(255,255,255,0.1);
    animation: modalEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalEnter {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f2b5e;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.modal-close:hover { background: #e2e8f0; color: #1e293b; transform: rotate(90deg); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

/* ===================================================
   签约步骤指示器 - 现代化进度条
   =================================================== */
.sign-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 24px 0 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.step-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    transition: all 0.35s;
    white-space: nowrap;
}

.step.active .step-num {
    background: linear-gradient(135deg, #1e5fbb, #3b82f6);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59,130,246,0.35);
    border-radius: 14px;
}

.step.active .step-label { color: #1e5fbb; font-weight: 700; }

.step.done .step-num {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}
.step.done .step-label { color: #059669; }

.step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 12px;
    margin-bottom: 24px;
    min-width: 60px;
    max-width: 100px;
    border-radius: 3px;
    transition: background 0.4s;
}

.step-line.active {
    background: linear-gradient(90deg, #1e5fbb, #3b82f6);
}

/* ===================================================
   上传区域 - 现代化虚线框
   =================================================== */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 52px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248,250,252,0.6);
    margin: 18px 0;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: #3b82f6;
    background: rgba(239,246,255,0.8);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
}

.upload-icon { font-size: 48px; margin-bottom: 14px; display: block; }

.upload-zone p {
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-hint {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.upload-status {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
}

.upload-status.loading { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #92400e; border: 1px solid #fde68a; }
.upload-status.success { background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #047857; border: 1px solid #a7f3d0; }
.upload-status.error   { background: linear-gradient(135deg, #fee2e2, #fef2f2); color: #b91c1c; border: 1px solid #fecaca; }

/* ===================================================
   签约确认统计
   =================================================== */
.sign-summary {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1e40af;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #bfdbfe;
}

.sign-tip {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.confirm-summary {
    background: linear-gradient(135deg, rgba(248,250,252,0.8), rgba(241,245,249,0.8));
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.confirm-stat {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px 32px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    min-width: 110px;
    transition: transform 0.2s;
}

.stat-item:hover { transform: translateY(-2px); }

.stat-num {
    font-size: 34px;
    font-weight: 800;
    color: #0f2b5e;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-num.green  { color: #059669; }
.stat-num.orange { color: #d97706; }

.stat-label { font-size: 13px; color: #64748b; font-weight: 500; }

/* ===================================================
   试卷卡片 - 现代化卡片
   =================================================== */
.paper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.paper-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(15,43,94,0.06);
    border: 1px solid rgba(226,232,240,0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.paper-card:hover {
    box-shadow: 0 8px 32px rgba(15,43,94,0.12);
    transform: translateY(-3px);
    border-color: rgba(59,130,246,0.3);
}

.paper-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e5fbb, #3b82f6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.paper-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f2b5e;
    margin-bottom: 4px;
}

.paper-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f2b5e;
    margin-bottom: 4px;
}

.paper-meta {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.paper-info p { font-size: 12px; color: #64748b; line-height: 1.5; }

.paper-actions { display: flex; gap: 8px; margin-top: 6px; }

/* PDF 预览弹窗 */
#pdfModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#pdfModal.active { display: flex; }

.pdf-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 90vw;
    max-width: 1000px;
    height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: linear-gradient(135deg, #0f2b5e, #1e5fbb);
    color: #fff;
    flex-shrink: 0;
}

.pdf-modal-header h3 { font-size: 15px; font-weight: 600; }

.pdf-modal-body { flex: 1; overflow: hidden; }

.pdf-modal-body embed,
.pdf-modal-body iframe { width: 100%; height: 100%; border: none; }

/* ===================================================
   Toast 提示 - 现代化浮动通知
   =================================================== */
#toast {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    background: linear-gradient(135deg, #0f2b5e, #1e5fbb);
    color: #fff;
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 400px;
    width: auto;
    height: auto;
    min-height: unset;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(15,43,94,0.3);
    backdrop-filter: blur(8px);
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#toast.success { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 8px 32px rgba(5,150,105,0.3); }
#toast.error   { background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 8px 32px rgba(220,38,38,0.3); }
#toast.warning { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 8px 32px rgba(217,119,6,0.3); }
#toast.info    { background: linear-gradient(135deg, #0f2b5e, #1e5fbb); }

/* ===================================================
   文件链接
   =================================================== */
.file-link {
    color: #1e5fbb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s;
}
.file-link:hover { text-decoration: underline; color: #3b82f6; }

/* ===================================================
   分页 - 现代化按钮
   =================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination button {
    min-width: 34px;
    height: 34px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
    padding: 0 10px;
    font-family: inherit;
    font-weight: 500;
}

.pagination button:hover { border-color: #3b82f6; color: #1e5fbb; background: #eff6ff; }
.pagination button.active { background: linear-gradient(135deg, #1e5fbb, #3b82f6); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(59,130,246,0.3); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

.pagination-info { font-size: 13px; color: #64748b; margin-right: 8px; }

/* ===================================================
   汉堡菜单按钮
   =================================================== */
.hamburger-btn {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.2); }

/* ===================================================
   响应式 - 全面多端适配
   =================================================== */

/* ---- 超宽屏（>1600px） ---- */
@media (min-width: 1600px) {
    .login-page  { background-position: center 65%; }
    .login-title { font-size: 34px; }
    .content     { max-width: 1600px; }
}

/* ---- 平板端（769px ~ 1024px） ---- */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-page  { background-position: center 58%; }
    .login-title { font-size: 26px; }
    .login-box   { padding: 36px 36px; }
    .content     { padding: 20px; }
    .header      { padding: 0 20px; height: 58px; }
    .header h1   { font-size: 15px; }
    .header-right { gap: 6px; }
    .header-right .btn { font-size: 12px; padding: 0 10px; height: 32px; }
    .form-grid   { grid-template-columns: repeat(2, 1fr); }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .charts-row  { grid-template-columns: 1fr; }
    .paper-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 手机端（<=768px） ---- */
@media (max-width: 768px) {
    /* 登录页 - 保持不变 */
    .login-page  { background-position: center 55%; }
    .login-title { font-size: 20px; letter-spacing: 1.5px; }
    .login-box   { padding: 24px 18px; width: 100%; max-width: 96vw; }
    .login-box h2 { font-size: 16px; margin-bottom: 20px; }
    .login-box .form-group input { height: 40px; }
    .login-box .btn-primary { height: 42px; font-size: 15px; }

    /* 导航栏 - 汉堡菜单 */
    .header {
        padding: 0 16px;
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        position: relative;
    }
    .header h1 {
        font-size: 13px;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 52px);
    }
    .hamburger-btn { display: inline-flex; }
    .header-right {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px 0;
        border-top: 1px solid rgba(255,255,255,0.15);
        margin-top: 6px;
    }
    .header-right.mobile-open { display: flex; }
    .header-right span { font-size: 12px; padding: 4px 0; text-align: center; }
    .header-right .btn { width: 100%; height: 38px; font-size: 13px; justify-content: center; }

    /* 内容区域 */
    .content { padding: 14px; }
    .card, .form-card, .table-card { padding: 18px 16px; border-radius: 14px; }
    .form-card h2, .table-card h2 { font-size: 15px; margin-bottom: 14px; }

    /* 工具栏 */
    #adminToolbar { gap: 8px; }
    #adminToolbar .btn { font-size: 12px; padding: 0 10px; height: 32px; }

    /* 筛选区域 */
    .filter-section { padding: 12px; }
    .filter-row-main { flex-direction: column; align-items: stretch; gap: 8px; }
    .filter-search-wrap { max-width: 100%; min-width: unset; }
    .filter-actions { justify-content: flex-start; flex-wrap: wrap; }
    .filter-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

    /* 表格 */
    .table-container { border-radius: 10px; }
    table { font-size: 12px; }
    thead th { padding: 10px 12px; font-size: 11px; }
    tbody td { padding: 9px 12px; font-size: 12px; }
    .btn-table { height: 26px; padding: 0 10px; font-size: 11px; }

    /* 表单 */
    .form-row  { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; gap: 10px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 14px; }
    .form-section-title { font-size: 12px; }
    .form-submit-row .btn { width: 100%; }

    /* 统计卡片 */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card  { padding: 16px 14px; gap: 10px; }
    .stat-card-icon { width: 40px; height: 40px; font-size: 18px; }
    .stat-card-num  { font-size: 22px; }
    .stat-card-label { font-size: 12px; }
    .charts-row { grid-template-columns: 1fr; gap: 12px; }
    .chart-card { padding: 16px 14px; }
    .chart-card h3 { font-size: 13px; }

    /* 试卷卡片 */
    .paper-grid { grid-template-columns: 1fr; gap: 12px; }
    .paper-card { padding: 16px; }

    /* 弹窗 */
    .modal-content { padding: 20px 16px; border-radius: 14px; }
    .modal-box { border-radius: 14px; max-width: 96vw !important; }
    .modal-body { padding: 14px !important; }
    #pdfModal .modal-box { width: 100vw; max-width: 100vw !important; height: 100vh; border-radius: 0; }
    #pdfModal .modal-box iframe { height: calc(100vh - 60px) !important; }

    /* 签约步骤 */
    .sign-steps { padding: 14px 0 0; }
    .step-num   { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
    .step-label { font-size: 11px; }
    .step-line  { min-width: 30px; }

    /* 上传区域 */
    .upload-zone { padding: 32px 16px; }
    .upload-icon { font-size: 36px; }

    /* 分页 */
    .pagination { justify-content: center; gap: 4px; }
    .pagination button { min-width: 30px; height: 30px; font-size: 12px; }
    .pagination-info { font-size: 12px; }

    /* 日志表格 */
    .log-table th, .log-table td { padding: 8px 8px; font-size: 12px; }

    /* 用户表单 */
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }

    /* 确认统计 */
    .confirm-stat { gap: 12px; }
    .stat-item { padding: 14px 18px; min-width: 80px; }
    .stat-num  { font-size: 26px; }

    /* Toast */
    #toast {
        max-width: calc(100vw - 40px);
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* ---- 超小屏（<=480px） ---- */
@media (max-width: 480px) {
    .login-title { font-size: 17px; letter-spacing: 1px; }
    .login-box   { padding: 20px 14px; }
    .stats-grid  { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: 1fr; }
    .header h1   { font-size: 12px; }
    .content     { padding: 10px; }
    .card, .form-card, .table-card { padding: 14px 12px; }
    #adminToolbar .btn { font-size: 11px; padding: 0 8px; height: 30px; }
    .paper-grid  { grid-template-columns: 1fr; }
    .step-line   { min-width: 20px; max-width: 40px; }
}

/* ===================================================
   滚动条 - 现代化细滚动条
   =================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===================================================
   试卷上传区域
   =================================================== */
.paper-upload-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15,43,94,0.06);
    padding: 28px 32px;
    margin-bottom: 24px;
    max-width: 600px;
    border: 1px solid rgba(255,255,255,0.6);
}

.paper-upload-card h3,
.paper-list-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f2b5e;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #1e5fbb, #3b82f6, transparent) 1;
    letter-spacing: 0.5px;
}

.paper-list-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15,43,94,0.06);
    padding: 28px 32px;
    border: 1px solid rgba(255,255,255,0.6);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; display: block; }
.empty-state p { font-size: 14px; }

/* ===================================================
   数据统计仪表盘 - 现代化卡片
   =================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 4px 16px rgba(15,43,94,0.06);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226,232,240,0.8);
}
.stat-card:hover {
    box-shadow: 0 8px 32px rgba(15,43,94,0.1);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.stat-card-icon.blue   { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.stat-card-icon.green  { background: linear-gradient(135deg, #d1fae5, #ecfdf5); }
.stat-card-icon.orange { background: linear-gradient(135deg, #fef3c7, #fffbeb); }
.stat-card-icon.purple { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }

.stat-card-num { font-size: 30px; font-weight: 800; color: #0f2b5e; line-height: 1.2; }
.stat-card-label { font-size: 13px; color: #64748b; margin-top: 4px; font-weight: 500; }

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 900px) { .charts-row { grid-template-columns: 1fr; } }

.chart-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 4px 16px rgba(15,43,94,0.06);
    border: 1px solid rgba(226,232,240,0.8);
}
.chart-card h3 {
    font-size: 15px; font-weight: 700; color: #0f2b5e;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #1e5fbb, #3b82f6, transparent) 1;
    letter-spacing: 0.5px;
}

.chart-bar-list { list-style: none; }
.chart-bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.chart-bar-label { width: 90px; flex-shrink: 0; color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.chart-bar-track { flex: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.chart-bar-fill { height: 100%; background: linear-gradient(90deg, #1e5fbb, #3b82f6); border-radius: 5px; transition: width 0.6s ease; }
.chart-bar-fill.green  { background: linear-gradient(90deg, #059669, #10b981); }
.chart-bar-fill.orange { background: linear-gradient(90deg, #d97706, #f59e0b); }
.chart-bar-val { width: 36px; text-align: right; color: #64748b; flex-shrink: 0; font-weight: 600; }

.trend-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 10px; }
.trend-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.trend-bar { width: 100%; background: linear-gradient(180deg, #3b82f6, #1e5fbb); border-radius: 6px 6px 0 0; min-height: 4px; transition: height 0.6s ease; }
.trend-bar-label { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.trend-bar-num { font-size: 11px; color: #1e5fbb; font-weight: 700; }

/* ===================================================
   筛选区域 - 现代化毛玻璃
   =================================================== */
.filter-section {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(15,43,94,0.05);
    border: 1px solid rgba(226,232,240,0.6);
}

.filter-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 420px;
}
.filter-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
    opacity: 0.4;
}
.filter-search-input {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px 0 36px;
    font-size: 13px;
    color: #1e293b;
    background: rgba(255,255,255,0.9);
    outline: none;
    transition: all 0.25s;
    font-family: inherit;
}
.filter-search-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 16px;
    background: rgba(241,245,249,0.8);
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.btn-filter-toggle:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}
.btn-filter-toggle.active {
    background: linear-gradient(135deg, #1e5fbb, #3b82f6);
    color: #fff;
    border-color: transparent;
}
.filter-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}
.filter-arrow.open { transform: rotate(180deg); }

.filter-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 12px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1e40af;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #bfdbfe;
    white-space: nowrap;
}

.filter-advanced {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    animation: filterSlideDown 0.25s ease;
}
@keyframes filterSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px 18px;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.filter-item select {
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    color: #1e293b;
    background: rgba(255,255,255,0.9);
    outline: none;
    font-family: inherit;
    transition: all 0.25s;
    cursor: pointer;
}
.filter-item select:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* 兼容旧的 filter-bar */
.filter-bar {
    background: rgba(255,255,255,0.75); border-radius: 14px; padding: 16px 20px;
    margin-bottom: 20px; box-shadow: 0 2px 12px rgba(15,43,94,0.05);
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    border: 1px solid rgba(226,232,240,0.6);
}
.filter-bar select, .filter-bar input[type="text"] {
    height: 38px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    padding: 0 12px; font-size: 13px; color: #1e293b; background: rgba(255,255,255,0.9);
    outline: none; min-width: 120px; font-family: inherit;
}
.filter-bar select:focus, .filter-bar input[type="text"]:focus { border-color: #3b82f6; background: #fff; }
.filter-bar .btn { height: 38px; padding: 0 18px; font-size: 13px; width: auto; }

/* 统计按钮 */
.btn-stats {
    background: linear-gradient(135deg, #1e5fbb, #3b82f6);
    color: #fff;
    border: none;
}
.btn-stats:hover {
    background: linear-gradient(135deg, #0f2b5e, #1e5fbb);
    box-shadow: 0 4px 16px rgba(30,95,187,0.35);
}

/* 操作日志 */
.log-table { width: 100%; border-collapse: collapse; }
.log-table th, .log-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.log-table th { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #0f2b5e; font-weight: 700; }
.log-table tr:hover td { background: rgba(59,130,246,0.04); }
.log-action-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.log-action-badge.login    { background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #1e40af; }
.log-action-badge.add      { background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #047857; }
.log-action-badge.edit     { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #92400e; }
.log-action-badge.delete   { background: linear-gradient(135deg, #fee2e2, #fef2f2); color: #b91c1c; }
.log-action-badge.sign     { background: linear-gradient(135deg, #ede9fe, #f5f3ff); color: #6d28d9; }
.log-action-badge.default  { background: #f1f5f9; color: #64748b; }

/* 统计页概览数字颜色 */
#statTotal  { color: #1e5fbb; }
#statSigned { color: #059669; }
#statUnsigned { color: #d97706; }
#statRate   { color: #6d28d9; }

/* ===================================================
   多列表单布局（新增/编辑学生页）
   =================================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 26px;
    margin-bottom: 10px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f2b5e;
    padding: 8px 0 8px 14px;
    margin: 20px 0 6px 0;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #1e5fbb, #3b82f6) 1;
    background: linear-gradient(90deg, rgba(219,234,254,0.5), transparent);
    border-radius: 0 8px 8px 0;
    letter-spacing: 1px;
}

.form-submit-row {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
}

.form-submit-row .btn {
    min-width: 180px;
    padding: 12px 36px;
    font-size: 15px;
    height: auto;
    border-radius: 12px;
}

/* 必填星号 */
.required {
    color: #ef4444;
    font-size: 13px;
    margin-left: 2px;
}

/* ===================================================
   学校名称 Autocomplete 下拉
   =================================================== */
.school-autocomplete-wrap {
    position: relative;
}

.school-dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1.5px solid #3b82f6;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(59,130,246,0.15);
    display: none;
}

.school-dropdown.show { display: block; }

.school-dropdown-item {
    padding: 10px 16px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s;
    line-height: 1.4;
}

.school-dropdown-item:last-child { border-bottom: none; }

.school-dropdown-item:hover,
.school-dropdown-item.active {
    background: linear-gradient(90deg, rgba(59,130,246,0.08), rgba(59,130,246,0.04));
    color: #1e5fbb;
    font-weight: 600;
}

.school-dropdown-item .match-highlight {
    color: #1e5fbb;
    font-weight: 700;
    text-decoration: underline;
}

.school-dropdown-empty {
    padding: 12px 16px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

/* ===================================================
   学校成绩：分数+排名并排一行
   =================================================== */
.score-rank-row {
    display: flex;
    gap: 8px;
}
.score-rank-row input {
    flex: 1;
    min-width: 0;
}
.score-rank-row input:first-child {
    flex: 1.4;
}

/* ===================================================
   通用模态框遮罩层（modal-overlay）
   =================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.active { display: flex; }

.modal-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(15,43,94,0.2), 0 0 0 1px rgba(255,255,255,0.1);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-box .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-box .modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f2b5e;
    margin: 0;
}

.modal-large { max-width: 900px; }
.modal-medium { max-width: 640px; }

/* 修改密码模态框 */
#changePwdModal .modal-box { border-radius: 20px; }
#changePwdError { color: #ef4444; font-size: 13px; margin-top: 4px; min-height: 18px; }

/* ===================================================
   响应式：平板端（<=900px）改为2列
   =================================================== */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================================
   响应式：手机端（<=600px）改为1列
   =================================================== */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .form-section-title {
        font-size: 12px;
    }
    .form-submit-row .btn {
        width: 100%;
    }
}
