/* 基础样式复位与增强 */
:root {
    --teal:    #00b8ae;
    --teal-d:  #008f87;
    --teal-dd: #006f69;
    --teal-l:  #00d4c8;
    --teal-xl: #e0f9f8;
    --teal-xx: #f0fdfc;
    --gold:    #f5a623;
    --coral:   #ff6b6b;
    --purple:  #7c5cbf;
    --dark:    #0d2b2a;
    --text:    #2c3e3e;
    --muted:   #6b8585;
    --border:  #d0efed;
    --bg:      #f4fefe;
}
body {
    background-color: rgb(245, 252, 251);
    color: rgb(30, 50, 48);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

.schools-container {


    background-size: 100% 100%;
}

.hero{
    background: linear-gradient(135deg, var(--teal-dd) 0%, var(--teal-d) 50%, var(--teal) 100%);
    padding: 84px 40px 68px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 隐藏滚动条但允许滚动 */
.schools-container .scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.schools-container .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 纹理背景 */
.schools-container .bg-pet-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 111, 105, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0, 168, 158, 0.04) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
}

/* Tab 切换过渡 */
.schools-container .tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}
.schools-container .tab-content.active {
    display: block;
}

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

/* 装饰性闪烁 */
.schools-container .sparkle {
    animation: sparkle 3s ease-in-out infinite;
}
@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.2); }
}

/* 学校概况卡片背景 */
.schools-container .school-overview-bg {
    background: #f0faf9;
    position: relative;
    overflow: hidden;
}

/* 图片菜单专用样式 */
.schools-container .image-menu-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
}

.schools-container .image-menu-item.active {
    transform: scale(1.08);
    border: 3px solid #006f69;
    box-shadow: 0 8px 24px rgba(0, 111, 105, 0.3);
}

.schools-container .image-menu-item:hover:not(.active) {
    transform: scale(1.05);
    border: 3px solid rgba(0, 111, 105, 0.45);
    box-shadow:
        0 10px 25px rgba(0, 111, 105, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);
}

/* 城市名称标签 */
.schools-container .city-label {
    transition: all 0.3s ease;
}

.schools-container .image-menu-item.active .city-label {
    background: #006f69;
    backdrop-filter: blur(10px);
    border: 1px solid #006f69;
    box-shadow: 0 4px 15px rgba(0, 111, 105, 0.35);
}

.schools-container .image-menu-item.active .city-name {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.schools-container .image-menu-item.active .hq-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.schools-container .image-menu-item:hover:not(.active) .city-label {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schools-container .image-menu-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 111, 105, 0.75), rgba(0, 168, 158, 0.75));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.schools-container .image-menu-item.active .image-menu-overlay {
    opacity: 0;
}

.schools-container .image-menu-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, rgba(0, 111, 105, 0.9), rgba(0, 168, 158, 0.9));
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.schools-container .image-menu-item.active .image-menu-badge {
    background: linear-gradient(135deg, #006f69, #00a89e);
    box-shadow: 0 2px 10px rgba(0, 111, 105, 0.5);
    transform: scale(1.05);
}

/* ---- 校区 Tab 内容布局 ---- */
.school-tab-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.school-tab-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.school-tab-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* Hero 图片容器 */
.school-hero-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 111, 105, 0.2);
    background: #e8f7f6;
}

.school-hero-wrap .swiper,
.school-hero-wrap .swiper-wrapper,
.school-hero-wrap .swiper-slide {
    width: 100%;
    height: 100%;
}

.school-hero-wrap .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.school-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 60, 57, 0.5), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.school-hero-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.school-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.school-badge--hq {
    background: linear-gradient(135deg, #006f69, #00a89e);
    color: #fff;
}

.school-badge--city {
    background: rgba(255, 255, 255, 0.92);
    color: #006f69;
    border: 1px solid rgba(0, 111, 105, 0.2);
    backdrop-filter: blur(6px);
}

/* Info Card */
.school-info-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 111, 105, 0.08);
    background: #f0faf9;
    padding: 24px;
    position: relative;
    border: 1px solid rgba(0, 111, 105, 0.12);
}

/* 桌面端：左右两栏 */
@media (min-width: 1024px) {
    .school-tab-grid {
        flex-direction: row;
        gap: 32px;
        align-items: flex-start;
    }
    .school-tab-main {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }
    .school-tab-side {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    .school-info-card {
        padding: 48px;
    }
    .school-hero-badges {
        top: 24px;
        left: 24px;
    }
    .school-badge {
        font-size: 14px;
        padding: 6px 16px;
    }
}
