:root {
    --bme-primary: #ff4d7d;
    --bme-primary-light: #ff7d9d;
    --bme-primary-dark: #e63d6d;
    --bme-secondary: #6c5ce7;
    --bme-dark: #333;
    --bme-gray: #666;
    --bme-light-gray: #f5f5f5;
    --bme-white: #fff;
    --transition-base: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--bme-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
.mymain {
    width: 1200px;
    overflow: hidden;
    margin: 0 auto;
}
.fl {float: left;}
.fr {float: right;}
.bme-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .main-title {
    font-size: 42px;
    color: var(--bme-primary);
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header .main-title:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bme-primary), var(--bme-primary-light));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header .sub-title {
    font-size: 20px;
    color: var(--bme-gray);
}

.section-desc {
    text-align: center;
    font-size: 18px;
    color: var(--bme-gray);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* Buttons */
.btn-wrap {
    text-align: center;
    margin-top: 50px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 100px;
    background: linear-gradient(135deg, var(--bme-primary), var(--bme-primary-light));
    color: var(--bme-white);
    border-radius: 30px;
    font-weight: bold;
    transition: all var(--transition-base);
    text-align: center;
    border: none;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 77, 125, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 77, 125, 0.4);
}

.btn-primary-sm {
    display: inline-block;
    padding: 8px 25px;
    background: linear-gradient(135deg, var(--bme-primary), var(--bme-primary-light));
    color: var(--bme-white);
    border-radius: 20px;
    font-size: 14px;
    transition: all var(--transition-base);
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 125, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid var(--bme-primary);
    color: var(--bme-primary);
    border-radius: 20px;
    font-size: 14px;
    transition: all var(--transition-base);
    font-weight: bold;
}

.btn-outline:hover {
    background-color: var(--bme-primary);
    color: var(--bme-white);
}

.consult-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 100px;
    background: linear-gradient(135deg, var(--bme-primary), var(--bme-primary-light));
    color: var(--bme-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all var(--transition-base);
    text-align: center;
    border: none;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 77, 125, 0.3);
}

.consult-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 77, 125, 0.4);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url("../images/banner.jpg") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bme-white);
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Advantages Section */
.bme-advantages {
    background-color: var(--bme-light-gray);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bme-advantages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.bme-advantage-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 250px;
    background: var(--bme-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #eee;
}

.bme-advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.bme-advantage-icon {
    height: 150px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bme-primary);
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.bme-advantage-icon:after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--bme-white);
    rotate: 45deg;
}

.bme-advantage-content {
    padding: 25px;
    text-align: center;
    position: relative;
}

.bme-advantage-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--bme-dark);
    font-weight: 600;
}

.bme-advantage-content p {
    font-size: 15px;
    color: var(--bme-gray);
    line-height: 1.6;
}

/* Learning Environment Section */
.bme-learning {
    padding: 80px 0;
    background: url('images/pattern-bg.jpg') center/cover no-repeat;
    position: relative;
}

.bme-learning:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
}

.bme-learning .bme-container {
    position: relative;
    z-index: 1;
}

/* Swiper Styles */
.bme-swiper-container {
    width: 100%;
    height: 400px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    padding-bottom: 25px;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.swiper-slide {
    width: calc(50% - 10px);
    position: relative;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
    height: 100%;
    transition: all var(--transition-base);
}

.swiper-slide:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.bme-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--bme-white);
    padding: 25px;
}

.bme-slide-caption h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.bme-slide-caption p {
    font-size: 15px;
    opacity: 0.9;
}

/* 分页器样式 */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #896168;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.swiper-pagination-bullet:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bme-primary), var(--bme-primary-light));
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.swiper-pagination-bullet-active {
    transform: scale(1.2);
}

.swiper-pagination-bullet-active:before {
    transform: scale(1);
}

