﻿/* ===================== 移动端自适应样式 (仅屏幕宽度≤1299px生效) ===================== */
@charset "utf-8";

/* 终极强制：PC端永不显示移动端导航 */
.mobile-footer-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    z-index: -9999 !important;
    border: none !important;
    background: transparent !important;
}

/* 仅移动端显示（覆盖上面的隐藏规则） */
@media (max-width: 768px) {
    .mobile-footer-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100vw !important;
        height: 55px !important;
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        border-top: 1px solid #eeeeee !important;
    }
}

/* 再次强化：所有非移动端设备强制隐藏 */
@media (min-width: 769px) {
    .mobile-footer-nav,
    body .mobile-footer-nav,
    html body .mobile-footer-nav,
    footer .mobile-footer-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        z-index: -9999 !important;
    }
}

/* 1. 全局基础重置（移动端专属）+ PC端强制隐藏移动端元素 */
/* 核心：PC端彻底隐藏移动端底部导航 - 多重强化规则 */
body .mobile-footer-nav {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 1299px) {
    /* 全局样式适配 - 修复右侧空白问题 */
    html, body {
        width: 100% !important;
        overflow-x: hidden !important; /* 禁止横向滚动 */
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        font-size: 14px !important;
        background: #F9F9F9 !important;
        padding-bottom: 60px !important; /* 为底部导航留空 */
        max-width: 100vw !important; /* 限制最大宽度为视口宽度 */
    }

    /* 清除默认边距和内边距 */
    * {
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important; /* 所有元素最大宽度100% */
    }

    /* a标签样式统一 */
    a {
        text-decoration: none !important;
        color: inherit !important;
    }

    /* 列表样式重置 */
    ul, li {
        list-style: none !important;
    }

    /* 隐藏PC端专属元素 */
    .visually-hidden {
        display: none !important;
    }

    /* 清除浮动 */
    .clear {
        clear: both !important;
    }

    /* 核心修复：隐藏手机端的客户logo展示区域 */
    .huaxu-client-wrapper,
    .yh-trust-footer.huaxu-client-inner,
    .yh-client-tagline,
    .yh-client-logos.huaxu-client-logos {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }

    /* 核心修改：隐藏手机端所有文章列表区域 */
    .content-list-wrapper,
    .content-list-container,
    .content-grid,
    .content-card,
    .card-title,
    .content-list,
    .article-top-img,
    .article-img,
    .article-top-title,
    .article-top-desc {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }
}

/* 2. 头部样式适配（移动端） */
@media (max-width: 1299px) {
    #hd {
        height: auto !important;
        background: #F9F9F9 !important;
        padding: 10px 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    #header {
        width: 100% !important;
        height: auto !important;
        padding: 0 15px !important;
        position: relative !important;
        max-width: 100vw !important;
    }

    /* 核心修改：logo宽度调整为屏幕80%，等比例放大 */
    .logo {
        width: 80vw !important; /* 屏幕宽度的80% */
        max-width: 320px !important; /* 限制最大宽度，避免大屏手机logo过大 */
        height: auto !important; /* 高度自适应，保持等比例 */
        top: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .logo a {
        width: 100% !important; /* 继承logo宽度 */
        height: auto !important; /* 高度自适应 */
        min-height: 50px !important; /* 保证logo最小高度 */
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important; /* 居中显示 */
        display: block !important; /* 确保为块级元素 */
    }

    #nav_all {
        width: 100% !important;
        top: 80px !important; /* 调整导航位置，适配放大后的logo */
        height: auto !important;
        padding: 0 10px !important;
        max-width: 100vw !important;
    }

    #nav-onhoo {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
    }

    #nav-onhoo li {
        float: none !important;
        width: calc(25% - 5px) !important;
        margin-bottom: 5px !important;
    }

    #nav-onhoo li a, .bi:hover span {
        width: 100% !important;
        font-size: 12px !important;
        line-height: 30px !important;
        padding: 0 5px !important;
    }

    .text {
        position: static !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 10px !important;
        padding: 5px 0 !important;
        max-width: 100vw !important;
    }

    .textwz {
        font-size: 13px !important;
    }

    .textwz font {
        font-size: 13px !important;
    }
}

