/* 智能AI单词速记页面样式 */

/* 主体内容区域 */
main {
    padding-top: 70px; /* 为固定导航栏留出空间 */
}

/* 顶部横幅 */
.hero {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* 响应式调整 */
/* @media (max-width: 768px) {
    main {
        padding-top: 60px;
    }
} */

/* 悬浮咨询窗口 */
.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;
    }
}


/* 课程体系部分 */
.curriculum-system {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-size: 30px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 14px;
    color: #BFBFBF;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: #BFBFBF;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .section-subtitle {
        gap: 10px;
    }
    
    .section-subtitle::before,
    .section-subtitle::after {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .section-subtitle::before,
    .section-subtitle::after {
        width: 20px;
    }
}

/* 响应式布局 */
@media (max-width: 992px) {
    .curriculum-system {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .curriculum-system {
        padding: 50px 0;
    }
    .section-title {
        font-size: 24px;
    }

    .section-subtitle::before,
    .section-subtitle::after {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .curriculum-system {
        padding: 50px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .section-subtitle::before,
    .section-subtitle::after {
        width: 20px;
    }
}

.system-intro {
    max-width: 762px;
    margin: 0 auto;
    text-align: center;
}

.system-intro p {
    color: #4B5563;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 992px) {
    .system-intro {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .system-intro {
        max-width: 90%;
    }
    
    .system-intro p {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .system-intro {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .system-intro p {
        font-size: 14px;
    }
}

.system-features {
    max-width: 762px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 20px;
}

.feature {
    text-align: center;
}

.feature h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: normal;
    margin: 0;
}

@media (max-width: 992px) {
    .system-features {
        max-width: 90%;
        margin-top: 30px;
    }
    
    .feature h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .system-features {
        max-width: 95%;
        margin-top: 25px;
        gap: 15px;
    }
    
    .feature h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .system-features {
        max-width: 100%;
        margin-top: 20px;
        padding: 0 0px;
        gap: 0px;
    }
    
    .feature h3 {
        font-size: 16px;
    }
}

.product-features {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.product-features .section-title {
    margin-bottom: 10px;
}

.product-features .section-subtitle {
    color: #BFBFBF;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .product-features {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .product-features {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .product-features {
        padding: 50px 0;
    }
}


.features-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.card-image {
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.feature-card h3,
.feature-card p {
    text-align: left;
}

.feature-card h3 {
    color: #111827;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-card p {
    color: #3D3D3D;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .features-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .features-content {
        padding: 30px 0;
    }
    
    .features-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        /* padding: 0 15px; */
    }
    
    
    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .features-content {
        padding: 0px 0;
    }
    
    .features-cards {
        gap: 15px;
        /* padding: 0 30px; */
    }
    
    
    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
        padding: 0 10px;
    }
    
    .feature-card p {
        font-size: 13px;
        padding: 0 10px;
    }
}

.method-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    /* padding: 0 20px; */
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #111827;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.card p {
    color: #4B5563;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.card p strong {
    font-weight: 600;
}
.card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .method-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .method-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        /* padding: 0 40px; */
    }
    
    .card {
        padding: 25px;
    }
    
    .card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .method-cards {
        gap: 15px;
        margin-top: 30px;

    }
    
    .card {
        padding: 20px;
    }
    
    .card h3 {
        font-size: 16px;
    }
    
    .card p {
        font-size: 13px;
    }
}

.memory-method .section-title,
.memory-method .section-subtitle {
    text-align: center;
}

.method-image {
    max-width: 700px;
    margin: 60px auto 0;
    text-align: center;
}

.method-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;

    display: inline-block;
}

@media (max-width: 992px) {
    .method-image {
        max-width: 90%;
        margin-top: 30px;
    }
    
    .method-image img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .method-image {
        max-width: 95%;
        margin-top: 25px;
        /* padding: 0 15px; */
    }
}

@media (max-width: 480px) {
    .method-image {
        max-width: 100%;
        margin-top: 20px;
        /* padding: 0 10px; */
    }
}

