/* Cotton Candy Hero Section Styles */
body .site-content,
body #content,
body .entry-content,
body .page,
body .ast-container,
body .page-content {
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 表单 input */
.ff-el-form-control{
    font-size: 14px !important;
}

/* 确保页面容器适应全宽 */
body .ast-container {
    max-width: 100vw !important;
    padding: 0 !important;
}

/* 移除任何边距和内边距 */
#primary {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* 页面内容容器 */
.page-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1400px !important;
}

/* 棉花糖产品页面主要样式 */
.cotton-candy-hero-section {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 0; /* Add padding for mobile */
}

.cotton-candy-hero-section .l-section-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 轮播容器 */
.cotton-candy-slider {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
}

/* 轮播项 */
.cotton-candy-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: none; /* Changed from flex to none */
    align-items: center;
    padding: 0; /* Reset padding */
}

.cotton-candy-slide.active {
    display: flex; /* Show active slide */
    opacity: 1;
    visibility: visible;
}

/* 导航圆点 */
.cotton-candy-dots {
    position: relative; /* 改为相对定位 */
    display: flex;
    gap: 12px;
    z-index: 5;
    padding: 10px;
    margin-top: 10px; /* 与图片的间距 */
    justify-content: center; /* 居中显示 */
}

.cotton-candy-dots .candy-dot {
    width: 12px;
    height: 12px;
    background: #808285;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cotton-candy-dots .candy-dot.active {
    background: #883E74;
    width: 30px;
    border-radius: 6px;
}

/* 导航按钮已移除 */

.cotton-candy-container {
    display: flex;
    flex-direction: column; /* 默认垂直排列，适合移动设备 */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 20px; */
    position: relative;
    z-index: 2;
}

/* 内容区域 */
.cotton-candy-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center; /* 移动端居中 */
    order: 2; /* 在移动设备上，内容在图片下方 */
}

.cotton-candy-slide-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cotton-candy-slide-content.active {
    display: block;
    opacity: 1;
}

.cotton-candy-title-area {
    max-width: 100%;
    margin: 0 auto;
}

.cotton-candy-subtitle {
    color: #54ade1;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
}

.cotton-candy-title-decoration {
    margin-bottom: 20px;
    max-width: 528px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.2s;
}

.cotton-candy-title-decoration img {
    width: 100%;
    height: auto;
}

.cotton-candy-title {
    font-size: 36px; /* 移动端更小的字体 */
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.3s;
}

.cotton-candy-description {
    color: #5e6282;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: 0.4s;
}

.cotton-candy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 30px;
    background-color: #fdf4f5;
    color: #ed008c;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease, background-color 0.3s, color 0.3s;
    transition-delay: 0.5s;
}

/* 激活状态的动画 */
.cotton-candy-slide-content.active .cotton-candy-title,
.cotton-candy-slide-content.active .cotton-candy-description,
.cotton-candy-slide-content.active .attention-button {
    opacity: 1;
    transform: translate(0);
}

.cotton-candy-button:hover {
    background-color: #ed008c;
    color: #ffffff;
}

/* 图片区域 */
.cotton-candy-image-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column; /* 改为纵向排列，使导航点可以在图片下方 */
    justify-content: center;
    align-items: center;
    order: 1; /* 在移动设备上，图片在内容上方 */
    padding: 0;
    margin-bottom: 20px; /* 增加与内容的间距 */
}

.cotton-candy-slide-image {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    width: 100%; /* 确保图片容器占满宽度 */
}

.cotton-candy-slide-image.active {
    display: block;
    opacity: 1;
}

.cotton-candy-slide-image img {
    max-width: 100%;
    width: 450px; /* 较小的图片尺寸，适合移动设备 */
    height: auto;
    object-fit: contain;
}

.play-video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s;
    width: 80px;
    height: 80px;
    background-color: rgba(136, 62, 116, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-video-button i {
    color: #fff;
    font-size: 30px;
    position: relative;
    z-index: 2;
    margin-left: 5px; /* 稍微向右偏移以视觉居中 */
}

/* 共享的波纹动画样式 */
.play-button-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(136, 62, 116, 0.4);
    border-radius: 50%;
    z-index: 1;
    animation: ripple 2s infinite ease-in-out;
}

