/* ===== 登录/注册页样式 ===== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
}

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

.auth-header {
    text-align: center;
    padding: 36px 32px 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-bottom: 1px solid #e0e7ff;
}

.auth-logo {
    font-size: 48px;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #64748b;
}

.auth-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row input {
    flex: 1;
}

.captcha-img {
    height: 44px;
    width: 120px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.captcha-img:hover {
    border-color: #2563eb;
}

.auth-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
}

.auth-success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #bbf7d0;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    letter-spacing: 2px;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== 后台管理页样式 ===== */

.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.admin-header h1 {
    font-size: 24px;
    color: var(--text);
}

.admin-header .admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.admin-back-link:hover {
    background: var(--primary-light);
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #fff;
    padding: 6px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: fit-content;
}

.admin-tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.admin-tab.active {
    background: var(--primary);
    color: #fff;
}

.admin-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

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

.admin-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.admin-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin {
    background: #fef3c7;
    color: #92400e;
}

.badge-user {
    background: #dbeafe;
    color: #1e40af;
}

.btn-admin-action {
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    color: var(--text);
    margin: 0 3px;
    transition: all 0.15s;
}

.btn-admin-action:hover {
    background: var(--primary-light);
}

.btn-admin-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.btn-admin-danger:hover {
    background: #fee2e2;
}

.btn-admin-reset {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.btn-admin-reset:hover {
    background: #fef3c7;
}

/* 志愿表现表展开区域 */
.student-detail-row td {
    padding: 0 !important;
    border-bottom: none !important;
}

.student-detail-box {
    background: #f8fafc;
    padding: 16px 24px;
}

.student-detail-box h4 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.fav-mini-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fav-mini-table th {
    background: #e0f2fe;
    padding: 8px 12px;
    font-size: 13px;
    color: #0369a1;
    text-align: center;
}

.fav-mini-table td {
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 14px;
}

.admin-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    flex: 1;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}

.stat-card .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* 顶部用户栏 */
.user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-bar .username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.btn-logout {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-logout:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.btn-admin-link {
    padding: 6px 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    color: #c2410c;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.btn-admin-link:hover {
    background: #ffedd5;
}
