* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: SimSun, "Times New Roman", serif;
}

body {
   
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 60px;
    box-sizing: border-box; 
    position: relative; 
}

/* 登录页面样式 */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 400px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn {
    width: 30%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #0056b3;
}

/* 主布局 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.header-info {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.days-left {
    color: #e74c3c;
    font-weight: bold;
}

/* 仪表盘网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
    margin-bottom: 10px;
    color: #333;
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

/* 分析控制 */
.analysis-controls {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
   
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.control-group select, .control-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 评分标准 */
.standards-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.standard-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    margin: 10px 0;
}

.stat-label {
    color: #666;
}

/* 图表容器 */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .analysis-controls {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }
}
/* 导航栏样式 */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h2 {
    margin: 0;
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    font-size: 14px;
}

.expire-info {
    font-size: 14px;
    color: #ecf0f1;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.logout-btn:hover {
    background: #c0392b;
}

/* 仪表盘头部 */
.dashboard-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.user-stats, .admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

/* 卡片网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 5px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.btn-primary {
    background: #3498db;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 5px 20px;
    font-size: 12px;
    white-space: nowrap; 
    text-align: center; 
}

/* 最近考试部分 */
.recent-section, .pending-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.recent-section h3, .pending-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.recent-exams, .pending-users {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exam-item, .user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.exam-name {
    font-weight: bold;
    color: #2c3e50;
}

.exam-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.view-all {
    text-align: center;
    margin-top: 15px;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

/* 页脚 */
.footer {
    background: #949596;
    color: white;
    text-align: center;
    padding: 1px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0; 
    height: auto; 
}
/* 表格响应式 */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* 表单控件 */
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
/* 筛选选项卡 */
.filter-tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.filter-tab:hover {
    background: #f8f9fa;
    color: #333;
}

.filter-tab.active {
    background: #3498db;
    color: white;
}

.badge {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: 10px;
}
.file-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.file-details {
    font-size: 14px;
    color: #495057;
}

.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h2 {
    margin: 0;
}

.brand-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.brand-link:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
}

/* 主导航链接 */
.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* 用户信息区域 */
.user-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
}

.user-name {
    font-weight: 600;
    color: white;
}

.user-role {
    color: #bdc3c7;
    font-size: 12px;
}

.expire-info {
    font-size: 12px;
    color: #ecf0f1;
    white-space: nowrap;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c3e50;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    flex-direction: column;
    gap: 10px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 6px;
    transition: background 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #3498db;
}

.mobile-user-info {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #bdc3c7;
}

.mobile-logout-btn {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease;
}

.mobile-logout-btn:hover {
    background: #c0392b;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .user-section {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .user-section .expire-info {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .user-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-brand h2 {
        font-size: 1.2em;
    }
    
    .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 防止页面滚动当菜单打开时 */
body.menu-open {
    overflow: hidden;
}