/* ====================================================================
 * 移动端专属样式 - 商业级响应式设计
 * 适用于 max-width: 767px
 * 不修改HTML结构，仅通过CSS实现布局优化
 * ==================================================================== */

/* --------------------------------------------
 * 1. 全局重置与基础优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    /* 基础字体调整 */
    body {
        font-size: 14px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
    }

    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }

    /* 隐藏桌面端多余元素 */
    .desktop-only {
        display: none !important;
    }
}

/* --------------------------------------------
 * 2. 顶部栏优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .top-bar {
        padding: 6px 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 6px;
    }

    .contact-info {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .contact-info span {
        font-size: 10px;
        gap: 4px;
    }

    .contact-info i {
        font-size: 10px;
        width: auto;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        font-size: 12px;
    }
}

/* --------------------------------------------
 * 3. 头部与导航 - 侧滑菜单设计
 * -------------------------------------------- */
@media (max-width: 767px) {
    .main-header {
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: white;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        padding: 8px 0;
        gap: 10px;
    }

    /* Logo区域 */
    .logo {
        flex: 0 0 auto;
        gap: 8px;
    }

    .logo img {
        height: 36px;
        width: auto;
    }

    .logo-text h1 {
        font-size: 13px;
        white-space: nowrap;
    }

    .logo-text p {
        font-size: 8px;
        white-space: nowrap;
    }

    /* 移动端菜单按钮 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        border-radius: 8px;
        order: 3;
        flex-shrink: 0;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--secondary-color, #061738);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* 语言切换器位置调整 */
    .lang-switcher {
        order: 2;
        margin: 0;
        min-width: auto;
    }

    /* 侧滑导航菜单 */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        overflow-y: auto;
        z-index: 1001;
        margin: 0;
        padding: 70px 0 40px;
        border-left: 1px solid #eee;
    }

    .main-nav.active {
        right: 0;
    }

    /* 菜单打开时锁定滚动 */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* 导航菜单列表 */
    .nav-menu {
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
        margin: 0;
        list-style: none;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        font-size: 15px;
        font-weight: 500;
        color: #1a1a2e;
        white-space: normal;
        background: transparent;
        width: 100%;
    }

    .nav-menu > li > a i {
        font-size: 12px;
        transition: transform 0.3s;
    }

    .nav-menu > li.open > a i {
        transform: rotate(180deg);
    }

    /* 普通下拉菜单 - 移动端样式 */
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        background: #f8f9fa;
        border-radius: 12px;
        padding: 8px 0;
        margin: 0 0 12px 0;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        border: none;
        left: 0 !important;
        right: 0 !important;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 12px 16px;
        font-size: 14px;
        color: #444;
        display: block;
        width: 100%;
    }

    .dropdown-menu li a i {
        width: 20px;
        font-size: 12px;
    }

    /* Mega菜单 - 移动端样式 */
    .mega-dropdown {
        position: static;
    }

    .mega-menu {
        position: static !important;
        width: 100% !important;
        background: #f8f9fa;
        border-radius: 12px;
        padding: 0;
        margin: 0 0 12px 0;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        border: none;
        left: 0 !important;
        right: 0 !important;
    }

    .mega-dropdown.open .mega-menu {
        display: block;
    }

    .mega-menu-container {
        padding: 16px;
    }

    .mega-menu-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mega-menu-col {
        border-right: none;
        padding: 0;
    }

    .mega-menu-col h4 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 10px;
        padding-bottom: 6px;
        border-bottom: 2px solid var(--primary-color, #0a5cf5);
    }

    .mega-menu-col ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mega-menu-col ul li a {
        padding: 6px 0;
        font-size: 13px;
        display: block;
        width: 100%;
    }

    /* 遮罩层 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* --------------------------------------------
 * 4. 语言切换器修复 - 下拉框不超出边界
 * -------------------------------------------- */