.play-video-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.play-video-button:hover .play-button-ripple {
    animation-play-state: paused;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .cotton-candy-hero-section {
        min-height: 860px;
        max-height: 860px;
        padding: 0; /* Reset padding for desktop */
    }

    .cotton-candy-slider {
        min-height: 880px;
        max-height: 880px;
    }

    .cotton-candy-slide {
        padding: 50px 0;
    }

    .cotton-candy-container {
        flex-direction: row; /* 桌面版水平排列 */
        min-height: 800px;
        max-height: 880px;
        /* padding: 20px; */
    }

    .cotton-candy-content {
        flex: 1;
        padding-right: 40px; /* 增加右侧内容与图片的间距 */
        text-align: left; /* 桌面版左对齐 */
        order: 1; /* 在桌面版上，内容在左侧 */
    }
    
    .cotton-candy-title-area {
        max-width: 833px;
    }

    .cotton-candy-title {
        font-size: 72px;
        line-height: 72px;
    }

    .cotton-candy-description {
        font-size: 18px;
        line-height: 20px;
    }
    
    .cotton-candy-image-container {
        flex: 1;
        flex-direction: row; /* 桌面版改回横向排列 */
        justify-content: flex-end;
        order: 2; /* 在桌面版上，图片在右侧 */
        margin-bottom: 0; /* 重置margin */
        position: relative; /* 确保可以进行绝对定位 */
    }

    .cotton-candy-slide-image {
        width: auto; /* 重置宽度 */
    }
    
    .cotton-candy-slide-image img {
        max-width: 750px;
        width: 100%;
    }

    .cotton-candy-dots {
        position: absolute; /* 在桌面版上使用绝对定位 */
        bottom: 60px; /* 调整位置到图片容器下方 */
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0; /* 重置margin */
    }
}

/* Tablet specific adjustments if needed */
@media (min-width: 768px) and (max-width: 1023px) {
    .cotton-candy-title {
        font-size: 48px;
    }

    .cotton-candy-slide-image img {
        width: 550px;
    }
}

/* Remove redundant media queries */
/* @media (max-width: 1240px) { ... } */
/* @media (max-width: 1024px) { ... } */
/* @media (max-width: 778px) { ... } */
/* @media (max-width: 480px) { ... } */
/* A single block will handle this below */

/* Cleanup of old media queries - we now use a mobile-first approach */
@media (max-width: 1023px) {
    .cotton-candy-hero-section,
    .cotton-candy-slider {
        max-height: none;
        min-height: 0;
    }

    .cotton-candy-slide-image.active,
    .cotton-candy-slide-content.active {
        position: relative;
        height: auto;
    }
}

