/* 响应式样式增强 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .usp-icons {
        gap: 20px;
    }
    
    .usp-item {
        min-width: 160px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 400px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .pain-points-grid,
    .features-grid,
    .ingredients-grid,
    .testimonials-grid,
    .advantages-grid,
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo,
    .footer-contact,
    .footer-links {
        text-align: center;
        /*margin-bottom: 30px;*/
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .usp-icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-content: center;
    }
    
    .usp-item {
        margin-bottom: 0;
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .pain-point-card,
    .feature-card,
    .ingredient-card,
    .testimonial-card,
    .advantage-card,
    .package-card {
        padding: 20px;
    }
    
    .package-card.recommended {
        transform: scale(1);
    }
    
    .package-card.recommended:hover {
        transform: translateY(-5px);
    }
}

/* 增强交互动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 悬停效果增强 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* 滑动轮播组件样式 */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 3rem auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .carousel-slide {
        min-width: 50%;
    }
}

@media (min-width: 992px) {
    .carousel-slide {
        min-width: 33.333%;
    }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* 图文交错布局 */
.content-image-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .content-image-row {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    
    .content-image-row.reverse {
        flex-direction: row-reverse;
    }
    
    .content-image-row .content {
        flex: 1;
    }
    
    .content-image-row .image {
        flex: 1;
    }
}

.content-image-row .content {
    padding: 20px;
}

.content-image-row .image {
    margin: 20px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.content-image-row .image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.content-image-row:hover .image img {
    transform: scale(1.05);
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 3rem 0;
}

.image-grid-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-grid-item:hover img {
    transform: scale(1.1);
}

.image-grid-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-grid-item:hover .image-grid-caption {
    transform: translateY(0);
}
