/* 移动端样式 (max-width: 768px) */
@media (max-width: 768px) {
    
    
    /* 轮播图优化 */
    .carousel-item {
        height: 220px; /* 增加高度提高视觉效果 */
        contain: layout; /* 更合适的性能优化 */
    }
    
    .hero-carousel {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        position: relative;
    }
    
    .hero-carousel .carousel-inner {
        border-radius: 8px;
        overflow: hidden;
        margin: 0 auto;
    }
    
    .hero-carousel .carousel-item {
        height: auto;
        background-color: #f8f8f8; /* 轮播图背景色 */
        position: relative;
    }
    
    /* 确保轮播图图片正常显示 */
    .hero-carousel .carousel-item img {
        object-fit: cover;
        width: 100%;
        max-height: 50vh;
        display: block;
        opacity: 1 !important; /* 确保图片可见 */
        transition: opacity 0.3s ease-in-out;
    }
    
    /* 添加骨架屏效果 */
    .hero-carousel .carousel-item:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        z-index: 1;
        opacity: 0.8;
        display: none; /* 默认隐藏 */
    }
    
    /* 未加载完成时显示骨架屏 */
    .hero-carousel .carousel-item img:not(.loaded) + .carousel-item:before {
        display: block;
    }
    
    /* 已加载完成的图片 */
    .hero-carousel .carousel-item img.loaded {
        opacity: 1;
    }
    
    /* 骨架屏加载动画 */
    @keyframes loading {
        0% {
            background-position: -200% 0;
        }
        100% {
            background-position: 200% 0;
        }
    }
    
    /* 处理轮播图控制箭头 */
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 10%;
        opacity: 0.7;
        transition: opacity 0.2s ease;
    }
    
    .hero-carousel .carousel-control-prev:hover,
    .hero-carousel .carousel-control-next:hover {
        opacity: 1;
    }
    
    /* 增强轮播图指示器可见性 */
    .hero-carousel .carousel-indicators {
        margin-bottom: 0;
        bottom: 10px;
    }
    
    .hero-carousel .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin: 0 4px;
    }
    
    .hero-carousel .carousel-indicators .active {
        background-color: #dc3545; /* 使用红色主题色 */
    }
    
    .carousel-caption {
        background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.4), transparent);
        display: flex;
        align-items: center;
        padding: 10px 15px;
        background-color: transparent; /* 移除白色背景 */
        margin: 0;
        border-bottom: none; /* 移除边框 */
        position: absolute; /* 使用绝对定位 */
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2; /* 确保在图片之上 */
    }

    
    
    /* 轮播图样式优化 */
    .carousel-item {
        height: 200px;  /* 减小高度以适应移动端屏幕 */
        contain: paint; /* 性能优化，告诉浏览器元素内容是独立的 */
    }
    
    .carousel-caption {
        padding: 0.75rem;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 8px 8px 0 0;
        max-width: 100%;
    }
    
    .carousel-caption h2 {
        font-size: 1.25rem;
        margin-bottom: 0.3rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .carousel-indicators.custom-indicators {
        bottom: 5px;
        gap: 6px;
    }
    
    .carousel-indicators.custom-indicators button {
        width: 6px;
        height: 6px;
        margin: 0 3px;
        border-radius: 50%;
        border: none;
        background-color: rgba(240, 159, 29, 0.5);
        transition: all 0.3s ease;
        backdrop-filter: blur(2px); /* 增强指示器视觉效果 */
    }
    
    .carousel-indicators.custom-indicators button.active {
        width: 16px;
        height: 10px;
        border-radius: 3px;
        background-color: rgba(240, 159, 29, 0.8);
    }

    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        height: 200px;  /* 减小高度与上方一致 */
        object-fit: cover;
        transform: translateZ(0); /* 强制GPU加速，提高滚动性能 */
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        background-size: 50%;
        backdrop-filter: blur(2px); /* 毛玻璃效果 */
    }

    /* 公司理念区域优化 */
    .py-4.bg-light {
        padding: 1.5rem 0 !important;
    }
    
    .py-4 h2 {
        font-size: 1.3rem;
        position: relative;
        margin-bottom: 1.2rem;
    }
    
    .py-4 h2::after {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background-color: var(--primary);
    }
    
    .py-4 .lead {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .py-4 p:not(.lead) {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #555;
    }

    /* 服务卡片区域优化 */
    .services-section {
        padding: 1rem 0 2rem; /* 增加底部内边距 */
        overflow: hidden; /* 防止溢出 */
    }
    
    /* 移动端服务卡片滚动容器 */
    .services-section .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0.5rem 1.5rem;
        margin: 0 -15px;
        scrollbar-width: none; /* 隐藏Firefox滚动条 */
        will-change: transform; /* 提高滚动性能 */
        gap: 12px;
    }

    .services-section .row::-webkit-scrollbar {
        display: none; /* 隐藏WebKit滚动条 */
    }

    .services-section .col-6 {
        flex: 0 0 85%;
        width: 85%;
        padding: 0 5px;
        scroll-snap-align: start;
    }

    /* 滚动指示器 */
    .scroll-indicator-container {
        display: flex;
        justify-content: center;
        margin-top: 15px;
        gap: 8px;
    }

    .scroll-indicator-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(143, 113, 208, 0.3);
        transition: all 0.3s ease;
    }

    .scroll-indicator-dot.active {
        width: 24px;
        border-radius: 4px;
        background-color: rgba(240, 159, 29, 0.8);
    }
    
    /* 服务卡片增强 */
    .service-card {
        padding: 1.8rem 1rem;
        border-radius: 12px;
        height: 100%;
        border: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        background: linear-gradient(145deg, #ffffff, #f8f9fa);
        will-change: transform, box-shadow;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        min-height: 260px;
    }
    
    .service-card:active {
        transform: scale(0.96);
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }

    .service-icon {
        margin:0;
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 1.2rem;
        background: rgba(212, 164, 100, 0.1);
        width: 70px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        position: relative;
        transition: all 0.3s ease;
    }

    .service-card:active .service-icon {
        transform: scale(1.1) translateY(-5px);
        color: #fff ;
        background-color: var(--primary);
    }
    .service-card:active .service-icon i{
        color: #fff !important;
    }

    .service-icon::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-radius: 50%;
        border: 1px solid rgba(143, 113, 208, 0.2);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .service-card:active .service-icon::after {
        opacity: 1;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-color: rgba(195, 86, 32, 0.4);
    }
    
    .service-title {
        font-size: 1rem;
        font-weight: 600;
        color: #FFFFFF;
        margin-bottom: 0.8rem; /* 增加下方间距 */
        min-height: auto; /* 移除固定高度，使用自然高度 */
        text-align: center;
        width: 100%;
    }
    
    .service-desc {
        font-size: 0.8rem;
        color: #666;
        margin-bottom: 1rem; /* 增加下方间距 */
        line-height: 1.5;
        min-height: auto; /* 移除固定高度，使用自然高度 */
        text-align: center;
        width: 100%;
        flex-grow: 1; /* 允许描述文本占用可用空间 */
        display: flex;
        align-items: center;
    }
    
    .service-link {
        color: var(--primary);
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: none;
        position: relative;
        display: inline-block;
        padding-right: 1.2rem;
        transition: all 0.3s ease;
        margin-top: auto; /* 将链接推到底部 */
    }
    
    .service-link:after {
        content: '\F231';
        font-family: "bootstrap-icons";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    
    .service-link:active:after {
        transform: translate(3px, -50%);
    }
    
    /* 为什么选择我们区域优化 */
    .why-choose-us {
        padding: 1rem 0 2rem; /* 增加底部内边距 */
        background-color: #f8f9fa;
        margin-top: 0.5rem; /* 增加顶部外边距 */
    }
    
    .feature-card {
        padding: 1.2rem 0.8rem;
        border-radius: 1rem;
        height: 100%;
        border: none;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        will-change: transform, box-shadow; /* 性能优化 */
    }
    
    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.5));
        border-radius: 1rem;
        opacity: 0.85;
        z-index: 1; /* 确保在图标之下 */
        transition: opacity 0.3s ease;
    }
    
    .feature-card:active {
        transform: scale(0.98) translateY(2px);
        box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    }
    
    .feature-card:active::before {
        left: 100%;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(145deg, var(--primary), var(--primary));
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.8rem;
        box-shadow: 0 3px 6px rgba(143, 113, 208, 0.2);
        position: relative;
        z-index: 3; /* 增加z-index确保图标在前景 */
        color: white;
        font-size: 1.2rem;
    }
    
    .feature-card:active .feature-icon {
        transform: scale(1.1);
        background: rgba(143, 113, 208, 0.2);
    }
    
    .feature-content h3 {
        font-size: 1rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .feature-detail p {
        font-size: 0.8rem;
        color: #666;
        margin-bottom: 0.3rem;
        text-align: center;
        line-height: 1.4;
    }

    /* 客户评价区域优化 */
    .testimonials-section {
        padding: 1.5rem 0 2.5rem;
        overflow: hidden;
        position: relative;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        background: linear-gradient(145deg, #ffffff, #f8f9fa);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        min-height: 280px; /* 固定最小高度 */
    }
    
    .testimonial-card:active {
        transform: scale(0.98);
    }
    
    .testimonial-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1.2rem;
        gap: 10px;
    }
    
    .client-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .client-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border: 2px solid rgba(143, 113, 208, 0.2);
    }
    
    .client-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .client-name {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
        color: #333;
    }
    
    .client-type {
        font-size: 0.75rem;
        color: #666;
        margin-bottom: 0;
    }
    
    .rating {
        color: #ffc107;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .testimonial-content {
        flex-grow: 1;
        position: relative;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #444;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .testimonial-text.truncated {
        max-height: 4.5em; /* 约3行文本 */
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        overflow: hidden;
        position: relative;
        padding-bottom: 1rem; /* 为展开按钮留出空间 */
    }
    
    .testimonial-text.expanded {
        max-height: 1000px;
    }
    
    .testimonial-footer {
        margin-top: 1rem;
        display: flex;
        justify-content: flex-end;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .review-date {
        font-size: 0.75rem;
        color: #888;
    }
    
    /* 评价卡片滚动指示器 */
    .testimonial-scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    /* 轮播指示器优化 */
    .carousel-indicators.testimonial-indicators {
        position: relative;
        margin-top: 1rem;
        margin-bottom: 0;
    }
    
    .carousel-indicators.testimonial-indicators button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(143, 113, 208, 0.3);
    }
    
    .carousel-indicators.testimonial-indicators button.active {
        width: 20px;
        background-color: #8F71D0;
        border-radius: 4px;
    }
    
    

    /* 内容区块加载动画 */
    .py-4, .services-section, .why-choose-us, .testimonials-section {
        animation: fade-in-up 0.6s ease-out both;
    }
    
    @keyframes fade-in-up {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* 为不同区块添加不同的延迟 */
    .py-4 {
        animation-delay: 0.1s;
    }
    
    .services-section {
        animation-delay: 0.2s;
    }
    
    .why-choose-us {
        animation-delay: 0.3s;
    }
    
    .testimonials-section {
        animation-delay: 0.4s;
    }
    
    /* 卡片行加载动画 */
    .services-section .row, .why-choose-us .row, .testimonials-section .row {
        animation: fade-in 0.8s ease-out both;
    }
    
    @keyframes fade-in {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }
    
    /* 服务卡片阴影悬停效果 */
    .service-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        will-change: transform, box-shadow;
    }
    
    /* 触摸样式增强 */
    .touch-active {
        transform: scale(0.97) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        transition: all 0.2s ease !important;
    }
    
    /* 文本样式增强 */
    .py-4 p, .section-description {
        color: #4a5568;
        font-size: 0.95rem;
        line-height: 1.7;
        opacity: 0.9;
    }
    
    /* 按钮触摸样式增强 */
    .btn {
        transform: translateZ(0);
        transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    /* 淡入效果组件 */
    .fade-in-component {
        animation: fadeIn 0.8s ease-out forwards;
        opacity: 0;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* 流畅滚动行为 */
    html, body {
        scroll-behavior: smooth;
    }

    /* 图片加载优化 */
    img {
        max-width: 100%;
        height: auto;
        transition: opacity 0.3s ease;
    }
    
    
    img.loaded,
    img[loading="eager"] {
        opacity: 1;
    }
    
    /* 图片容器背景 */
    .img-container {
        background-color: #f5f5f5;
        overflow: hidden;
        position: relative;
    }
    
    /* 图片骨架屏 */
    .img-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
    }
    
    @keyframes shimmer {
        0% {
            background-position: -100% 0;
        }
        100% {
            background-position: 100% 0;
        }
    }
    
    /* 性能优化 */
    .gpu-accelerated {
        transform: translateZ(0);
        will-change: transform;
        transition: transform 0.3s ease;
    }
    
    /* 高性能卡片滚动 */
    .row.card-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap: 15px;
        padding-left: 15px;
        padding-bottom: 20px;
        margin-right: -15px;
    }
    
    .row.card-row::-webkit-scrollbar {
        display: none;
    }
    
    .row.card-row .col-md-4,
    .row.card-row .col-6,
    .row.card-row .col-sm-6 {
        flex: 0 0 auto;
        width: 70%;
        margin:0;
        min-width: 230px;
        max-width: 300px;
    }
    
    /* 替代背景渐变色 */
    .gradient-bg {
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
        color: white;
    }
    
    /* 暗色主题支持 */
    @media (prefers-color-scheme: dark) {
        body {
            color-scheme: dark;
        }
        
        .mobile-logo-container,
        .mobile-social-icons,
        .service-card,
        .feature-card,
        .testimonial-card {
            color-scheme: light;
        }
    }

    /* 修复客户评价展开按钮点击问题 */
    .expand-text {
        position: absolute;
        bottom: 0.5rem;
        right: 0.8rem;
        color: var(--primary);
        background: #fff;
        font-size: 0.7rem;
        padding: 4px 10px; /* 增加内边距使按钮更容易点击 */
        border-radius: 20px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        z-index: 5; /* 提高z-index确保在最上层 */
        border: 1px solid rgba(195, 86, 32, 0.3);
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: rgba(0,0,0,0); /* 移除移动端点击高亮 */
        touch-action: manipulation; /* 优化触摸操作 */
    }

    /* 修复特色卡片图标被遮挡问题 */
    .feature-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(145deg, var(--primary), var(--primary));
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.8rem;
        box-shadow: 0 3px 6px rgba(195, 86, 32, 0.2);
        position: relative;
        z-index: 3; /* 增加z-index确保图标在前景 */
        color: white;
        font-size: 1.2rem;
    }

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(145deg, rgba(240, 159, 29, 0.8), rgba(240, 159, 29, 0.5));
        border-radius: 1rem;
        opacity: 0.85;
        z-index: 1; /* 确保在图标之下 */
        transition: opacity 0.3s ease;
    }

    
    .why-choose-us .carousel-indicators,
    .why-choose-us .scroll-indicator-container,
    .why-choose-us .carousel-control-prev,
    .why-choose-us .carousel-control-next {
        display: none !important;
    }
    
    /* 增强"为什么选择我们"部分的卡片样式 */
    .why-choose-us .feature-card {
        margin-bottom: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transform: translateZ(0);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .why-choose-us .feature-card:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* 添加独立的指示器样式 */
    .why-choose-us .custom-indicators {
        display: flex;
        justify-content: center;
        margin-top: 15px;
    }

    .why-choose-us .custom-indicators span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ccc;
        margin: 0 4px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .why-choose-us .custom-indicators span.active {
        background-color: var(--primary);
    }

    /* 增加语言部分的图标间距 */
    .lang-switcher .nav-link,
    .header-social-icon {
        padding: 0.4rem 0.6rem; /* 增加内边距 */
        margin: 0 0.2rem; /* 增加外边距 */
    }
    
    .header-social-icon i,
    .lang-switcher .nav-link i {
        font-size: 1.2rem; /* 稍微增大图标 */
        margin-right: 0.4rem; /* 增加图标与文字间距 */
    }
    
    /* 确保客户评价展开按钮可用 */
    .testimonial-text.truncated {
        max-height: 4.5em; /* 约3行文本 */
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        overflow: hidden;
        position: relative;
        padding-bottom: 1rem; /* 为展开按钮留出空间 */
    }
    
    .testimonial-content {
        position: relative;
        padding-bottom: 3.5rem; /* 确保有足够空间放置展开按钮 */
    }

    /* 确保"选择我们"部分的特色卡片不会遮挡 */
    .why-choose-us .feature-card {
        overflow: visible; /* 允许内容超出卡片边界 */
        position: relative;
        z-index: 1;
    }

    /* 修复移动端头部语言切换部分样式 */
    .navbar-nav.ms-auto {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
    }
    
    .navbar-nav.ms-auto .nav-item {
        margin: 0 5px;
    }

    /* 新增滚动指示器样式 */
    .feature-scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
        margin-bottom: 10px;
        padding: 5px 0;
    }

    .feature-scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(195, 86, 32, 0.3);
        transition: all 0.3s ease;
    }

    .feature-scroll-dot.active {
        width: 20px;
        background-color: var(--primary);
        border-radius: 4px;
    }
}



