/* ========================================
   创为铁路 - 响应式样式
   Responsive Styles
   ======================================== */

/* ========================================
   1. 大平板 (max-width: 1199px)
   ======================================== */
@media (max-width: 1199px) {
    :root {
        --header-height: 70px;
    }
    
    .container {
        max-width: 960px;
    }
    
    /* 首页 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: var(--space-2xl);
    }
    
    .products-bento {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bento-item,
    .bento-item:nth-child(1),
    .bento-item:nth-child(2),
    .bento-item:nth-child(3),
    .bento-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 产品列表 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 产品详情 */
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 新闻 */
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        display: none;
    }
    
    /* 关于我们 */
    .about-intro-grid,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-intro-image {
        order: -1;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 联系页 */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-sidebar {
        order: -1;
    }
    
    /* 底部 */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   2. 平板 (max-width: 991px)
   ======================================== */
@media (max-width: 991px) {
    :root {
        --header-height: 64px;
    }
    
    .container {
        max-width: 720px;
        padding: 0 var(--space-md);
    }
    
    /* 头部导航 */
    /* 修复移动端导航菜单 */
    .header {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-list.nav-active {
        transform: translateX(0);
    }
    
    .nav-item > a {
        padding: var(--space-md);
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
    }
    
    .nav-item:hover > a {
        background: transparent;
    }
    
    .sub-nav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--space-lg);
        display: none;
    }
    
    .nav-item.open .sub-nav {
        display: block;
    }
    
    /* Hero区 */
    .hero {
        min-height: 350px;
    }
    
    .hero-content {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    /* 特色功能 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* 本托布局调整为单列 */
    .products-bento {
        grid-template-columns: 1fr;
    }
    
    .bento-item,
    .bento-item:nth-child(1),
    .bento-item:nth-child(2),
    .bento-item:nth-child(3),
    .bento-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* 统计数字 */
    .about-stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    
    /* 荣誉网格 */
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    /* 新闻 */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card-featured {
        grid-template-columns: 1fr;
    }
    
    .news-card-horizontal {
        grid-template-columns: 200px 1fr;
    }
    
    /* CTA按钮 */
    .cta-buttons {
        flex-direction: column;
    }
    
    /* 产品列表 */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* 产品详情 */
    .product-meta-list {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-block {
        flex-direction: column;
        text-align: center;
    }
    
    /* 文章布局 */
    .article-nav {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .article-nav-next {
        text-align: left;
    }
    
    /* 时间线 */
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: var(--space-xl);
        padding-right: 0;
        margin-left: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: var(--space-xl);
        text-align: left;
    }
    
    .timeline-item::before {
        left: -8px !important;
        right: auto !important;
    }
    
    /* 企业文化 */
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    /* 团队 */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 合作伙伴 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 联系卡 */
    .contact-cards-grid {
        grid-template-columns: 1fr;
        margin-bottom: var(--space-lg);
        gap: var(--space-md);
    }
    
    .contact-card {
        padding: var(--space-xl);
    }
    
    .contact-main {
        padding: var(--space-3xl) 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
    }
    
    /* 底部：快速导航和产品中心并列 */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }
    
    .footer-contact-mini {
        align-items: center;
    }
    
    .footer-qrcode {
        grid-column: 1 / -1;
    }
    
    .qrcode-wrap {
        margin: 0 auto var(--space-sm);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .copyright {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* ========================================
   3. 手机 (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
    .scroll-indicator {
        display: none;
    }
    
    /* 区域通用 */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .features-section,
    .about-intro,
    .products-showcase,
    .honors-section,
    .testimonials-section,
    .cta-section,
    .news-section,
    .contact-main,
    .about-intro-section,
    .timeline-section,
    .culture-section,
    .team-section,
    .partners-section,
    .faq-section {
        padding: var(--space-3xl) 0;
    }
    
    /* 特色功能 */
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-item {
        padding: var(--space-md);
    }
    
    /* 关于我们 */
    .about-stats {
        justify-content: space-around;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .about-features-row {
        gap: var(--space-md);
    }
    
    /* 产品卡片 */
    .product-card {
        position: relative;
        margin-bottom: var(--space-md);
    }
    
    /* 荣誉 */
    .honors-grid {
        grid-template-columns: 1fr;
    }
    
    .honor-item {
        display: flex;
        align-items: center;
        gap: var(--space-md);
        text-align: left;
    }
    
    .honor-image {
        width: 80px;
        height: 80px;
        margin: 0;
    }
    
    /* 评价 */
    .testimonial-item {
        padding: var(--space-md);
    }
    
    .testimonial-item blockquote {
        font-size: 1rem;
    }
    
    /* 新闻 */
    .news-card-horizontal {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* 面包屑 - 已启用移动端显示
    .breadcrumb-wrapper {
        display: none;
    } */
    
    /* 页面头部 */
    .page-header {
        padding: var(--space-2xl) 0;
    }
    
        .page-header-img {
        padding: var(--space-3xl) 0;
    }
    
    /* 分类筛选 */
.filter-bar {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: var(--space-sm) !important;
    flex-wrap: wrap !important;
}
    
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tab {
        white-space: nowrap;
    }
    
    .filter-search input {
        width: 180px !important;
        max-width: 180px !important;
    }
    
    .filter-search {
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
    
    /* 产品详情 */
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tabs-header {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex: none;
    }
    
    /* 文章 */
    .article-meta-top {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
    
    /* 团队 */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* 合作伙伴 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-logo {
        height: 60px;
        font-size: 0.85rem;
    }
    
    /* 联系页 */
    .contact-card {
        padding: var(--space-xl);
    }
    
    .contact-card-icon {
        width: 48px;
        height: 48px;
    }
    
    .contact-value {
        font-size: 1.125rem;
    }
    
    .form-captcha .captcha-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-img {
        height: 50px;
        align-self: flex-start;
    }
    
    /* 404 */
    .error-code {
        font-size: 5rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .quick-links {
        gap: var(--space-sm);
    }
    
    /* 底部 */
    .footer {
        padding-top: var(--space-2xl);
    }
    
    .footer-main {
        padding-bottom: var(--space-2xl);
    }
}

/* ========================================
   4. 小手机 (max-width: 479px)
   ======================================== */
@media (max-width: 479px) {
    /* Hero区 */
    .hero {
        min-height: 300px;
    }
    
    .page-header-img {
        padding: var(--space-2xl) 0;
    }
    /* 产品列表改为单列，相关产品保持2列 */
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* 统计 */
    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-item {
        text-align: center;
    }
    
    /* 产品meta */
    .product-meta-list {
        grid-template-columns: 1fr;
    }
    
    .meta-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    /* 底部 */
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ========================================
   5. 横屏优化
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
    }
    
    .hero-content {
        padding: var(--space-lg) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   6. 打印样式
   ======================================== */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .hero-swiper,
    .cta-section,
    .product-actions,
    .product-share,
    .article-share,
    .article-sidebar,
    .cta-block,
    .related-products,
    .newsletter-section {
        display: none !important;
    }
    
    .header-spacer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    article {
        page-break-inside: avoid;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
        opacity: 0.7;
    }
}

/* ========================================
   7. 高对比度模式支持
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #003399;
        --text-primary: #000;
        --border-gray: #666;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* ========================================
   8. 减少动画偏好
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-indicator {
        animation: none;
    }

    /* 合并的移动端规则 - 来自原Block 2和3 */
    .related-products-grid .related-card:nth-child(n+3) {
        display: none;
    }

    .footer-nav ul li a,
    .footer-products ul li a {
        display: inline-block;
        min-width: 44px;
        min-height: 44px;
        line-height: 44px;
        padding: 0 var(--space-md);
    }

    .btn {
        min-height: 44px;
        padding: var(--space-sm) var(--space-lg);
    }

    .tab-btn {
        min-height: 44px;
        padding: var(--space-sm) var(--space-md);
    }

    .page-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========================================
   9. 暗黑模式支持（可选）
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #1a1a1a;
        --bg-light: #2d2d2d;
        --bg-gray: #3d3d3d;
        --text-primary: #f0f0f0;
        --text-secondary: #b0b0b0;
        --border-light: #404040;
        --border-gray: #505050;
    }
}


@media (min-width: 768px) and (max-width: 991px) {
    .nav-toggle {
        display: none !important;
    }
    
    .nav-list {
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        background: transparent !important;
        padding: 0 !important;
        gap: var(--space-xs) !important;
        overflow: visible !important;
    }
    
    .nav-item > a {
        padding: var(--space-sm) var(--space-md);
        border-bottom: none;
        border-radius: var(--radius-sm);
        font-size: 0.875rem;
    }
    
    .nav-item:hover > a {
        background: var(--primary-light);
    }
}

/* ========================================
   移动端触控区域优化 - P0/P1/P2

.nav-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
}

.footer-nav a,
.footer-products a,
.footer-links a,
.footer-contact-mini span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.filter-item,
.filter-tab {
    min-height: 44px;
}

.search-btn {
    min-width: 44px;
    min-height: 44px;
}

.page-numbers a,
.pagination a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button, .btn {
    min-height: 44px;
    min-width: 44px;
}

/* ========================================
   EMERGENCY: Mobile Menu Fix ======================================== */
@media screen and (max-width: 991px) {
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-list {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white, #fff);
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav-list.nav-active {
        transform: translateX(0);
    }
}

/* 移动端触摸目标尺寸优化 - 48px最小尺寸 */
@media (max-width: 991px) {
    .nav-item a {
        min-height: 48px !important;
        padding: 12px 20px !important;
    }
    
    .nav-toggle {
        width: 48px !important;
        height: 48px !important;
    }
}

/* ========================================
   关于我们页重新排版 - 响应式
   ======================================== */
@media (max-width: 991px) {
    .hero-brand-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-brand-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-intro-grid {
        grid-template-columns: 1fr;
    }
    
    .about-intro-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quality-grid {
        grid-template-columns: 1fr;
    }
    
    .quality-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .history-timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(odd)::before {
        left: 12px;
        right: auto;
        transform: translateX(0);
    }
    
    .timeline-year,
    .timeline-item:nth-child(odd) .timeline-year {
        text-align: left;
        padding: 0;
        margin-bottom: var(--space-sm);
    }
    
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        padding: 0;
        text-align: left;
    }
    
    .team-credentials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cta-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-brand-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-stat-item {
        padding: var(--space-lg);
    }
    
    .about-intro-features,
    .expertise-grid,
    .quality-stats {
        grid-template-columns: 1fr;
    }
    
    .partners-showcase {
        flex-direction: column;
        align-items: center;
    }
    
    .partner-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-badges {
        flex-direction: column;
    }
    
    .badge-item {
        text-align: center;
        justify-content: center;
    }
    
    .section-label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-label.center {
        align-items: center;
    }
    
    .label-line {
        width: 30px;
    }
    
    /* 页面头部Banner */
    .page-header-img {
        padding: var(--space-2xl) 0;
    }
}

/* 移动端筛选栏 - max-width: 767px */
@media (max-width: 767px) {
    .filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: var(--space-md) !important;
    }
    
    .filter-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-xs);
        order: 1;
        overflow-x: visible;
    }
    
    .filter-tab,
    .filter-item {
        flex: 1 1 auto;
        min-width: 80px;
        text-align: center;
        padding: var(--space-sm) var(--space-md);
        white-space: nowrap;
    }
    
    .filter-search {
        width: 100%;
        order: 2;
        margin-left: 0 !important;
    }
    
    .filter-search input {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ========================================
   移动端修复 - Mobile Fixes
   ======================================== */

/* 1. 固定宽度元素移动端覆盖 */
@media (max-width: 767px) {
    .newsletter-form input,
    .newsletter-form .form-control {
        width: 100% !important;
        max-width: none !important;
    }
    
    .modal-content {
        max-width: 90vw !important;
        margin: 0 auto;
    }
    
    .error-page .search-form input {
        max-width: 100% !important;
    }
}

/* 2. 字体大小媒体查询 - 防止iOS缩放 */
@media (max-width: 767px) {
    input, textarea, select {
        font-size: 16px !important; /* 防止iOS自动缩放 */
    }
    
    .text-small,
    small,
    .small {
        font-size: 14px !important;
    }
    
    .contact-time,
    .product-category-badge {
        font-size: 12px !important;
    }
}

/* 3. 触摸目标增大到44px */
@media (max-width: 767px) {
    .share-btn,
    .social-share .btn,
    .share-item {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
    }
    
    .filter-tab {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .thumb-item {
        width: 44px;
        height: 44px;
    }
}

/* 4. product_detail_v2.html 样式 */
.product-category-badge {
    font-size: 11px;
}

.product-title {
    font-size: 1.1rem;
    line-height: 1.4;
}

.product-subtitle {
    font-size: 0.875rem;
}

.scenario-icon {
    font-size: 2rem;
}

.product-sidebar-sticky {
    top: 20px;
    z-index: 10;
}

@media (max-width: 991px) {
    .product-sidebar-sticky {
        position: relative !important;
        top: 0 !important;
    }
}

@media (max-width: 767px) {
    .product-title {
        font-size: 1rem;
    }
    
    .scenario-icon {
        font-size: 1.5rem;
    }
}

/* ========================================
   移动端首页Banner修复
   ======================================== */
@media (max-width: 767px) {
    .hero-brand-section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .hero-brand-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--space-md);
        box-sizing: border-box;
    }
    
    .hero-brand-bg {
        min-height: auto;
        padding: var(--space-2xl) 0;
        width: 100%;
    }
    
    .hero-brand-content {
        display: flex;
        flex-direction: column;
        gap: var(--space-xl);
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-brand-text {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-brand-text h1 {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .badge-item {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .hero-brand-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        width: 100%;
    }
    
    .hero-stat-item {
        text-align: center;
    }
    
    .hero-stat-number {
        font-size: 1.25rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
}

/* ========================================
   隐私政策/服务条款页面移动端导航修复
   ======================================== */
@media (max-width: 767px) {
    body > header.header .header-container {
        padding: 0 var(--space-md);
    }
    
    body > header.header .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white, #fff);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    body > header.header .nav-list.active {
        display: flex;
    }
    
    body > header.header .nav-item {
        width: 100%;
        text-align: center;
    }
    
    body > header.header .nav-item a {
        display: block;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--border-light, #e5e7eb);
    }
    
    body > header.header .nav-toggle {
        display: block;
    }
}
@media (max-width: 991px) {
    .nav-item > a, .sub-nav li a {
        min-height: 44px !important;
        padding: 12px 16px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .nav-toggle {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .filter-tab, .filter-item {
        min-height: 44px !important;
        padding: 12px 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .tab-btn {
        min-height: 44px !important;
        padding: 12px 16px !important;
    }
    
    .footer-nav ul li a, .footer-products ul li a {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 0 !important;
    }
    
    .filter-search .search-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .pagination-wrapper span a {
        min-width: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

@media (max-width: 991px) {
    input, textarea, select, .form-group input, .form-group textarea, .form-group select {
        font-size: 16px !important;
    }
    
    .filter-search input {
        font-size: 16px !important;
    }
}

.honors-grid, .filter-tabs, .filter-group {
    touch-action: pan-x;
}

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (max-width: 480px) {
    .filter-search input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* ========================================
   横屏适配修复 - Landscape Mobile
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    /* 首页 Banner 横屏适配 */
    .hero-brand-section {
        min-height: auto;
    }
    
    .hero-brand-bg {
        min-height: auto;
        padding: var(--space-xl) 0;
    }
    
    .hero-brand-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .hero-brand-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-badges {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .badge-item {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }
    
    .hero-brand-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
    
    .hero-stat-number {
        font-size: 1.25rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    /* 关于我们页面横屏适配 */
    .about-section .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .about-section .about-content h2 {
        font-size: 1.25rem;
    }
    
    .about-section .about-desc {
        font-size: 0.85rem;
    }
    
    .about-stats {
        gap: var(--space-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-image {
        max-height: 200px;
        overflow: hidden;
    }
    
    .about-badge {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .about-badge strong {
        font-size: 1.25rem;
    }
    
    /* 页面头部横屏 */
    .page-header {
        min-height: auto;
        padding: var(--space-lg) 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ========================================
   隐私政策/服务条款导航菜单修复
   ======================================== */
@media (max-width: 767px) {
    /* 独立页面头部导航修复 */
    .header-spacer + .breadcrumb-wrapper + .page-header,
    body > .header + .header-spacer + .breadcrumb-wrapper ~ .page-header {
        margin-top: 0;
    }
    
    /* 确保隐私政策/服务条款页面的导航正常工作 */
    html body > header.header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    html body > header.header + .header-spacer {
        height: var(--header-height, 64px);
        display: block;
    }
    
    /* 导航菜单下拉修复 */
    html body > header.header .nav-list {
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white, #fff);
        flex-direction: column;
        padding: var(--space-md);
        overflow-y: auto;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
    
    html body.nav-open > header.header .nav-list {
        transform: translateX(0);
    }
    
    html body > header.header .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-light, #e5e7eb);
    }
    
    html body > header.header .nav-item a {
        display: block;
        padding: var(--space-md) var(--space-sm);
        font-size: 1rem;
    }
    
    /* 汉堡按钮样式 */
    html body > header.header .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        padding: 8px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    html body > header.header .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary, #333);
        margin: 3px 0;
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    }
    
    html body.nav-open > header.header .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    html body.nav-open > header.header .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    html body.nav-open > header.header .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* 遮罩层 */
@media (max-width: 767px) {
    body.nav-open::before {
        content: '';
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
}

/* Mobile Touch Target Fix - Minimum 44px per WCAG 2.1 */
@media (max-width: 767px) {
    /* Navigation links */
    .nav-link,
    .navbar-nav .nav-item .nav-link,
    .footer-link,
    .footer-nav a,
    .bottom-nav a {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile menu items */
    .mobile-menu a,
    .offcanvas a,
    .slide-menu a {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Product cards touch areas */
    .product-card a,
    .product-item a {
        min-height: 44px;
    }
    
    /* Button touch areas */
    .btn-mobile,
    .mobile-cta {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Hero title overflow fix */
    .hero-title-container,
    .hero-content,
    .banner-text {
        overflow-x: hidden;
        word-wrap: break-word;
        max-width: 100%;
    }
}

/* Additional Touch Target Fixes */
@media (max-width: 767px) {
    /* Breadcrumb links */
    .breadcrumb a,
    .breadcrumb-item a {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 12px;
    }
    
    /* View more buttons */
    .btn-outline,
    .btn-view-more,
    .view-more-btn {
        min-height: 44px !important;
        min-width: 120px;
        padding: 10px 20px;
    }
    
    /* Footer small links */
    .footer-bottom a,
    .footer-legal a {
        min-height: 44px;
        padding: 10px 12px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Copyright/ICP link */
    .copyright a,
    .icp-link {
        min-height: 44px;
        min-width: 44px;
        padding: 10px;
    }
}

/* ========================================
   综合移动端响应式优化 - Comprehensive Mobile Responsive
   Added: 2026-04-19
   ======================================== */

/* ========================================
   1. 图片响应式基础 - Image Responsive Base
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   2. 移动优先媒体查询断点 - Mobile-First Breakpoints
   ======================================== */

/* Tablet - 768px and up */
@media (min-width: 768px) {
    /* Tablet specific styles */
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
    /* Desktop specific styles */
}

/* Large Desktop - 1280px and up */
@media (min-width: 1280px) {
    /* Large desktop specific styles */
}

/* ========================================
   3. 触摸目标尺寸优化 - Touch Target Sizes (44x44px minimum)
   WCAG 2.1 / AAA 标准
   ======================================== */
@media (max-width: 767px) {
    /* 按钮基础尺寸 */
    button,
    .btn,
    a.btn,
    input[type="submit"],
    input[type="button"],
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
    }
    
    /* 导航链接 */
    .nav-item a,
    .nav-link {
        min-height: 48px !important;
        padding: 12px 20px !important;
    }
    
    /* 汉堡菜单按钮 */
    .nav-toggle {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* 筛选标签 */
    .filter-tab,
    .filter-item {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    /* 产品卡片和新闻卡片 */
    .product-card,
    .news-card {
        min-height: 44px;
    }
    
    /* 分页按钮 */
    .page-link,
    .pagination a,
    .pagination span {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 标签页按钮 */
    .tab-btn {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    /* 搜索按钮 */
    .search-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* 分享按钮 */
    .share-btn,
    .social-share .btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* 底部链接 */
    .footer-nav ul li a,
    .footer-products ul li a,
    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 0;
    }
    
    /* 面包屑链接 */
    .breadcrumb a,
    .breadcrumb-item a {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 12px;
    }
}

/* ========================================
   4. 字体大小和行高优化 - Font Sizes & Line Height
   防止iOS自动缩放，提升可读性
   ======================================== */
@media (max-width: 767px) {
    body {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    p, li, td, th, span, div {
        line-height: 1.6 !important;
    }
    
    /* 响应式标题大小 - 使用clamp实现流畅缩放 */
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        line-height: 1.3;
    }
    
    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        line-height: 1.35;
    }
    
    h3 {
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        line-height: 1.4;
    }
    
    h4 {
        font-size: clamp(1.1rem, 2.5vw, 1.25rem);
        line-height: 1.4;
    }
    
    h5 {
        font-size: clamp(1rem, 2vw, 1.125rem);
        line-height: 1.45;
    }
    
    h6 {
        font-size: clamp(0.95rem, 1.8vw, 1rem);
        line-height: 1.5;
    }
    
    p {
        margin-bottom: 1rem;
        font-size: 16px;
    }
    
    /* 防止iOS输入框缩放 */
    input,
    textarea,
    select,
    .form-control,
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
    }
    
    /* 小字体处理 */
    .text-small,
    small,
    .small {
        font-size: 14px !important;
    }
}

/* ========================================
   5. 移动端间距优化 - Mobile Spacing (16-24px margins)
   ======================================== */
@media (max-width: 767px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .main-content,
    .content-wrapper {
        padding: 16px;
    }
    
    section,
    .section {
        margin-bottom: 24px;
    }
    
    .card,
    .product-card,
    .news-card,
    .honor-item,
    .feature-item {
        margin-bottom: 16px;
        padding: 16px;
    }
    
    /* 卡片内间距 */
    .card-body,
    .product-card-body,
    .news-card-body {
        padding: 16px;
    }
    
    /* 区块间距 */
    .section-header {
        margin-bottom: 20px;
    }
    
    /* 表单间距 */
    .form-group {
        margin-bottom: 16px;
    }
    
    /* 按钮间距 */
    .btn-group {
        gap: 12px;
    }
}

/* ========================================
   6. CSS Grid/Flexbox 移动端堆叠 - Mobile Grid Stacking
   ======================================== */
@media (max-width: 767px) {
    /* 产品网格 */
    .products-grid,
    .cases-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* 荣誉网格 */
    .honors-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* 新闻网格 */
    .news-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* 关于我们网格 */
    .about-grid,
    .about-intro-grid,
    .about-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* 通用网格行 */
    .grid-row,
    .features-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* Hero品牌网格 */
    .hero-brand-grid,
    .hero-brand-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* 特色功能网格 */
    .features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Bento布局 */
    .bento-grid,
    .products-bento {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* 团队网格 */
    .team-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* 合作伙伴网格 */
    .partners-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* 联系卡片网格 */
    .contact-cards-grid,
    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* 产品详情网格 */
    .product-detail-grid,
    .product-meta-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* 文章布局 */
    .article-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* CTA区块 */
    .cta-block,
    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ========================================
   7. 图片最大宽度优化 - Image Max-Width
   ======================================== */
@media (max-width: 767px) {
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* 文章内图片 */
    .article-content img,
    article img,
    .content img {
        max-width: 100%;
        height: auto;
        margin: 16px 0;
    }
    
    /* 产品图片 */
    .product-image img,
    .product-card img {
        max-width: 100%;
        height: auto;
    }
    
    /* Logo图片 */
    .logo img {
        max-width: 160px;
        height: auto;
    }
}

/* ========================================
   8. 滚动区域优化 - Scrollable Areas
   ======================================== */
.honors-grid,
.filter-tabs,
.filter-group,
.partners-grid {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

/* ========================================
   9. 移动端固定宽度修复 - Fixed Width Fixes
   ======================================== */
@media (max-width: 767px) {
    .newsletter-form input,
    .newsletter-form .form-control,
    .search-form input {
        width: 100% !important;
        max-width: none !important;
    }
    
    .modal-content {
        max-width: 90vw !important;
        margin: 0 auto;
    }
    
    /* 防止水平滚动 */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* 容器最大宽度 */
    .container {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ========================================
   10. 表单优化 - Form Optimization
   ======================================== */
@media (max-width: 767px) {
    /* 表单行改为单列 */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    /* 验证码区域 */
    .form-captcha .captcha-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-img {
        height: 50px;
        align-self: flex-start;
    }
    
    /* 表单操作按钮 */
    .product-actions,
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .product-actions .btn,
    .form-actions .btn {
        width: 100%;
    }
}

/* ========================================
   11. 横屏模式特殊处理 - Landscape Mode
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-brand-section {
        min-height: auto;
    }
    
    .hero-brand-bg {
        min-height: auto;
        padding: 20px 0;
    }
    
    .hero-brand-content {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .hero-brand-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-brand-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   12. 可访问性增强 - Accessibility Enhancement
   ======================================== */
@media (max-width: 767px) {
    /* 跳转链接 */
    .skip-link {
        position: absolute;
        top: -100px;
        left: 0;
        background: var(--primary-color, #2563eb);
        color: white;
        padding: 12px 24px;
        z-index: 9999;
        text-decoration: none;
    }
    
    .skip-link:focus {
        top: 0;
    }
    
    /* 焦点可见性 */
    *:focus {
        outline: 2px solid var(--primary-color, #2563eb);
        outline-offset: 2px;
    }
    
    /* 禁用状态 */
    .btn:disabled,
    button:disabled,
    input:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

/* ========================================
   结束 - End of Comprehensive Mobile Responsive
   ======================================== */

/* ========================================
   移动端触摸优化 - Touch Optimization
   ======================================== */

@media (max-width: 767px) {
    .nav-toggle,
    button, .btn,
    a, .nav-item > a,
    .filter-tab, .filter-item,
    input, select, textarea {
        touch-action: manipulation;
    }
}

.nav-toggle {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.nav-toggle:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