/* video modal styles... */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.video-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.close-video {
    color: white;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 注意力吸引区域样式 */
.cotton-candy-attention-section {
    background: linear-gradient(135deg, #2B4B8C 0%, #1A2F57 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.attention-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.attention-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.attention-left-column {
    flex: 3;
    position: relative;
}

.attention-right-column {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.attention-title {
    color: #00BBDC;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.attention-description {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.attention-button {
    display: inline-block;
    background: #97758e;
    color: #ffffff !important;
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
}

.attention-button:hover {
    background: #883E74;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.attention-decoration {
    position: absolute;
}

.attention-left-column .attention-decoration {
    left: -50px;
    bottom: -80px;
    z-index: 1;
}

.attention-right-column .attention-decoration {
    right: -100px;
    bottom: -60px;
    z-index: 1;
}

.circle-decoration {
    opacity: 0.1;
    max-width: 200px;
}

.flower-decoration {
    opacity: 0.1;
    max-width: 400px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .attention-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .attention-right-column {
        justify-content: center;
    }

    .attention-title {
        font-size: 32px;
    }

    .attention-description {
        font-size: 20px;
    }

    .attention-decoration {
        display: none;
    }
    
    .attention-button-wrapper {
        margin-top: 20px;
    }
}

/* 产品选项卡区域样式 */
.cotton-candy-product-tabs {
    padding: 80px 20px;
    background-color: #f9f9f9;
    width: 100%;
}

.product-tabs-container {
    max-width: 1400px;
    margin: 0 auto;
}

.product-tabs-header {
    text-align: center;
    margin-bottom: 40px;
}

.product-tabs-title {
    font-size: 42px !important;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.product-tabs-title span {
    color: #883E74;
}

.product-tabs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-tabs-divider:before,
.product-tabs-divider:after {
    content: "";
    height: 2px;
    width: 80px;
    background-color: #ddd;
    display: inline-block;
}

.product-tabs-divider i {
    margin: 0 15px;
    color: #883E74;
    font-size: 20px;
}

.product-tabs-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 15px 25px;
    margin: 0 10px 10px;
    background-color: #fff;
    color: #333;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.tab-button.active {
    background-color: #883E74;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.product-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.product-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #883E74;
    color: #fff !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-button:hover {
    background-color: #6d2c5c;
    transform: translateY(-2px);
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-tabs-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .cotton-candy-product-tabs {
        padding: 50px 15px;
    }
    
    .product-tabs-title {
        font-size: 30px;
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-tabs-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 280px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .product-tabs-title {
        font-size: 24px;
    }
    
    .product-name {
        font-size: 20px;
    }
}

/* CSS cache buster - 添加时间戳以防止缓存问题 */

/* 关于我们区域样式 */
.cotton-candy-about-section {
    padding: 80px 20px;
    background-color: #ffffff;
    width: 100%;
}

.about-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.about-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.about-text-column {
    flex: 1;
    position: relative;
}

.about-video-column {
    flex: 1;
    position: relative;
}

.about-subtitle {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #883E74;
    color: #fff !important;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.about-button:hover {
    background-color: #6d2c5c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 62, 116, 0.3);
}

.about-video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-video-container:hover .about-video-thumbnail {
    transform: scale(1.02);
}

.play-about-video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 2;
    width: 80px;
    height: 80px;
    background-color: rgba(136, 62, 116, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-about-video-button i {
    color: #fff;
    font-size: 30px;
    position: relative;
    z-index: 2;
    margin-left: 5px; /* 稍微向右偏移以视觉居中 */
}

.play-button-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(136, 62, 116, 0.4);
    border-radius: 50%;
    z-index: 1;
    animation: ripple 2s infinite ease-in-out;
}

.play-about-video-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-about-video-button:hover .play-button-ripple {
    animation-play-state: paused;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .about-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cotton-candy-about-section {
        padding: 50px 15px;
    }
    
    .about-content-wrapper {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .about-video-column {
        width: 100%;
    }
    
    .about-text-column {
        width: 100%;
    }
    
    .about-subtitle {
        font-size: 22px;
        text-align: center;
    }
    
    .about-description {
        text-align: center;
    }
    
    .about-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 全自助服务亭区域样式 */
.kiosk-complex-section {
    padding: 80px 0;
    background-color: #fdf4f5;
    width: 100%;
}

.kiosk-complex-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.kiosk-complex-description {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 50px;
    color: #5e6282;
    font-size: 18px;
    line-height: 1.6;
}

.kiosk-complex-description p {
    margin-bottom: 20px;
}

.kiosk-complex-slider {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.kiosk-complex-slides {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 400px;
}

.kiosk-complex-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.kiosk-complex-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.kiosk-complex-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.kiosk-complex-item {
    flex: 1;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.kiosk-complex-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.kiosk-complex-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.kiosk-complex-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.kiosk-complex-image img:hover {
    transform: scale(1.05);
}

.kiosk-complex-title {
    font-size: 22px;
    font-weight: 600;
    color: #181e4b;
    margin-bottom: 10px;
}

.kiosk-complex-subtitle {
    font-size: 16px;
    color: #883E74;
    margin-bottom: 15px;
}

/* 导航圆点 */
.kiosk-complex-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.kiosk-complex-dots .kiosk-dot {
    width: 12px;
    height: 12px;
    background: #808285;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kiosk-complex-dots .kiosk-dot.active {
    background: #883E74;
    width: 30px;
    border-radius: 6px;
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .kiosk-complex-grid {
        flex-wrap: wrap;
    }
    
    .kiosk-complex-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .kiosk-complex-section {
        padding: 60px 0;
    }
    
    .kiosk-complex-grid {
        flex-direction: column;
    }
    
    .kiosk-complex-item {
        flex: 0 0 100%;
    }
    
    .kiosk-complex-title {
        font-size: 20px;
    }
    
    .kiosk-complex-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .kiosk-complex-section {
        padding: 40px 0;
    }
    
    .kiosk-complex-title {
        font-size: 18px;
    }
    
    .kiosk-complex-subtitle {
        font-size: 14px;
    }
}

/* 用户好评区域样式 */
.testimonials-section {
    padding: 80px 0;
    background-color: #ffffff;
    width: 100%;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-slider {
    position: relative;
    width: 100%;
    margin-top: 50px;
}

.testimonials-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 350px;
}

.testimonials-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.testimonials-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonials-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.testimonial-item {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    margin-bottom: 20px;
    color: #FFD700;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: #5e6282;
    font-size: 16px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #181e4b;
    margin: 0 0 5px 0;
}

.testimonial-info p {
    font-size: 14px;
    color: #5e6282;
    margin: 0;
}

/* 导航圆点 */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.testimonials-dots .testimonial-dot {
    width: 12px;
    height: 12px;
    background: #808285;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dots .testimonial-dot.active {
    background: #883E74;
    width: 30px;
    border-radius: 6px;
}

/* 用户案例区域样式 */
.case-studies-section {
    padding: 80px 0;
    background-color: #fdf4f5;
    width: 100%;
}

.case-studies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-studies-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #5e6282;
    font-size: 18px;
    line-height: 1.6;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.case-study-item {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-study-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-image:hover img {
    transform: scale(1.05);
}

.case-study-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(136, 62, 116, 0.8);
    padding: 8px 15px;
    border-radius: 30px;
}

.case-study-category {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.case-study-content {
    padding: 30px;
}

.case-study-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #181e4b;
    margin-bottom: 15px;
}

.case-study-excerpt {
    color: #5e6282;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-study-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #883E74;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #5e6282;
}

.case-study-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #fdf4f5;
    color: #883E74;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    text-align: center;
}

.case-study-button:hover {
    background-color: #883E74;
    color: #ffffff;
}

.case-studies-cta {
    text-align: center;
    margin-top: 20px;
}

.case-studies-view-all {
    display: inline-block;
    padding: 15px 30px;
    background-color: #883E74;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.case-studies-view-all:hover {
    background-color: #6d2e5c;
    transform: translateY(-5px);
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .testimonials-grid,
    .case-studies-grid {
        flex-wrap: wrap;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .testimonials-section,
    .case-studies-section {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        flex-direction: column;
    }
    
    .testimonial-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-content,
    .case-study-excerpt {
        font-size: 15px;
    }
    
    .case-study-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .testimonials-section,
    .case-studies-section {
        padding: 40px 0;
    }
    
    .testimonial-content {
        font-size: 14px;
    }
    
    .testimonial-info h4 {
        font-size: 16px;
    }
    
    .testimonial-info p {
        font-size: 12px;
    }
    
    .case-study-title {
        font-size: 20px;
    }
    
    .case-study-excerpt {
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* 最新文章区域样式 */
.latest-articles-section {
    padding: 80px 0;
    background-color: #ffffff;
    width: 100%;
}

.latest-articles-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.latest-articles-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #5e6282;
    font-size: 18px;
    line-height: 1.6;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.article-item {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-image:hover img {
    transform: scale(1.05);
}

.article-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #883E74;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    line-height: 1.2;
}

.article-date .day {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.article-date .month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #5e6282;
}

.article-category a {
    color: #883E74;
    text-decoration: none;
    transition: color 0.3s;
}

.article-category a:hover {
    color: #6d2e5c;
}

.article-author {
    display: flex;
    align-items: center;
}

.article-author i {
    margin-right: 5px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-title a {
    color: #181e4b;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #883E74;
}

.article-excerpt {
    color: #5e6282;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    color: #883E74;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.article-read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.article-read-more:hover {
    color: #6d2e5c;
}

.article-read-more:hover i {
    transform: translateX(5px);
}

.no-articles {
    grid-column: span 4;
    text-align: center;
    padding: 50px;
    background-color: #f9f9f9;
    border-radius: 15px;
    color: #5e6282;
}

.latest-articles-cta {
    text-align: center;
    margin-top: 20px;
}

.latest-articles-view-all {
    display: inline-block;
    padding: 15px 30px;
    background-color: #883E74;
    color: #fff !important;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.latest-articles-view-all:hover {
    background-color: #6d2e5c;
    transform: translateY(-5px);
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .latest-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .latest-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-articles-section {
        padding: 60px 0;
    }
    
    .latest-articles-description {
        font-size: 16px;
    }
    
    .no-articles {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .latest-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .article-excerpt {
        font-size: 13px;
    }
    
    .no-articles {
        grid-column: span 1;
    }
    
    .latest-articles-view-all {
        font-size: 16px;
        padding: 12px 25px;
    }
}

.cotton-candy-slide-content.active .cotton-candy-title,
.cotton-candy-slide-content.active .cotton-candy-description,
.cotton-candy-slide-content.active .attention-button {
    opacity: 1;
    transform: translate(0);
}

.cotton-candy-title-area .attention-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease, background-color 0.3s, color 0.3s;
    transition-delay: 0.5s;
    margin-top: 20px;
}

.cotton-candy-title {
    font-size: 32px !important;
}

/* 表单模态框样式 */
.form-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

/* 当表单显示时应用这些样式 */
.form-modal.active {
    display: flex;
}

.form-modal-content {
    position: relative;
    background-color: #fff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-form {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-form:hover {
    color: #333;
}

.form-container {
    margin: 10px 0;
}

/* 调整Fluent表单样式 */
.fluentform .ff-el-group {
    margin-bottom: 20px;
    text-align: left !important;
}

.fluentform .ff-el-input--label {
    text-align: left;
    display: block;
    margin-bottom: 8px;
}

.fluentform .ff-el-input--content {
    position: relative;
    margin-left: 0;
}

.fluentform .ff-btn-submit {
    background-color: #883E74;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease;
}

.fluentform .ff-btn-submit:hover {
    background-color: #732F60;
}

.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform textarea {
    width: 100% !important;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* 确保模态框垂直居中 */
@media (max-height: 800px) {
    .form-modal {
        align-items: flex-start;
        padding: 30px 0;
    }
}