@media (max-width: 767px) {
    .lang-switcher {
        position: relative;
        margin-left: auto;
        margin-right: 5px;
    }

    .lang-select {
        padding: 6px 10px;
        gap: 4px;
        min-width: auto;
    }

    .lang-select .lang-name {
        display: none;
    }

    .lang-select i {
        margin: 0;
        font-size: 12px;
    }

    /* 语言下拉框 - 向左弹出避免超出 */
    .lang-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 160px;
        min-width: 140px;
        max-width: 180px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        margin-top: 8px;
        z-index: 1002;
        overflow: hidden;
        border: 1px solid #eee;
    }

    /* 调整箭头位置 */
    .lang-dropdown:before {
        right: 15px;
        left: auto;
        top: -8px;
    }

    .lang-dropdown a {
        padding: 10px 15px;
        font-size: 13px;
        white-space: nowrap;
    }

    .lang-dropdown a .flag-icon {
        width: 22px;
        height: 16px;
        flex-shrink: 0;
    }

    .lang-dropdown a .lang-name {
        display: inline-block;
        font-size: 13px;
    }
}

/* --------------------------------------------
 * 5. 轮播图优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .hero-slider {
        height: 450px;
    }

    .slider-item::before {
        background: linear-gradient(135deg, rgba(6, 23, 56, 0.85) 0%, rgba(10, 92, 245, 0.75) 100%);
    }

    .slider-content {
        padding: 0 20px;
        max-width: 100%;
    }

    .slider-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .slider-content h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .slider-content p {
        font-size: 13px;
        margin-bottom: 20px;
        padding: 0;
    }

    .slider-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
        width: 200px;
        text-align: center;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .slider-arrow.prev {
        left: 12px;
    }

    .slider-arrow.next {
        right: 12px;
    }

    .slider-controls {
        bottom: 20px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* --------------------------------------------
 * 6. 标题区域优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .section-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .section-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .section-desc {
        font-size: 13px;
        padding: 0;
    }
}

/* --------------------------------------------
 * 7. 特性卡片 - 垂直滚动布局
 * -------------------------------------------- */
@media (max-width: 767px) {
    .features-section {
        padding: 50px 0;
    }

    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 20px;
        gap: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }

    .feature-icon i {
        font-size: 28px;
    }

    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* --------------------------------------------
 * 8. 新闻卡片 - 横向滚动布局
 * -------------------------------------------- */
