body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: #333;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.nav-stage {
    font-size: 0.9rem;
    font-weight: 500;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-chong { background-color: #dc3545; color: #fff; }
.badge-wen { background-color: #198754; color: #fff; }
.badge-bao { background-color: #0d6efd; color: #fff; }
.badge-dian { background-color: #6c757d; color: #fff; }

.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table-responsive {
    min-height: 200px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.page-header {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.page-header h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.channel-gaokao .page-header h3 { color: #1a73e8; }
.channel-zhongkao .page-header h3 { color: #d63384; }
.channel-kaoyan .page-header h3 { color: #198754; }
.channel-abroad .page-header h3 { color: #e67e22; }
.channel-adult-edu .page-header h3 { color: #6f42c1; }

.filter-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.filter-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3rem;
}

.filter-card .form-select,
.filter-card .form-control {
    border-radius: 8px;
    font-size: 0.9rem;
}

.data-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.data-card .card-body {
    padding: 1.2rem;
}

.data-card .card-title a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
}

.data-card .card-title a:hover {
    color: #4facfe;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .info-label {
    color: #888;
    width: 100px;
    flex-shrink: 0;
}

.info-row .info-value {
    color: #333;
    font-weight: 500;
}

.detail-banner {
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.detail-banner.channel-gaokao { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.detail-banner.channel-zhongkao { background: linear-gradient(135deg, #f093fb, #f5576c); }
.detail-banner.channel-kaoyan { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.detail-banner.channel-abroad { background: linear-gradient(135deg, #fa709a, #fee140); }
.detail-banner.channel-adult-edu { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.detail-banner h3 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.detail-banner .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    position: relative;
    padding-left: 14px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.channel-zhongkao .section-title::before { background: linear-gradient(135deg, #f093fb, #f5576c); }
.channel-kaoyan .section-title::before { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.channel-abroad .section-title::before { background: linear-gradient(135deg, #fa709a, #fee140); }
.channel-adult-edu .section-title::before { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.stat-mini {
    text-align: center;
    padding: 0.6rem;
}

.stat-mini .stat-num,
.stat-mini .stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
}

.stat-mini .stat-text,
.stat-mini .stat-label {
    font-size: 0.75rem;
    color: #999;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: none;
    color: #555;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: none;
}

.channel-zhongkao .pagination .page-item.active .page-link { background: linear-gradient(135deg, #f093fb, #f5576c); }
.channel-kaoyan .pagination .page-item.active .page-link { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.channel-abroad .pagination .page-item.active .page-link { background: linear-gradient(135deg, #fa709a, #fee140); }
.channel-adult-edu .pagination .page-item.active .page-link { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid #e0e0e0;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4facfe;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #4facfe;
}

.timeline-item .timeline-date {
    font-size: 0.85rem;
    color: #4facfe;
    font-weight: 600;
}

.timeline-item .timeline-content {
    background: white;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.channel-zhongkao .timeline-item::before { background: #f093fb; box-shadow: 0 0 0 2px #f093fb; }
.channel-zhongkao .timeline-item .timeline-date { color: #f093fb; }
.channel-kaoyan .timeline-item::before { background: #43e97b; box-shadow: 0 0 0 2px #43e97b; }
.channel-kaoyan .timeline-item .timeline-date { color: #43e97b; }
.channel-abroad .timeline-item::before { background: #fa709a; box-shadow: 0 0 0 2px #fa709a; }
.channel-abroad .timeline-item .timeline-date { color: #fa709a; }
.channel-adult-edu .timeline-item::before { background: #a18cd1; box-shadow: 0 0 0 2px #a18cd1; }
.channel-adult-edu .timeline-item .timeline-date { color: #a18cd1; }

.path-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.path-card:hover {
    border-color: #a18cd1;
    box-shadow: 0 4px 15px rgba(161, 140, 209, 0.2);
}

.path-card.active {
    border-color: #a18cd1;
    background: #f8f0ff;
}

.calc-result {
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.calc-result .calc-total {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fa709a, #fee140);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.channel-gaokao .btn-primary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: none;
}
.channel-zhongkao .btn-primary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border: none;
}
.channel-kaoyan .btn-primary {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    border: none;
}
.channel-abroad .btn-primary {
    background: linear-gradient(135deg, #fa709a, #fee140);
    border: none;
}
.channel-adult-edu .btn-primary {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    border: none;
}

.card .nav-tabs .nav-link {
    color: #555;
    font-weight: 500;
    border: none;
    padding: 0.5rem 1rem;
}

.card .nav-tabs .nav-link.active {
    color: #1a1a2e;
    border-bottom: 2px solid #4facfe;
    background: transparent;
}

.channel-zhongkao .card .nav-tabs .nav-link.active { border-bottom-color: #f093fb; }
.channel-kaoyan .card .nav-tabs .nav-link.active { border-bottom-color: #43e97b; }
.channel-abroad .card .nav-tabs .nav-link.active { border-bottom-color: #fa709a; }
.channel-adult-edu .card .nav-tabs .nav-link.active { border-bottom-color: #a18cd1; }

.accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #1a1a2e;
    font-weight: 600;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.channel-adult-edu .accordion-button:not(.collapsed) {
    background: #f3e8ff;
    color: #6f42c1;
}

/* 趋势图页面样式 */
#majorSelect {
    max-height: 100px;
}

.btn-group-sm .btn {
    padding: 0.375rem 0.75rem;
}

.btn-group-sm .btn.active {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-color: transparent;
    color: white;
}

@media (max-width: 768px) {
    .navbar-brand { font-size: 1rem; }
    .card-body { padding: 0.75rem; }
    .table { font-size: 0.85rem; }
    .detail-banner { padding: 1rem; }
    .detail-banner h3 { font-size: 1.3rem; }
    .page-header h3 { font-size: 1.3rem; }
    .filter-card .row { row-gap: 0.5rem; }
    .data-card .card-body { padding: 0.8rem; }
    .info-row { font-size: 0.85rem; }
    .info-row .info-label { width: 80px; }
    .section-title { font-size: 1rem; }
    .calc-result .calc-total { font-size: 1.5rem; }
    
    /* 招生计划分析卡片响应式 */
    .detail-banner .col-md-3.col-6 { padding: 0.25rem; }
    .detail-banner .text-center p-3 { padding: 0.75rem !important; }
    .detail-banner .fs-2 { font-size: 1.5rem !important; }
    
    /* 趋势图响应式 */
    #trendChart {
        height: 350px !important;
        min-height: 300px;
    }
    
    /* 招生计划图表响应式 */
    #provincePlanChart, #majorPlanChart, #examTypeChart, #collegePlanChart {
        height: 280px !important;
        min-height: 250px;
    }
    
    .card-header .btn-group {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .card-header .btn-group .btn {
        flex: 1;
    }
    
    #filterForm .col-md-3,
    #filterForm .col-md-2,
    #filterForm .col-md-5 {
        width: 100%;
    }
    
    #majorSelect {
        max-height: 120px;
    }
    
    /* 招生计划统计卡片响应式 */
    .enrollment-plan-stats .row {
        gap: 0.5rem;
    }
    
    .enrollment-plan-stats .col-md-3 {
        padding: 0.25rem;
    }
}

@media (max-width: 576px) {
    #trendChart {
        height: 300px !important;
    }
    
    /* 招生计划图表小屏幕优化 */
    #provincePlanChart, #majorPlanChart, #examTypeChart, #collegePlanChart {
        height: 250px !important;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* 详情页横幅按钮响应式 */
    .detail-banner .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .detail-banner .d-flex.gap-2 {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===== Unified Component Classes ===== */

.edu-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.edu-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.edu-card .card-header {
    border-radius: 12px 12px 0 0;
    background: white;
}

.edu-btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.channel-gaokao .edu-btn-primary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border: none;
    color: white;
}

.channel-gaokao .edu-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.channel-zhongkao .edu-btn-primary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border: none;
    color: white;
}

.channel-kaoyan .edu-btn-primary {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    border: none;
    color: white;
}

.channel-abroad .edu-btn-primary {
    background: linear-gradient(135deg, #fa709a, #fee140);
    border: none;
    color: white;
}

.channel-adult-edu .edu-btn-primary {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    border: none;
    color: white;
}

/* Homepage styles (extracted from index.html) */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    color: white;
    padding: 80px 0 60px;
    margin: -1rem -1rem 0 -1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(79, 172, 254, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(250, 112, 154, 0.06) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 1%); }
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    position: relative;
    letter-spacing: 2px;
}

.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.85;
    position: relative;
}

.hero-search {
    position: relative;
    z-index: 1;
}

.hero-search .form-control {
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 1.05rem;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.hero-search .form-control:focus {
    border-color: #4facfe;
    box-shadow: 0 4px 25px rgba(79, 172, 254, 0.3);
}

.hero-search .btn {
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 600;
}

.stage-card {
    border: none;
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.stage-card .card-body {
    padding: 2rem 1.2rem;
}

.stage-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: white;
}

.stage-zhongkao .stage-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stage-gaokao .stage-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stage-kaoyan .stage-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.stage-abroad .stage-icon { background: linear-gradient(135deg, #fa709a, #fee140); }
.stage-adult .stage-icon { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

.stage-card h5 {
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #1a1a2e;
}

.stage-card .stage-desc {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 0;
}

.quick-link {
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    background: white;
    border: 1px solid #eee;
    transition: all 0.25s;
    display: block;
}

.quick-link:hover {
    background: #f0f7ff;
    border-color: #4facfe;
    text-decoration: none;
    transform: translateX(4px);
}

.quick-link .ql-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ql-blue { background: #e8f4fd; color: #2196F3; }
.ql-green { background: #e8f5e9; color: #4CAF50; }
.ql-orange { background: #fff3e0; color: #FF9800; }
.ql-purple { background: #f3e5f5; color: #9C27B0; }
.ql-teal { background: #e0f2f1; color: #009688; }
.ql-red { background: #fce4ec; color: #E91E63; }

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #4facfe;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
}

.enrollment-item {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #eee;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    display: block;
}

.enrollment-item:hover {
    background: #f0f7ff;
    border-color: #4facfe;
    text-decoration: none;
}

.five-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.data-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    margin: 0 -1rem;
    padding: 2.5rem 1rem;
}

/* Homepage responsive */
@media (max-width: 992px) {
    .five-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .five-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section .lead { font-size: 0.95rem; }
}

/* Chart color constants */
:root {
    --chart-gaokao-primary: #4facfe;
    --chart-gaokao-secondary: #00f2fe;
    --chart-gaokao-1: #4facfe;
    --chart-gaokao-2: #00f2fe;
    --chart-gaokao-3: #667eea;
    --chart-gaokao-4: #11998e;
    --chart-gaokao-5: #f093fb;
    --chart-gaokao-6: #ee6666;
    --chart-gaokao-7: #91cc75;
    --chart-gaokao-8: #fac858;
}
