/* 页面顶部样式 */
.hero {
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 70px;
}

.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}
@media screen and (max-width: 480px) {
    .carousel-dots {
        bottom: 20px;
        gap: 10px;
    }
}
/* 响应式布局 */
@media (max-width: 1440px) {
    .hero {
        height: 41.67vw;
    }
}

@media (max-width: 768px) {
    /* .hero {
        height: 50vw;
        margin-top: 60px;
    } */
}

@media (max-width: 480px) {
    /* .hero {
        height: 56.25vw;
        margin-top: 50px;
    } */
}

/* 幼小衔接介绍部分 */
.preschool-intro {
    padding: 80px 0;
    background: #fff;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    text-align: center;
    line-height: 1.8;
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* 课程体系部分 */
.curriculum {
    padding: 80px 0;
    background-color: #fff;
}

.curriculum-content {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 15px; */
}

.curriculum-text {
    text-align: justify;
    line-height: 1.8;
    color: #666;
    font-size: 16px;
    max-width: 762px;
    margin: 0 auto;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .curriculum {
        padding: 60px 0;
    }

    .curriculum-text {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .curriculum {
        padding: 50px 0;
    }
}

.section-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 30px;
    letter-spacing: 1px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    height: 1px;
    width: 40px;
    background-color: #999;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-subtitle::before,
    .section-subtitle::after {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .section-subtitle::before,
    .section-subtitle::after {
        width: 20px;
    }
}

.curriculum-image {
    margin-top: 30px;
    text-align: center;
}

.curriculum-image img {
    max-width: 100%;
    height: auto;
}

/* 语言文字部分 */
.language-section {
    padding: 80px 0;
    background-color: #F9FAFB;
}

.language-content {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.language-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.language-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.language-card:hover {
    transform: translateY(-5px);
}

.card-image {
    margin-bottom: 15px;
}

.card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.language-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    padding: 0 10px;
}

.language-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    padding: 0 10px;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .language-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .language-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }



    .language-card h3 {
        font-size: 16px;
    }

    .language-card p {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .language-section {
        padding: 50px 0;
    }
}

/* 数字逻辑部分 */
.numbers-section {
    padding: 80px 0;
    background-color: #fff;
}

.numbers-content {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.numbers-item {
    text-align: center;
    padding: 30px;
    background: #F8F9FA;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.numbers-item:hover {
    transform: translateY(-5px);
}

.numbers-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.numbers-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.numbers-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.numbers-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 响应式调整 */
@media screen and (max-width: 992px) {
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .numbers-section {
        padding: 60px 0;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .numbers-item {
        padding: 20px;
    }

    .numbers-icon {
        width: 80px;
        height: 80px;
    }

    .numbers-item h3 {
        font-size: 18px;
    }

    .numbers-item p {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .numbers-section {
        padding: 50px 0;
    }
}

.numbers-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.numbers-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.numbers-card:hover {
    transform: translateY(-5px);
}

.numbers-card .card-image {
    margin-bottom: 15px;
}

.numbers-card .card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.numbers-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    padding: 0 10px;
}

.numbers-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    padding: 0 10px;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .numbers-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .numbers-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }

    .numbers-card h3 {
        font-size: 16px;
    }

    .numbers-card p {
        font-size: 13px;
    }
}

/* ITPP系统部分 */
.itpp-section {
    padding: 80px 0;
    background-color: #F9FAFB;
    text-align: center;
}

.itpp-content {
    max-width: 1000px;
    margin: 0 auto;
    /* padding: 0 15px; */
}

.itpp-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-item {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* 添加蓝色文字样式 */
.feature-item:nth-child(1),
.feature-item:nth-child(3) {
    color: #006CBF;
}
.feature-item:nth-child(2),
.feature-item:nth-child(4) {
    color: #4B5563;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .itpp-section {
        padding: 60px 0;
    }

    .itpp-features {
        margin-top: 30px;
        /* gap: 15px; */
    }

    .feature-item {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .itpp-section {
        padding: 50px 0;
    }

    .feature-item {
        font-size: 14px;
    }
}

.itpp-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    margin-top: 30px;
}

.showcase-item {
    width: 100%;
    height: auto;
}

.showcase-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .showcase-item {
        max-width: 340px;
        max-height: 100px;
    }
    
    .showcase-item img {
        height: 100%;
        object-fit: cover;
    }
}
.showcase-item-left img{
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
.showcase-item-right img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .itpp-showcase {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .showcase-item {
        aspect-ratio: 16/9;  /* 保持图片比例 */
    }
}

.play-system-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.play-system-content {
    max-width: 1000px;
    margin: 0 auto;
}

.play-system-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.play-system-features .feature-item {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.6;
}

/* 添加蓝色文字样式 */
.play-system-features .feature-item:first-child span,
.play-system-features .feature-item:last-child span {
    color: #006CBF;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .play-system-section {
        padding: 60px 0;
    }

    .play-system-features {
        margin-top: 30px;
        /* gap: 15px; */
    }

    .play-system-features .feature-item {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .play-system-section {
        padding: 50px 0;
    }

    .play-system-features .feature-item {
        font-size: 14px;
        padding: 0 15px;
    }
}
.play-system-showcase {
    margin-top: 30px;
    text-align: center; /* 添加居中对齐 */
}

.showcase-top {
    margin-bottom: 30px;
    line-height: 0;
    display: flex;  /* 添加flex布局 */
    justify-content: center;  /* 水平居中 */
}

.showcase-bottom {
    display: flex;  /* 改为flex布局 */
    justify-content: center;  /* 水平居中 */
    gap: 30px;
}

.showcase-top .carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.showcase-top .carousel-inner {
    position: relative;
    overflow: hidden;
}

.showcase-top .carousel-inner img {
    display: none;
    width: 100%;
    height: auto;
}

.showcase-top .carousel-inner img.active {
    display: block;
}

.showcase-top .carousel-prev,
.showcase-top .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1;
    display: none;
}

