/* 基础样式 */
:root {
    --baimh-primary: #f62350;
    --baimh-dark: #333333;
    --baimh-light: #f8f9fa;
    --baimh-gray: #666666;
    --baimh-white: #ffffff;
    --baimh-bg1: #ffffff;
    --baimh-bg2: #f9f9f9;
    --baimh-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--baimh-dark);
    line-height: 1.6;
    background-color: var(--baimh-bg2);
}

.fl {float: left;}
.fr {float: right;}

.baimh-container {
    max-width: 640px;
    width: 100%;
    background: #fff;
    margin: 0 auto;
}
       
/* Banner样式 */
.banner {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.banner img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4); /* 半透明黑色背景增强可读性 */
    color: #fff;
    z-index: 1;
}

.banner-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.highlight {
    font-size: 1.5rem;
    color: #ffd700; /* 金色高亮 */
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.brand-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.banner-text p {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .banner-text h1 {
        font-size: 1.8rem;
    }
}

/* 顶部导航栏 */
.header-nav {
    display: flex;
    max-width: 640px;
    margin: 0 auto 20px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.nav-tab {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-tab.active {
    background-color: #f62350;
    color: #fff;
    font-weight: bold;
}

/* 通用区块样式 */
.baimh-section {
    padding: 30px 20px;
}

.baimh-section:nth-child(odd) {
    background: var(--baimh-bg1);
}

.baimh-section:nth-child(even) {
    background: var(--baimh-bg2);
}

.baimh-section-title {
    font-size: 24px;
    color: var(--baimh-dark);
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.baimh-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--baimh-primary);
}

.baimh-section-subtitle {
    font-size: 15px;
    color: var(--baimh-gray);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 400;
}

/* 咨询按钮组 */
.consult-btns {
    display: flex;
    gap: 15px;
    margin: 30px 0 0;
}

.consult-btn {
    flex: 1;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.phone-btn {
    background-color: #f62350;
    color: #fff;
    box-shadow: 0 5px 15px rgba(246, 35, 80, 0.3);
}

.online-btn {
    border: 1px solid #f62350;
    color: #f62350;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.phone-btn:hover {
    background-color: #e01c46;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(246, 35, 80, 0.4);
}

.online-btn:hover {
    border-color: #e01c46;
    color: #e01c46;
    background-color: #fff9fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.consult-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* 优势网格 */
.baimh-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.baimh-advantage-item {
    padding: 20px 15px;
    background: rgba(246, 35, 80, 0.03);
    transition: var(--baimh-transition);
    border: 1px solid rgba(246, 35, 80, 0.1);
}

.baimh-advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(246, 35, 80, 0.08);
    border-color: rgba(246, 35, 80, 0.2);
}

.baimh-advantage-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: var(--baimh-primary);
    color: var(--baimh-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.baimh-advantage-title {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--baimh-dark);
    text-align: center;
    font-weight: 600;
}

.baimh-advantage-desc {
    font-size: 13px;
    color: var(--baimh-gray);
    text-align: center;
    line-height: 1.6;
}

/* 教学场景 */
.baimh-teaching-collage {
    margin-top: 20px;
}

.baimh-teaching-collage img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.baimh-teaching-desc {
    font-size: 15px;
    color: var(--baimh-gray);
    line-height: 1.8;
    text-align: justify;
}

/* 学习环境 */
.baimh-learning-slider {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.baimh-slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.baimh-slide {
    min-width: 100%;
    position: relative;
}

.baimh-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.baimh-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--baimh-white);
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.baimh-slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.baimh-slider-prev,
.baimh-slider-next {
    background: none;
    border: none;
    color: var(--baimh-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 5px 15px;
}

.baimh-slider-dots {
    display: flex;
    gap: 10px;
}

.baimh-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}

.baimh-dot.active {
    background: var(--baimh-primary);
}

/* 生活环境 */
.baimh-living-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.baimh-living-card {
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.baimh-living-card-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--baimh-primary);
    color: white;
}

.baimh-living-card-header i {
    font-size: 20px;
}

.baimh-living-card-header h3 {
    font-size: 17px;
    font-weight: 500;
}

.baimh-living-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.baimh-living-card-body {
    padding: 15px;
    font-size: 14px;
    color: var(--baimh-gray);
    line-height: 1.7;
}

/* 校园活动 */
.baimh-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.baimh-event-item {
    position: relative;
    overflow: hidden;
}

.baimh-event-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.baimh-event-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--baimh-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.baimh-event-item h3 {
    font-size: 18px;
    margin: 15px 0 8px;
    color: var(--baimh-dark);
    font-weight: 600;
}

.baimh-event-item p {
    font-size: 14px;
    color: var(--baimh-gray);
    line-height: 1.6;
}

/* 图片懒加载样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* 响应式调整 */
@media (min-width: 480px) {
    .baimh-hero {
        max-height: 480px;
    }
    
    .baimh-hero-title {
        font-size: 32px;
    }
    
    .baimh-hero-subtitle {
        font-size: 18px;
    }
    
    .baimh-section-title {
        font-size: 26px;
    }
    
    .baimh-section-subtitle {
        font-size: 16px;
    }
    

}