/* NSW学校汇总页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* 导航栏 */
.school-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb-sep {
    margin: 0 0.5rem;
}

.current {
    font-weight: 600;
}

.nav-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.nav-title p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 筛选区域 */
.filter-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.reset-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

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

/* 学校网格 */
.schools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.school-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.school-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.school-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.school-info .chinese-name {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.school-location {
    font-size: 0.85rem;
    color: #888;
}

.school-score {
    text-align: center;
    min-width: 80px;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.school-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.meta-item {
    text-align: center;
    flex: 1;
}

.meta-value {
    font-weight: 600;
    color: #333;
    display: block;
}

.meta-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.school-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.tag-gender {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tag-selective {
    background: #fff3e0;
    color: #ef6c00;
}

.tag-partial {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.loading i {
    margin-right: 0.5rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #e9ecef;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 统计信息 */
.stats-container {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item i {
    font-size: 2rem;
    color: #667eea;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-title h1 {
        font-size: 2rem;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .school-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .meta-item {
        min-width: 80px;
    }
}