* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-top: 0px;
    position: relative;
    overflow: hidden;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

h1 {
    color: #0f172a;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.nav-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.nav-btn.active {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.nav-btn:hover:not(.active) {
    background-color: #e2e8f0;
    color: #475569;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 专业选择页面 === */
.selection-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.major-display {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    position: relative;
    overflow: hidden;
}

#currentMajor {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    padding: 0 20px;
    max-width: 90%;
    word-break: break-word;
}

/* 专业链接样式 */
.major-link {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.major-link:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.btn {
    padding: 16px 28px;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
}

.random-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.random-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.decision-buttons {
    display: flex;
    gap: 16px;
    width: 100%;
}

.pass-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    flex: 1;
}

.reject-btn {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    flex: 1;
}

.pass-btn:hover, .reject-btn:hover {
    transform: translateY(-2px);
}

.pass-btn:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.reject-btn:hover {
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

/* === 大学选择页面（新增）=== */
.university-selection {
    text-align: center;
    margin-bottom: 30px;
}

.university-selection h2 {
    color: #0f172a;
    margin-bottom: 16px;
    font-size: 1.4rem;
    font-weight: 600;
}

.university-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.university-card {
    background: linear-gradient(135deg, #5a71cf 0%, #355ebf 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.university-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.university-card.active {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.university-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-name br {
    display: none; /* 防止自动换行创建多余的空间 */
}

.university-majors {
    font-size: 0.85rem;
    opacity: 0.9;
}

.current-university {
    text-align: center;
    margin-bottom: 20px;
}

.current-university h3 {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.back-btn {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(148, 163, 184, 0.3);
}

/* style.css */

/* ... 其他已有的CSS代码 ... */

/* ========== 历史记录页面样式 ========== */

.history-area {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.history-area h2 {
    margin-bottom: 16px;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-stats {
    font-size: 14px;
    color: #6c757d;
    font-weight: normal;
}

.history-filter {
    margin-bottom: 20px;
}

.history-filter select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.history-filter select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* 移除历史记录项的外部边框 */
.history-list {
    max-height: 400px;
    overflow-y: auto;
    /* 移除了之前的 border 和 border-radius */
    /* background-color: #fff; */
    /* border: 1px solid #dee2e6; */
    /* border-radius: 8px; */
    padding: 0;
    margin: 0;
}

/* 现代化的历史记录条目样式 */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 16px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.history-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    border-color: #0d6efd;
}

.history-content {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.history-university {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.4;
}

.history-major {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
    line-height: 1.4;
}

.history-check-count {
    background-color: #0d6efd;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.history-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    min-width: 120px;
}

.history-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: inline-block;
    white-space: nowrap;
}

.status-pass {
    background-color: #198754;
}

.status-reject {
    background-color: #dc3545;
}

.history-time {
    font-size: 11px;
    color: #6c757d;
}

.history-counts {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: #6c757d;
}

.history-counts small {
    font-weight: 500;
}

/* ========== 新增：不通过原因输入模态框样式 ========== */

.reject-reason-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reject-reason-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.reject-reason-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reject-reason-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reject-reason-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close-reject-reason-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.close-reject-reason-btn:hover {
    color: #dc3545;
}

.reject-reason-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reject-reason-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.reject-reason-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
}

.reject-reason-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.reject-reason-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.reject-reason-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reject-reason-btn.cancel {
    background-color: #6c757d;
    color: white;
}

.reject-reason-btn.cancel:hover {
    background-color: #5a6268;
}

.reject-reason-btn.save {
    background-color: #0d6efd;
    color: white;
}

.reject-reason-btn.save:hover {
    background-color: #0b5ed7;
}

/* ========== 新增：历史记录中显示不通过原因的样式 ========== */

.history-reject-reason {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    word-break: break-word;
    line-height: 1.3;
}

/* ========== 清空历史按钮 ========== */

.clear-btn {
    margin-top: 20px;
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.clear-btn:hover {
    background-color: #c82333;
}

.no-history {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 40px;
    font-size: 1.1rem;
}

.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease;
}

.decision-buttons {
    display: flex;
    gap: 16px;
    width: 100%;
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease;
}

/* 滚动动画（用于专业显示） */
.scrolling {
    animation: scroll 0.7s ease-out;
}

@keyframes scroll {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== 进度条样式 ========== */
.progress-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progress-header h2 {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.progress-stats {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #10b981 0%, 
        #34d399 25%, 
        #22c55e 50%, 
        #16a34a 75%, 
        #15803d 100%
    );
    border-radius: 12px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.progress-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.progress-detail strong {
    color: #0f172a;
    font-size: 1rem;
}

/* 进度条动画效果 */
.progress-fill.animated {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
}

/* 大学进度条现代化样式 - 简化版 */
.university-progress-section {
    margin-bottom: 24px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.university-progress-section .progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.university-progress-section .progress-bar {
    flex: 1;
    height: 28px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
    min-width: 300px;
    max-width: 600px;
}

.university-progress-section .progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 12px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(0,123,255,0.3);
}

.university-progress-section .progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.university-progress-section .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    border-radius: 12px;
}

.university-progress-section .progress-text {
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 2;
    letter-spacing: 0.5px;
}

.university-progress-section .progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

.university-progress-section .progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
}

.university-progress-section .progress-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.university-progress-section .progress-detail strong {
    color: #0f172a;
    font-size: 0.9rem;
}

/* 进度条动画效果 - 现代化版本 */
.university-progress-section .progress-fill.animated {
    animation: modern-pulse 2s infinite;
}

@keyframes modern-pulse {
    0%, 100% {
        box-shadow: 
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            0 2px 8px rgba(16, 185, 129, 0.3),
            0 0 0 rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            0 2px 8px rgba(16, 185, 129, 0.3),
            0 0 30px rgba(16, 185, 129, 0.8);
        transform: scale(1.02);
    }
}

/* 进度条颜色变化 - 蓝色主题 */
.university-progress-section .progress-fill.low-progress {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(77,171,247,0.3);
}

.university-progress-section .progress-fill.medium-progress {
    background: linear-gradient(135deg, #228be6 0%, #1c7ed6 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(34,139,230,0.3);
}

.university-progress-section .progress-fill.high-progress {
    background: linear-gradient(135deg, #1971c2 0%, #1864ab 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(25,113,194,0.3);
}

.university-progress-section .progress-fill.animated {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(25,113,194,0.3);
    }
    50% {
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 8px rgba(25,113,194,0.6);
    }
    100% {
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 4px rgba(25,113,194,0.3);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .progress-section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .progress-header h2 {
        font-size: 1.2rem;
    }
    
    .progress-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .progress-bar {
        height: 20px;
    }
    
    .container {
        padding: 20px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.7rem;
    }

    #currentMajor {
        font-size: 1.7rem;
    }

    .decision-buttons {
        flex-direction: column;
    }

    .university-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .university-card {
        padding: 16px;
    }

    .history-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .history-info {
        text-align: center;
    }

    .btn {
        padding: 14px 24px;
    }
}

/* 查看所有专业按钮样式 */
.view-all-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(155, 89, 182, 0.4);
}

/* 所有专业列表模态框样式 */
.majors-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.majors-modal.active {
    opacity: 1;
    visibility: visible;
}

.majors-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden; /* 恢复hidden以保持圆角效果 */
    transform: scale(0.7);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* 使用flex布局确保内容正确排列 */
}

.majors-modal.active .majors-modal-content {
    transform: scale(1);
}

.majors-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.majors-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.majors-list-container {
    flex: 1; /* 使用flex布局占据剩余空间 */
    overflow-y: auto;
    padding: 20px;
    min-height: 150px; /* 确保最小高度 */
    box-sizing: border-box; /* 确保padding包含在高度计算内 */
    /* 确保滚动条在圆角边界内显示 */
    border-radius: 0 0 15px 15px; /* 底部圆角与父容器匹配 */
}

.majors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.major-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.major-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.major-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.major-degree {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.majors-stats {
    background: #e8f4fd;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* 搜索框样式 */
.majors-search {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #3498db;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .majors-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .majors-list {
        grid-template-columns: 1fr;
    }
    
    .majors-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ========== 批量操作样式 ========== */
.batch-actions {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.batch-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.batch-operations {
    display: flex;
    justify-content: center;
}

.batch-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #e9ecef;
    color: #495057;
}

.batch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.select-all-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.select-all-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.select-none-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.select-none-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4449 100%);
}

.invert-selection-btn {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.invert-selection-btn:hover {
    background: linear-gradient(135deg, #e0a800 0%, #dc6502 100%);
}

.batch-pass-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
}

.batch-pass-btn:hover {
    background: linear-gradient(135deg, #0069d9 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.selected-count {
    font-size: 0.9rem;
    color: #495057;
    margin-left: auto;
}

.selected-count strong {
    color: #007bff;
    font-size: 1.1rem;
}

/* 专业项多选样式 */
.major-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px;
}

.major-checkbox {
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.major-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
}

.major-checkbox-input:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.major-checkbox-input:checked {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.major-checkbox-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    opacity: 0;
    animation: checkmarkAppear 0.3s ease forwards;
}

@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(45deg) scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) rotate(45deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

.major-checkbox-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.major-info {
    flex: 1;
}

.major-item:hover .major-checkbox-input {
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.major-item.selected {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left-color: #3b82f6;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* 批量操作响应式设计 */
@media (max-width: 768px) {
    .batch-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .batch-btn {
        flex: 1;
        text-align: center;
    }
    
    .selected-count {
        margin-left: 0;
        text-align: center;
        order: -1;
    }
    
    .batch-operations {
        justify-content: stretch;
    }
    
    .batch-pass-btn {
        width: 100%;
    }
}

/* 核查次数标签样式 */
.check-count-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    z-index: 10;
}

.check-count-badge.show {
    opacity: 1;
    transform: translateY(0);
}

.major-display {
    position: relative;
}

/* 专业列表中的核查标签 */
.major-check-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.major-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.major-link:hover {
    color: #3498db;
}
.history-stats {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: normal;
    margin-left: 10px;
}

.history-actions {
    margin: 10px 0;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.btn-export, .btn-import, .btn-clear {
    margin: 0 5px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.btn-export:hover {
    background: #e8f5e8;
    border-color: #4CAF50;
}

.btn-import:hover {
    background: #e8f4fd;
    border-color: #2196F3;
}

.btn-clear:hover {
    background: #ffebee;
    border-color: #f44336;
}

.history-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 120px;
}

.quick-filters {
    display: flex;
    gap: 5px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 6px;
}

.quick-filter-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.quick-filter-btn.active {
    background: #4CAF50;
    color: white;
}

.quick-filter-btn:hover:not(.active) {
    background: #e0e0e0;
}

/* 历史记录操作按钮 */
.history-actions {
    margin-top: 4px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.edit-reason-btn,
.change-status-btn,
.delete-history-btn {
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    color: #666;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.edit-reason-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.change-status-btn {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.change-status-btn:hover {
    background: #d4edda;
    border-color: #45a049;
}

/* 已修改标识 */
.modified-badge {
    background: #ffeb3b;
    color: #f57c00;
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 10px;
    margin-left: 4px;
    border: 1px solid #ffd54f;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* 删除按钮样式 */
.delete-history-btn {
    border-color: #ffcdd2;
    color: #d32f2f;
}

.delete-history-btn:hover {
    background: #ffebee;
    border-color: #ef5350;
    color: #b71c1c;
}