@media (max-width: 767px) {
    .news-section {
        padding: 50px 0;
    }

    .news-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .news-grid::-webkit-scrollbar {
        height: 3px;
    }

    .news-grid::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 10px;
    }

    .news-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color, #0a5cf5);
        border-radius: 10px;
    }

    .news-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        min-width: 260px;
    }

    .news-image {
        height: 180px;
    }


    .news-date {
        top: 12px;
        right: 12px;
        padding: 5px 12px;
        font-size: 11px;
    }

    .news-content {
        padding: 16px;
    }

    .news-category {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .news-content h3 {
        font-size: 15px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .news-summary {
        font-size: 13px;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-more {
        font-size: 12px;
    }
}

/* --------------------------------------------
 * 9. 分类卡片 - 网格2列布局
 * -------------------------------------------- */
@media (max-width: 767px) {
    .categories-section {
        padding: 50px 0;
    }

    .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-card i {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .category-card span {
        font-size: 14px;
    }
}

/* --------------------------------------------
 * 10. 产品列表页 - 隐藏侧边栏
 * -------------------------------------------- */
@media (max-width: 767px) {
    .products-section {
        padding: 30px 0;
    }

    .products-layout {
        flex-direction: column;
        gap: 0;
    }

    /* 隐藏侧边栏（推荐产品和联系我们） */
    .products-layout .products-sidebar {
        display: none !important;
    }

    .products-main {
        width: 100%;
        order: 1;
    }

    .products-header {
        margin-bottom: 20px;
    }

    .products-title {
        font-size: 22px;
    }

    .products-count {
        font-size: 13px;
    }

    .products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 12px;
    }

    .product-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .product-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 9px;
    }

    .product-info {
        flex: 1;
        padding: 0;
    }

    .product-info h3 {
        font-size: 14px;
        height: auto;
        min-height: auto;
        margin-bottom: 4px;
    }

    .product-code {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-desc {
        display: none;
    }

    .product-actions {
        margin-top: 8px;
        gap: 8px;
    }

    .btn-view {
        padding: 6px 12px;
        font-size: 12px;
    }

    .btn-inquire-small {
        width: 32px;
        height: 32px;
    }
}

/* --------------------------------------------
 * 11. 产品详情页 - 隐藏侧边栏
 * -------------------------------------------- */
@media (max-width: 767px) {
    .product-detail-section {
        padding: 30px 0;
        overflow-x: hidden;
    }

    .product-detail-layout {
        display: block;
    }

    /* 隐藏侧边栏（同类产品、推荐产品和联系我们） */
    .product-detail-layout .products-sidebar {
        display: none !important;
    }

    .product-main {
        width: 100%;
    }
}

/* --------------------------------------------
 * 12. 产品图片超出边界修复
 * -------------------------------------------- */
@media (max-width: 767px) {
    /* 产品图库容器 */
    .product-gallery-wrapper {
        width: 100%;
        overflow-x: hidden;
        flex-direction: column;
        gap: 16px;
    }

    /* 主图容器 */
    .product-main-image-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .product-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        position: relative;
    }

    .product-main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-width: 100%;
        display: block;
    }

    /* 缩略图轮播容器 */
    .product-thumbnails-carousel {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        position: relative;
        padding: 0 25px;
    }

    .thumbnails-container {
        width: 100%;
        overflow: hidden;
    }

    .thumbnails-track {
        display: flex;
        gap: 10px;
        transition: transform 0.3s ease;
        will-change: transform;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid #e0e0e0;
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumbnail-item.active {
        border-color: var(--primary-color, #0a5cf5);
    }

    /* 轮播箭头位置调整 */
    .thumbnail-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .thumbnail-arrow.prev {
        left: 0;
    }

    .thumbnail-arrow.next {
        right: 0;
    }

    .thumbnail-arrow.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    /* 指示器 */
    .thumbnail-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .thumbnail-indicator {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ccc;
        transition: all 0.3s;
        cursor: pointer;
    }

    .thumbnail-indicator.active {
        width: 20px;
        background: var(--primary-color, #0a5cf5);
        border-radius: 3px;
    }

    /* 产品信息区域 */
    .product-info-section {
        padding: 0;
    }

    .product-detail-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .product-meta {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .product-sku, .product-category {
        font-size: 12px;
    }

    .product-short-desc {
        font-size: 14px;
        padding: 15px;
        margin-bottom: 20px;
    }

    /* 关键参数 */
    .product-key-params h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .key-params-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .key-param-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }

    .key-param-label {
        margin-bottom: 0;
        font-size: 12px;
    }

    .key-param-value {
        font-size: 14px;
    }

    /* 操作按钮 */
    .product-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .btn-inquire, .btn-whatsapp {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    /* 参数表格 */
    .product-params-section h3,
    .product-description-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .params-table {
        display: block;
        width: 100%;
    }

    .params-table tbody {
        display: block;
    }

    .params-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid var(--border-color, #e9ecef);
        border-radius: 8px;
        overflow: hidden;
    }

    .params-table td {
        display: block;
        width: 100%;
        padding: 10px 15px;
        border: none;
    }

    .params-table td:first-child {
        background: var(--bg-light, #f8faff);
        font-weight: 600;
        border-bottom: 1px solid var(--border-color, #e9ecef);
    }

    /* 产品描述 */
    .product-description-content {
        padding: 20px;
        font-size: 14px;
        line-height: 1.7;
    }
}

/* --------------------------------------------
 * 13. 新闻列表页优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .news-list-section {
        padding: 30px 0;
    }

    .news-layout {
        flex-direction: column;
        gap: 30px;
    }

    .news-sidebar {
        width: 100%;
        order: 2;
    }

    .news-main {
        order: 1;
    }

    .news-header {
        margin-bottom: 20px;
    }

    .news-main-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .news-count {
        font-size: 13px;
    }

    /* 新闻列表项 - 卡片式 */
    .news-list-item {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .news-list-item .news-date {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 15px;
    }

    .news-list-item .news-date .day {
        font-size: 20px;
    }

    .news-list-item .news-date .month {
        font-size: 12px;
        margin-top: 0;
    }

    .news-list-item .news-content {
        padding: 16px;
    }

    .news-list-item .news-content h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .news-list-item .news-meta {
        gap: 12px;
        font-size: 11px;
        flex-wrap: wrap;
    }

    .news-list-item .news-summary {
        font-size: 13px;
        line-height: 1.5;
        margin-top: 8px;
    }
}

/* --------------------------------------------
 * 14. 文章详情页优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .article-section {
        padding: 30px 0;
    }

    .article-layout {
        flex-direction: column;
        gap: 30px;
    }

    .article-sidebar {
        width: 100%;
        order: 2;
    }

    .article-main {
        order: 1;
    }

    .article {
        padding: 20px;
        margin-bottom: 20px;
    }

    .article-header {
        margin-bottom: 20px;
    }

    .article-title {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 15px;
        font-size: 12px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-content h2 {
        font-size: 20px;
        margin: 25px 0 12px;
    }

    .article-content h3 {
        font-size: 17px;
        margin: 20px 0 10px;
    }

    .article-content blockquote {
        padding: 15px 20px;
        margin: 20px 0;
        font-size: 14px;
    }

    .article-footer {
        margin-top: 25px;
        padding-top: 15px;
    }

    .article-share {
        gap: 10px;
    }

    .article-share a {
        width: 34px;
        height: 34px;
    }

    .article-navigation {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
        padding-top: 20px;
    }

    .nav-prev, .nav-next {
        max-width: 100%;
    }

    .nav-label {
        font-size: 12px;
    }

    .nav-title {
        font-size: 13px;
    }
}

/* --------------------------------------------
 * 15. 联系页面优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .contact-section {
        padding: 30px 0;
    }

    .contact-layout {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    /* 联系信息卡片 - 2列网格 */
    .info-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 20px;
    }

    .info-card {
        padding: 16px 12px;
    }

    .info-card .icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .info-card .icon i {
        font-size: 20px;
    }

    .info-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .info-card p {
        font-size: 12px;
    }

    .info-card small {
        font-size: 10px;
    }

    /* 联系表单 */
    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .contact-form-container h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .contact-form .form-row {
        display: block;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 14px;
    }

    /* 社交媒体 */
    .social-media-section {
        margin-top: 25px;
    }

    .social-media-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .social-links-contact {
        gap: 12px;
        flex-wrap: wrap;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* 地图 */
    .contact-map h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .map-placeholder {
        height: 250px;
    }
}

/* --------------------------------------------
 * 16. 侧边栏部件优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }

    .widget-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    /* 推荐产品列表 - 横向滚动 */
    .featured-products-list {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }

    .featured-product-item {
        flex: 0 0 160px;
        scroll-snap-align: start;
        flex-direction: column;
        text-align: center;
        padding: 12px;
        border: 1px solid var(--border-color, #e9ecef);
        border-radius: 10px;
        background: white;
    }

    .product-image-small {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .product-info-small h4 {
        white-space: normal;
        font-size: 13px;
        margin-top: 8px;
    }

    /* 同类产品 */
    .category-products-list {
        gap: 12px;
    }

    .related-product-item {
        padding: 8px;
    }

    .related-product-image {
        width: 50px;
        height: 50px;
    }

    .related-product-info h4 {
        font-size: 13px;
        white-space: normal;
    }

    /* 联系我们部件 */
    .contact-item {
        gap: 10px;
        margin-bottom: 12px;
    }

    .contact-item i {
        font-size: 14px;
    }

    .contact-item span {
        font-size: 11px;
    }

    .contact-item a,
    .contact-item p {
        font-size: 13px;
    }

    .btn-contact {
        padding: 10px;
        font-size: 13px;
    }

    /* 新闻分类 */
    .category-list li a {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 最近文章 */
    .recent-posts-list {
        gap: 12px;
    }

    .recent-post-item h4 {
        font-size: 13px;
    }

    .recent-post-item .post-date {
        font-size: 11px;
    }
}

/* --------------------------------------------
 * 17. 分页优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .pagination {
        gap: 6px;
        margin: 30px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination a, 
    .pagination span {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 13px;
    }
}

/* --------------------------------------------
 * 18. 面包屑导航优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .breadcrumb-section {
        padding: 12px 0;
    }

    .breadcrumb-content {
        font-size: 11px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        align-items: center;
    }

    .breadcrumb-content::-webkit-scrollbar {
        display: none;
    }

    .separator {
        margin: 0 6px;
    }

    .separator i {
        font-size: 10px;
    }
}

/* --------------------------------------------
 * 19. 页脚优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-about {
        text-align: center;
    }

    .footer-about p {
        font-size: 13px;
        line-height: 1.6;
        margin: 15px 0;
    }

    .footer h3 {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        text-align: center;
    }

    .footer h3:after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }

    .footer ul {
        text-align: center;
    }

    .footer ul li a {
        justify-content: center;
        font-size: 13px;
    }

    .footer-contact li {
        justify-content: center;
        font-size: 13px;
    }

    .social-links-footer {
        justify-content: center;
        margin-top: 15px;
    }

    .social-links-footer a {
        width: 38px;
        height: 38px;
    }

    .copyright {
        font-size: 11px;
        padding-top: 15px;
        text-align: center;
    }

    .copyright p {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .copyright a {
        margin: 0 3px;
    }
}

/* --------------------------------------------
 * 20. 返回顶部按钮
 * -------------------------------------------- */
@media (max-width: 767px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* --------------------------------------------
 * 21. 模态框优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    .modal {
        padding: 20px;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .success-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }

    .modal-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .modal-content p {
        font-size: 13px;
    }
}

/* --------------------------------------------
 * 22. 平板横屏优化 (介于手机和平板之间)
 * -------------------------------------------- */
@media (min-width: 480px) and (max-width: 767px) {
    /* 特性卡片 - 2列 */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 15px;
    }

    /* 产品网格 - 2列 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 180px;
    }

    .product-info {
        padding: 15px;
    }

    .product-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* 联系信息卡片 - 2列 */
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 新闻分类 - 3列 */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 新闻卡片 */
    .news-card {
        flex: 0 0 70%;
        min-width: 240px;
    }
}

/* --------------------------------------------
 * 23. 触摸优化
 * -------------------------------------------- */
@media (max-width: 767px) {
    /* 增大点击区域 */
    button,
    a,
    .nav-menu > li > a,
    .dropdown-menu li a,
    .social-link,
    .btn-submit,
    .pagination a,
    .thumbnail-item,
    .category-card,
    .featured-product-item,
    .related-product-item,
    .close,
    .slider-arrow,
    .slider-dot,
    .thumbnail-arrow,
    .thumbnail-indicator {
        cursor: pointer;
    }

    /* 移除触摸高亮 */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* 滚动优化 */
    .news-grid,
    .featured-products-list,
    .products-grid {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* 表单字体防止缩放 (iOS) */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* 禁用双击缩放 */
    button,
    a,
    .btn {
        touch-action: manipulation;
    }
}

/* --------------------------------------------
 * 24. 小屏手机深度优化 (小于380px)
 * -------------------------------------------- */
@media (max-width: 380px) {
    .slider-content h2 {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }

    .product-detail-title {
        font-size: 18px;
    }

    .article-title {
        font-size: 18px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .product-thumbnails-carousel {
        padding: 0 20px;
    }

    .info-card .icon {
        width: 42px;
        height: 42px;
    }

    .info-card .icon i {
        font-size: 16px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-card i {
        font-size: 28px;
    }

    .category-card span {
        font-size: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 170px;
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* --------------------------------------------
 * 25. 横屏模式优化 (高度小于500px)
 * -------------------------------------------- */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
    .hero-slider {
        height: 300px;
    }

    .slider-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .slider-content p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .slider-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: auto;
        min-width: 130px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .features-section,
    .news-section,
    .categories-section {
        padding: 30px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .feature-card {
        padding: 12px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 20px;
    }

    .feature-card h3 {
        font-size: 13px;
    }

    .feature-card p {
        font-size: 11px;
        display: none;
    }

    .footer {
        padding: 20px 0 10px;
    }

    .footer-grid {
        gap: 15px;
        margin-bottom: 15px;
    }

    .footer h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
}