@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .quick-access .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 整体缩放 */
    body {
        font-size: 14px;
    }

    /* 头部导航调整为单行 */
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 0 15px;
        position: relative;
    }

    /* Logo 缩小 */
    .header .logo img {
        width: 120px;
        height: 36px;
    }

    /* 导航菜单下拉样式 */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
        text-align: center;
    }

    .main-nav.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 20px;
        font-size: 14px;
        color: #333;
        justify-content: center;
    }

    /* 导航切换按钮 */
    .nav-toggle {
        padding: 5px 10px;
        border: 1px solid #333;
        border-radius: 4px;
        background: none;
        color: #333;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .nav-toggle.active {
        background: #333;
        color: #fff;
    }

    /* 隐藏搜索框 */
    .search-box {
        display: none;
    }

    /* 内容区域调整 */
    .section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* 网格布局调整 */
    .grid {
        gap: 15px;
    }

    .grid-item {
        padding: 15px;
    }

    /* 产品卡片调整 */
    .product-card {
        padding: 10px;
    }

    .product-card img {
        height: 180px;
    }

    .product-info h3 {
        font-size: 16px;
    }

    /* 页脚调整：手机端尽量横向展示 */
    .footer {
        padding: 24px 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: left;
        gap: 16px;
    }

    /* 轮播图调整 */
    .hero-slider {
        margin-top: 50px;
        width: 100%;
        overflow: hidden;
    }

    /* 仅英雄位轮播固定高度，中部轮播由 flex 填充与英雄位一致的板块高度 */
    .hero-slider:not(.mid-carousel) .slider-container {
        width: 100%;
        height: 300px;
        display: flex;
        position: relative;
    }
    .slider-container {
        width: 100%;
        display: flex;
        position: relative;
    }

    .slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        position: relative;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .slide-content {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0) 100%
        );
        color: #fff;
        text-align: center;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 40px;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* 指示器调整 */
    .slider-indicators {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }

    .indicator {
        width: 30px;
        height: 3px;
        margin: 0 4px;
    }

    /* 轮播图按钮调整 */
    .slide-content .btn {
        padding: 8px 20px;
        font-size: 14px;
        border-radius: 4px;
        min-width: 120px;
        max-width: 160px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .container {
        padding: 0 10px;
    }

    .quick-access .grid {
        grid-template-columns: 1fr;
    }

    /* 超小屏：页脚仍保持两列，但间距更紧凑 */
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hero-slider {
        margin-top: 50px;
    }

    .hero-slider:not(.mid-carousel) .slider-container {
        height: 250px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .slide-content p {
        font-size: 12px;
    }

    /* 按钮和表单元素调整 */
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .search-box input {
        height: 32px;
        font-size: 14px;
    }

    /* 特性区块调整 */
    .feature-item {
        padding: 15px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    /* 场景展示调整 */
    .scene-item {
        height: 200px;
    }

    .scene-info {
        padding: 10px;
    }

    .scene-info h3 {
        font-size: 16px;
    }
    /* 更小屏幕按钮进一步调整 */
    .slide-content .btn {
        padding: 6px 16px;
        font-size: 12px;
        border-radius: 3px;
        min-width: 100px;
        max-width: 140px;
    }
} 
