﻿@charset "utf-8";

/* ==============================================
   首页移动端独有样式（仅首页使用）
   ============================================== */

/* 1. 首页trust模块移动端适配（≤1299px） */
@media (max-width: 1299px) {
    .yh-trust-section {
        padding: 20px 0 ;
        width: 100% ;
        max-width: 100vw ;
    }
    .yh-trust-container {
        width: 100% ;
        padding: 0 15px ;
        max-width: 100vw ;
    }
    .yh-section-title {
        font-size: 17px ;
        line-height: 1.2 ;
        margin-bottom: 10px ;
        text-align: center ;
        white-space: nowrap ;
        padding: 0 3px ;
        letter-spacing: 0.2px ;
        max-width: 100% ;
        overflow: hidden ;
        text-overflow: ellipsis ;
    }
    .yh-trust-grid {
        display: grid ;
        grid-template-columns: repeat(2, 1fr) ;
        gap: 10px ;
        width: 100% ;
        max-width: 100vw ;
        padding: 0 5px ;
    }
    .yh-trust-badge {
        max-width: 100% ;
        min-height: auto ;
        height: auto ;
        padding: 10px 8px ;
        width: 100% ;
        display: flex ;
        flex-direction: column ;
        align-items: center ;
        justify-content: center ;
        text-align: center ;
    }
    .yh-badge-icon {
        height: 40px ;
        margin-bottom: 8px ;
        width: 100% ;
        display: flex ;
        justify-content: center ;
    }
    .yh-badge-icon svg {
        width: 36px ;
        height: 36px ;
    }
    .yh-badge-number {
        font-size: 28px ;
        line-height: 1 ;
        margin-bottom: 5px ;
    }
    .yh-badge-label {
        font-size: 16px ;
        line-height: 1.2 ;
        margin-bottom: 5px ;
        width: 100% ;
    }
    .yh-badge-desc {
        font-size: 12px ;
        line-height: 1.3 ;
        max-width: 100% ;
        width: 100% ;
        word-wrap: break-word ;
        word-break: break-all ;
        padding: 0 2px ;
    }

    /* 2. 首页four-images模块移动端适配 */
    .four-images-wrapper {
        width: 100% ;
        padding: 10px 0 ;
        margin: 0 ;
        max-width: 100vw ;
    }
    .four-images-list {
        display: grid ;
        grid-template-columns: repeat(2, 1fr) ;
        gap: 10px ;
        width: 100% ;
        padding: 0 5px ;
    }
    .four-images-list .biz-card {
        flex: none ;
        max-width: 100% ;
        width: 100% ;
        margin-bottom: 0 ;
    }
    .biz-img {
        height: 120px ;
        width: 100% ;
    }
    .biz-img img {
        width: 100% ;
        height: 100% ;
        object-fit: cover ;
    }
    .biz-content {
        padding: 10px ;
    }
    .biz-content h3 {
        font-size: 16px ;
        margin-bottom: 8px ;
    }
    .biz-desc {
        font-size: 12px ;
        height: auto ;
        -webkit-line-clamp: 2 ;
        margin-bottom: 10px ;
        display: -webkit-box ;
        -webkit-box-orient: vertical ;
        overflow: hidden ;
    }
    .biz-links {
        justify-content: center ;
    }
    .link-case, .link-price {
        padding: 4px 15px ;
        font-size: 11px ;
    }

 /* 3. 首页video-case模块移动端适配 */
.video-case-module {
    width: 100% ;
    max-width: 100% ;
    padding: 15px 0 ;
    margin: 10px 0 ;
    max-width: 100vw ;
}
.video-case-module .tab-nav-wrapper {
    padding: 0 10px ;
    width: 100% ;
    overflow: hidden ;
}
.video-case-module .tab-nav {
    display: flex ;
    justify-content: space-between ;
    overflow-x: hidden ;
    padding: 5px 0 ;
    gap: 0 ;
    width: 100% ;
    max-width: 100vw ;
}
.video-case-module .tab-nav li:nth-child(5) {
    display: none ;
    visibility: hidden ;
    width: 0 ;
    height: 0 ;
}
.video-case-module .tab-nav li {
    padding: 8px 0 ;
    font-size: 13px ;
    white-space: nowrap ;
    text-align: center ;
    width: 25% ;
    flex: none ;
}
.video-case-module .case-grid {
    display: grid ;
    grid-template-columns: repeat(2, 1fr) ;
    gap: 10px ;
    width: 100% ;
    padding: 0 5px ;
}
.video-case-module .case-content:nth-child(5) {
    display: none ;
    visibility: hidden ;
}
/* 新增：重置case-item和a标签的居中 */
.video-case-module .case-item {
    width: 100% ;
    max-width: 100% ;
    text-align: left !important; /* 关键：取消父元素居中 */
}
.video-case-module .case-item a {
    text-align: left !important; /* 关键：取消a标签居中 */
    display: block !important; /* 确保a标签占满宽度 */
}
.video-case-module .case-item img {
    height: 110px ;
    width: 100% ;
    object-fit: cover ;
}
/* 优化后的标题样式 */
.video-case-module .case-title {
    font-size: 12px ;
    padding: 6px 6px 6px 8px !important; /* 左内边距8px，避免贴边 */
    white-space: nowrap ;
    overflow: hidden ;
    text-overflow: ellipsis ;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important; /* 内边距不溢出 */
}
.video-case-module .more-case-link {
    width: 100% ;
    max-width: 300px ;
    padding: 10px ;
    font-size: 14px ;
}
    /* 4. 首页process-section模块移动端适配 */
    #process-section-wrapper {
        width: 100% ;
        padding: 10px 0 ;
        max-width: 100vw ;
    }
    .process-container {
        width: 100% ;
        padding: 0 15px ;
        max-width: 100vw ;
    }
    .process-header h2 {
        font-size: 20px ;
    }
    .huaxu-container {
        flex-direction: column ;
        width: 100% ;
        gap: 15px ;
        max-width: 100vw ;
    }
    .huaxu-video-wrapper {
        width: 100% ;
        height: auto ;
        max-width: 100vw ;
    }
    .huaxu-video {
        width: 100% ;
        height: auto ;
        max-height: 250px ;
        max-width: 100vw ;
    }

    /* 5. 首页service-section模块移动端适配 */
    .service-section {
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
        gap: 10px;
        max-width: 100vw;
        margin: 0;
        background: transparent;
        align-items: stretch;
    }
    
    .service-nav {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        overflow-x: auto;
        max-width: 100vw;
        scrollbar-width: none;
    }
    
    .service-nav .nav-item {
        height: 40px;
        width: calc(33.33% - 5px);
        font-size: 14px;
        margin: 0;
        background-color: #333;
        color: #fff;
        flex-direction: row;
        border-radius: 0;
        cursor: auto;
    }
    .service-content {
        width: 100% ;
        height: auto ;
        padding: 15px ;
        max-width: 100vw ;
    }
    .panel-btn {
        position: static ;
        transform: none ;
        width: 100% ;
        margin-top: 15px ;
        text-align: center ;
        max-width: 100vw ;
        padding: 0 5px ;
        box-sizing: border-box ;
    }
    .panel-btn ul {
        display: flex ;
        justify-content: space-between ;
        align-items: center ;
        gap: 8px ;
        flex-wrap: nowrap ;
        width: 100% ;
        padding: 0 ;
        margin: 0 ;
        list-style: none ;
        box-sizing: border-box ;
    }
    .panel-btn li {
        flex: 1 1 0 ;
        max-width: calc(33.333% - 6px) ;
        min-width: 80px ;
        height: 60px ;
        display: flex ;
        align-items: center ;
        justify-content: center ;
        padding: 0 ;
        margin: 0 ;
        box-sizing: border-box ;
    }
    .more-btn {
        padding: 0 8px;
        font-size: 14px;
        margin: 0;
        width: 100%;
        height: 32px;
        text-decoration: none;
        color: #fff;
        border-radius: 2px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: #0077cc;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .content-panel {
        padding-right: 0 ;
        height: auto ;
    }
    .panel-inner {
        flex-direction: column ;
        height: auto ;
        gap: 15px ;
        width: 100% ;
    }
    .panel-img {
        width: 100% ;
        max-width: 100vw ;
    }
    .panel-img img {
        height: auto ;
        max-height: 200px ;
        width: 100% ;
    }
    .panel-text {
        max-width: 100% ;
    }
    .panel-text h2 {
        display: none;
    }
    .panel-text li {
        font-size: 13px ;
        padding: 8px ;
    }
}

