/* 手机端优化样式 - 光亮智虹谱 - 简化版 */

@media screen and (max-width: 768px) {
    :root {
        --primary: #1a3a5c;
        --secondary: #e8a925;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* 头部 - 不固定，让内容正常显示 */
    .header {
        position: relative;
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    /* 头部布局 - 改为竖向或者多行 */
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }
    
    /* Logo缩小 */
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 16px !important;
    }
    
    .logo-sub {
        font-size: 10px !important;
    }
    
    /* 导航横向排列，可滚动 */
    .nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 5px !important;
        padding: 5px 0;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
    }
    
    .nav a {
        white-space: nowrap;
        font-size: 12px !important;
        padding: 6px 10px !important;
        background: #f5f7fa;
        border-radius: 15px;
        flex-shrink: 0;
    }
    
    .nav a:hover, .nav a.active {
        background: var(--primary) !important;
        color: #fff !important;
    }
    
    .nav a::after {
        display: none !important;
    }
    
    /* 搜索框显示，但缩小 */
    .header-search {
        display: flex !important;
        width: 100%;
        order: 10;
        margin-top: 5px;
    }
    
    .header-search input {
        flex: 1;
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    
    .header-search button {
        padding: 8px 12px !important;
    }
    
    /* 隐藏汉堡菜单按钮 */
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* 轮播缩小 */
    .banner {
        height: 30vh;
        min-height: 180px;
    }
    
    .banner-title {
        font-size: 18px !important;
    }
    
    .banner-subtitle {
        font-size: 12px !important;
    }
    
    /* 产品网格 - 两列 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .product-card {
        margin-bottom: 0 !important;
    }
    
    .product-image {
        height: 100px !important;
    }
    
    .product-image img {
        object-fit: contain;
    }
    
    .product-info {
        padding: 8px !important;
    }
    
    .product-category {
        font-size: 9px !important;
    }
    
    .product-title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-desc {
        display: none;
    }
    
    .product-model {
        display: none;
    }
    
    .product-link {
        font-size: 11px !important;
    }
    
    /* 新闻卡片 */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .news-card-body {
        padding: 12px !important;
    }
    
    .news-card h3 {
        font-size: 13px !important;
    }
    
    .news-filters {
        gap: 6px !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-filters a {
        white-space: nowrap;
        padding: 5px 12px !important;
        font-size: 12px !important;
    }
    
    /* 产品详情 */
    .product-detail-content {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .product-gallery {
        width: 100% !important;
    }
    
    .product-gallery-main {
        height: 180px !important;
    }
    
    .product-gallery-main img {
        object-fit: contain;
    }
    
    .product-info-detail h1 {
        font-size: 18px !important;
    }
    
    .product-meta-item {
        padding: 6px 10px !important;
    }
    
    .product-meta-label {
        font-size: 11px !important;
    }
    
    .product-meta-value {
        font-size: 12px !important;
    }
    
    /* 关于页面 */
    .about-content {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .about-stats {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        padding: 8px 15px !important;
    }
    
    /* 联系页面 */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* 表单优化 */
    input, textarea, select {
        font-size: 16px !important;
        padding: 10px !important;
    }
    
    /* 按钮 */
    .btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-height: 40px;
    }
    
    /* 页脚 */
    .footer-content {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center;
    }
    
    .footer-bottom {
        font-size: 11px !important;
        padding: 10px !important;
    }
    
    /* 弹窗 */
    .news-detail-content {
        margin: 10px !important;
        padding: 15px !important;
        max-height: 85vh !important;
    }
    
    .news-detail-content h2 {
        font-size: 16px !important;
    }
    
    /* 分类标签 */
    .category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .category-card {
        padding: 10px 5px !important;
    }
    
    .category-card h3 {
        font-size: 11px !important;
    }
    
    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        gap: 5px !important;
    }
    
    .pagination a, .pagination span {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    
    /* 统计数字 */
    .stats {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .stat-box {
        flex: 1;
        min-width: 45%;
        padding: 12px !important;
    }
    
    .stat-box h3 {
        font-size: 20px !important;
    }
    
    /* 品牌优势 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .feature-card {
        padding: 12px !important;
    }
    
    .feature-card h3 {
        font-size: 13px !important;
    }
    
    .feature-card p {
        font-size: 11px !important;
    }
    
    /* section间距缩小 */
    section {
        padding: 30px 0 !important;
    }
    
    .section-title h2 {
        font-size: 18px !important;
    }
    
    .section-title p {
        font-size: 12px !important;
    }
}

/* ========== 超小屏幕 ========== */
@media screen and (max-width: 480px) {
    .banner-title {
        font-size: 16px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========== 平板适配 ========== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
