.shape {
    transform: rotate(180deg);
    direction: ltr;
    left: 0;
    line-height: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
    bottom: -2px;
    z-index: 2;
}

.shape-fill {
    fill: #fff;
}

.shape svg {
    height: 60px;
    width: 100%;
}

.banner {
    position: relative;
    width: 100%;
    background: url('/static/fl/img14/h-banner.webp');
    background-color: #FFE7E7;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 90vh;
    min-height: 700px;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0.6;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 左侧文字区域 */
.banner-content .left {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
    animation: fadeInLeft 1s ease-out;
}

.banner-content .left .title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 24px;
    text-transform: capitalize;
}

.banner-content .left .description p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 36px;
    opacity: 0.9;
}

.banner-content .left .btn {
    margin-top: 20px;
}

.banner-content .left .btn.btn-primary a {
    display: inline-block;
    padding: 16px 42px;
    background: linear-gradient(135deg, #ff6b6b, #F7CA6D);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    text-transform: capitalize;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.banner-content .left .btn .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
}

/* 右侧圆形视频区域 */
.banner-content .right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    min-height: 500px;
    animation: fadeInRight 1s ease-out;
}

.banner-content .right .box {
    position: relative;
    width: 100%;
    height: 500px;
    right:-10px;
}

/* 圆形统一样式 */
.banner-content .right .box1 {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.banner-content .right .box1:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.banner-content .right .box1 img,
.banner-content .right .box1 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 中间大圆 */
.banner-content .right .box1:nth-child(1) {
    width: 440px;
    height: 440px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* 右上方小圆 */
.banner-content .right .box1:nth-child(2) {
    width: 150px;
    height: 150px;
    top: -10%;
    left: 60%;
    z-index: 3;
}

/* 底部左侧小圆 */
.banner-content .right .box1:nth-child(3) {
    width: 230px;
    height: 230px;
    bottom: -11%;
    z-index: 3;
}

/* 底部右侧小圆 */
.banner-content .right .box1:nth-child(4) {
    width: 180px;
    height: 180px;
    bottom: -2%;
    right: 8%;
    z-index: 3;
}

/* 动画效果 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner {
        height: auto;
        min-height: auto;
    }

    .banner-content {
        flex-direction: column;
        padding: 40px 20px;
    }

    .banner-content .left {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    .banner-content .left .title h1 {
        font-size: 2.2rem;
    }

    .banner-content .left .description p {
        font-size: 1rem;
    }

    .banner-content .right {
        min-height: 400px;
        width: 100%;
    }

    .banner-content .right .box {
        height: 400px;
        left: 20px;
    }

    /* .banner-content .right .box1:nth-child(1) {
        width: 200px;
        height: 200px;
        
    }

    .banner-content .right .box1:nth-child(2) {
        width: 110px;
        height: 110px;
        top: 60%;
        left: 40%;
    }

    .banner-content .right .box1:nth-child(3) {
        width: 120px;
        height: 120px;
        top: 80%;
        left: 20%;
        
    }

    .banner-content .right .box1:nth-child(4) {
        width: 115px;
        height: 115px;
        bottom: 40%;
        right: 40%;
    } */
}

@media (max-width: 576px) {
    .banner-content .left .title h1 {
        font-size: 1.8rem;
    }

    .banner-content .right {
        min-height: 320px;
    }

    .banner-content .right .box {
        height: 320px;
        left:0;
    }

    .banner-content .right .box1:nth-child(1) {
        width: 160px;
        height: 160px;
    }

    .banner-content .right .box1:nth-child(2),
    .banner-content .right .box1:nth-child(3),
    .banner-content .right .box1:nth-child(4) {
        width: 90px;
        height: 90px;
    }

    .banner-content .right .box1:nth-child(2) {
        top: 40px;
        left: 30px;
    }

    .banner-content .right .box1:nth-child(3) {
        top: 20px;
        right: 20px;
    }

    .banner-content .right .box1:nth-child(4) {
        bottom: 40px;
        right: 40px;
    }
}




/* ========== main-products 区域 ========== */
.main-products {
    padding: 80px 20px;
    background: #fff;
    background-image: url('/static/fl/img14/Ellipse-yellow.optimized.webp');
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: 50% auto;
    opacity: 1;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.products-title {
    margin-bottom: 60px;
}

/* 产品列表 */
.products-list {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* 产品卡片 */
.product-card {
    margin-top: 100px;
    background-color: #FFEFD1;
    background-image: url('/static/fl/img14/machine-background6.webp');
    background-size: cover;
    border-radius: 12px;
    /* overflow: hidden; */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

/* 产品图片 */
.product-card .product-img {
    /* overflow: hidden; */
    position: relative;
    padding-top: 75%;
    /* 保持图片比例 */
}

.product-card .product-img img {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
    /* 鼠标悬停图片放大浮动效果 */
}

/* 产品标题 */
.product-card .product-info {
    padding: 24px 20px;
}

.product-card .product-info h3 {
    font-size: 30px;
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* 询盘按钮 */
.product-card .product-info {
    text-align: center;
}

.product-card .product-info .inquiry-btn a {
    display: inline-block;
    padding: 12px 40px;
    background: #A46F96;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.product-card .product-info .inquiry-btn a:hover {
    background: #925084;
    color: #fff;
}


/* ========== 响应式自适应 ========== */
/* 平板 - 每行2个 */
@media (max-width: 992px) {
    .main-products {
        padding: 60px 20px;
    }

    .products-title h2 {
        font-size: 36px;
    }

    .products-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .product-card .product-info h3 {
        font-size: 24px;
    }
}

/* 手机 - 每行1个 */
@media (max-width: 576px) {
    .main-products {
        padding: 40px 15px;
    }

    .products-title h2 {
        font-size: 28px;
    }

    .products-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .divider {
        width: 150px;
    }

    .product-card .product-info h3 {
        font-size: 22px;
    }
}

/* ========== products 区域 ========== */

.products .content {
    max-width: 1400px;
    margin: 0 auto;
    background: #FFEFD1;
    background-image: url('/static/fl/img14/machine-background7.webp');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    padding: 30px 20px;
}

/* 产品列表 - 复用自适应布局 */
.products .products-list {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

/* 产品卡片 - 列表项本身没有背景 */
.products .products-list>div {
    background: transparent;
    border-radius: 12px;
    /* overflow: hidden; */
    transition: none;
}

/* 产品图片容器 */
.products .products-list>div>div:first-child {
    /* overflow: hidden; */
    position: relative;
    padding-top: 75%;
    /* border-radius: 12px; */
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); */
}

/* 产品图片 */
.products .products-list>div>div:first-child img {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 只有图片会浮动放大，卡片本身不移动 */
.products .products-list>div:hover>div:first-child img {
    transform: scale(1.08);
}

/* 产品标题 */
.products .products-list>div>div:last-child {
    padding: 20px 0;
    text-align: center;
}

.products .products-list>div>div:last-child h3 {
    font-size: 30px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin: 0;
}

/* 底部view more按钮 - 和main-products保持一致 */
.products .btn {
    text-align: center;
    margin-top: 60px;
}

.products .btn a {
    display: inline-block;
    padding: 14px 45px;
    background: #A46F96;
    color: #fff;
    font-size: 1.1rem;
}


/* ========== products 响应式自适应 ========== */
/* 平板 - 每行2个 */
@media (max-width: 992px) {
    .products {
        padding: 60px 20px;
    }

    .products .products-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 100px 30px;
    }

    .products .products-list>div {
        flex: 0 1 calc(50% - 15px);
    }

    .products .products-list>div>div:last-child h3 {
        font-size: 24px;
    }

    .products .btn {
        margin-top: 45px;
    }
}

/* 手机 - 每行1个 */
@media (max-width: 576px) {
    .products {
        padding: 40px 15px;
    }

    .products .products-list>div {
        flex: 0 1 calc(100% - 30px);
    }

    .products .products-list>div>div:last-child h3 {
        font-size: 22px;
    }

    .products .btn {
        margin-top: 35px;
    }

    .products .btn a {
        padding: 12px 35px;
        font-size: 1rem;
    }
}

/* ========== case 成功案例区域 ========== */
.case {
    padding: 80px 20px;
    background: #fff;
    box-sizing: border-box;
    background-image: url('/static/fl/img14/Ellipse-purple.optimized.webp');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 60% auto;
    background-clip: padding-box;

}

.case-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 左侧轮播图区域 */
.case-left .case-title {
    margin-bottom: 30px;
}

.case-left .case-title h2 {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin: 0;
}

/* 轮播图容器 - 右边和下边带紫色边框 */
.case-carousel-container {
    position: relative;
    border-radius: 12px;
    /* overflow: visible; */
    z-index: 2
}

.carousel-prev,
.carousel-next {
    border-color: #883E74;
    color: #883E74;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #883E74;
}

.carousel-dot.active {
    background: #883E74;
    border-color: #883E74;
}

.case-carousel-container::after {
    content: '';
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 100%;
    height: 100%;
    border-right: 12px solid #883E74;
    border-bottom: 12px solid #883E74;
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
}

.case-carousel {
    padding: 0;
    border-radius: 12px;
}

.case-carousel-container.carousel-container {
    padding: 0;
}

.case-carousel .carousel-slide {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 5 / 4;
}

.case-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.case-carousel .carousel-slide:hover img {
    transform: scale(1.03);
}

/* 右侧描述区域 */
.case-right .case-description {
    padding-top: 14px;
}

.case-right .case-description p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.case-right .case-description .subtitle {
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

/* 列表 - 每个列表项前面带紫色对钩 */
.case-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.case-list li {
    position: relative;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    padding-left: 32px;
    margin-bottom: 12px;
}

.case-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-color: #883E74;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* 最后一段文字加粗 */
.case-right .case-description .final-text {
    font-weight: 700;
    color: #222;
}

/* 按钮 - 和上面保持一致样式 */
.case-btn {
    margin-top: 35px;
    text-align: left;
}

.case-btn a {
    display: inline-block;
    padding: 14px 45px;
    background: #A46F96;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.case-btn a:hover {
    background: #883E74;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(164, 111, 150, 0.3);
}

/* ========== case 响应式 ========== */
@media (max-width: 992px) {
    .case {
        padding: 60px 20px;
    }

    .case-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-left .case-title h2 {
        font-size: 32px;
    }

    .case-right .case-description p,
    .case-list li {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .case {
        padding: 40px 15px;
    }

    .case-container {
        gap: 30px;
    }

    .case-left .case-title h2 {
        font-size: 26px;
    }

    .case-carousel::after {
        right: -5px;
        bottom: -5px;
        border-right: 5px solid #883E74;
        border-bottom: 5px solid #883E74;
    }

    .case-btn {
        margin-top: 25px;
        text-align: center;
    }

    .case-btn a {
        padding: 12px 35px;
        font-size: 1rem;
    }
}

/* ========== cert 证书区域 ========== */
.cert {
    padding: 80px 20px;
    background: #fff;
}

/* 标题 - 和之前保持一致 */
.cert .cert-title {
    margin-bottom: 60px;
}


/* 证书列表 - 自适应 */
.cert-list {
    max-width: 1400px;
    margin: 0 auto 70px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

/* 证书项 - 左边和下边带紫色边框 */
.cert-list>div {
    position: relative;
    overflow: hidden;
    bottom: -10px;
    width: 100%;
    height: 100%;
    text-transform: capitalize;
    border: 1px solid #853D72;
    box-shadow: -10px 10px 0px 0px rgba(106, 13.999999999999998, 81.00000000000004, 0.5803921568627451);
    border-radius: 30px;
    padding: 20px;
    z-index: 1;
    aspect-ratio: 1/1.3;
}

.cert-list img {
    width: 100%;
    height: auto;
    display: block;
}

/* logo轮播区域 */
.cert-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.cert-track {
    display: flex;
    gap: 30px;
    width: fit-content;
}

.cert-item {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cert-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.cert-item:hover img {
    opacity: 1;
}

@keyframes certScrollLeft {
    0% {
        transform: translateX(-0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.cert-track-left {
    animation: certScrollLeft 30s linear infinite;
}

/* 鼠标悬停暂停 */
.cert-slider:hover .cert-track-left {
    animation-play-state: paused;
}

/* ========== cert 响应式自适应 ========== */
/* 大屏幕 4个 */
@media (max-width: 1200px) {
    .cert-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板 2个 */
@media (max-width: 992px) {
    .cert {
        padding: 60px 20px;
    }

    .cert .cert-title h2 {
        font-size: 36px;
    }

    .cert-list {
        gap: 25px;
        margin-bottom: 50px;
    }

    .cert-list>div::after {
        left: -8px;
        bottom: -8px;
        border-left: 8px solid #883E74;
        border-bottom: 8px solid #883E74;
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .cert {
        padding: 40px 15px;
    }

    .cert-title h2 {
        font-size: 26px;
    }

    .cert-item {
        width: 150px;
        height: 80px;
    }

    .cert-track {
        gap: 15px;
    }

    .cert-track-left {
        animation: certScrollLeft 20s linear infinite;
    }
}

/* 手机 1个 */
@media (max-width: 576px) {
    .cert {
        padding: 40px 15px;
    }

    .cert .cert-title h2 {
        font-size: 28px;
    }

    .cert-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .cert-list>div::after {
        left: -6px;
        bottom: -6px;
        border-left: 6px solid #883E74;
        border-bottom: 6px solid #883E74;
    }
}



.story-img {
    width: 100%;
    min-height: 500px;
    background-image: url(/static/fl/img14/background-image.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.story-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.5;
}

/* ========== global 全球业务区域 ========== */
.global {
    padding: 80px 20px;
    background: #f8f9fa;
}

.map-container img {
    width: 100%;
    height: auto;
    opacity: 0.4;
    display: block;
    aspect-ratio: 1024/527;
}

.map-container {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

/* 地图点位 */
.map-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #9946ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* 心脏跳动脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(136, 62, 116, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(136, 62, 116, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(136, 62, 116, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.map-dot:nth-child(3n+1) {
    animation-delay: 0s;
}

.map-dot:nth-child(3n+2) {
    animation-delay: 0.5s;
}

.map-dot:nth-child(3n) {
    animation-delay: 1s;
}

.global-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.global-stats .card {
    color: #000000;
    font-family: "Fraunces", Sans-serif;
    font-size: 50px;
    font-weight: 600;
    line-height: 80px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.global-stats .card .g-title {
    align-items: center;
    display: flex;
    flex: 1;
    font-weight: 400;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: #000000;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    line-height: 26px;
}

@media (max-width: 992px) {
    .g-number {
        font-size: 40px;
        line-height: 80px;
    }
}

@media (max-width: 768px) {
    .g-number {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .global-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .global-stats .card {
        font-size: 36px;
        line-height: 50px;
    }

    .global-stats .card .g-title {
        font-size: 14px;
        line-height: 20px;
        word-break: break-word;
    }

    .global-stats .card>div:first-child {
        height: 40px;
        line-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-bottom: 10px;
    }

    .g-number span {
        font-size: 22px;
        line-height: 1.2;
    }
}

/* ========== contact 交互式图库 ========== */
.contact {
    padding: 80px 20px;
    background: #fff;
}

.contact .title {
    text-align: center;
    margin-bottom: 40px;
}

.contact .title h2 {
    font-family: "Fraunces", Sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact .title h2 span {
    color: #883E74;
}

/* 图库容器 */
.contact-gallery {
    display: flex;
    height: 500px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
}

/* 图库项 */
.gallery-item {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 图片 */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 遮罩文字 */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay span {
    color: #fff;
    font-family: "Poppins", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    display: block;
}

/* 悬浮展开效果 */
.contact-gallery:hover .gallery-item {
    flex: 1;
}

.contact-gallery .gallery-item:hover {
    flex: 5;
}

/* 悬浮放大图片 */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* 悬浮显示文字 */
.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 992px) {
    .contact {
        padding: 60px 15px;
    }

    .contact .title h2 {
        font-size: 32px;
    }

    .contact-gallery {
        height: 400px;
        gap: 6px;
    }

    .gallery-overlay {
        padding: 20px 15px;
    }

    .gallery-overlay span {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .contact-gallery {
        height: 350px;
    }

    /* 移动端默认展开最后一个 */
    .contact-gallery .gallery-item {
        flex: 0.5;
    }

    .contact-gallery .gallery-item:last-child {
        flex: 3;
    }

    .gallery-overlay {
        padding: 15px 12px;
    }

    .gallery-overlay span {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 50px 15px;
    }

    .contact .title h2 {
        font-size: 26px;
    }

    .contact-gallery {
        height: 300px;
        gap: 4px;
    }

    .gallery-item {
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 50px 15px;
    }

    .contact .title h2 {
        font-size: 26px;
    }

    .contact-gallery {
        flex-direction: column;
        /* 改为垂直排列 */
        height: 500px;
        gap: 4px;
    }

    .gallery-item {
        border-radius: 8px;
        transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }


    /* 移动端垂直展开效果 */
    .contact-gallery:hover .gallery-item {
        flex: 1;
    }

    .contact-gallery .gallery-item:hover {
        flex: 5;
        /* 垂直方向展开 */
    }
}

/* ========== FAQ 常见问题手风琴 ========== */
.faq {
    padding: 80px 20px;
    background: #fff;
}

.faq .title {
    text-align: center;
    margin-bottom: 50px;
}

.faq .title h2 {
    font-family: "Fraunces", Sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.faq .title h2 span {
    color: #883E74;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 2px solid #000;
    margin-bottom: 20px;
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: #883E74;
}

.faq-question {
    padding: 22px 25px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    font-family: "Poppins", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.faq-item.active .faq-question h3 {
    color: #883E74;
}

.faq-icon {
    font-family: "Poppins", Sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: #000;
    line-height: 1;
    min-width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    color: #883E74;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    font-family: "Poppins", Sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    padding: 0 25px 22px;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* 响应式 */
@media (max-width: 992px) {
    .faq {
        padding: 60px 15px;
    }

    .faq .title h2 {
        font-size: 32px;
    }

    .faq-container {
        max-width: 100%;
        gap: 5px;
    }

    .faq-question {
        padding: 18px 15px;
    }

    .faq-question h3 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .faq {
        padding: 50px 15px;
    }

    .faq .title h2 {
        font-size: 26px;
    }

    .faq-container {
        gap: 5px;
    }

    .faq-item {
        border-width: 1px;
        border-radius: 8px;
    }

    .faq-question {
        padding: 18px 15px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-icon {
        font-size: 24px;
        min-width: 24px;
    }

    .faq-answer p {
        font-size: 14px;
        padding: 0 15px 18px;
    }
}

/* ========== Testimonials 客户评价轮播 ========== */


.testimonials {
    padding: 80px 0 60px 0;
    background: #f9f9f9;
    max-width: 100%;
}

.testimonials .title {
    text-align: center;
    margin-bottom: 60px;
}


.testimonials .title p {
    font-size: 18px;
    color: #666;
    margin-top: 15px;
}

.tes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    height: 100%;
}

.tes-card {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 16px;
    /* padding: 30px; */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.tes-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tes-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/4 ;
    object-fit: cover;
}

#testimonials .tes-avatar img {
    width: 100px;
    height: 100px;
    aspect-ratio: 1/1 !important;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.carousel-container {
    padding:20px;
}
.tes-content h4 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 8px;
    color: #000;
}

.tes-title {
    font-size: 14px;
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.tes-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tes-description.collapsed {
    max-height: 72px;
}

.tes-description.expanded {
    max-height: 300px;
}

.tes-toggle {
    display: block;
    margin: 12px auto 0;
    background: transparent;
    border: none;
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.tes-toggle:hover {
    color: #4f46e5;
}

/* 响应式 */
@media (max-width: 991px) {
    .testimonials {
        padding: 20px;
    }

    .simple-carousel {
        padding: 15px 50px 50px;
    }

    .tes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials .title h2 {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .simple-carousel {
        padding: 10px 40px 50px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }

    .tes-grid {
        grid-template-columns: 1fr;
    }

    .testimonials {
        padding: 50px 0;
    }

    .testimonials .title h2 {
        font-size: 28px;
    }
}