@import url(./main.css);

/* 服务流程时间轴响应式样式 */
@media (min-width: 768px) {
    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .md\:mt-32 {
        margin-top: 8rem;
    }
    /* .hero-section {
        height: 400px!important;
        min-height: 400px!important;
    } */
    /* .hero-section img {
        height: 400px!important;
        min-height: 400px!important;
    } */
}

@media (max-width: 1920px) {
  .container {
    max-width: 1230px!important;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1230px!important;
  }
}

/* 确保英雄区域内容正确显示 */
.hero-section {
    position: relative;
    width: 100%;
    height: 800px;
    min-height: 800px;
    overflow: hidden;
}

/* 幻灯片容器 - 确保填满父元素 */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 单个幻灯片 - 绝对定位填满容器 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}

/* 响应式高度调整 */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
        min-height: 400px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        height: 500px;
        min-height: 500px;
    }
}

/* ========== 移动端全面适配优化 ========== */

/* 小屏幕手机优化 (320px - 480px) */
@media (max-width: 480px) {
    .hero-section {
        height: 280px !important;
        min-height: 280px !important;
    }

    .hero-section img {
        height: 280px !important;
        min-height: 280px !important;
    }
    
    .hero-bg {
        object-position: center top;
    }
    
    /* 优化 hero-content 内的文字和元素 */
    .hero-content h1,
    .hero-content h2,
    .hero-content .banner-title {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-content p,
    .hero-content .banner-subtitle {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
    
    /* 按钮和交互元素 */
    .hero-content button,
    .hero-content a.btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
        min-height: 44px; /* 确保点击区域足够大 */
        min-width: 44px;
    }
}

/* 中等屏幕手机优化 (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-section {
        height: 350px !important;
        min-height: 350px !important;
    }
    .hero-section img {
        height: 350px !important;
        min-height: 350px !important;
    }
    
    .hero-content h1,
    .hero-content h2,
    .hero-content .banner-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-content p,
    .hero-content .banner-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-content button,
    .hero-content a.btn {
        padding: 0.625rem 1.25rem !important;
        font-size: 1rem !important;
        min-height: 44px;
        min-width: 44px;
    }
}

/* 平板端优化 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        height: 500px !important;
        min-height: 500px !important;
    }
    .hero-section img {
        height: 500px !important;
        min-height: 500px !important;
    }
    
    .hero-content h1,
    .hero-content h2,
    .hero-content .banner-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-content p,
    .hero-content .banner-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    .hero-section img {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .hero-content {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 高分辨率小屏幕设备优化 (如 Retina 屏) */
@media (max-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-section {
        height: 300px !important;
        min-height: 300px !important;
    }
    .hero-section img {
        height: 300px !important;
        min-height: 300px !important;
    }
    
    .hero-bg {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 确保移动端内容内边距合适 */
@media (max-width: 768px) {
    .hero-content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.hero-badge {
    background: linear-gradient(90deg, #2CA6FE 0%, #387DFE 100%);
}

/* 交付能力区域背景图片 */
.stats-delivery {
    position: relative;
    background-color: #f8fafc; /* 图片加载前的过渡背景色 */
    background-image: url('../images/delivery_capability_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* 改为scroll以在移动端获得更好性能 */
}

/* 响应式背景图片调整 */
@media (max-width: 768px) {
    .stats-delivery {
        background-size: cover;
        background-position: center top;
    }
}

.pay-skill {
    background: linear-gradient(90deg, #2CA6FE 0%, #387DFE 100%);
    padding: 10px;
    border-radius: 100%;
}

.stats-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
}

/* 统计栏悬浮效果 */
.stats-wrapper {
    position: relative;
    z-index: 100;
    margin-top: -30px;
    padding: 0 20px;
}
.f18 {
  font-size: 18px;
}

 /* Swiper 自定义样式 - 匹配原设计 */
.cases-swiper {
    overflow: hidden;
    padding-bottom: 60px;      /* 为分页器预留空间 */
}

/* Swiper 网格布局样式 */
.cases-swiper .swiper-wrapper {
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 24px !important;    /* 增大垂直间距为24px */
}

.cases-swiper .swiper-slide {
    height: auto;
    margin-top: 0 !important;
}

/* 桌面端更大的垂直间距 */
@media (min-width: 1024px) {
    .cases-swiper .swiper-wrapper {
        row-gap: 32px !important;  /* 桌面端垂直间距32px */
    }
}

/* 分页器样式 */
.cases-swiper-pagination {
    position: relative;
    margin-top: 3rem;          /* 增大与内容区域的距离 */
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    z-index: 10;
}

.cases-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1 !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block !important;
    flex-shrink: 0;
}

.cases-swiper-pagination .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.cases-swiper-pagination .swiper-pagination-bullet-active {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* 多行文本省略 - 最多显示 3 行 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* 多行文本省略 - 最多显示 2 行 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.lg\:border-r {
  border-right: 1px solid #CDCDCD;
}

/* 卡片鼠标悬停上移效果 */
.hover-lift-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 客户案例卡片 - 为所有客户案例卡片添加悬停效果 */
.cases-swiper .bg-white.rounded-xl.shadow-lg {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cases-swiper .bg-white.rounded-xl.shadow-lg:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 修复悬浮元素被父级高度限制的问题 */
.cases-swiper {
    overflow: visible !important;
}
.cases-swiper .swiper-wrapper {
    overflow: visible !important;
}
.cases-swiper .swiper-slide {
    height: auto !important;
    overflow: visible !important;
}
/* 确保悬浮元素能够正确显示，不受父级 overflow 限制 */
.hover-lift-card {
    position: relative;
    z-index: 1;
}
.hover-lift-card:hover {
    z-index: 10;
}