/* 3. 核心布局适配（移动端） */
@media (max-width: 1299px) {
    #hotall {
        width: 100% !important;
        padding: 0 15px !important;
        margin: 0 !important;
        max-width: 100vw !important;
    }

    /* 信任徽章区域适配 - 优化宽度和文字排版 */
    .yh-trust-section {
        padding: 20px 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

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

    .yh-section-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    /* 核心修复：充分利用宽度，两列布局 */
    .yh-trust-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 强制两列 */
        gap: 10px !important; /* 减小间距，增加可用宽度 */
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 5px !important;
    }

    /* 徽章容器：移除不必要的内边距，充分利用宽度 */
    .yh-trust-badge {
        max-width: 100% !important;
        min-height: auto !important; /* 取消固定最小高度 */
        height: auto !important;
        padding: 10px 8px !important; /* 减小内边距，增加文字空间 */
        width: 100% !important; /* 完全利用网格宽度 */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .yh-badge-icon {
        height: 40px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .yh-badge-icon svg {
        width: 36px !important;
        height: 36px !important;
    }

    .yh-badge-number {
        font-size: 28px !important;
        line-height: 1 !important;
        margin-bottom: 5px !important;
    }

    .yh-badge-label {
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
        width: 100% !important;
    }

    /* 核心修复：文字充分利用宽度，优化换行 */
    .yh-badge-desc {
        font-size: 12px !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
        width: 100% !important;
        word-wrap: break-word !important; /* 允许长单词换行 */
        word-break: break-all !important; /* 强制换行，充分利用宽度 */
        padding: 0 2px !important;
    }

    /* 四图横排区域适配 - 改为2×2布局 */
    .four-images-wrapper {
        width: 100% !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        max-width: 100vw !important;
    }

    /* 核心修改：四图改为网格布局 2×2 */
    .four-images-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 强制两列 */
        gap: 10px !important; /* 统一间距 */
        width: 100% !important;
        padding: 0 5px !important;
    }

    .four-images-list .biz-card {
        flex: none !important; /* 取消flex拉伸 */
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 0 !important; /* 取消底部间距，用grid gap替代 */
    }

    .biz-img {
        height: 120px !important; /* 减小高度，适配2×2布局 */
        width: 100% !important;
    }

    .biz-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* 保持图片比例 */
    }

    .biz-content {
        padding: 10px !important; /* 减小内边距 */
    }

    .biz-content h3 {
        font-size: 16px !important; /* 减小字体 */
        margin-bottom: 8px !important;
    }

    .biz-desc {
        font-size: 12px !important; /* 减小字体 */
        height: auto !important;
        -webkit-line-clamp: 2 !important; /* 限制两行文字 */
        margin-bottom: 10px !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .biz-links {
        justify-content: center !important;
    }

    .link-case, .link-price {
        padding: 4px 15px !important; /* 减小按钮内边距 */
        font-size: 11px !important; /* 减小按钮字体 */
    }

    /* 视频案例模块适配 - 仅展示前4个标签，严格2列布局 */
    .video-case-module {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 0 !important;
        margin: 10px 0 !important;
        max-width: 100vw !important;
    }

    .video-case-module .tab-nav-wrapper {
        padding: 0 10px !important;
        width: 100% !important;
        overflow: hidden !important; /* 隐藏溢出内容 */
    }

    /* 核心修改：仅显示前4个标签，隐藏第5个 */
    .video-case-module .tab-nav {
        display: flex !important;
        justify-content: space-between !important; /* 均匀分布4个标签 */
        overflow-x: hidden !important; /* 禁止横向滚动 */
        padding: 5px 0 !important;
        gap: 0 !important; /* 取消间距，用宽度分配 */
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* 隐藏第5个标签（品牌形象片） */
    .video-case-module .tab-nav li:nth-child(5) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* 4个标签均分宽度 */
    .video-case-module .tab-nav li {
        padding: 8px 0 !important; /* 取消左右内边距 */
        font-size: 13px !important; /* 减小字体 */
        white-space: nowrap !important;
        text-align: center !important;
        width: 25% !important; /* 4个标签各占25%宽度 */
        flex: none !important; /* 禁止拉伸 */
    }

    /* 核心修改：案例内容严格2个一排 */
    .video-case-module .case-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 强制两列 */
        gap: 10px !important;
        width: 100% !important;
        padding: 0 5px !important;
    }

    /* 隐藏第5个标签对应的内容 */
    .video-case-module .case-content:nth-child(5) {
        display: none !important;
        visibility: hidden !important;
    }

    .video-case-module .case-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .video-case-module .case-item img {
        height: 110px !important; /* 减小图片高度 */
        width: 100% !important;
        object-fit: cover !important;
    }

    .video-case-module .case-title {
        font-size: 12px !important; /* 减小字体 */
        padding: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .video-case-module .more-case-link {
        width: 100% !important;
        max-width: 300px !important;
        padding: 10px !important;
        font-size: 14px !important;
    }

    /* 拍摄花絮+客户展示区域适配 - 仅保留视频部分，隐藏客户logo */
    #process-section-wrapper {
        width: 100% !important;
        padding: 10px 0 !important;
        max-width: 100vw !important;
    }

    .process-container {
        width: 100% !important;
        padding: 0 15px !important;
        max-width: 100vw !important;
    }

    .process-header h2 {
        font-size: 20px !important;
    }

    .huaxu-container {
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
        max-width: 100vw !important;
    }

    .huaxu-video-wrapper {
        width: 100% !important;
        height: auto !important;
        max-width: 100vw !important;
    }

    .huaxu-video {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
        max-width: 100vw !important;
    }

    /* 服务板块适配 - panel-btn改为横排 */
    .service-section {
        width: 100% !important;
        flex-direction: column !important;
        padding: 15px 0 !important;
        gap: 10px !important;
        max-width: 100vw !important;
    }

    .service-nav {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        overflow-x: auto !important;
        max-width: 100vw !important;
    }

    .nav-item {
        height: 50px !important;
        width: calc(33.33% - 5px) !important;
        font-size: 14px !important;
        margin: 0 !important;
    }

    .service-content {
        width: 100% !important;
        height: auto !important;
        padding: 15px !important;
        max-width: 100vw !important;
    }

    /* panel-btn 横排样式 - 核心修改：加高框体、加大字体 */
    .panel-btn {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 15px !important;
        text-align: center !important;
        max-width: 100vw !important;
    }

    .panel-btn ul {
        display: flex !important;
        justify-content: center !important;
        gap: 15px !important; /* 增大间距，更美观 */
        flex-wrap: wrap !important;
        width: 100% !important;
        padding: 0 10px !important;
    }

    .panel-btn li {
        flex: 1 !important;
        max-width: calc(33.33% - 10px) !important;
        min-width: 100px !important; /* 增大最小宽度 */
        height: 60px !important; /* 加高框体高度 */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 核心修改：加大字体、加高按钮 */
    .more-btn {
        padding: 0 !important; /* 取消内边距，用li高度控制 */
        font-size: 16px !important; /* 加大字体 */
        font-weight: 600 !important; /* 加粗字体，更醒目 */
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important; /* 继承li高度 */
        text-align: center !important;
        line-height: 60px !important; /* 行高等于高度，垂直居中 */
        border-radius: 8px !important; /* 增大圆角，更美观 */
    }

    .content-panel {
        padding-right: 0 !important;
        height: auto !important;
    }

    .panel-inner {
        flex-direction: column !important;
        height: auto !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .panel-img {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .panel-img img {
        height: auto !important;
        max-height: 200px !important;
        width: 100% !important;
    }

    .panel-text {
        max-width: 100% !important;
    }

    .panel-text h2 {
        font-size: 18px !important;
        text-align: center !important;
    }

    .panel-text li {
        font-size: 13px !important;
        padding: 8px !important;
    }

    /* 隐藏手机端的box1底部案例导航图片 */
    #box1, .box1, .thumbnailwrapper2 {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
}

/* 4. 页脚样式适配（移动端） */
@media (max-width: 1299px) {
    #foot {
        width: 100% !important;
        margin-top: 10px !important;
        max-width: 100vw !important;
    }

    #foot_980 {
        width: 100% !important;
        height: auto !important;
        padding: 10px 15px !important;
        max-width: 100vw !important;
    }

    .hot_all_footer.container {
        padding: 10px !important;
        max-width: 100vw !important;
    }

    .foot_ba {
        width: 100% !important;
        font-size: 12px !important;
        text-align: center !important;
        margin-top: 10px !important;
        max-width: 100vw !important;
    }

    /* 悬浮窗适配 */
    .yb_conct {
        display: none !important; /* 移动端隐藏PC悬浮窗 */
    }
}

/* 5. 移动端底部导航（核心：仅移动端显示，PC端完全隐藏） */
@media (max-width: 768px) {
    .mobile-footer-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important; /* 视口宽度 */
        height: 55px !important;
        line-height: 1 !important;
        background: #ffffff !important;
        border-top: 1px solid #eeeeee !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 9999 !important;
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05) !important;
        padding: 0 2px !important;
        touch-action: none !important;
        -webkit-touch-callout: none !important;
        top: auto !important; /* 覆盖错误定位 */
        /* 覆盖全局隐藏样式 */
        height: 55px !important;
        width: 100vw !important;
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
    }

    /* 导航项等分排列 */
    .mobile-footer-nav .nav-item {
        flex: 1 !important;
        height: 48px !important;
        margin: 0 1px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #333333 !important;
        text-align: center !important;
        text-decoration: none !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        background: #ffffff !important;
    }

    /* 电话按钮高亮 */
    .mobile-footer-nav .phone-btn {
        background: #ff7800 !important;
        color: #ffffff !important;
    }

    .mobile-footer-nav .phone-btn i {
        color: #ffffff !important;
        font-size: 18px !important;
    }

    /* 图标样式 */
    .mobile-footer-nav .nav-item i {
        font-size: 18px !important;
        margin-bottom: 3px !important;
        color: #666666 !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: block !important;
    }
}

