/* =========================================
   首页专属样式 (Home Page Styles)
   字体标准: PingFang SC / Microsoft YaHei
   主色调: var(--brand-blue) #2793ff
   ========================================= */

/* ----------------------------------------
   Section 1: 轮播图 (Banner)
   ---------------------------------------- */
.home-section-1 {
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    overflow: hidden;
}

/* .admin-bar .home-section-1 {
    padding-top: calc(var(--header-pc) + var(--admin-bar));
} */

.home-section-1 .swiper {
    width: 100%;
    height: 600px;
}

.home-section-1 .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-section-1 .swiper-button-prev,
.home-section-1 .swiper-button-next {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.home-section-1 .swiper-button-prev::after,
.home-section-1 .swiper-button-next::after {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: bold;
}

/* ----------------------------------------
   Section 2: 关于我们 (About Us)
   包含下划线 Hover 拉长动画
   ---------------------------------------- */
.home-section-2 .container {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 80px 20px;
}

.home-section-2 .left-content {
    flex: 1;
}

.home-section-2 .right-video {
    flex: 1;
    min-height: 350px;
    background-color: #eeeeee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 14px;
}

/* 1. 标题包裹层：必须设置为 inline-block 或 relative，作为定位基准 */
.section-title-wrapper {
    display: inline-block; /* 关键：让宽度跟随文字，而不是占满整行 */
    position: relative;
    margin-bottom: 30px;
    cursor: default;
}

/* 2. 标题文字样式 */
.section-title-wrapper .section-title {
    color: var(--brand-blue); /* 你的品牌蓝 #2793ff */
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* 3. 下划线基础样式 */
.underline {
    display: block;
    height: 3px;          /* 线条粗细 */
    background-color: var(--brand-blue);
    width: 100%;          /* 初始宽度 100% */
    margin-top: 8px;      /* 与标题的间距 */
    
    /* ✅ 核心：设置过渡动画 */
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    
    /* ✅ 核心：设定变换原点为左侧，这样线会向右伸长 */
    transform-origin: left center; 
}

/* 4. 鼠标悬停时的状态 */
.section-title-wrapper:hover .underline {
    width: 300%; /* 伸长到 140%，你可以根据需要调整数值 */
}

.home-section-2 .text-content p {
    font-size: 15px;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* ----------------------------------------
   Section 3: 产品中心 (Products)
   ---------------------------------------- */
.home-section-3 {
    padding: 60px 0;
    background-color: #fafafa;
}

.home-section-3 .products {
    margin-bottom: 40px;
}

.home-section-3 .title h2 {
    text-align: center;
    color: var(--brand-blue);
    margin-bottom: 30px;
    font-weight: 700;
}

.home-section-3 .swiper {
    padding-bottom: 50px !important;
}

.home-section-3 .swiper-slide {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-section-3 .swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.home-section-3 .img-container {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.home-section-3 .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-section-3 .swiper-slide:hover .img-container img {
    transform: scale(1.1);
}

.home-section-3 .text-container {
    padding: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-section-3 .product-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    line-height: 1.6;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-section-3 .custom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -30px;
    padding: 0 10px;
    position: relative;
    z-index: 10;
}

.home-section-3 .more-btn {
    color: #333333;
    font-weight: bold;
    font-size: 16px;
}

.home-section-3 .more-btn:hover {
    color: var(--brand-blue);
}

/* ----------------------------------------
   Section 4: 核心优势 (Advantages)
   三列式布局 (图-文-图)
   ---------------------------------------- */
.home-section-4 {
    padding: 80px 0;
    background-color: #ffffff;
}

.home-section-4 .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.home-section-4 .col-image {
    flex: 1;
}

.home-section-4 .col-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.home-section-4 .col-content {
    flex: 1.2;
    text-align: center;
}

.home-section-4 .section-title {
    color: var(--brand-blue);
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.home-section-4 .title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--brand-blue);
    margin: 0 auto 30px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* 4. 鼠标悬停时的状态 */
.home-section-4 .title-underline:hover{
    width: 300px; /* 伸长到 140%，你可以根据需要调整数值 */
}


.home-section-4 .advantage-list li {
    font-size: 16px;
    color: #555555;
    line-height: 2;
    margin-bottom: 5px;
}

/* ----------------------------------------
   Section 5: 最新动态 (Latest News)
   Grid 网格布局
   ---------------------------------------- */
.home-section-5 {
    padding: 80px 0;
    background-color: #ffffff;
}

.home-section-5 .s5-main-title {
    text-align: center;
    font-size: 36px;
    color: var(--brand-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

.home-section-5 .s5-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.home-section-5 .s5-news-card {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-section-5 .s5-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(39, 147, 255, 0.1);
}

.home-section-5 .s5-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.home-section-5 .s5-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-section-5 .s5-news-card:hover .s5-thumb img {
    transform: scale(1.08);
}

.home-section-5 .s5-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
}

.home-section-5 .s5-date {
    font-size: 13px;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.home-section-5 .s5-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
    color: #222222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-section-5 .s5-title a:hover {
    color: var(--brand-blue);
}

.home-section-5 .s5-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-section-5 .s5-read-more {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.home-section-5 .s5-read-more:hover {
    border-bottom-color: var(--brand-blue);
}

/* ----------------------------------------
   Section 6: 客户信任/行动号召 (CTA)
   ---------------------------------------- */
.home-section-6 {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
    position: relative;
    z-index: 10;
}

.home-section-6 .section-header {
    margin-bottom: 35px;
    text-align: center !important;
    width: 100%;
}

.home-section-6 .section-header .title {
    font-size: 36px;
    font-weight: 700;
    color: var(--brand-blue);
    margin: 0 auto 15px;
    display: block;
    text-align: center !important;
}

.home-section-6 .section-header .title-line {
    width: 60px;
    height: 3px;
    background-color: var(--brand-blue);
    margin: 0 auto;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* 4. 鼠标悬停时的状态 */
.home-section-6 .section-header:hover .title-line{
    width: 300px; /* 伸长到 140%，你可以根据需要调整数值 */
}


.home-section-6 .section-desc {
    max-width: 960px;
    margin: 0 auto 45px;
    padding: 0 20px;
}

.home-section-6 .section-desc p {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    text-align: justify;
    text-align-last: center;
}

.home-section-6 .section-action {
    margin-top: 10px;
}

.home-section-6 .btn-inquiry {
    display: inline-block !important;
    background-color: var(--brand-blue);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 45px;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-section-6 .btn-inquiry:hover {
    background-color: transparent;
    color: var(--brand-blue) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* =========================================
   📱 移动端全面适配 (Max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    
    /* Section 1: 轮播图 */
    /* .admin-bar .home-section-1 {
        padding-top: calc(var(--header-mobile) + var(--admin-bar)) !important;
    } */
    .home-section-1 .swiper {
        height: 260px;
    }
    .home-section-1 .swiper-button-prev,
    .home-section-1 .swiper-button-next {
        display: none !important;
    }

    /* Section 2: About Us 上下堆叠 */
    .home-section-2 .container {
        flex-direction: column;
        padding: 50px 20px;
        gap: 30px;
    }
    .home-section-2 .right-video {
        width: 100%;
        min-height: 200px;
    }
    .section-title-wrapper .section-title {
        font-size: 26px;
    }

    /* Section 3: 产品滑动 */
    .home-section-3 {
        padding: 40px 0;
    }
    .home-section-3 .swiper {
        padding-bottom: 40px !important;
    }
    .home-section-3 .img-container {
        height: 180px;
    }

    /* Section 4: 隐藏两侧图片，文字全宽 */
    .home-section-4 {
        padding: 50px 0;
    }
    .home-section-4 .container {
        flex-direction: column;
    }
    .home-section-4 .col-image {
        display: none;
    }
    .home-section-4 .col-content {
        width: 100%;
        flex: none;
    }
    .home-section-4 .section-title {
        font-size: 26px;
    }
    .home-section-4 .advantage-list li {
        font-size: 14px;
        line-height: 1.8;
    }

    /* Section 5: 新闻单列 + 按钮全宽 */
    .home-section-5 {
        padding: 50px 0;
    }

    .home-section-5 .s5-main-title {
        text-align: center;
        font-size: 26px;
    }
    .home-section-5 .s5-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .home-section-5 .s5-thumb {
        height: 200px;
    }
    .home-section-5 .s5-read-more {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        background-color: var(--brand-blue);
        color: #ffffff !important;
        border: none;
        border-radius: 4px;
        margin-top: 10px;
    }

    /* Section 6: CTA 按钮居中放大 */
    .home-section-6 {
        padding: 50px 0;
    }
    .home-section-6 .section-header .title {
        font-size: 26px;
    }
    .home-section-6 .section-desc p {
        font-size: 14px;
        text-align: left;
        text-align-last: left;
    }
    .home-section-6 .btn-inquiry {
        width: 90%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 15px;
        margin: 0 auto;
    }
}

/*  平板端适配 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .home-section-1 .swiper {
        height: 450px;
    }
    .home-section-4 .container {
        flex-direction: column;
    }
    .home-section-4 .col-image img {
        height: 300px;
    }
    .home-section-5 .s5-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-section-5 .s5-news-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}