/* ============================================================
   手机端适配 | 仅 max-width 生效，不影响 PC
   ============================================================ */

@media screen and (max-width: 991px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 顶栏：手机端固定白底，避免浅色 Banner 上白图标看不见 */
    .header {
        padding: 0 16px !important;
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    .header-inner {
        height: 56px;
        gap: 10px;
    }
    .logo {
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 48px);
    }
    .logo-text {
        width: 100%;
    }
    .logo-text img {
        height: 34px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
        object-position: left center;
    }
    /* 手机端始终用彩色 logo */
    .header .logo_a { display: none !important; }
    .header .logo_b { display: block !important; }

    .header-actions {
        flex-shrink: 0;
        gap: 0;
    }
    .menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        z-index: 1200;
        position: relative;
    }
    .menu-toggle span {
        background: #333 !important;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        transition: transform .3s, opacity .3s, background .3s;
    }
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 移动端侧栏 */
    .mobile-nav {
        padding: 72px 16px 32px;
        width: 82%;
        max-width: 360px;
    }
    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 12px;
        font-size: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 0;
    }
    .mobile-nav-item.has-sub {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .mobile-nav-item.has-sub > .mobile-nav-parent {
        border-bottom: none;
        cursor: pointer;
        list-style: none;
        -webkit-tap-highlight-color: rgba(129, 7, 18, 0.12);
    }
    .mobile-nav-item.has-sub > .mobile-nav-parent::-webkit-details-marker {
        display: none;
    }
    .mobile-nav-item.has-sub > .mobile-nav-parent::marker {
        content: "";
        display: none;
    }
    .mobile-sub-arrow {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: transform .25s;
        margin-left: 8px;
        flex-shrink: 0;
    }
    .mobile-nav-item[open] > .mobile-nav-parent .mobile-sub-arrow {
        transform: rotate(-135deg);
        border-color: var(--red);
    }
    .mobile-nav-item[open] > .mobile-nav-parent {
        color: var(--red);
    }
    .mobile-submenu {
        padding: 0 8px 10px 16px;
    }
    .mobile-submenu a {
        display: block;
        padding: 10px 12px;
        font-size: 14px;
        color: #666;
        border-radius: 4px;
    }
    .mobile-submenu a:hover,
    .mobile-submenu a:active {
        color: var(--red);
        background: rgba(129, 7, 18, 0.06);
    }
    .mobile-nav-lang {
        margin-top: 12px;
        color: var(--red) !important;
        font-family: var(--font-en);
        letter-spacing: 1px;
        border-bottom: none !important;
        justify-content: flex-start !important;
    }
}

