/* 上途普通话打分系统样式文件 */
/* 主色调：白色，点击色：#E53E3E */

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

/* 密码输入框样式 */
.password-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-input-wrapper .password-input {
    padding-right: 40px;
}

.password-toggle-inside {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 14px;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.password-toggle-inside:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.password-toggle-inside:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,.25);
}

/* 类型标签样式 */
.type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.type-admin {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.type-scorer {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 14px;
}

/* 应用主容器 */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: #ffffff;
}

/* 左侧导航栏样式 */
.sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* 系统Logo和标题 */
.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.logo i {
    font-size: 28px;
    color: #E53E3E;
    margin-right: 10px;
}

.logo h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* 导航菜单样式 */
.nav-menu {
    flex: 1;
    padding: 20px 0;
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #E53E3E;
    border-left-color: #E53E3E;
}

.nav-item.active .nav-link {
    background-color: #fff5f5;
    color: #E53E3E;
    border-left-color: #E53E3E;
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.nav-link span {
    font-size: 14px;
}

/* 子菜单样式 */
.has-submenu .submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.has-submenu.open .submenu {
    max-height: 200px;
}

.submenu-item {
    margin: 0;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 50px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.submenu-link:hover {
    background-color: #e9ecef;
    color: #E53E3E;
}

.submenu-item.active .submenu-link {
    background-color: #fff5f5;
    color: #E53E3E;
    font-weight: 500;
    border-left: 3px solid #E53E3E;
}

.submenu-link i {
    width: 16px;
    margin-right: 8px;
    font-size: 14px;
}

/* 用户信息区域 */
.user-info {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

.user-avatar {
    margin-right: 12px;
}

.user-avatar i {
    font-size: 32px;
    color: #E53E3E;
}

.user-details {
    flex: 1;
}

.username {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

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

.logout-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #f8f9fa;
    color: #E53E3E;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航栏 */
.top-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    margin-right: 15px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: none;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
    color: #E53E3E;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.header-logo {
    height: 60px;
    max-width: 300px;
    object-fit: contain;
}

/* 评分历史页面样式 */
.history-container {
    padding: 20px;
}

.search-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.search-filters .search-box {
    flex: 1;
    max-width: 300px;
}

.search-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-filters .filter-group label {
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.filter-select {
    min-width: 120px;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-numbers .page-btn {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-numbers .page-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.page-numbers .page-btn.active {
    background: #E53E3E;
    color: white;
    border-color: #E53E3E;
}

.page-numbers .page-btn:disabled {
     opacity: 0.5;
     cursor: not-allowed;
 }
 
 /* 等级标签样式 */
 .level-badge {
     padding: 4px 8px;
     border-radius: 4px;
     font-size: 12px;
     font-weight: 500;
     color: white;
 }
 
 .level-badge.level-excellent {
     background-color: #28a745;
 }
 
 .level-badge.level-good {
     background-color: #17a2b8;
 }
 
 .level-badge.level-average {
     background-color: #ffc107;
     color: #212529;
 }

.header-right {
    display: flex;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-time {
    font-size: 14px;
    color: #666;
}

.system-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #28a745;
}

.system-status i {
    margin-right: 5px;
    font-size: 8px;
}

.system-status.online {
    color: #28a745;
}

.system-status.offline {
    color: #dc3545;
}

/* 内容包装器 */
.content-wrapper {
    flex: 1;
    padding: 30px;
    background-color: #f8f9fa;
}

/* 页面内容 */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-content.active {
    display: block;
}

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

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

.stat-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 超时预警卡片特殊样式 */
.stat-card.warning {
    border-left: 4px solid #f56565;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #f56565, #fc8181);
}

.stat-card.warning .stat-icon i {
    color: white;
}

.stat-card.warning .stat-info h3 {
    color: #c53030;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background-color: #fff5f5;
}

.stat-icon i {
    font-size: 24px;
    color: #E53E3E;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 14px;
    color: #666;
}

/* 图表区域 */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-container,
.recent-activities {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-container h3,
.recent-activities h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E53E3E;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #666;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

/* 加载提示 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: #E53E3E;
}

.loading-spinner i {
    font-size: 32px;
    margin-bottom: 10px;
}

.loading-spinner p {
    font-size: 14px;
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    display: none;
    z-index: 9998;
    border-left: 4px solid #E53E3E;
}

.message-content {
    display: flex;
    align-items: center;
}

.message-icon {
    margin-right: 10px;
    font-size: 16px;
}

.message-text {
    font-size: 14px;
    color: #333;
}

/* 网格布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -12px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 12px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 12px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 12px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 12px;
}

/* 配置表单样式 */
.config-form {
    max-width: 600px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .main-content.expanded {
        margin-left: 70px;
    }
    
    .col-md-3,
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 20px 24px;
}

.score-summary {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.score-summary div {
    margin-bottom: 8px;
    font-size: 14px;
}

.score-summary div:last-child {
    margin-bottom: 0;
}

.score-summary p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.score-summary span {
    font-weight: 600;
    color: #E53E3E;
}

.confirm-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.modal-footer {
    padding: 16px 24px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid #e9ecef;
}

.modal-footer .btn {
    min-width: 80px;
}

/* 本题得分显示样式 */
.score-display-section {
    border: 1px solid #e9ecef;
}

.score-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.score-label {
    color: #666;
    margin-right: 8px;
}

.score-value {
    font-size: 20px;
    font-weight: 600;
    color: #28a745;
    margin-right: 4px;
}

.score-total {
    color: #666;
}

/* 评语输入框样式 */
.comment-section .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.comment-counter {
    transition: color 0.3s ease;
}

.comment-counter.insufficient {
    color: #dc3545 !important;
}

.comment-counter.sufficient {
    color: #28a745 !important;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 20px 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 15px 20px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #E53E3E;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    color: #E53E3E;
    border: 1px solid #E53E3E;
}

.btn-outline:hover {
    background-color: #E53E3E;
    color: #ffffff;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #E53E3E;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

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

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

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 卡片样式 */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-body {
    padding: 25px;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #E53E3E;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d32f2f;
}

/* 管理页面样式 */
.management-container {
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
}

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

/* 状态标签样式 */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

.status-enabled {
    background: #d4edda;
    color: #155724;
}

.status-disabled {
    background: #f8d7da;
    color: #721c24;
}

/* 账号类型标签样式 */
.type-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

.type-admin {
    background: #fff3cd;
    color: #856404;
}

.type-scorer {
    background: #d1ecf1;
    color: #0c5460;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.btn-action {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-edit {
    background: #007bff;
    color: white;
}

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

.btn-toggle {
    background: #28a745;
    color: white;
}

.btn-toggle:hover {
    background: #1e7e34;
}

.btn-toggle.disable {
    background: #ffc107;
    color: #212529;
}

.btn-toggle.disable:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #E53E3E;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 评分页面样式 */
.scoring-stats {
    margin-bottom: 35px;
    padding: 20px 25px;
    background-color: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    text-align: center;
}

.stats-inline {
    font-size: 14px;
    font-weight: 500;
    color: #856404;
}

.stats-inline span {
    font-weight: 600;
    color: #E53E3E;
}

.stats-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-card.horizontal {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item .fas {
    color: #E53E3E;
    font-size: 16px;
}

.stat-item.urgent {
    border-left: 4px solid #E53E3E;
}

.stat-item.urgent .fas {
    color: #E53E3E;
    animation: pulse 2s infinite;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stats-item .fas {
    color: #E53E3E;
    font-size: 16px;
}

.stats-item.urgent {
    border-left: 4px solid #E53E3E;
}

.stats-item.urgent .fas {
    color: #E53E3E;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #E53E3E;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.urgent .stat-number {
    color: #dc3545;
}

/* 紧急程度样式 */
.urgency-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 50px;
}

.urgency-badge.urgent {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.urgency-badge.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.urgency-badge.normal {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 表格行紧急程度样式 */
tr.urgent {
    background-color: #fff5f5;
}

tr.warning {
    background-color: #fffbf0;
}

.remaining-time.urgent {
    color: #dc3545;
    font-weight: bold;
}

.remaining-time.warning {
    color: #fd7e14;
    font-weight: 500;
}

/* 顺序评分按钮 */
.sequential-scoring-btn {
    background-color: #E53E3E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.sequential-scoring-btn:hover {
    background-color: #c53030;
}

.sequential-scoring-btn:active {
    background-color: #9c2626;
}

/* 帮助图标样式 */
.help-icon {
    color: #666;
    font-size: 16px;
    margin-left: 8px;
    cursor: help;
    transition: color 0.2s;
    position: relative;
}

.help-icon:hover {
    color: #E53E3E;
}

/* 自定义tooltip样式 */
.help-icon[data-tooltip] {
    position: relative;
}

.help-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

.help-icon[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

/* 操作按钮区域样式 */
.action-bar {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
}

.help-text {
    margin-left: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* 评分页面加载状态 */
.scoring-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.scoring-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E53E3E;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 分配管理页面样式 */
.assignment-container {
    padding: 20px;
}

.assignment-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.assignment-stats .stat-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.assignment-stats .stats-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 分配状态样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

/* 紧急剩余时间样式 */
.remaining-time.urgent-time {
    color: #dc3545 !important;
    font-weight: bold;
}

.status-badge.assigned {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.unassigned {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 操作单元格样式 */
.action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.assigned-scorer {
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

/* 评分员选择模态框样式 */
.scorer-list {
    max-height: 400px;
    overflow-y: auto;
}

.scorer-item {
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.scorer-item input[type="radio"] {
    display: none;
}

.scorer-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0;
}

.scorer-label:hover {
    background-color: #f8f9fa;
}

.scorer-item input[type="radio"]:checked + .scorer-label {
    background-color: #E53E3E;
    color: white;
}

.scorer-info {
    flex: 1;
}

.scorer-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.scorer-workload {
    font-size: 12px;
    color: #666;
}

.scorer-item input[type="radio"]:checked + .scorer-label .scorer-workload {
    color: rgba(255, 255, 255, 0.8);
}

.scorer-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.scorer-status.active {
    background-color: #d4edda;
    color: #155724;
}

.scorer-item input[type="radio"]:checked + .scorer-label .scorer-status.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 分配管理表格中的评分员信息样式 */
.assignment-table .scorer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assignment-table .assigned-scorer {
    font-weight: 500;
    color: #2563eb;
    font-size: 0.9em;
}

/* 已完成试题的信息样式 */
.completed-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.completed-scorer {
    font-weight: 500;
    color: #059669;
    font-size: 0.9em;
}

.completed-badge {
    background-color: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

/* 分配操作样式 */
.scorer-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9em;
    background-color: white;
    min-width: 120px;
    width: 100%;
}

.scorer-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.scorer-cell {
    font-weight: 500;
    color: #374151;
}

/* 不同状态的行样式 */
.assignment-item.status-completed {
    background-color: #f0fdf4;
}

.assignment-item.status-assigned {
    background-color: #eff6ff;
}

.assignment-item.status-unassigned {
    background-color: #fefce8;
}

/* 自动分配开关容器 */
.auto-assign-switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #E53E3E;
}

input:focus + .slider {
    box-shadow: 0 0 1px #E53E3E;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* 开关标签 */
.switch-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* 开关状态 */
.switch-status {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.switch-status.on {
    background-color: #E8F5E8;
    color: #2D7D32;
}

.switch-status.off {
    background-color: #FFF3E0;
    color: #F57C00;
}

/* 分配加载状态 */
.assignment-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.assignment-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #E53E3E;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* 评分界面样式 */
.scoring-interface-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.scoring-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.back-btn {
    background: none;
    border: none;
    color: #E53E3E;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s;
    margin-right: 20px;
}

.back-btn:hover {
    background-color: #f8f8f8;
}

.scoring-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.test-info-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.test-info-row {
    display: flex;
    margin-bottom: 10px;
}

.test-info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.audio-player-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-btn {
    background: #E53E3E;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.audio-btn:hover {
    background: #d32f2f;
}

.audio-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #E53E3E;
    width: 0%;
    transition: width 0.3s;
}

/* 音频进度小圆点 */
.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #E53E3E;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
}

.time-display {
    font-size: 14px;
    color: #666;
    min-width: 80px;
}

.scoring-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.scoring-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scoring-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.score-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.score-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-group label {
    min-width: 60px;
    font-weight: 500;
    color: #555;
}

.score-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    color: #333;
}

.score-btn:hover {
    border-color: #E53E3E;
    color: #E53E3E;
}

.score-btn.selected {
    background: #E53E3E;
    border-color: #E53E3E;
    color: white;
}

/* 评分表格样式 */
.scoring-table-section {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.scoring-table thead th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #3498db;
}

.scoring-table thead th:nth-child(1) { width: 15%; }
.scoring-table thead th:nth-child(2) { width: 30%; }
.scoring-table thead th:nth-child(3) { width: 35%; }
.scoring-table thead th:nth-child(4) { width: 20%; }

.scoring-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
    border: none;
}

.scoring-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.scoring-table tbody tr:hover {
    background: #e3f2fd;
}

.score-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.score-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
    color: #34495e;
    transition: color 0.3s ease;
}

.score-options label:hover {
    color: #3498db;
}

.score-options input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input[type="number"] {
    width: 120px;
    padding: 10px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-group span {
    color: #7f8c8d;
    font-weight: 500;
}

.input-group .count-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #bdc3c7;
    background: #ecf0f1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.input-group .count-btn:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
    transform: translateY(-1px);
}

.input-group .count-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 输入框内部按钮样式 */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.count-btn-inside {
    position: absolute;
    background: transparent;
    border: none;
    color: #666;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.count-btn-inside:hover {
    background: #f0f0f0;
    border-radius: 50%;
    color: #333;
}

.minus-btn-inside {
    left: 8px;
}

.plus-btn-inside {
    right: 40px;
}

/* 语音标准评分区域样式 */
.pronunciation-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 零分处理选项样式 */
.zero-score-section {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.zero-score-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zero-score-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    font-size: 16px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.zero-score-details {
    margin-left: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.reason-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.reason-group label {
    font-weight: 500;
    color: #34495e;
    min-width: 100px;
}

.reason-select {
    padding: 8px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 180px;
}

.reason-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.other-reason-group {
    display: flex;
    align-items: center;
}

.other-reason-input {
    width: 280px;
    padding: 10px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.other-reason-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.criteria-cell {
    font-weight: 600;
    color: #333;
    width: 15%;
}

.scoring-cell {
    width: 30%;
}

.description-cell {
    width: 35%;
}

.score-cell {
    width: 20%;
}

.description-cell .form-control,
.score-cell .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.description-cell .form-control:focus,
.score-cell .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.selected-score {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.score-display {
    font-weight: 600;
    color: #E53E3E;
}

.time-deduction p {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

.total-score-section {
    background: white;
    border: 2px solid #E53E3E;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.total-score-display {
    font-size: 24px;
    font-weight: 600;
}

.total-label {
    color: #333;
}

.total-value {
    color: #E53E3E;
    font-size: 32px;
    margin: 0 8px;
}

.total-unit {
    color: #666;
}

.scoring-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scoring-actions .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #E53E3E;
    color: white;
}

.btn-primary:hover {
    background: #d32f2f;
}