/* 导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.bme-learning .swiper-button-prev {background: url(../images/myprev.png) no-repeat center;}
.bme-learning .swiper-button-next {background: url(../images/mynext.png) no-repeat center;}
.swiper-container-horizontal>.swiper-pagination-bullets {bottom: 5px;}

/* 响应式调整 */
@media (max-width: 992px) {
    .bme-swiper-container {
        height: 350px;
    }
    
    .swiper-slide {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .bme-swiper-container {
        height: 250px;
    }
}
/* Teaching Gallery */
.bme-teaching {
    background-color: var(--bme-light-gray);
    padding: 80px 0;
    position: relative;
}

.bme-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 25px;
    margin-top: 40px;
}

.bme-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    box-shadow: var(--shadow-md);
}

.bme-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.bme-gallery-item:hover img {
    transform: scale(1.1);
}

.bme-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(255, 77, 125, 0.9));
    color: var(--bme-white);
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.bme-gallery-item:hover .bme-gallery-caption {
    transform: translateY(0);
}

.bme-gallery-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Living Environment */
.bme-living {
    padding: 80px 0;
    background: url('images/living-bg.jpg') center/cover no-repeat fixed;
    position: relative;
    color: var(--bme-white);
}

.bme-living:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.bme-living .bme-container {
    position: relative;
    z-index: 1;
}

.bme-living .section-header .main-title,
.bme-living .section-header .sub-title,
.bme-living .section-desc {
    color: var(--bme-white);
}

.bme-living-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 25px;
    margin-top: 40px;
}

.bme-living-item {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    color: var(--bme-dark);
}

.bme-living-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.bme-living-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.bme-living-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bme-living-item:hover .bme-living-img img {
    transform: scale(1.1);
}

.bme-living-content {
    padding: 20px;
}

.bme-living-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--bme-primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.bme-living-content h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--bme-primary);
}

.bme-living-content p {
    font-size: 14px;
    color: var(--bme-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.bme-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.bme-feature-item {
    background-color: var(--bme-primary-light);
    color: var(--bme-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.bme-feature-item i {
    margin-right: 5px;
    font-size: 14px;
}

/* Student Life Section */
.bme-student-life {
    padding: 80px 0;
    background-color: var(--bme-light-gray);
    position: relative;
}

.bme-life-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-top: 40px;
}

.bme-life-item {
    position: relative;
    overflow: hidden;
    height: 220px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.bme-life-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.bme-life-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.bme-life-item:hover img {
    transform: scale(1.1);
}

.bme-life-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--bme-white);
    padding: 15px;
    text-align: center;
}

.bme-life-caption h3 {
    font-size: 16px;
    font-weight: 600;
}

/* Lazy Load Styles */
.bme-lazy-load {
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.bme-lazy-load:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: bme-loading 1.5s infinite;
}

@keyframes bme-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bme-lazy-load img {
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bme-lazy-load.loaded img {
    opacity: 1;
}

.bme-lazy-load.loaded:before {
    display: none;
}

/* Animations */
@keyframes bme-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bme-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bme-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bme-advantage-card {
        flex: 1 1 calc(50% - 20px);
        margin-bottom: 25px;
    }
    
    .bme-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bme-living-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bme-life-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-header .main-title {
        font-size: 36px;
    }
    
    .section-header .sub-title {
        font-size: 18px;
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    .bme-swiper-container {
        height: 350px;
    }
    
    .swiper-slide {
        width: 100%;
    }
    
    .bme-living-grid {
        grid-template-columns: 1fr;
    }
    
    .bme-life-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-header .main-title {
        font-size: 32px;
    }
    
    .bme-advantage-card {
        flex: 1 1 100%;
    }
    
    .bme-gallery-item, .bme-life-item {
        height: 200px;
    }
    
    .btn-primary {
        padding: 12px 80px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
    
    .section-header .main-title {
        font-size: 28px;
    }
    
    .bme-swiper-container {
        height: 250px;
    }
    
    .bme-gallery {
        grid-template-columns: 1fr;
    }
    
    .bme-life-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        padding: 10px 60px;
        font-size: 16px;
    }
}