@media screen and (max-width: 767px) {
    /* 首页 Banner：再矮一点，产品图完整显示不裁切 */
    .banner {
        height: 36vh;
        min-height: 200px;
        max-height: 240px;
        background: #eef3f7;
    }
    .banner-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center;
        transform: none !important;
    }
    .banner-slide.active img {
        transform: none !important;
    }
    .banner-controls {
        bottom: 16px;
        right: 12px;
    }
    .banner-arrow {
        width: 36px;
        height: 36px;
    }
    .banner-dots {
        bottom: 14px;
    }

    /* 关于我们 */
    .about-header {
        padding: 48px 20px 24px;
    }
    .about-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .about-eng {
        font-size: 11px;
        letter-spacing: .08em;
        word-break: break-word;
        padding: 0 8px;
    }
    .about-sub {
        font-size: 13px;
        padding: 0 8px;
    }
    .about-divider-dot {
        margin-top: 24px;
    }
    .about-grid {
        margin: 0 16px;
        padding: 0;
    }
    .about-img-col {
        min-height: 240px;
    }
    .about-text-col {
        padding: 20px 16px !important;
    }
    .about-lead {
        font-size: 16px;
        line-height: 1.8;
    }
    .about-highlights li {
        font-size: 14px;
    }
    .about-btns {
        flex-direction: column;
    }
    .about-btns a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .badge-year {
        font-size: 32px;
    }
    .about-img-badge {
        padding: 12px 14px;
    }
    .about-img-caption {
        padding: 20px;
    }
    .caption-cn {
        font-size: 14px;
    }

    /* 统计 */
    .stats-row {
        padding: 0 16px 48px !important;
        gap: 12px;
    }
    .stat-card {
        padding: 20px 16px !important;
    }
    .stat-value {
        font-size: 1.75rem !important;
    }
    .stat-icon-circle svg {
        width: 28px;
        height: 28px;
    }

    /* 产品 */
    .products {
        padding: 48px 0 !important;
    }
    .products-inner {
        padding: 0 16px !important;
    }
    .products-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .products-sub {
        font-size: 13px;
    }
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .product-card-body {
        padding: 16px !important;
    }
    .product-card-head h3 {
        font-size: 16px;
    }
    .product-card-spec {
        font-size: 13px;
    }
    .products-cta-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* 售后 */
    .service {
        padding: 48px 0 0 !important;
    }
    .service-inner {
        padding: 0 16px !important;
    }
    .service-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .service-grid {
        grid-template-columns: 1fr !important;
    }
    .service-card {
        border-right: none !important;
        padding: 28px 20px;
    }

    /* 联系 CTA */
    .contact-cta {
        padding: 56px 0 !important;
    }
    .contact-cta-content {
        padding: 0 16px !important;
    }
    .contact-cta-content h2 {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
        line-height: 1.4;
    }
    .contact-cta-desc {
        font-size: 14px !important;
        margin-bottom: 28px !important;
    }
    .contact-card {
        padding: 18px 16px !important;
        flex-wrap: wrap;
    }
    .contact-card-value,
    .contact-card-value.youx {
        font-size: 14px !important;
        word-break: break-all;
    }
    .contact-cta-badges {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-badge {
        justify-content: center;
    }

    /* 底部 */
    .footer .footer-inner {
        padding: 0 16px !important;
    }
    .footer-top {
        padding: 48px 0 28px !important;
    }
    /* 底部：隐藏栏目和二维码，只留联系方式 + 版权 */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .footer-grid > .footer-col:not(.footer-info) {
        display: none !important;
    }
    .footer-qr {
        display: none !important;
    }
    .flogo-cn {
        font-size: 16px;
    }
    .flogo-en {
        font-size: 11px;
        word-break: break-word;
    }
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-row p,
    .footer-bottom-row .zzb07tail,
    .footer-bottom-row .zzb07link {
        font-size: 12px;
        line-height: 1.9;
        word-break: break-all;
    }

    /* 内页 Banner */
    .inner-banner {
        height: 200px;
        min-height: 180px;
    }
    .inner-banner-content {
        padding: 0 16px;
        padding-top: 28px;
    }
    .inner-banner-content h1 {
        display: block !important;
        font-size: 22px !important;
        margin-bottom: 8px;
    }
    .inner-banner-content p {
        display: block !important;
        font-size: 13px !important;
    }

    /* 内页通用 */
    .section-inner {
        padding: 0 16px !important;
    }
    .section-header {
        margin-bottom: 28px !important;
    }
    .section-header h2 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .about-hero {
        padding: 36px 0 28px !important;
    }
    .about-hero-inner {
        padding: 0 16px !important;
        gap: 24px !important;
    }
    .about-hero-img img {
        min-height: 220px !important;
    }
    .hero-desc {
        font-size: 14px;
        line-height: 1.8;
    }
    .stats-strip {
        grid-template-columns: 1fr 1fr !important;
    }
    .stat-block {
        padding: 20px 12px !important;
    }
    .stat-big {
        font-size: 28px !important;
    }
    .stat-title {
        font-size: 13px;
    }
    .stat-desc {
        font-size: 11px;
    }

    /* 产品分类导航：横向滑动，不换行撑破 */
    .prod-nav-strip {
        top: 56px !important;
    }
    .prod-nav-inner {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 12px !important;
        gap: 0;
        scrollbar-width: none;
    }
    .prod-nav-inner::-webkit-scrollbar {
        display: none;
    }
    .prod-nav-item {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
    .prod-nav-sep {
        display: none !important;
    }

    /* 产品列表：强制单列，图片居中、左右留白 */
    .cat-grid,
    .cat-grid-2,
    .cat-grid-3,
    .cat-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .cat-card-img {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 220px !important;
        padding: 16px 24px !important;
        box-sizing: border-box;
    }
    .cat-card-img img {
        width: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        object-position: center center;
    }
    .cat-card-info {
        padding: 16px !important;
    }
    .cat-card-info h4 {
        font-size: 16px !important;
    }
    .page-products-category {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    /* 联系页 */
    .contact-info-section {
        padding: 40px 0;
    }
    .contact-info-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .ci-card {
        padding: 18px 16px !important;
    }
    .ci-value {
        font-size: 14px !important;
        word-break: break-all;
    }
    .ci-qr-img img {
        max-width: 100px;
        margin: 0 auto;
    }

    /* 售后内页 */
    .service-page {
        padding: 40px 0 48px;
    }

    /* 分页 */
    .newspage {
        margin: 36px auto 24px;
        padding: 0 12px;
        height: auto;
        line-height: 2;
    }
}

@media screen and (max-width: 480px) {
    .logo-text img {
        height: 30px !important;
    }
    .stats-row {
        grid-template-columns: 1fr !important;
    }
    .stats-strip {
        grid-template-columns: 1fr !important;
    }
    .about-eng {
        font-size: 10px;
    }
}
