:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --font-main: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
    font-size: 15px;
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-img-left, .logo-img-right {
    height: 80px;
    width: auto;
    max-width: 200px;
}

.logo-img-left {
    margin-right: 2rem;
}

.logo-img-right {
    margin-left: 2rem;
}

/* 手机端响应式LOGO布局 */
@media (max-width: 768px) {
    .logo-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .logo-img-left, .logo-img-right {
        width: 48%;
        max-width: 48%;
        height: auto;
        margin: 0;
    }
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--dark-color);
}

.slogan {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

.app-main {
    flex: 1;
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* 登录表单样式 */
.login-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin: 2rem auto;
    max-width: 400px;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05), 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.login-form .btn-login {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: var(--primary-color);
    border: none;
    font-weight: 500;
    transition: all 0.3s;
}

.login-form .btn-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 考官工作台样式 */
.examiner-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background-color: #dc3545;
    color: white;
}

.examiner-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.examiner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.examiner-details {
    flex: 1;
}

.examiner-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.examiner-type {
    color: var(--primary-color);
    font-weight: 500;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.stat-card {
    background: var(--light-color);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-label {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin: 0;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d32f2f;
    background-color: #ffebee;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.stat-card {
    background: var(--light-color);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
}

/* 标签页样式 */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #7f8c8d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.info-item {
  display: flex;
  align-items: center;
}

.info-item .label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.info-item .scored {
  color: #28a745;
  font-weight: bold;
}

.info-item .unscored {
  color: #dc3545;
  font-weight: bold;
}

.student-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.student-column {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.student-column h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.student-item.scored {
    border-left-color: var(--success-color);
}

.student-item.unscored {
    border-left-color: var(--danger-color);
}

.student-info {
    flex: 1;
}

.student-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.student-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.student-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #f1f8fe;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.exam-type-badge {
    font-weight: 600;
    font-size: 0.75rem;
}

.ppt-badge {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.role-badge {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.student-meta .region {
    background-color: #e3f2fd;
    color: #0d47a1;
    font-weight: 500;
}

.student-meta .product-group {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}

.student-meta span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #bdc3c7;
    border-radius: 50%;
    margin-right: 0.25rem;
}

@media (max-width: 768px) {
    .student-grid {
        grid-template-columns: 1fr;
    }
}

.student-item:hover {
    background-color: #f8f9fa;
}

.student-info {
    flex: 1;
}

.student-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.student-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-score {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-score:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-view {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view:hover {
    background-color: #dfe6e9;
    transform: translateY(-2px);
}

/* 评分表单样式 */
.score-form {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.score-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-input input {
    width: 80px;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.score-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-submit {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    background-color: var(--success-color);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .examiner-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.4rem;
    }
    
    .student-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .student-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
  .login-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .score-container {
    padding: 0.5rem;
  }
}

/* 排行榜页面样式 */
.rankings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ranking-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ranking-list table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-list th {
    font-weight: 600;
    color: #7f8c8d;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ranking-list td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.ranking-list tr:hover {
    background-color: #f8f9fa;
}

.ranking-list td.score-value {
    font-weight: bold;
    color: #2ecc71;
}

.filter-controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.btn-filter {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #3498db;
    border: 1px solid #3498db;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 5px;
}

.btn-filter.active {
    background-color: #3498db;
    color: white;
}

.btn-filter:hover {
    background-color: #2980b9;
    color: white;
}

@media (max-width: 768px) {
    .stats-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .ranking-list table {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .ranking-list th, 
    .ranking-list td {
        padding: 8px;
    }
}