/* ===== 筛选区域 - 现代化设计 ===== */
.filter-section {
    padding: 40px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.filter-box {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-box:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.filter-group label i {
    color: #667eea;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.filter-group select {
    padding: 12px 40px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #4a5568;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    font-family: 'Noto Sans SC', sans-serif;
}

.filter-group select:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background-color: #fff;
}

.filter-group select option {
    padding: 12px;
    font-size: 14px;
}

.search-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap i {
    position: absolute;
    left: 16px;
    color: #667eea;
    font-size: 18px;
    z-index: 1;
}

.search-input-wrap input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #2d3748;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans SC', sans-serif;
}

.search-input-wrap input:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.search-input-wrap input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background-color: #fff;
}

.search-input-wrap input::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

.btn-filter-reset {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-family: 'Noto Sans SC', sans-serif;
}

.btn-filter-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-filter-reset:active {
    transform: translateY(0);
}

.btn-filter-reset i {
    font-size: 14px;
}

/* ===== 列表头部 - 统计信息样式 ===== */
.list-header {
    margin-top: 24px;
    margin-bottom: 32px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(102, 126, 234, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.list-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.list-stats {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-stats::before {
    content: '\f019';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.list-stats .highlight {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== 分页组件样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.page-btn {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans SC', sans-serif;
    position: relative;
    overflow: hidden;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.page-btn:hover:not(.disabled):not(.active) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.page-btn:hover:not(.disabled):not(.active)::before {
    width: 100%;
    height: 100%;
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.page-btn.active::before {
    display: none;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f7fafc;
    color: #cbd5e0;
}

.page-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e2e8f0;
}

.page-btn i {
    font-size: 14px;
}

/* 省略号按钮 */
.page-btn:not(.disabled):not(.active):has(...) {
    border-style: dashed;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-section {
        padding: 30px 0;
    }
    
    .filter-box {
        padding: 24px;
        border-radius: 20px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .search-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input-wrap {
        width: 100%;
    }
    
    .search-input-wrap input {
        width: 100%;
    }
    
    .btn-filter-reset {
        width: 100%;
        justify-content: center;
    }
    
    /* 分页组件移动端适配 */
    .pagination {
        gap: 8px;
        padding: 16px;
        margin-top: 32px;
        margin-bottom: 32px;
        flex-wrap: wrap;
    }
    
    .page-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .filter-box {
        padding: 20px;
        border-radius: 16px;
    }
    
    .filter-group select {
        padding: 10px 36px 10px 14px;
        font-size: 13px;
    }
    
    .search-input-wrap input {
        padding: 12px 16px 12px 44px;
        font-size: 14px;
    }
    
    .btn-filter-reset {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* 分页组件小屏幕适配 */
    .pagination {
        gap: 6px;
        padding: 12px 8px;
        margin-top: 24px;
        margin-bottom: 24px;
    }
    
    .page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .page-btn i {
        font-size: 12px;
    }
}

/* ===== 学校标签样式 - 终极修复 ===== */
/* 强制横向显示，覆盖所有可能的冲突样式 */
.school-list-item .school-list-badge,
.school-card .school-badge,
div.school-list-badge,
div.school-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    padding: 5px 12px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    z-index: 10 !important;
    
    /* 强制横向排列 */
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    
    /* 文字排版 */
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    text-align: center !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    word-break: keep-all !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    
    /* 清除可能的继承样式 */
    direction: ltr !important;
    text-indent: 0 !important;
    text-transform: none !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-decoration: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    
    /*  Flex 相关 */
    flex: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 标签颜色 - 提高优先级 */
.school-list-badge.badge-red,
.school-badge.badge-red,
.badge-national {
    background: linear-gradient(135deg, #ff4d4f, #ff7875) !important;
    color: white !important;
}

.school-list-badge.badge-blue,
.school-badge.badge-blue,
.badge-provincial {
    background: linear-gradient(135deg, #1890ff, #40a9ff) !important;
    color: white !important;
}

.school-list-badge.badge-green,
.school-badge.badge-green,
.badge-city {
    background: linear-gradient(135deg, #52c41a, #73d13d) !important;
    color: white !important;
}

.school-list-badge.badge-orange,
.school-badge.badge-orange,
.badge-hot {
    background: linear-gradient(135deg, #fa8c16, #ffa940) !important;
    color: white !important;
}

/* ===== 预约咨询 - 现代化设计 ===== */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.contact-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    animation: contactBgFloat 25s ease-in-out infinite;
}

@keyframes contactBgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(3deg); }
    66% { transform: translate(-20px, 20px) rotate(-2deg); }
}

.contact-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    animation: formSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.contact-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.contact-form-header h3 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 16px 0 12px;
    letter-spacing: -0.5px;
}

.contact-form-header h3 i {
    margin-right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form-header p {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* 表单样式 */
.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-group-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #667eea;
    font-size: 18px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group-modern input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #2d3748;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans SC', sans-serif;
}

.form-group-modern input:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.form-group-modern input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background-color: #fff;
}

.form-group-modern input:focus + .input-icon,
.form-group-modern input:focus ~ .input-icon {
    color: #764ba2;
    transform: scale(1.1);
}

.form-group-modern input::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

/* 提交按钮 */
.form-row-submit {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.btn-submit-modern {
    padding: 18px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
    font-family: 'Noto Sans SC', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-submit-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.45);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-submit-modern:hover::before {
    left: 100%;
}

.btn-submit-modern:active {
    transform: translateY(-1px);
}

.btn-submit-modern i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-submit-modern:hover i {
    transform: translateX(4px);
}

/* 隐私提示 */
.form-privacy {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-privacy i {
    color: #667eea;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
        border-radius: 24px;
        margin: 0 16px;
    }
    
    .contact-form-header h3 {
        font-size: 26px;
    }
    
    .form-row-3col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn-submit-modern {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .contact-form-header h3 {
        font-size: 22px;
    }
    
    .contact-badge {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .form-group-modern input {
        padding: 14px 16px 14px 48px;
        font-size: 14px;
    }
    
    .btn-submit-modern {
        font-size: 15px;
        padding: 14px 24px;
    }
}

/* 分页省略号 */
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    letter-spacing: 2px;
}
