/* 全局颜色和按钮配置：后续想统一改网站主色、按钮颜色，优先改这里 */
:root {
    /* 品牌主色：导航高亮、主按钮背景等 */
    /*--color-primary: #FFF000;   #f0f5fc*/
    --color-primary: #ff4b16;
    /* 主色悬浮状态：鼠标移到按钮上时使用 */
    --color-primary-hover: #ff4b16;
    /* 主色点击状态：按钮按下时使用 */
    --color-primary-active: #ff4b16;
    /* 页面主要文字颜色 */
    --color-text: #111827;
    /* 次要说明文字颜色 */
    --color-muted: #5f6874;
    /* 默认边框颜色 */
    --color-border: #e5e7eb;
    /* 页面主体背景色 */
    --color-surface: #ffffff;
    /* 浅色区块背景色 */
    --color-soft: #f3f6fb;
    /* 主按钮背景色 */
    --button-bg: var(--color-primary);
    /* 主按钮鼠标悬浮背景色 */
    --button-bg-hover: var(--color-primary-hover);
    /* 主按钮点击背景色 */
    --button-bg-active: var(--color-primary-active);
    /* 淡色按钮背景：用于询盘、弱提示等不需要抢占视觉焦点的按钮 */
    --button-bg-subtle: #fff7f3;
    --button-bg-subtle-hover: #fff1ea;
    --button-border-subtle: rgba(255, 75, 22, 0.08);
    /* 主按钮文字颜色 */
    --button-text: #1f2933;
    /* 导航默认文字颜色：透明首页顶部使用 */
    --nav-text-color: #ffffff;
    /* 导航默认图标颜色：透明首页顶部使用 */
    --nav-icon-color: #ffffff;
    /* 导航滚动或展开后的文字颜色 */
    --nav-scroll-color: #111111;
    /* 导航当前页选中颜色 */
    --nav-active-color: #ff4b16;
    /* 导航鼠标悬浮文字颜色 */
    --nav-hover-color: #ff4b16;
}

/* 全站基础重置：去掉默认边距、列表点、链接下划线，并统一字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 页面基础尺寸和滚动行为 */
html,
body {
    width: 100%;
    min-height: 100%;
    color: var(--color-text);
    scroll-behavior: smooth;
}

/* 全站默认背景 */
body {
    background: var(--color-surface);
}

/* 链接默认继承父级颜色 */
a {
    color: inherit;
}

/* 全站按钮基础样式：普通 button 和 .site-button 都会套用 */
button,
.site-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 2px;
    padding: 0 22px;
    background: var(--button-bg);
    color: var(--button-text);
    font: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* 按钮悬浮样式 */
button:hover,
.site-button:hover {
    background: var(--button-bg-hover);
}

/* 按钮点击样式 */
button:active,
.site-button:active {
    background: var(--button-bg-active);
    transform: translateY(1px);
}

/* 次级按钮样式：用于灰色按钮，例如 Inquiry */
.site-button.secondary {
    background: #eeeeee;
}

/* 次级按钮悬浮样式 */
.site-button.secondary:hover {
    background: #e1e4e8;
}

/* 空白栏目页的通用页面壳样式 */
.page-shell {
    min-height: 62vh;
    padding: 170px 5% 80px;
    background: #ffffff;
}

/* 空白栏目页标题样式 */
.page-shell h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 空白栏目页说明文字样式 */
.page-shell p {
    font-size: 18px;
    color: var(--color-muted);
}

/* 全站响应式兜底：限制超宽屏内容、避免小屏横向溢出 */
img,
video,
svg,
canvas {
    max-width: 100%;
}

img,
video {
    height: auto;
}

body {
    overflow-x: hidden;
}

main,
section,
footer,
header {
    max-width: 100%;
}