/* 较小屏幕的额外优化 */
@media (max-width: 576px) {
    .carousel-item {
        height: 180px;
    }
    
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        height: 180px;
    }

    .carousel-caption h2 {
        font-size: 1.1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }
    
    .mobile-section-header h2 {
        font-size: 1rem;
    }
    
    .service-card, 
    .feature-card {
        padding: 1rem 0.6rem;
    }

    .service-icon {
        font-size: 1.5rem;
    }
    .service-icon i{
        color: var(--primary);
    }
    .service-title {
        font-size: 0.9rem;
    }
    
    .service-desc {
        font-size: 0.75rem;
    }
    
    .feature-icon {
        font-size: 1.4rem;
        width: 45px;
        height: 45px;
    }
    
    .feature-content h3 {
        font-size: 0.9rem;
    }
    
    .feature-detail p {
        font-size: 0.75rem;
    }
    
    .float-toolbar.d-md-none {
        padding: 0 0 5px;
    }
    
    .float-btn i {
        font-size: 1.1rem;
        color: white; /* 确保在小屏幕下也是白色 */
    }
    
    .float-btn span {
        font-size: 0.65rem;
        color: white; /* 确保在小屏幕下也是白色 */
    }
    
    .float-btn.active::before {
        height: 2px; /* 小屏幕下稍微减小指示器高度 */
    }
}