.success-cases {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.success-cases .section-title {
    margin-bottom: 10px;
}

.success-cases .section-subtitle {
    color: #BFBFBF;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .success-cases {
    padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .success-cases {
    padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .success-cases {
    padding: 40px 0;
    }
}

.cases-image {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cases-image img {
    width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .cases-image {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .cases-image {
        max-width: 95%;
        /* padding: 0 15px; */
    }
}

@media (max-width: 480px) {
    .cases-image {
        max-width: 100%;
        /* padding: 0 10px; */
    }
}

.cases-gallery {
    margin-top: 40px;
}

.gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* flex-wrap: wrap; */
}

.gallery-thumbs img {
    width: 145px;
    height: 82px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: none;  /* 禁止点击和悬停事件 */
}

.gallery-thumbs img:hover {
    transform: none;  /* 移除悬停时的上移效果 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);  /* 保持原有阴影 */
}

@media (max-width: 768px) {
    .gallery-thumbs img {
        width: 120px;
        height: 68px;
    }
}

@media (max-width: 480px) {
    .gallery-thumbs img {
        width: 100px;
        height: 56px;
    }
}

.gallery-thumbs img:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-thumbs img.active {
    border: 3px solid var(--primary-color);
}

@media (max-width: 1200px) {
    .gallery-thumbs {
        gap: 18px;
    }
    
    .gallery-thumbs img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 992px) {
    .gallery-thumbs img {
        max-width: 120px;
        height: auto;
    }
}

@media (max-width: 768px) {

    
    .gallery-thumbs {
        gap: 15px;
    }
    
    .gallery-thumbs img {
        height: auto;
    }
}

@media (max-width: 480px) {
    .cases-gallery {
        margin-top: 20px;
    }
    
    .gallery-thumbs {
        gap: 10px;
    }
    
    .gallery-thumbs img {
        width: 60px;
        height: auto;
    }
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-inner img.active {
    opacity: 1;
    position: relative;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

@media (max-width: 768px) {
    .carousel-dots {
        bottom: 40px;  /* 调整移动端位置 */
    }
}

@media (max-width: 480px) {
    .carousel-dots {
        bottom: 40px;  /* 调整小屏幕位置 */
    }
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-color);  /* 修改为蓝色（使用主题色） */
}

@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        padding: 12px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    .hero {
        height: 100%;  /* 移动端降低高度 */
    }
    
    .hero img {
        content: url('../images/ai-vocabulary-banner-mobile.png');  /* 移动端使用专门的图片 */
    }
}

@media (max-width: 480px) {
    .carousel-prev,
    .carousel-next {
        padding: 8px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .carousel-dots {
        bottom: 20px;
        gap: 8px;
    }
}

.horizontal-images {
    display: flex;
    flex-wrap: nowrap; /* 确保图片在同一行 */
    justify-content: center;
    align-items: center;
    gap:50px;
    margin-top: 40px;
}

.image-item {
    text-align: center;
    flex: 0 0 auto;

}

@media (max-width: 768px) {
    .horizontal-images {
        justify-content: center; /* 让图片在移动端居中排列 */
        padding: 0; /* 移除内边距 */
        margin-top: 20px;
        gap:0px;
    }
    .image-item {
        min-width: calc(33.333% - 20px); /* 让移动端每行显示 3 张图片 */
    }
}

.image-item {
    text-align: center;
    flex: 0 0 auto; /* 防止图片项缩小或放大 */
}

.image-item img {
    max-width: 100%;
    height: auto;
    transform-origin: center center;
}

.image-item p {
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .image-item p {
        margin-top: 0px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .image-item img {
        max-width: 100%;
        height: auto;
        transform: scale(0.7); 
        transform-origin: center center;
    }

    .image-item {
        min-width: auto; /* 移除最小宽度限制 */
    }
}

@media (max-width: 768px) {


    .image-item {
        /* 缩小图片项的外边距 */
        /* 缩小图片项的宽度比例 */
        min-width: calc(100% / 30); 
    }

    .image-item img {
        /* 缩小图片的缩放比例 */
        transform-origin: center center;
    }


}
.hidden-plus {
    visibility: hidden;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* 初始时元素向下偏移 20px */
    transition: all 1.5s ease-in-out; /* 同时过渡透明度和位置 */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* 元素回到原始位置 */
}