/* ==============================================
   首页小屏手机（≤480px）独有适配
   ============================================== */
@media (max-width: 480px) {
    /* 首页trust模块小屏适配 */
    .yh-trust-grid {
        grid-template-columns: repeat(2, 1fr) ;
        gap: 8px ;
    }
    .yh-trust-badge {
        padding: 8px 5px ;
    }
    .yh-badge-desc {
        font-size: 11px ;
    }

    /* 首页four-images模块小屏适配 */
    .four-images-list {
        gap: 8px ;
    }
    .biz-img {
        height: 100px ;
    }
    .biz-content h3 {
        font-size: 14px ;
    }

    /* 首页video-case模块小屏适配 */
    .video-case-module .case-grid {
        grid-template-columns: repeat(2, 1fr) ;
    }
    .video-case-module .tab-nav li {
        font-size: 12px ;
    }
    .video-case-module .case-item img {
        height: 90px ;
    }

    /* 首页huaxu-client-logos小屏适配 */
    .huaxu-client-logos {
        grid-template-columns: repeat(2, 1fr) ;
    }
    #nav-onhoo li a {
        font-size: 11px ;
    }
    
    /* 首页面板按钮小屏适配 */
    .panel-btn ul {
        gap: 5px ;
    }
    .panel-btn li {
        max-width: calc(33.333% - 4px) ;
        height: 50px ;
    }
    .more-btn {
        font-size: 14px ;
        line-height: 50px ;
    }
}

/* ==============================================
   首页PC端（≥1300px）独有样式还原
   ============================================== */
@media (min-width: 1300px) {
    /* 首页four-images模块PC端还原 */
    .four-images-list {
        display: flex ;
        grid-template-columns: none ;
    }

    /* 首页video-case模块PC端还原 */
    .video-case-module .tab-nav li:nth-child(5) {
        display: block ;
        visibility: visible ;
        width: auto ;
        height: auto ;
    }
    .video-case-module .case-content:nth-child(5) {
        display: block ;
        visibility: visible ;
    }

    /* 首页面板按钮PC端还原 */
    .panel-btn li {
        height: auto ;
    }
    .more-btn {
        font-size: 12px ;
        line-height: normal ;
        padding: 8px 10px ;
    }
}