﻿@charset "utf-8";

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

/* 1. 首页trust模块移动端适配（≤1299px） */
@media (max-width: 1299px) {


/* ===================== 手机端：首屏 H2 安全展示 永不重叠 ===================== */
.yh-trust-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

/* 让 h2 自然排在网格下方，正常文档流，绝对不重叠 */
.main-h2 {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #888 !important;
  text-align: center !important;
  font-weight: normal !important;
  margin: 10px 0 0 0 !important;
  padding: 0 15px !important;
  position: static !important; /* 取消绝对定位，关键！ */
}

/* 确保外层不挤压 */
.yh-trust-section {
  height: auto !important;
  min-height: unset !important;
  padding: 20px 0 !important;
}

    .yh-trust-container {
        width: 100% ;
        padding: 0 10px ;
        max-width: 100vw ;
    }

    .main-h1 {
        font-size: 13px ;
        margin-bottom: 8px ;
    }
    .yh-section-title {
        font-size: 25px ;
        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 ;
        font-weight: 700; 
    }
    .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: 25px ;
        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 h2 {
        font-size: 16px ;
        margin-bottom: 8px ;
    }
    .biz-content h3 {
        font-size: 14px ;
        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 ;
    }

.case-main-title {
    font-size: 26px;
    font-weight: bold;
    color: #000;
    margin: 20px 0;
    padding: 0;
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;
}

/* 3. 首页video-case模块 + video-case-module2 移动端统一适配 */
.video-case-module,
.video-case-module2 {
    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-module2 .tab-nav-wrapper  {
  padding: 0 10px !important;
  width: 100% !important;
  overflow: visible !important;
}
.video-case-module .tab-nav {
    display: flex ;
    justify-content: space-between ;
    overflow-x: hidden ;
    padding: 5px 0 ;
    gap: 2px ;
    width: 100% ;
    max-width: 100vw ;
}
.video-case-module2 .tab-nav {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* 2个一排 */
  gap: 6px !important; /* 标签之间间距 */
  width: 100% !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
  padding: 0 !important;
} 
.video-case-module .tab-nav li:nth-child(6),
.video-case-module2 .tab-nav li:nth-child(6) {
    display: none;
    visibility: hidden ;
    width: 0 ;
    height: 0 ;
}
.video-case-module .tab-nav li {
    border-radius: 4px;
    padding: 8px  12px ;
    font-size: 13px ;
    white-space: nowrap ;
    text-align: center ;
    width: auto ;  
    flex: none ;
}
.video-case-module2 .tab-nav li {
  width: 100% !important; /* 自动占满格子 */
  padding: 9px 6px !important;
  font-size: 13px !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.video-case-module .case-grid,
.video-case-module2 .case-grid {
    display: grid ;
    grid-template-columns: repeat(2, 1fr) ;
    gap: 10px ;
    width: 100% ;
    padding: 0 5px ;
}
.video-case-module .case-content:nth-child(6),
.video-case-module2 .case-content:nth-child(6) {
    display: none ;
    visibility: hidden ;
}
/* 重置case-item和a标签的居中 */
.video-case-module .case-item,
.video-case-module2 .case-item {
    width: 100% ;
    max-width: 100% ;
    text-align: left !important;
}
.video-case-module .case-item a,
.video-case-module2 .case-item a {
    text-align: left !important;
    display: block !important;
}
.video-case-module .case-item img,
.video-case-module2 .case-item img {
    width: 100% !important;
    height: auto !important;  /* 关键：覆盖 PC 端的 height:210px */
    aspect-ratio: 16 / 8 ;  /* 超宽屏电影感比例 */
    object-fit: cover ;
}
/* 标题样式 */
.video-case-module .case-title,
.video-case-module2 .case-title,
.video-case-module2 .case-title2 {
    font-size: 12px ;
    padding: 6px 6px 6px 8px !important;
    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,
.video-case-module2 .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 ;  /* 去掉左右内边距，视频就能满屏 */
    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% !important;
    height: auto;
    max-height: 250px;
    /* border-radius: 5px;  删除或注释掉 */
    overflow: hidden;
}
.huaxu-video {
    width: 100% ;
    height: 100% ;  /* ← 改成 100%，填满父容器 */
    max-width: 100% ; 
    object-fit: cover ; 
}

    /* 5. 首页service-section模块移动端适配 */
    .service-section {
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
        gap: 0px;
        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;
        padding: 0 14px !important; /* 左右留白，必生效 */
    }
    
    .service-nav .nav-item {
    height: 32px !important;        /* 更扁 */
    line-height: 26px;
    width: auto !important; /* 👈 取消自动拉宽 */
    min-width: 24% !important; /* 👈 按钮变窄！不再撑满 */
    font-size: 14px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    background-color: #333;
    color: #fff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}
    .service-content {
        width: 100% ;
        height: auto ;
            padding: 0px 15px 15px 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: auto ;
        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: 4px 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;
    /* 核心修复：把 inline-flex 改为 flex */
    display: flex;
    /* 强制垂直居中 */
    align-items: center;
    justify-content: center;
    /* 修复文字偏移问题 */
    line-height: 1;
}
    .content-panel {
        padding-right: 0;
    /* 确保内容区域高度完全自适应 */
        height: auto !important;
        overflow: visible !important;
    }
    .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 0 8px 18px ;
    }

}


@media only screen and (max-width:768px){
  .footer-desc { display:none !important; }
}
/* ==============================================
   首页小屏手机（≤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,
    .video-case-module2 .case-item img {
    height: auto ;
    aspect-ratio: 16 / 8 ;
    object-fit: cover ;
    }

    /* 首页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: auto; /* 取消固定高度 */
    }
    .more-btn {
        font-size: 13px;
        line-height: 1;        /* 核心：取消50px行高 */
        padding: 0 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==============================================
   首页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 ;
    }
}