/* 6. 小屏手机适配（≤480px） */
@media (max-width: 480px) {
    /* 视频案例网格保持两列（严格2个一排） */
    .video-case-module .case-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 信任徽章保持两列，进一步优化 */
    .yh-trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .yh-trust-badge {
        padding: 8px 5px !important;
    }

    .yh-badge-desc {
        font-size: 11px !important;
    }

    /* 四图区域小屏优化 */
    .four-images-list {
        gap: 8px !important;
    }

    .biz-img {
        height: 100px !important;
    }

    .biz-content h3 {
        font-size: 14px !important;
    }

    /* 视频案例标签小屏优化 */
    .video-case-module .tab-nav li {
        font-size: 12px !important;
    }

    .video-case-module .case-item img {
        height: 90px !important;
    }

    /* 客户logo改为2列（PC端生效） */
    .huaxu-client-logos {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 导航项字体更小 */
    #nav-onhoo li a {
        font-size: 11px !important;
    }

    /* 底部导航图标缩小 */
    .mobile-footer-nav .nav-item i {
        font-size: 16px !important;
    }

    .mobile-footer-nav .nav-item span {
        font-size: 11px !important;
    }

    /* panel-btn 小屏适配 - 保持加高和大字 */
    .panel-btn ul {
        gap: 8px !important;
    }

    .panel-btn li {
        max-width: calc(33.33% - 8px) !important;
        height: 50px !important; /* 小屏适当减小高度，但仍高于之前 */
    }

    .more-btn {
        font-size: 14px !important; /* 小屏适当减小字体，但仍高于之前 */
        line-height: 50px !important;
    }

    /* logo小屏适配 */
    .logo {
        min-height: 40px !important;
    }
}

