/* 合格实绩页面专用样式 - 参考首页风格，支持深色主题 */

/* 页面标题区域 */
.page-header {
    background: var(--siqi-red-dark);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="headerPattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23headerPattern)"/></svg>');
    opacity: 0.3;
}

.page-title-section {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
    font-family: 'Arial', sans-serif;
    letter-spacing: 2px;
}

/* 主要内容区域 */
.results-main {
    padding: 3rem 0;
    background: var(--siqi-off-white);
    min-height: 60vh;
    transition: background-color 0.3s ease;
}


/* 年份标签页 */
.year-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.year-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}


.year-tab:hover {
    border-color: var(--siqi-red);
    color: var(--siqi-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}


.year-tab.active {
    background: var(--siqi-red);
    border-color: var(--siqi-red);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* 年份内容区域 */
.year-content {
    display: none;
}

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

.year-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


.year-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--siqi-red-dark);
    margin: 0 0 0.5rem 0;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    transition: color 0.3s ease;
}


.year-stats {
    font-size: 1.1rem;
    color: var(--siqi-red-dark);
    transition: color 0.3s ease;
}


.total-count {
    background: var(--siqi-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* 加载指示器 */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--siqi-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 大学区块样式 */
.university-section {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.university-header {
    background: var(--siqi-red-dark);
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.university-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="blueGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="20" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23blueGrain)"/></svg>');
    opacity: 0.4;
}

.university-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    position: relative;
    z-index: 1;
}

.students-table {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 学生行样式 - 参考青藤教育风格 */
.student-row {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    position: relative;
    gap: 2rem;
}

.student-row:last-child {
    border-bottom: none;
}

.student-row:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.student-info {
    flex: 1;
    min-width: 200px;
}

.student-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

.student-program {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.student-details {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
}

.detail-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

.detail-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

.experience-link {
    flex: 0 0 auto;
}

.btn-experience {
    background: var(--siqi-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

.btn-experience:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .year-tabs {
        gap: 0.5rem;
    }
    
    .year-tab {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .year-title {
        font-size: 1.8rem;
    }
    
    .university-name {
        font-size: 1.5rem;
    }
    
    .student-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .student-info {
        min-width: auto;
        width: 100%;
    }
    
    .student-details {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item {
        min-width: auto;
        width: 100%;
        justify-content: space-between;
    }
    
    .experience-link {
        width: 100%;
        text-align: center;
    }
    
    .btn-experience {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .results-main {
        padding: 2rem 0;
    }
    
    .year-tabs {
        margin-bottom: 2rem;
    }
    
    .year-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .year-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .year-title {
        font-size: 1.5rem;
    }
    
    .university-header {
        padding: 1rem 1.5rem;
    }
    
    .university-name {
        font-size: 1.3rem;
    }
    
    .student-row {
        padding: 1rem;
    }
    
    .student-name {
        font-size: 1.1rem;
    }
    
    .student-program {
        font-size: 0.9rem;
    }
    
    .detail-label,
    .detail-value {
        font-size: 0.8rem;
    }
}

/* ========== 统计组件样式 ========== */

/* 统计概览区域 */
.stats-overview {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


.stats-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--kawai-dark-gray);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    transition: color 0.3s ease;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--siqi-red-dark);
    color: var(--siqi-white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Arial', sans-serif;
    color: var(--siqi-white);
}

.stat-label {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
    color: var(--siqi-off-white);
}

/* 详细统计区域 */
.stats-detailed {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


.stats-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stats-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}


.stats-tab:hover {
    background: #e9ecef;
    border-color: var(--kawai-blue);
    color: var(--kawai-blue);
}


.stats-tab.active {
    background: linear-gradient(135deg, var(--kawai-blue) 0%, var(--kawai-light-blue) 100%);
    border-color: var(--kawai-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.stats-content {
    display: none;
}

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

.stats-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--kawai-dark-gray);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    transition: color 0.3s ease;
}


.stats-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--kawai-gray);
    margin-bottom: 1rem;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    transition: color 0.3s ease;
}


/* 年度趋势图表 - 折线图 */
.chart-container {
    padding: 1rem 0;
}

.line-chart-wrapper {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


.line-chart {
    width: 100%;
    height: 400px;
    color: var(--kawai-gray);
    transition: color 0.3s ease;
}


/* Y轴标签 */
.y-label {
    font-size: 12px;
    font-weight: 500;
    fill: currentColor;
    opacity: 0.7;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

/* X轴标签 */
.x-label {
    font-size: 12px;
    font-weight: 500;
    fill: currentColor;
    opacity: 0.7;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

/* 折线 */
.trend-line {
    fill: none;
    stroke: var(--siqi-red);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}


/* 数据点 */
.data-point {
    fill: var(--siqi-red);
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
    transform-origin: center;
}


.data-point:hover {
    fill: var(--siqi-pink) !important;
    stroke-width: 3;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
    transition: all 0.2s ease;
}


/* 图例 */
.chart-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    transition: border-color 0.3s ease;
}


.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-line {
    width: 20px;
    height: 3px;
    background: var(--siqi-red);
    border-radius: 2px;
}

.legend-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--siqi-red-dark);
    transition: color 0.3s ease;
}



/* 排行榜样式 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}


.ranking-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}


.rank-number {
    width: 40px;
    height: 40px;
    background: var(--siqi-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-name {
    min-width: 200px;
    font-weight: 500;
    color: var(--siqi-red-dark);
    transition: color 0.3s ease;
}


.rank-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.rank-fill {
    height: 100%;
    background: var(--siqi-red);
    border-radius: 10px;
    transition: width 0.8s ease-out;
}

.rank-count {
    min-width: 60px;
    font-weight: 600;
    color: var(--siqi-red);
    text-align: right;
    transition: color 0.3s ease;
}

/* 语言成绩统计 */
.language-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.language-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}


.language-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}


.language-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-label {
    min-width: 80px;
    font-weight: 500;
    color: var(--kawai-dark-gray);
    transition: color 0.3s ease;
}


.language-bar {
    flex: 1;
    height: 16px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background: var(--siqi-red);
    border-radius: 8px;
    transition: width 0.8s ease-out;
}

.language-count {
    min-width: 50px;
    font-weight: 600;
    color: var(--siqi-red);
    text-align: right;
    transition: color 0.3s ease;
}

/* 本科背景统计 */
.background-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.background-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}


.background-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}


.background-label {
    min-width: 120px;
    font-weight: 500;
    color: var(--kawai-dark-gray);
    transition: color 0.3s ease;
}


.background-bar {
    flex: 1;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.background-fill {
    height: 100%;
    background: var(--siqi-red);
    border-radius: 12px;
    transition: width 0.8s ease-out;
}

.background-count {
    min-width: 80px;
    font-weight: 600;
    color: var(--siqi-red);
    text-align: right;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

/* 英语成绩分类颜色 */
.toefl-color {
    background: #4CAF50 !important; /* 绿色 - 托福 */
}

.toeic-color {
    background: #2196F3 !important; /* 蓝色 - 托业 */
}

.other-color {
    background: #FF9800 !important; /* 橙色 - 其他英语考试 */
}

.none-color {
    background: #9E9E9E !important; /* 灰色 - 无英语成绩 */
}

/* 统计组件响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stats-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-tab {
        width: 100%;
        max-width: 200px;
    }
    
    .language-stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端语言成绩只显示人数和百分比 */
    .language-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem;
    }
    
    .language-bar {
        display: none;
    }
    
    .language-label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .language-count {
        text-align: right;
        min-width: auto;
        font-size: 0.9rem;
    }
    
    /* 日语成绩也应用相同样式 */
    .language-section {
        padding: 1rem;
    }
    
    .language-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .rank-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rank-name {
        min-width: auto;
        width: 100%;
    }
    
    .rank-bar {
        width: 100%;
    }
    
    /* 折线图响应式 */
    .line-chart-wrapper {
        padding: 1rem;
    }
    
    .line-chart {
        height: 300px;
    }
    
    .chart-legend {
        justify-content: center;
    }
    
    .y-label, .x-label {
        font-size: 10px;
    }
    
    .legend-item span {
        font-size: 12px;
    }
    
    .stat-item {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .line-chart {
        height: 250px;
    }
    
    .line-chart-wrapper {
        padding: 0.75rem;
    }
    
    .y-label, .x-label {
        font-size: 9px;
    }
    
    .data-point {
        r: 4;
    }
    
    .trend-line {
        stroke-width: 2;
    }
    
    .chart-legend {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .legend-line {
        width: 15px;
        height: 2px;
    }
}