@media (min-width: 1600px) {
    .page-section,
    .product-page,
    .case-page,
    .news-page,
    .detail-page,
    .case-detail-page,
    .footer-inner,
    .cards-section,
    .zoomlion-module,
    .latest-news-section {
        max-width: 1680px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 1200px) {
    .product-list,
    .case-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .intro-layout,
    .vision-layout,
    .detail-hero,
    .featured-news {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 992px) {
    .product-list,
    .case-list,
    .news-grid,
    .certificate-list,
    .gallery-grid,
    .latest-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-page,
    .case-page,
    .news-page,
    .page-shell {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .sub-banner {
        min-height: 520px !important;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 15px;
    }

    .page-section,
    .product-page,
    .case-page,
    .news-page,
    .page-shell,
    .detail-page,
    .case-detail-page,
    .market-head {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .product-page,
    .case-page,
    .news-page,
    .page-shell,
    .detail-page,
    .case-detail-page {
        padding-top: 104px !important;
        padding-bottom: 52px !important;
    }

    .sub-banner,
    .banner {
        min-height: 520px !important;
        height: auto !important;
    }

    .intro-title,
    .section-heading h2,
    .market-head h2,
    .gallery-section h2,
    .vision-title,
    .page-shell h1 {
        font-size: clamp(30px, 9vw, 42px) !important;
        line-height: 1.12 !important;
    }

    .intro-lines li,
    .filter-row,
    .vehicle-actions,
    .footer-container {
        min-width: 0 !important;
    }

    .stats-grid,
    .product-list,
    .case-list,
    .news-grid,
    .certificate-list,
    .gallery-grid,
    .latest-news-grid,
    .vision-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        justify-content: stretch !important;
        gap: 16px !important;
    }

    .stat-item {
        width: 100% !important;
    }

    .market-map {
        width: 150% !important;
        margin-left: -25% !important;
    }

}

@media (max-width: 480px) {
    button,
    .site-button {
        min-height: 40px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-row {
        gap: 22px !important;
    }

    .vehicle-card,
    .case-body,
    .certificate-item {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .market-map {
        width: 180% !important;
        margin-left: -40% !important;
    }
}

/* Mobile layout system */
@media (max-width: 768px) {
    :root {
        --mobile-gutter: 16px;
        --mobile-section-space: 48px;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html {
        -webkit-text-size-adjust: 100%;
        scroll-padding-top: 84px;
    }

    body {
        min-width: 320px;
        line-height: 1.6;
    }

    main,
    section,
    header,
    footer,
    .page-section {
        min-width: 0;
    }

    .page-section,
    .product-page,
    .case-page,
    .news-page,
    .page-shell,
    .detail-page,
    .case-detail-page,
    .market-head {
        width: 100% !important;
        padding-left: var(--mobile-gutter) !important;
        padding-right: var(--mobile-gutter) !important;
    }

    .product-page,
    .case-page,
    .news-page,
    .page-shell,
    .detail-page,
    .case-detail-page {
        padding-top: 88px !important;
        padding-bottom: var(--mobile-section-space) !important;
    }

    .sub-banner,
    .banner {
        height: auto !important;
        min-height: 380px !important;
    }

    .sub-banner-content,
    .banner-content {
        width: 100% !important;
        padding-left: var(--mobile-gutter) !important;
        padding-right: var(--mobile-gutter) !important;
    }

    .intro-title,
    .section-heading h2,
    .market-head h2,
    .gallery-section h2,
    .vision-title,
    .page-shell h1 {
        font-size: clamp(28px, 8.5vw, 38px) !important;
        overflow-wrap: anywhere;
    }

    p,
    li,
    h1,
    h2,
    h3,
    h4,
    a,
    span {
        overflow-wrap: break-word;
    }

    button,
    input,
    select,
    textarea {
        max-width: 100%;
        font: inherit;
    }

    button,
    [role="button"],
    .site-button,
    .filter-item,
    .pagination a,
    .pagination button {
        min-height: 44px;
        touch-action: manipulation;
    }

    .filter-row,
    .category-filter,
    .tabs,
    .detail-tabs {
        width: calc(100% + var(--mobile-gutter) * 2) !important;
        margin-left: calc(var(--mobile-gutter) * -1) !important;
        padding-left: var(--mobile-gutter) !important;
        padding-right: var(--mobile-gutter) !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .filter-row::-webkit-scrollbar,
    .category-filter::-webkit-scrollbar,
    .tabs::-webkit-scrollbar,
    .detail-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-row > *,
    .category-filter > *,
    .tabs > *,
    .detail-tabs > * {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .product-list,
    .case-list,
    .news-grid,
    .gallery-grid,
    .certificate-list,
    .latest-news-grid,
    .vision-grid {
        gap: 20px !important;
    }

    .vehicle-card,
    .case-card,
    .news-card,
    .vision-card,
    .gallery-item {
        width: 100%;
        min-width: 0;
    }

    .detail-breadcrumb {
        width: 100%;
        margin-bottom: 12px;
        padding: 0 var(--mobile-gutter);
        font-size: 13px;
    }

    .news-page:has(> .detail-breadcrumb) {
        padding-top: 24px !important;
    }

    .news-detail h1,
    .case-detail h1 {
        margin-top: 0;
    }

    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .market-map {
        width: 100% !important;
        margin-left: 0 !important;
        transform: none !important;
    }

    .intro-visual,
    .intro-visual img {
        min-height: 280px !important;
        max-height: 420px;
    }

    .customer-modal,
    .privacy-modal {
        padding: 12px !important;
        align-items: center;
    }

    .customer-dialog,
    .privacy-dialog {
        width: 100% !important;
        max-height: calc(100dvh - 24px) !important;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .cookie-consent {
        max-height: 70dvh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    :root {
        --mobile-gutter: 14px;
        --mobile-section-space: 40px;
    }

    .sub-banner,
    .banner {
        min-height: 340px !important;
    }

    .pagination {
        gap: 5px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination a,
    .pagination button,
    .pagination span {
        min-width: 38px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

.detail-breadcrumb {
    width: min(1100px, 90%);
    margin: 0 auto 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #7a8491;
    font-size: 14px;
    line-height: 1.5;
}

.detail-breadcrumb a {
    color: #5f6976;
    transition: color .2s ease;
}

.detail-breadcrumb a:hover {
    color: var(--nav-hover-color, #2868e8);
}

.detail-breadcrumb .breadcrumb-separator {
    color: #b1b8c1;
}

.detail-breadcrumb .breadcrumb-current {
    min-width: 0;
    max-width: min(620px, 65vw);
    overflow: hidden;
    color: #29313b;
    text-overflow: ellipsis;
    white-space: nowrap;
}