/* 7. 紧急兜底：防止样式冲突 - 强化PC端隐藏移动端导航 */
@media (min-width: 1300px) {
    /* PC端强制隐藏移动端元素 - 多重保障 + 新增权重强化 */
    body .mobile-footer-nav,
    html body .mobile-footer-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        z-index: -9999 !important;
        border: none !important;
        background: transparent !important;
    }

    /* 确保PC端box1正常显示 */
    #box1, .box1, .thumbnailwrapper2 {
        display: block !important;
        visibility: visible !important;
    }

    /* 恢复PC端客户logo展示 */
    .huaxu-client-wrapper,
    .yh-trust-footer.huaxu-client-inner,
    .yh-client-tagline,
    .yh-client-logos.huaxu-client-logos {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
    }

    /* 恢复PC端文章列表展示 */
    .content-list-wrapper,
    .content-list-container,
    .content-grid,
    .content-card {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
    }

    /* PC端恢复四图横排和视频案例5个标签 */
    .four-images-list {
        display: flex !important;
        grid-template-columns: none !important;
    }

    .video-case-module .tab-nav li:nth-child(5) {
        display: block !important;
        visibility: visible !important;
        width: auto !important;
        height: auto !important;
    }

    .video-case-module .case-content:nth-child(5) {
        display: block !important;
        visibility: visible !important;
    }

    /* PC端恢复logo原始样式 */
    .logo {
        width: 180px !important;
        height: 40px !important;
    }

    /* PC端恢复panel-btn原始样式 */
    .panel-btn li {
        height: auto !important;
    }

    .more-btn {
        font-size: 12px !important;
        line-height: normal !important;
        padding: 8px 10px !important;
    }
}

/* 8. 全局兜底：修复右侧空白问题 + 强化PC端隐藏移动端导航 */
* {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html {
    width: 100% !important;
    overflow-x: hidden !important;
}

body {
    position: relative !important;
    width: 100% !important;
    overflow-x: hidden !important;
}