/* ============================================================
 *  江河信息 - 全局响应式布局样式表
 *  responsive.css
 *
 *  用途：所有页面统一导入此文件即可获得完整的响应式适配，
 *        无需修改任何现有样式。
 *  使用：<link rel="stylesheet" href="../components/responsive.css">
 *
 *  断点设计（与首页已有体系一致）：
 *    ≤ 1600px — 大屏笔记本
 *    ≤ 1400px — 小型笔记本
 *    ≤ 1200px — 平板横屏 / 小笔记本
 *    ≤ 992px  — 平板竖屏
 *    ≤ 768px  — 手机横屏 / 小平板
 *    ≤ 576px  — 手机竖屏
 * ============================================================ */

/* 公共安全基线：超宽屏保持居中，窄屏避免媒体元素撑出视口。 */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

img,
video,
canvas {
    max-width: 100%;
}

/* 外部 Bootstrap 不可达时的原生导航兜底，保证内网 iPhone 仍可操作。 */
.no-bootstrap .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.no-bootstrap .navbar-collapse {
    flex-grow: 1;
}

.no-bootstrap .navbar-toggler {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(0, 66, 145, 0.16);
    border-radius: 10px;
    background: #f4f8ff;
}

.no-bootstrap .navbar-toggler-icon {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: #254867;
    box-shadow: 0 -6px #254867, 0 6px #254867;
}

