* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
}

.area-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #f5576c #f8f9fa;
}

.area-tabs::-webkit-scrollbar {
    height: 6px;
}

.area-tabs::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.area-tabs::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 3px;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 18px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    min-width: 100px;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    color: #f5576c;
    background: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.content-area {
    padding: 40px 20px;
}

.school-section {
    display: none;
}

.school-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.school-section h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f5576c;
}

.section-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.section-intro p {
    font-size: 1.1em;
    line-height: 1.6;
}

.school-section h3 {
    color: #34495e;
    font-size: 1.5em;
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #f5576c;
}

.school-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.school-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #f5576c;
}

.school-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.school-name {
    font-size: 1.15em;
    font-weight: 600;
    color: #2c3e50;
}

.school-rank {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.school-rank.top-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

.school-rank.top-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
}

.school-rank.top-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
}

.school-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    color: #6c757d;
    font-size: 0.95em;
}

.info-item strong {
    color: #495057;
    margin-right: 8px;
    min-width: 80px;
    flex-shrink: 0;
}

.school-score {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85em;
}

.school-features {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.school-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    display: inline-block;
}

.tag.featured {
    background: #fff3e0;
    color: #e65100;
}

.tag.new {
    background: #e3f2fd;
    color: #1565c0;
}

.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #6c757d;
    font-size: 1em;
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

footer p {
    opacity: 0.9;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .content-area {
        padding: 20px 15px;
    }

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .tab-btn {
        padding: 15px 18px;
        font-size: 0.9em;
        min-width: 90px;
    }

    .school-section h2 {
        font-size: 1.5em;
    }

    .school-section h3 {
        font-size: 1.2em;
    }

    .school-list {
        grid-template-columns: 1fr;
    }

    .school-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .school-card {
        padding: 15px;
    }

    .statistics {
        padding: 20px 15px;
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4em;
    }

    .tab-btn {
        padding: 12px 14px;
        font-size: 0.85em;
        min-width: 80px;
    }

    .school-name {
        font-size: 1em;
    }

    .school-section h2 {
        font-size: 1.3em;
    }
}