.showcase-top .carousel-prev {
    left: 10px;
}

.showcase-top .carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #006CBF;
}

/* 响应式布局调整 */
@media screen and (max-width: 992px) {
    .carousel-dots {
        bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .carousel-dots {
        bottom: 30px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}


.showcase-bottom {
    display: flex;  /* 改为flex布局 */
    justify-content: center;  /* 水平居中 */
    gap: 30px;
}

.showcase-top img,
.showcase-bottom img {
    max-width: 100%;
    height: auto;
    display: block;
}

.showcase-bottom .showcase-item {
    display: flex;
    justify-content: center;
    width: 100%;
}

.showcase-bottom .showcase-item img {
    max-width: 643px;
    height: auto;
}

/* 大数据观察报告部分 */
.data-report-section {
    padding: 80px 0;
    background-color: #F9FAFB;
    text-align: center;
}

.data-report-content {
    max-width: 1000px;
    margin: 0 auto;
}

.data-report-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.data-report-text p {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.data-report-text .highlight {
    color: #006CBF;
    font-size: 16px;
    font-weight: 500;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .data-report-section {
        padding: 60px 0;
    }

    .data-report-content {
        padding: 30px 15px;
    }

    .data-report-text p {
        font-size: 16px;
    }

    .data-report-text .highlight {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .data-report-section {
        padding: 50px 0;
    }

    .data-report-content {
        padding: 20px 0px;
    }

    .data-report-text p {
        font-size: 14px;
    }

    .data-report-text .highlight {
        font-size: 18px;
    }
}

.data-report-image {
    margin-top: 40px;
    text-align: center;
}

.data-report-image img {
    max-width: 100%;
    height: auto;

}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .data-report-image {
        margin-top: 30px;
    }
}

@media screen and (max-width: 480px) {
    .data-report-image {
        margin-top: 20px;
    }

}

/* 悬浮咨询窗口 */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.contact-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 108, 191, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 108, 191, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 108, 191, 0);
    }
}

.contact-toggle:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.contact-toggle .icon {
    font-size: 20px;
}

.contact-form {
    position: absolute;
    bottom: calc(100% + 20px);
    right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.contact-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-form h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--blue-dark);
}

@media (max-width: 768px) {
    .floating-contact {
        right: 15px;
        bottom: 15px;
    }
    
    .contact-form {
        width: 280px;
    }
}

/* 修复响应式布局中的水平滚动问题 */
html, body {
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    /* max-width: 643px; */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .language-cards,
    .numbers-cards,
    .itpp-features,
    .play-system-features {
        margin: 0 -15px;
        width: calc(100% + 30px);
        box-sizing: border-box;
        padding: 0 15px;
    }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-col {
        display: none;  /* 隐藏所有footer列 */
    }
    
    /* 只显示联系方式列 */
    .footer-col:nth-child(4) {
        display: block;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-bottom {
        padding-top: 15px;
    }
    .hero {
        height: 100%;  /* 移动端降低高度 */
    }
    
    .hero img {
        content: url('../images/preschool-banner-mobile.png');  /* 移动端使用专门的图片 */
    }
}
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* 初始时元素向下偏移 20px */
    transition: all 1.5s ease-in-out; /* 同时过渡透明度和位置 */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* 元素回到原始位置 */
}