@media (max-width: 991.98px) {
    .no-bootstrap .navbar-toggler {
        display: inline-flex;
    }

    .no-bootstrap .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }

    .no-bootstrap .navbar-collapse.collapse.show {
        display: block !important;
    }

    .no-bootstrap .navbar-nav {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================
 * 1. ≤ 1600px — 大屏笔记本
 * ========================================== */
@media (max-width: 1600px) {
    /* --- 通用容器 --- */
    .case-section,
    .news-section,
    .topic-section,
    .industry-section {
        max-width: 95%;
    }

    /* --- 产品介绍两栏布局 --- */
    .inducation_detail_right {
        width: 55%;
        height: 360px;
    }
    .inducation_detail_left {
        width: 45%;
    }

    /* --- 首页 Hero 卡片 --- */
    .hero-banner {
        min-height: 900px;
    }
    .hero-card {
        left: 50%;
        transform: translateX(-15%);
        width: 650px;
        height: 400px;
    }
    .hero-card.shift-right {
        left: 50%;
        transform: translateX(-5%);
    }
    .hero-card-video,
    .hero-card-canvas {
        height: 400px;
    }
    .hero-card-body {
        top: 220px;
        left: 50px;
        min-width: auto;
        width: 500px;
        height: auto;
        padding: 2rem 1.5rem 1.5rem;
    }
    .hero-card-body h3 {
        font-size: 48px;
    }
    .hero-card-body p {
        font-size: 18px;
        margin-top: 20px;
    }

    /* --- 导航栏 --- */
    .hero-navbar .container {
        min-width: auto;
        margin: 0.8rem 1.5rem;
        max-width: 100%;
    }
    .hero-navbar .gs-name {
        width: 340px;
        height: 40px;
    }
    .hero-nav-list .nav-link {
        font-size: 16px;
        padding: 0.4rem 0.8rem !important;
        margin: 0 0.5rem;
    }
    .hero-nav-btn {
        width: 200px;
        height: 50px;
        font-size: 16px;
    }

    /* --- 导航 Mega Menu --- */
    .hero-navbar .mega-menu {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        max-width: 100vw;
        padding: 20px;
        gap: 20px;
    }
    .hero-navbar .mega-sidebar {
        flex: 0 0 220px;
    }
    .hero-navbar .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    /* --- 标准导航栏 --- */
    .navbar .container {
        width: calc(100% - 80px);
        padding: 0 24px;
    }
    .navbar .gs-name {
        width: 280px;
        height: 34px;
    }
    .navbar-nav .nav-link {
        font-size: 16px !important;
        padding: 0.4rem 0.8rem !important;
        margin: 0 0.5rem;
    }

    /* --- Tab 按钮 --- */
    .case-tab,
    .industry-tab {
        width: 280px;
        height: 52px;
        line-height: 52px;
        font-size: 16px;
    }

    /* --- 新闻 --- */
    .news-big {
        min-width: auto;
    }
}

/* 公共导航在折叠状态下占满可用宽度，避免 mega 菜单按导航文字宽度收窄。 */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        width: 100%;
        align-items: stretch !important;
    }

    .navbar .navbar-nav > .nav-item,
    .navbar .mega-dropdown {
        width: 100%;
    }

    .navbar .mega-dropdown > .mega-menu {
        width: 100% !important;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ==========================================
 * 2. ≤ 1400px — 小型笔记本
 * ========================================== */
@media (max-width: 1400px) {
    /* --- Hero Banner --- */
    .hero-banner {
        min-height: 750px;
    }
    .hero-card {
        width: 520px;
        height: 320px;
    }
    .hero-card.transparent {
        width: 60%;
    }
    .hero-card.shift-right {
        transform: translateX(-8%);
    }
    .hero-card-video,
    .hero-card-canvas {
        height: 320px;
    }
    .hero-card-body {
        top: 180px;
    }
    .hero-card-body h3 {
        font-size: 40px;
    }
    .hero-card-body p {
        font-size: 16px;
    }
    .hero-nav-btn {
        width: 160px;
        height: 44px;
        font-size: 14px;
    }

    /* --- 导航 --- */
    .hero-navbar .container {
        margin: 0.6rem 1.2rem;
    }
    .hero-navbar .gs-name {
        width: 280px;
        height: 34px;
    }
    .hero-nav-list .nav-link {
        font-size: 14px;
        padding: 0.35rem 0.6rem !important;
    }

    /* --- 标准导航栏 --- */
    .navbar .container {
        width: calc(100% - 56px);
        padding: 0 20px;
    }
    .navbar .gs-name {
        width: 240px;
        height: 30px;
    }
    .navbar-nav .nav-link {
        font-size: 14px !important;
        padding: 0.35rem 0.6rem !important;
        margin: 0 0.3rem;
    }

    /* --- 产品介绍 --- */
    .inducation_detail_right {
        width: 58%;
        height: 320px;
    }
    .inducation_detail_left {
        width: 42%;
    }

    /* --- Tab --- */
    .case-tab,
    .industry-tab {
        width: 250px;
        height: 48px;
        line-height: 48px;
        font-size: 15px;
    }

    /* --- 主题卡片 --- */
    .topic-cards {
        gap: 1rem;
    }
    .topic-card img {
        height: 160px;
    }
}

/* ==========================================
 * 3. ≤ 1200px — 平板横屏 / 小笔记本
 * ========================================== */
@media (max-width: 1200px) {
    /* === 通用布局 === */

    /* --- Hero Banner（所有页面） --- */
    .hero-banner {
        min-height: auto;
        height: auto;
        padding: 3rem 1rem;
    }
    .hero-content {
        width: auto;
        max-width: 100%;
        padding: 0 1rem;
        left: 0;
    }
    .hero-content h2 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 15px;
    }

    /* --- 首页 Hero 卡片 --- */
    .hero-card {
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        height: auto;
        position: relative;
        margin: 0 auto;
    }
    .hero-card.shift-right {
        left: 50%;
        transform: translateX(-50%);
    }
    .hero-card.transparent .hero-card-video,
    .hero-card.transparent .hero-card-canvas {
        max-height: 500px;
    }
    .hero-card-video,
    .hero-card-canvas {
        height: auto;
        max-height: 400px;
    }
    .hero-card-body {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 2rem 1rem 1rem;
        text-align: center;
    }
    .hero-card-body h3 {
        font-size: 32px;
    }
    .hero-card-body p {
        font-size: 15px;
        margin-top: 10px;
    }
    .video-play {
        margin: 20px auto 0;
    }

    /* --- Hero 导航 --- */
    .hero-nav {
        bottom: 30px;
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-nav-btn {
        width: 130px;
        height: 40px;
        font-size: 13px;
    }

    /* --- 导航栏 --- */
    .hero-navbar .container {
        margin: 0.5rem 1rem;
        flex-wrap: wrap;
    }
    .hero-navbar .gs-name {
        width: 200px;
        height: 28px;
    }
    .hero-nav-list .nav-link {
        font-size: 13px;
        padding: 0.3rem 0.5rem !important;
        margin: 0 0.15rem;
    }
    .hero-navbar .mega-menu {
        position: fixed;
        top: auto;
        left: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
        flex-direction: column;
        gap: 14px;
        padding: 14px;
        max-height: 70vh;
        overflow-y: auto;
    }
    .hero-navbar .mega-sidebar {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 10px;
        display: flex;
        gap: 10px;
    }
    .hero-navbar .sidebar-item {
        flex: 1;
        margin-bottom: 0;
    }
    .hero-navbar .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* === 标准导航栏 === */
    .navbar .container {
        width: calc(100% - 32px);
        height: 52px;
        border-radius: 26px;
        padding: 0 16px;
        margin-top: 8px;
    }
    .navbar .gs-name {
        width: 180px;
        height: 24px;
    }
    .navbar-nav .nav-link {
        font-size: 13px !important;
        padding: 0.3rem 0.5rem !important;
        margin: 0 0.15rem;
    }
    .nav-link-button {
        width: 130px;
        height: 34px;
        font-size: 13px;
    }
    .mega-menu {
        padding: 16px;
        gap: 12px;
        border-radius: 0 0 26px 26px;
    }
    .mega-sidebar {
        flex: 0 0 200px;
    }
    .sidebar-item {
        height: 60px;
        gap: 1rem;
        padding: 6px 10px;
    }
    .sidebar-content h4 {
        font-size: 14px;
    }
    .sidebar-content p {
        font-size: 11px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .product-card h6 {
        font-size: 14px;
    }

    /* === 产品介绍两栏 → 上下堆叠 === */
    .inducation_detail {
        flex-direction: column;
        gap: 1.5rem;
    }
    .inducation_detail_left,
    .inducation_detail_right {
        width: 100%;
        height: auto;
    }
    .inducation_detail_right {
        height: 300px;
    }

    /* === 产品页面通用 === */

    /* --- 架构图区域 --- */
    .toru-bg {
        padding: 3rem 0;
    }
    .toru-bg img {
        max-width: 100%;
        height: auto;
    }

    /* --- 应用案例图标导航 --- */
    .case-container {
        gap: 3rem;
        justify-content: center;
    }
    .case-item {
        padding: 4px 0.8rem;
    }
    .case-icon {
        width: 64px;
        height: 64px;
    }
    .case-item.selected .case-icon {
        width: 80px;
        height: 80px;
    }
    .case-title {
        font-size: 15px;
    }
    .app-main {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .app-case {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .app-case-item {
        width: auto;
        flex: 0 0 auto;
    }
    .app-case-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .app-case-img img {
        max-width: 100%;
        height: auto;
    }

    /* --- Stepper 进度条（修复绝对定位偏移） --- */
    .stepper-container {
        position: relative !important;
        left: auto !important;
        max-width: 100%;
        margin: 0 auto;
    }
    .stepper-container::before {
        left: 10px;
    }

    /* --- 设备列表 --- */
    .equipment-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* === Tab 标签栏 === */
    .case-tabs,
    .honor-tabs,
    .industry-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .case-tab,
    .industry-tab {
        width: 30%;
        min-width: 150px;
        height: 44px;
        line-height: 44px;
        font-size: 14px;
    }
    .honor-tab {
        width: auto;
        min-width: 150px;
        flex: 1;
    }

    /* === 新闻列表 === */
    .news-list {
        grid-template-columns: 1fr;
    }
    .news-big {
        border-right: none;
        padding-right: 0;
        min-width: auto;
    }
    .news-big img {
        height: 220px;
    }
    .company-news-list {
        grid-template-columns: 1fr;
    }

    /* === 行业/主题卡片网格 === */
    .industry-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .industry-tabs {
        gap: 1rem;
    }
    .topic-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* === 集团新闻轮播 === */
    .group-news-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
    .group-news-card .card-image {
        height: 130px;
    }

    /* === 走进江河页面 === */

    /* --- 公司介绍 --- */
    .join-induction {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .join-induction > p {
        width: 100%;
    }
    .join-induction > div {
        width: 100%;
        justify-content: center;
    }

    /* --- 企业文化 --- */
    .corporate-culture-container {
        height: auto;
        flex-wrap: wrap;
    }
    .culture-item {
        flex: 0 0 48%;
        height: 340px;
    }

    /* --- 公司荣誉 --- */
    .honor-carousel-container {
        padding: 0 1rem;
    }
    .honor-item {
        width: calc(100% / 2 - 0.75rem);
    }

    /* --- 公司地址 --- */
    .local-card {
        gap: 2rem;
    }
    .local-card-item {
        width: 30%;
    }

    /* === 新闻详情页 === */
    .container-wrap {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .page-footer {
        max-width: 100%;
    }

    /* --- 通用按钮 --- */
    .nav-link-button {
        width: 130px;
        height: 34px;
        font-size: 13px;
    }
}

/* ==========================================
 * 4. ≤ 992px — 平板竖屏
 * ========================================== */
@media (max-width: 991.98px) {
    /* === 通用 === */
    .section-title {
        font-size: 24px;
    }

    /* --- Hero --- */
    .hero-banner {
        min-height: auto;
        height: auto;
        padding: 2rem 0.5rem;
    }
    .hero-content h2 {
        font-size: 26px;
    }
    .hero-content p {
        font-size: 14px;
    }

    /* --- 首页 Hero 卡片 --- */
    .hero-card {
        width: 92%;
    }
    .hero-card-body h3 {
        font-size: 26px;
    }
    .hero-card-body p {
        font-size: 14px;
    }
    .hero-nav-btn {
        width: 110px;
        height: 36px;
        font-size: 12px;
        letter-spacing: 0;
    }

    /* --- 导航 --- */
    .hero-navbar {
        position: relative;
        background: rgba(0, 0, 0, 0.75);
    }
    .hero-navbar .container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    .hero-nav-list {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0;
    }
    .hero-nav-list .nav-link {
        font-size: 12px;
        padding: 0.25rem 0.5rem !important;
        margin: 0;
    }

    /* === 标准导航栏（992px 以下 Bootstrap 汉堡菜单触发） === */
    .navbar .container {
        width: calc(100% - 24px);
        height: 48px;
        border-radius: 24px;
        padding: 0 12px;
        margin-top: 6px;
    }
    .navbar .gs-name {
        width: 150px;
        height: 20px;
    }
    .navbar-nav .nav-link {
        font-size: 14px !important;
        padding: 0.5rem 1rem !important;
        margin: 0;
    }
    .nav-link-button {
        width: 120px;
        height: 32px;
        font-size: 13px;
    }
    /* 移动端折叠菜单背景 */
    .navbar-collapse {
        background: #fff;
        border-radius: 0 0 20px 20px;
        padding: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        margin-top: 4px;
    }
    /* Mega Menu 在平板竖屏全宽堆叠 */
    .mega-menu {
        position: static !important;
        width: 100% !important;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        box-shadow: none;
        border-radius: 0;
        background: #f8fafd;
    }
    .mega-sidebar {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .sidebar-item {
        flex: 0 0 auto;
        height: auto;
        padding: 6px 12px;
        border-radius: 6px;
    }
    .mega-content {
        flex: auto;
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* --- Tab 按钮 --- */
    .case-tab2.active {
        font-size: 24px;
    }
    .case-tab,
    .industry-tab {
        width: 48%;
        height: 42px;
        line-height: 42px;
        font-size: 14px;
    }
    .case-tab:last-child {
        width: 98%;
    }

    /* --- 产品介绍 --- */
    .inducation_detail_right {
        height: 240px;
    }
    .inducation_detail_leftTitle {
        font-size: 18px;
    }
    .inducation_check_text {
        font-size: 14px;
    }
    .left-bootom h3 {
        font-size: 14px;
    }
    .left-bootom p {
        font-size: 14px;
    }

    /* --- 行业/主题 --- */
    .topic-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .topic-card img {
        height: 150px;
    }
    .industry-cards {
        grid-template-columns: 1fr 1fr;
    }
    .industry-tab {
        width: 45%;
    }

    /* --- 新闻 --- */
    .news-big img {
        height: 180px;
    }
    .news-small img {
        width: 100px;
        height: 70px;
    }
    .news-small-title {
        font-size: 14px;
    }
    .news-big-title {
        font-size: 16px;
    }
    .company-news-title {
        font-size: 18px;
    }
    .company-news-desc {
        font-size: 14px;
    }

    /* --- 集团新闻轮播 --- */
    .group-news-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
    .group-news-card .card-image {
        height: 120px;
    }

    /* --- 企业文化卡片 --- */
    .culture-item {
        flex: 0 0 48%;
        height: 280px;
    }

    /* --- 公司荣誉 --- */
    .honor-item {
        width: calc(50% - 0.75rem);
        height: 240px;
    }
    .honor-tab {
        font-size: 14px;
        padding: 0.6rem 1rem;
    }

    /* --- 公司地址 --- */
    .local-card {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .local-card-item {
        width: 45%;
    }

    /* --- 左列特性列表 --- */
    .left-main {
        grid-template-columns: 1fr 1fr;
    }

    /* --- 案例图标导航 --- */
    .case-container {
        gap: 2rem;
    }
    .case-icon {
        width: 56px;
        height: 56px;
    }
    .case-item.selected .case-icon {
        width: 70px;
        height: 70px;
    }
    .case-title {
        font-size: 14px;
    }

    /* --- 面包屑 --- */
    .breadcrumb-wrap {
        margin-top: 80px;
        padding: 0 1rem;
    }
    .breadcrumb-wrap a {
        font-size: 14px;
    }

    /* --- 专题专栏切换 --- */
    .topic-tabs {
        gap: 1rem;
    }
    .topic-tab {
        font-size: 14px;
    }
}

/* ==========================================
 * 5. ≤ 768px — 手机横屏 / 小平板
 * ========================================== */
@media (max-width: 768px) {
    /* === 通用布局 === */

    /* --- Hero --- */
    .hero-banner {
        min-height: auto;
        height: auto;
        padding: 1.5rem 0.5rem;
    }
    .hero-content {
        padding: 0 0.5rem;
    }
    .hero-content h2 {
        font-size: 22px;
    }
    .hero-content p {
        font-size: 13px;
    }

    /* --- 首页 Hero 卡片 --- */
    .hero-card {
        width: 95%;
        border-radius: 10px;
    }
    .hero-card-video,
    .hero-card-canvas {
        height: 200px;
    }
    .hero-card-body {
        padding: 1.5rem 0.8rem 0.8rem;
    }
    .hero-card-body h3 {
        font-size: 22px;
    }
    .hero-card-body p {
        font-size: 13px;
    }
    .hero-nav {
        bottom: 20px;
        gap: 0.4rem;
    }
    .hero-nav-btn {
        width: 90px;
        height: 34px;
        font-size: 11px;
        border-radius: 17px;
    }

    /* --- 导航 --- */
    .hero-navbar .gs-name {
        width: 180px;
        height: 24px;
    }
    .hero-nav-list .nav-link {
        font-size: 11px;
        padding: 0.2rem 0.4rem !important;
    }
    .hero-navbar .mega-menu {
        position: static;
        width: 100%;
        flex-direction: column;
        gap: 14px;
        padding: 12px;
        transform: none;
    }
    .hero-navbar .mega-sidebar {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 12px;
    }
    .hero-navbar .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* === 标准导航栏 === */
    .navbar .container {
        width: calc(100% - 16px);
        height: 44px;
        border-radius: 22px;
        padding: 0 10px;
        margin-top: 4px;
    }
    .navbar .gs-name {
        width: 130px;
        height: 18px;
    }
    .navbar-nav .nav-link {
        font-size: 13px !important;
        padding: 0.4rem 0.8rem !important;
    }
    .nav-link-button {
        width: 100px;
        height: 30px;
        font-size: 12px;
    }
    .navbar-collapse {
        border-radius: 0 0 16px 16px;
        padding: 8px;
    }
    .mega-menu {
        padding: 10px;
        gap: 8px;
    }
    .sidebar-item {
        padding: 5px 8px;
        font-size: 13px;
    }
    .sidebar-content h4 {
        font-size: 13px;
    }
    .sidebar-content p {
        font-size: 10px;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-card h6 {
        font-size: 13px;
    }
    .product-card p {
        font-size: 11px;
    }

    /* === Tab 全部纵向 === */
    .case-tab,
    .industry-tab {
        width: 100%;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
    }
    .case-tabs,
    .industry-tabs {
        flex-direction: column;
        gap: 0.4rem;
    }
    .honor-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    .honor-tab {
        width: 100%;
    }

    /* === 产品介绍全纵向 === */
    .inducation_detail {
        flex-direction: column;
        gap: 1rem;
    }
    .inducation_detail_left,
    .inducation_detail_right {
        width: 100%;
        height: auto;
    }
    .inducation_detail_right {
        height: 200px;
    }
    .left-main {
        gap: 0.8rem;
        grid-template-columns: 1fr;
    }

    /* --- Stepper --- */
    .stepper-container {
        max-width: 100%;
    }
    .stepper-container::before {
        height: auto;
        top: 15px;
        bottom: 15px;
    }

    /* === 新闻列表 === */
    .news-list {
        grid-template-columns: 1fr;
    }
    .news-big img {
        height: 160px;
    }
    .news-small img {
        width: 80px;
        height: 60px;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    .news-date {
        flex: 0 0 auto;
        border-right: none;
        margin-right: 0;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    .news-title {
        padding-left: 0;
    }

    /* === 行业/主题卡片 === */
    .industry-cards {
        grid-template-columns: 1fr;
    }
    .industry-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    .industry-tab {
        width: 100%;
    }
    .topic-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .topic-card img {
        height: 130px;
    }

    /* --- 集团新闻轮播 --- */
    .group-news-card {
        flex: 0 0 85%;
    }

    /* --- 公司新闻 --- */
    .company-news-list {
        grid-template-columns: 1fr;
    }

    /* --- Section header --- */
    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* === 子导航：案例图标 === */
    .case-container {
        gap: 1.5rem;
    }
    .case-icon {
        width: 48px;
        height: 48px;
    }
    .case-item.selected .case-icon {
        width: 60px;
        height: 60px;
    }
    .case-title {
        font-size: 13px;
    }
    .active-main-title {
        font-size: 20px;
    }
    .active-main-text {
        font-size: 14px;
    }

    /* === 子导航：Stepper === */
    .stepper-container {
        position: relative !important;
        left: auto !important;
        margin: 0 auto 1rem;
    }

    /* === 子导航：面包屑 === */
    .breadcrumb-wrap {
        margin-top: 70px;
        font-size: 12px;
    }
    .breadcrumb-wrap a {
        font-size: 13px;
    }

    /* === 子导航：新闻详情侧边栏 === */
    .sidebar-list a {
        font-size: 13px;
    }
    .sidebar-list a b {
        font-size: 13px;
    }

    /* === 子导航：专题专栏 === */
    .topic-tabs {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    .topic-tab {
        font-size: 13px;
    }

    /* === 走进江河页面 === */

    /* --- 公司介绍 --- */
    .join-induction {
        flex-direction: column;
        gap: 1.5rem;
    }
    .join-induction video,
    .join-induction .video-wrapper video {
        width: 100% !important;
        height: auto !important;
    }
    .video-wrapper {
        width: 100%;
    }

    /* --- 企业文化 --- */
    .corporate-culture-container {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }
    .culture-item {
        flex: 0 0 auto;
        width: 100%;
        height: 220px;
    }

    /* --- 公司荣誉轮播 --- */
    .honor-carousel-container {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    .honor-carousel {
        gap: 1rem;
    }
    .honor-item {
        flex: 0 0 85%;
        width: 85%;
        max-width: none;
        height: auto;
        min-height: 240px;
    }
    .honor-img {
        aspect-ratio: 4/3;
    }

    /* --- 公司地址 --- */
    .local-card {
        flex-direction: column;
        gap: 1.5rem;
    }
    .local-card-item {
        width: 100%;
    }

    /* === 产品页面 === */

    /* --- 应用案例 --- */
    .case-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .app-main {
        flex-direction: column;
    }
    .app-case {
        flex-direction: column;
        align-items: center;
    }
    .app-case-item {
        width: 100%;
    }
    .app-case-img {
        width: 100%;
        height: auto;
    }
    .app-case-img img {
        width: 100%;
        height: auto;
    }

    /* --- 设备列表 --- */
    .equipment-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* --- 产品轮播项 --- */
    .carousel-item-custom {
        padding: 1rem;
    }
    .carousel-item-custom img {
        max-width: 100%;
        height: auto;
    }

    /* --- 特性列表 --- */
    .inducation-main {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }

    /* === 新闻详情页 === */
    .container-wrap {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    .breadcrumb-wrap {
        margin: 80px auto 12px;
        padding: 0 0.5rem;
    }
    .article-card {
        padding: 1.2rem;
    }
    .article-card img {
        max-width: 100%;
        height: auto;
    }
    .sidebar-card {
        padding: 1rem;
    }
    .page-footer {
        max-width: 100%;
        padding: 12px 1rem;
        margin: 1rem 0.5rem 0;
    }

    /* --- 通用按钮 --- */
    .nav-link-button {
        width: 110px;
        height: 30px;
        font-size: 11px;
    }
    .video-play {
        width: 160px;
        height: 44px;
        line-height: 44px;
        font-size: 14px;
    }

    /* === 荣誉预览弹窗 === */
    .modal-body {
        flex-direction: column;
        gap: 20px;
        padding: 1rem;
    }
    .modal-body img {
        max-width: 90%;
        max-height: 40vh;
    }
}

/* ==========================================
 * 6. ≤ 576px — 手机竖屏
 * ========================================== */
@media (max-width: 576px) {
    /* === 通用 === */
    .section-title {
        font-size: 20px;
    }

    /* --- Hero --- */
    .hero-banner {
        min-height: auto;
        padding: 1rem 0.3rem;
    }
    .hero-content h2 {
        font-size: 18px;
    }
    .hero-content p {
        font-size: 12px;
    }

    /* --- 首页 Hero 卡片 --- */
    .hero-card {
        width: 98%;
        border-radius: 8px;
    }
    .hero-card-video,
    .hero-card-canvas {
        height: 160px;
    }
    .hero-card-body {
        padding: 1rem 0.5rem 0.5rem;
    }
    .hero-card-body h3 {
        font-size: 18px;
    }
    .hero-card-body p {
        font-size: 12px;
        margin-top: 6px;
    }
    .hero-nav {
        bottom: 12px;
        gap: 0.3rem;
    }
    .hero-nav-btn {
        width: 70px;
        height: 30px;
        font-size: 10px;
        border-radius: 15px;
        letter-spacing: 0;
    }

    /* --- 导航 --- */
    .hero-navbar .container {
        margin: 0.3rem 0.5rem;
    }
    .hero-navbar .gs-name {
        width: 150px;
        height: 20px;
    }
    .hero-nav-list .nav-link {
        font-size: 10px;
        padding: 0.15rem 0.3rem !important;
    }

    /* === 标准导航栏（最小尺寸） === */
    .navbar .container {
        width: calc(100% - 12px);
        height: 40px;
        border-radius: 20px;
        padding: 0 8px;
        margin-top: 3px;
    }
    .navbar .gs-name {
        width: 110px;
        height: 16px;
    }
    .navbar-nav .nav-link {
        font-size: 12px !important;
        padding: 0.3rem 0.6rem !important;
    }
    .nav-link-button {
        width: 90px;
        height: 28px;
        font-size: 11px;
        border-radius: 14px;
    }
    .navbar-collapse {
        border-radius: 0 0 12px 12px;
        padding: 6px;
    }
    .mega-menu {
        padding: 8px;
        gap: 6px;
    }
    .sidebar-item {
        padding: 4px 6px;
        font-size: 12px;
    }
    .sidebar-content h4 {
        font-size: 12px;
    }
    .sidebar-content p {
        font-size: 10px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .product-card {
        padding: 8px;
    }
    .product-card h6 {
        font-size: 12px;
    }
    .product-card p {
        font-size: 10px;
    }
    /* 汉堡按钮对齐 */
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 14px;
    }

    /* --- Tab --- */
    .case-tab2.active {
        font-size: 20px;
    }
    .case-tab2 {
        font-size: 13px;
    }
    .case-tab,
    .industry-tab {
        height: 38px;
        line-height: 38px;
        font-size: 13px;
    }

    /* --- 产品介绍 --- */
    .inducation_detail_right {
        height: 170px;
        border-radius: 8px;
    }
    .inducation_detail_leftTitle {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }
    .inducation_check_text {
        font-size: 13px;
    }
    .inducation_item {
        gap: 0.5rem;
    }
    .left-main {
        padding: 1rem 0.5rem;
        gap: 0.6rem;
    }
    .left-bootom {
        padding: 0.8rem;
    }
    .left-bootom h3 {
        font-size: 13px;
    }
    .left-bootom p {
        font-size: 12px;
    }

    /* --- 行业/主题 --- */
    .topic-cards {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .topic-card img {
        height: 180px;
    }
    .industry-cards {
        grid-template-columns: 1fr;
    }

    /* --- 集团新闻轮播 --- */
    .group-news-card {
        flex: 0 0 90%;
    }
    .group-news-card .card-image {
        height: 100px;
    }

    /* --- 新闻 --- */
    .news-big img {
        height: 140px;
    }
    .news-small img {
        width: 70px;
        height: 50px;
    }
    .news-big-title {
        font-size: 15px;
    }
    .news-small-title {
        font-size: 13px;
    }
    .news-item {
        padding: 0.6rem 0.5rem;
    }
    .news-date {
        font-size: 13px;
    }
    .news-title {
        font-size: 14px;
    }

    /* --- 公司新闻 --- */
    .company-news-title {
        font-size: 16px;
    }
    .company-news-desc {
        font-size: 13px;
    }

    /* === 走进江河 === */

    /* --- 企业文化 --- */
    .culture-item {
        height: 200px;
    }

    /* --- 荣誉轮播 --- */
    .honor-item {
        flex: 0 0 90%;
        width: 90%;
        min-height: 220px;
    }
    .honor-text h5 {
        font-size: 14px;
    }
    .honor-text p {
        font-size: 12px;
    }

    /* --- 地址 --- */
    .local-card-item img {
        height: 160px;
    }

    /* === 产品页 === */

    /* --- Stepper --- */
    .stepper-item {
        margin-bottom: 20px;
    }
    .stepper-content h5 {
        font-size: 14px;
    }
    .stepper-content p {
        font-size: 12px;
    }

    /* --- 应用案例 --- */
    .app-case-item {
        height: auto;
        min-height: 50px;
    }

    /* === 子导航：案例图标（最小尺寸） === */
    .case-container {
        gap: 1rem;
    }
    .case-item {
        padding: 3px 0.5rem;
    }
    .case-icon {
        width: 40px;
        height: 40px;
    }
    .case-item.selected .case-icon {
        width: 50px;
        height: 50px;
    }
    .case-title {
        font-size: 12px;
    }
    .active-main-title {
        font-size: 18px;
    }
    .active-main-text {
        font-size: 13px;
    }

    /* === 子导航：面包屑 === */
    .breadcrumb-wrap {
        margin-top: 60px;
        font-size: 11px;
        padding: 0 0.5rem;
    }
    .breadcrumb-wrap a {
        font-size: 12px;
    }

    /* === 子导航：新闻详情侧边栏 === */
    .sidebar-list a {
        font-size: 12px;
    }
    .sidebar-list li {
        padding: 6px 0;
    }

    /* === 子导航：专题专栏 === */
    .topic-tabs {
        gap: 0.5rem;
    }
    .topic-tab {
        font-size: 12px;
    }

    /* === 新闻详情 === */
    .article-card {
        padding: 1rem;
    }
    .article-card h1 {
        font-size: 18px;
    }
    .sidebar-card {
        padding: 0.8rem;
    }
    .page-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    /* === 页脚 === */
    .footer-top {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .footer-bottem {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        align-items: start;
        text-align: left;
    }
    .footer-qr {
        align-items: center;
        min-width: 0;
        white-space: normal;
    }
    .footer-qr .qr-img {
        margin-left: 0;
    }
    .footer-qr p {
        margin: 0;
        font-size: 12px;
        line-height: 1.45;
        white-space: nowrap;
    }
    .footer-info {
        min-width: 0;
        font-size: 12px;
        line-height: 1.65;
        text-align: left;
        overflow-wrap: anywhere;
    }
    .footer-copyright {
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
        text-align: center;
        font-size: 12px;
    }
    .footer-links {
        gap: 0.5rem;
        justify-content: center;
    }

    /* --- 通用按钮 --- */
    .nav-link-button {
        width: 100px;
        height: 28px;
        font-size: 10px;
    }
    .video-play {
        width: 140px;
        height: 40px;
        line-height: 40px;
        font-size: 13px;
    }
}

/* ============================================================
 * 全站注入后的页面级保护与现代设备适配
 * ============================================================ */

/* 4K / 2K 高视口：首页首屏保持完整沉浸，不提前露出下一屏。 */
@media (min-width: 1601px) {
    .site-home .hero-banner {
        height: max(1080px, 100svh);
    }
}

/* 公共响应式文件会覆盖所有页面；子页 Hero 保留横幅比例，不沿用首页的大高度。 */
@media (min-width: 1201px) and (max-width: 1600px) {
    .site-subpage body:not(.fullpage-page) .hero-banner {
        min-height: 0;
    }
}

@media (max-width: 1200px) {
    .site-subpage body:not(.fullpage-page) .hero-banner {
        width: 100%;
        height: 420px;
        min-height: 0;
        padding: 0 1rem;
    }
}

@media (max-width: 991.98px) {
    .site-subpage body:not(.fullpage-page) .hero-banner {
        height: 360px;
        padding: 0 0.75rem;
    }

    /* 长导航在 iPhone / iPad 中独立滚动，避免被 Hero 裁切。 */
    .navbar .navbar-collapse.show,
    .navbar .navbar-collapse.collapsing {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 60px);
        right: 12px;
        left: 12px;
        z-index: 1100;
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 72px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .nav-search-item {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0 !important;
        padding: 4px 0;
    }
}

@media (max-width: 768px) {
    .site-subpage body:not(.fullpage-page) .hero-banner {
        height: 280px;
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .site-subpage body:not(.fullpage-page) .hero-banner {
        height: 260px;
        padding: 0 0.35rem;
    }
}

/* 江河大模型首屏使用 3840×1000 超宽横幅：外层仍是一整个滚动屏，
 * 图片带按原图比例显示，避免 2K / 4K 下被 100svh + cover 放大裁切。 */
.site-subpage body.fullpage-page .hero-banner.fullpage-section {
    --model-hero-visual-height: min(1000px, 26.0416667vw);
    height: 100svh;
    min-height: 680px;
    padding: 0;
    overflow: hidden;
    align-items: flex-start;
    background-color: #f4f8ff;
    background-position: center top;
    background-size: auto var(--model-hero-visual-height);
}

.site-subpage body.fullpage-page .hero-banner.fullpage-section .hero-content {
    align-self: flex-start;
    margin-top: max(96px, calc((var(--model-hero-visual-height) - 198px) / 2));
}

@media (max-width: 991.98px) {
    .site-subpage body.fullpage-page .hero-banner.fullpage-section {
        height: 360px;
        min-height: 360px;
        align-items: center;
        background-position: center;
        background-size: cover;
    }

    .site-subpage body.fullpage-page .hero-banner.fullpage-section .hero-content {
        align-self: auto;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .site-subpage body.fullpage-page .hero-banner.fullpage-section {
        height: 280px;
        min-height: 280px;
    }
}

@media (max-width: 576px) {
    .site-subpage body.fullpage-page .hero-banner.fullpage-section {
        height: 260px;
        min-height: 260px;
    }
}

/* Bootstrap CDN 不可达时，仍给公共容器提供可靠的宽度和居中规则。 */
.no-bootstrap .container {
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
}

/* ============================================================
 * 手机公共导航：紧凑顶栏 + 视口内滚动抽屉
 * 通过 html body 前缀覆盖组件内联的桌面 mega 样式，桌面端不受影响。
 * ============================================================ */
@media (max-width: 991.98px) {
    html body .navbar {
        z-index: 1200;
    }

    html body .navbar .container {
        width: calc(100% - 20px);
        max-width: none;
        height: 54px;
        min-height: 54px;
        margin: 8px auto 0;
        padding: 0 12px;
        flex-wrap: nowrap;
        gap: 8px;
        border-radius: 27px !important;
    }

    html body .navbar .gs-name {
        flex: 0 1 clamp(170px, 55vw, 230px);
        width: clamp(170px, 55vw, 230px);
        height: 28px;
        min-width: 0;
        background-position: left center;
    }

    html body .navbar .navbar-toggler {
        flex: 0 0 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 40px;
        margin: 0 0 0 auto;
        padding: 0;
        border: 1px solid rgba(20, 54, 89, 0.18);
        border-radius: 13px;
        background-color: #f8fbff;
        box-shadow: none;
    }

    html body .navbar .navbar-toggler-icon {
        width: 22px;
        height: 22px;
        background-size: 22px 22px;
    }

    html body .navbar .navbar-collapse.show,
    html body .navbar .navbar-collapse.collapsing {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 68px);
        right: max(10px, env(safe-area-inset-right, 0px));
        left: max(10px, env(safe-area-inset-left, 0px));
        width: auto;
        height: auto !important;
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 80px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 80px);
        margin: 0;
        padding: 8px;
        flex-basis: auto;
        flex-grow: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border: 1px solid rgba(0, 80, 180, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 16px 40px rgba(13, 54, 96, 0.18);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    html body .navbar .navbar-collapse.collapsing {
        transition: none;
    }

    html body .navbar .navbar-nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px;
        align-items: start !important;
        align-content: start;
        gap: 2px 8px;
        width: 100%;
        margin: 0 !important;
        padding: 0;
    }

    html body .navbar .navbar-nav > .nav-item,
    html body .navbar .mega-dropdown {
        width: auto;
        min-width: 0;
        margin: 0;
    }

    html body .navbar .navbar-nav > .nav-item:nth-last-child(n + 3) {
        grid-column: 1 / -1;
    }

    html body .navbar .navbar-nav > .nav-item:nth-last-child(2) {
        grid-column: 1;
    }

    html body .navbar .navbar-nav > .nav-item:last-child {
        grid-column: 2;
    }

    html body .navbar .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 42px;
        margin: 0;
        padding: 8px 12px !important;
        border-radius: 12px;
        font-size: 15px !important;
        line-height: 1.35;
    }

    html body .navbar .navbar-nav .nav-link:hover::after,
    html body .navbar .navbar-nav .nav-link.active::after {
        right: 2px;
        bottom: 2px;
        width: 11px;
        height: 11px;
    }

    html body .navbar .nav-link-button {
        width: 100%;
        height: 40px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 15px;
        background: #eff6ff;
    }

    html body .navbar .nav-link-button::before {
        border-radius: 12px;
    }

    html body .navbar .nav-search-item {
        width: 42px;
        min-width: 42px;
        height: 40px;
        margin: 0 !important;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    html body .navbar .nav-search-button {
        width: 40px;
        height: 40px;
        box-shadow: none;
    }

    /* 抽屉内 mega 菜单跟随内容展开，不再继承桌面的 920px / 固定定位。 */
    html body .navbar .mega-dropdown > .mega-menu,
    html body #newsMegaDropdown > .news-mega-menu {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 56vh;
        max-height: 56dvh;
        margin: 3px 0 6px;
        padding: 10px !important;
        transform: none !important;
        flex-direction: column;
        gap: 8px;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 14px;
        background: #f5f9ff;
        box-shadow: inset 0 0 0 1px rgba(0, 108, 255, 0.08);
        overscroll-behavior: contain;
    }

    html body .navbar .mega-sidebar {
        flex: 0 0 auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        min-width: 0;
        padding: 0 0 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 108, 255, 0.1);
    }

    html body .navbar .sidebar-item {
        width: auto;
        min-width: 0;
        min-height: 44px;
        height: auto;
        margin: 0;
        padding: 6px;
        gap: 7px;
        border-radius: 9px;
    }

    html body .navbar .sidebar-item > img {
        flex: 0 0 30px;
        width: 30px !important;
        height: 30px !important;
    }

    html body .navbar .sidebar-content {
        min-width: 0;
    }

    html body .navbar .sidebar-content h4 {
        margin-bottom: 2px;
        font-size: 13px;
        line-height: 1.25;
    }

    html body .navbar .sidebar-content p {
        font-size: 10px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    html body .navbar .mega-content,
    html body #newsMegaDropdown .news-mega-content {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-width: 0;
    }

    html body .navbar .section-title2 {
        padding-bottom: 5px;
        font-size: 12px;
    }

    html body .navbar .product-grid,
    html body #newsMegaDropdown .news-product-grid,
    html body #newsMegaDropdown .news-mega-group:nth-child(2) .news-product-grid,
    html body #newsMegaDropdown .news-mega-group-topics .news-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
        width: 100%;
        margin-bottom: 8px;
    }

    html body .navbar .product-card,
    html body #newsMegaDropdown .news-product-grid .product-card {
        min-width: 0;
        padding: 7px 6px;
    }

    html body .navbar .product-card h6 {
        font-size: 12px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    html body .navbar .product-card p {
        font-size: 10px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    /* 新闻菜单左侧三项仅是桌面端说明卡，手机抽屉中隐藏以减少冗余高度。 */
    html body #newsMegaDropdown .news-mega-sidebar {
        display: none !important;
    }

    html body #newsMegaDropdown .news-mega-groups {
        display: block;
        width: 100%;
        height: auto;
    }

    html body #newsMegaDropdown .news-mega-group {
        display: block;
        width: 100%;
    }
}

@media (max-width: 430px) {
    html body .navbar .container {
        width: calc(100% - 16px);
        height: 52px;
        min-height: 52px;
        margin-top: 6px;
        padding-inline: 10px;
    }

    html body .navbar .gs-name {
        flex-basis: clamp(168px, 59vw, 214px);
        width: clamp(168px, 59vw, 214px);
        height: 26px;
    }

    html body .navbar .navbar-collapse.show,
    html body .navbar .navbar-collapse.collapsing {
        top: calc(env(safe-area-inset-top, 0px) + 64px);
        right: max(8px, env(safe-area-inset-right, 0px));
        left: max(8px, env(safe-area-inset-left, 0px));
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - 72px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 72px);
    }
}

/* ============================================================
 * 手机导航固定操作面板
 * 顶栏固定；展开区占满剩余可视区域；只允许外层面板滚动，
 * 避免产品/新闻 mega 菜单与父层形成双滚动并被 iPhone 工具栏截断。
 * ============================================================ */
:root {
    --mobile-nav-viewport-height: 100vh;
}

@supports (height: 100dvh) {
    :root {
        --mobile-nav-viewport-height: 100dvh;
    }
}

@media (max-width: 991.98px) {
    html body .navbar {
        position: fixed !important;
        top: env(safe-area-inset-top, 0px);
        right: 0;
        left: 0;
    }

    html body .navbar .navbar-collapse.show,
    html body .navbar .navbar-collapse.collapsing {
        top: calc(env(safe-area-inset-top, 0px) + 68px);
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: auto;
        left: max(10px, env(safe-area-inset-left, 0px));
        width: auto;
        height: calc(var(--mobile-nav-viewport-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 76px) !important;
        min-height: 0;
        max-height: none !important;
        padding: 10px 10px max(14px, env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
        overflow-y: auto;
        touch-action: pan-y;
        scrollbar-gutter: stable;
    }

    /* 外层固定面板是唯一滚动容器，子菜单完整跟随内容展开。 */
    html body .navbar .mega-dropdown > .mega-menu,
    html body #newsMegaDropdown > .news-mega-menu {
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto;
        -webkit-overflow-scrolling: auto;
    }

    html.mobile-nav-open,
    html.mobile-nav-open body {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    html.mobile-nav-open body {
        position: fixed;
        right: 0;
        left: 0;
        width: 100%;
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1190;
        border: 0;
        background: rgba(14, 35, 61, 0.28);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .mobile-nav-backdrop[hidden] {
        display: none !important;
    }
}

@media (max-width: 430px) {
    html body .navbar .navbar-collapse.show,
    html body .navbar .navbar-collapse.collapsing {
        top: calc(env(safe-area-inset-top, 0px) + 64px);
        right: max(8px, env(safe-area-inset-right, 0px));
        bottom: auto;
        left: max(8px, env(safe-area-inset-left, 0px));
        height: calc(var(--mobile-nav-viewport-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 70px) !important;
    }
}

/* ============================================================
 * 首页手机首屏
 * 标题、展示画面、切换按钮改为单列流式布局，并为固定导航预留空间。
 * 高优先级选择器用于收口首页历史内联媒体查询，避免横向 Flex 裁切。
 * ============================================================ */
@media (max-width: 768px) {
    html.site-home body main {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    html.site-home body #heroBanner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto;
        align-content: start !important;
        align-items: start !important;
        justify-items: stretch !important;
        gap: 14px;
        width: 100%;
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
        min-height: 100dvh !important;
        padding: calc(env(safe-area-inset-top, 0px) + 78px) 16px 24px !important;
        overflow: hidden;
    }

    html.site-home body #heroCardBody {
        position: relative !important;
        inset: auto !important;
        z-index: 2;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 8px 4px 0 !important;
        text-align: center;
    }

    html.site-home body #heroCardBody h3 {
        max-width: 18em;
        margin: 0 auto 8px;
        font-size: clamp(22px, 6.4vw, 30px) !important;
        line-height: 1.18 !important;
        letter-spacing: 0 !important;
        overflow-wrap: anywhere;
    }

    html.site-home body #heroCardBody p {
        max-width: 30em;
        margin: 0 auto !important;
        font-size: clamp(12px, 3.5vw, 15px) !important;
        line-height: 1.55 !important;
        overflow-wrap: anywhere;
    }

    html.site-home body #heroCardBody .video-play {
        display: none !important;
    }

    html.site-home body #heroCard {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        justify-self: center;
        width: min(100%, 620px) !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        transform: none !important;
        border-radius: 12px;
    }

    html.site-home body #heroCard.transparent,
    html.site-home body #heroCard.shift-right {
        left: auto !important;
        width: min(100%, 620px) !important;
        height: auto !important;
    }

    html.site-home body #heroCardWrapper {
        width: 100%;
        min-width: 0;
    }

    html.site-home body #heroCard .hero-card-video,
    html.site-home body #heroCard .hero-card-canvas,
    html.site-home body #heroCard.transparent .hero-card-video,
    html.site-home body #heroCard.transparent .hero-card-canvas {
        display: block;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 950 / 575;
        max-height: 42dvh !important;
        object-fit: contain;
    }

    html.site-home body #heroNav {
        position: static !important;
        inset: auto !important;
        z-index: 2;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-self: center;
        gap: 8px !important;
        width: min(100%, 520px);
        margin: 0 !important;
        transform: none !important;
    }

    html.site-home body #heroNav .hero-nav-btn {
        width: 100% !important;
        min-width: 0;
        height: 40px !important;
        padding: 0 8px;
        border-radius: 20px;
        font-size: clamp(12px, 3.2vw, 14px) !important;
        line-height: 1.2;
        letter-spacing: 0 !important;
        white-space: normal;
    }
}

@media (max-width: 430px) {
    html.site-home body #heroBanner {
        gap: 12px;
        padding: calc(env(safe-area-inset-top, 0px) + 70px) 12px 20px !important;
    }

    html.site-home body #heroCardBody {
        padding-top: 4px !important;
    }

    html.site-home body #heroCardBody h3 {
        font-size: clamp(21px, 6.2vw, 25px) !important;
    }

    html.site-home body #heroCard .hero-card-video,
    html.site-home body #heroCard .hero-card-canvas,
    html.site-home body #heroCard.transparent .hero-card-video,
    html.site-home body #heroCard.transparent .hero-card-canvas {
        max-height: 34dvh !important;
    }

    html.site-home body #heroNav .hero-nav-btn {
        height: 36px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
 * 全站回到顶部按钮
 * ============================================================ */
.site-back-to-top {
    position: fixed;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: max(30px, env(safe-area-inset-bottom, 0px));
    z-index: 1180;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(0, 108, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #2187ff, #006cff);
    box-shadow: 0 10px 28px rgba(0, 82, 190, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.92);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease,
        box-shadow 0.22s ease, background 0.22s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.site-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.site-back-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-back-to-top:focus-visible {
    outline: 3px solid rgba(0, 108, 255, 0.28);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .site-back-to-top:hover {
        background: linear-gradient(145deg, #0879fa, #005acb);
        box-shadow: 0 13px 32px rgba(0, 82, 190, 0.36);
        transform: translateY(-3px) scale(1);
    }
}

@media (max-width: 768px) {
    .site-back-to-top {
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
        border-color: rgba(255, 255, 255, 0.72);
        box-shadow: 0 8px 22px rgba(0, 69, 158, 0.3);
    }

    .site-back-to-top svg {
        width: 21px;
        height: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-back-to-top {
        transition-duration: 0.01ms !important;
    }
}