/* 触摸反馈效果 - 全局 */
.touch-active {
    transform: scale(0.97) !important;
    transition: transform 0.2s ease !important;
}

/* 文本展开/折叠样式 */
.testimonial-text.truncated {
    max-height: 4.5em; /* 约3行文本 */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.testimonial-text.expanded {
    max-height: 1000px;
    -webkit-mask-image: none;
    mask-image: none;
}

.expand-text {
    position: absolute;
    bottom: 0.5rem;
    right: 0.8rem;
    color: var(--primary);
    background: #fff;
    font-size: 0.7rem;
    padding: 4px 10px; /* 增加内边距使按钮更容易点击 */
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 5; /* 提高z-index确保在最上层 */
    border: 1px solid rgba(195, 86, 32, 0.3);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* 移除移动端点击高亮 */
    touch-action: manipulation; /* 优化触摸操作 */
}

.expand-text:active {
    transform: scale(0.95);
    box-shadow: 0 0 1px rgba(0,0,0,0.1);
}

/* 通用触摸反馈样式 */
.touch-action {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.touch-action:active {
    padding:25px; 
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* 按钮样式优化 */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(195, 86, 32, 0.3);
}

.btn-primary:active {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(2px);
    box-shadow: 0 0 3px rgba(195, 86, 32, 0.3);
}

/* 短信验证码按钮样式 */
.sms-code-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.sms-code-btn:disabled {
    background-color: var(--primary);
    cursor: not-allowed;
}



/* 应用平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 图片加载优化 */
.carousel-item img {
    transition: opacity 0.3s ease;
}

.carousel-item img[loading="lazy"] {
    opacity: 0;
}

.carousel-item img.loaded,
.carousel-item img[loading="eager"] {
    opacity: 1;
}

/* 移动端轮播指示器加强 */
.carousel-indicators.custom-indicators {
    margin-bottom: 0;
    padding: 5px 0;
    /* background: linear-gradient(to top, rgba(0,0,0,0.3), transparent); */
}

/* 轮播图加载效果动画 */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* "准备开始您的旅程了吗？"模块优化 */
.cta-section {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    border-radius: 0; /* 默认无圆角 */
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .cta-section {
        border-radius: 16px; /* 移动端添加圆角 */
        margin-left: 12px !important;
        margin-right: 12px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .cta-section .lead {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .cta-section .btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* 移动端评价区域样式优化 */
.testimonials-section {
    padding: 1.5rem 0 2.5rem;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    /* 移动端评价卡片滑动容器 */
    .testimonials-slider-container {
        margin: 1rem -15px;
        padding: 0 15px;
        position: relative;
    }
    
    .testimonials-mobile-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 0.5rem 0 1.5rem;
        scrollbar-width: none; /* Firefox */
        will-change: transform;
    }
    
    .testimonials-mobile-slider::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .testimonial-slide {
        flex: 0 0 90%;
        scroll-snap-align: center;
        position: relative;
    }
    
    /* 评价卡片样式增强 */
    .testimonial-card {
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        background: linear-gradient(145deg, #ffffff, #f8f9fa);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        min-height: 280px; /* 固定最小高度 */
    }
    
    .testimonial-card:active {
        transform: scale(0.98);
    }
    
    /* 评价卡片内容增强 */
    .testimonial-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1.2rem;
        gap: 10px;
    }
    
    .client-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .client-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border: 2px solid rgba(195, 86, 32, 0.2);
    }
    
    .client-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .client-name {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
        color: #FFFFFF;
    }
    
    .client-type {
        font-size: 0.75rem;
        color: #FFFFFF;
        margin-bottom: 0;
    }
    
    .rating {
        color: #ffc107;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .testimonial-content {
        flex-grow: 1;
        position: relative;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
        color: #444;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .testimonial-text.truncated {
        max-height: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
    }
    
    .testimonial-text.expanded {
        max-height: 1000px;
    }
    
    .testimonial-footer {
        margin-top: 1rem;
        display: flex;
        justify-content: flex-end;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .review-date {
        font-size: 0.75rem;
        color: #888;
    }
    
    /* 评价卡片滚动指示器 */
    .testimonial-scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }
}

/* 资讯区域优化 */
.news-section {
        padding: 2rem 0;
    }

@media (max-width: 768px) {
    .news-section {
        padding: 2rem 1rem;
    }
    
    .news-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        position: relative;
    }
    
    .news-divider {
        margin-bottom: 1.5rem !important;
        width: 60px;
        height: 3px;
        background: var(--primary);
        margin: 0 auto;
    }
    
    .news-list {
        margin-bottom: 1.5rem;
    }
    
    .news-item {
        padding: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        display: flex;
        align-items: flex-start;
    }
    
    .news-date {
        font-size: 0.8rem;
        color: var(--primary);
        min-width: 80px;
        font-weight: 500;
    }
    
    .news-title {
        font-size: 0.9rem;
        /* color: #FFFFFF; */
        flex-grow: 1;
        line-height: 1.5;
    }
    .theme{
        color: var(--primary) !important;
        margin:0 !important;
        font-size: 1.35rem !important;
    }
    .section-title{
        color: white !important;
        font-size: 1.3rem !important;
        position: relative;
        font-weight: 700;
        text-align: center;
        display: inline-block;
    }
    .mobile-section-header h2{
        color: white !important;
        font-size: 1.3rem !important;
        position: relative;
        font-weight: 700;
        text-align: center;
        display: inline-block;
    }
}


