/**
 * 开小店SaaS官网 - 响应式样式
 * 适配PC、平板、手机
 */

/* ==================== 平板适配 (≤1024px) ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    /* 注意：手机端导航样式已移至 mobile-nav.css */
    
    /* Banner */
    .banner-section {
        height: 500px;
    }
    
    .banner-text h1 {
        font-size: 36px;
    }
    
    .banner-text p {
        font-size: 18px;
    }
    
    /* 产品网格 */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 优势网格 */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 产品详情 */
    .product-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-hero-content {
        text-align: center;
    }
    
    .product-hero-content h1 {
        font-size: 32px;
    }
    
    /* 价格表 */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.recommended {
        transform: none;
    }
    
    .pricing-card.recommended:hover {
        transform: translateY(-5px);
    }
    
    /* 文章布局 */
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        order: -1;
    }
    
    /* 底部 */
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 手机适配 (≤768px) ==================== */
@media (max-width: 768px) {
    /* Banner */
    .banner-section {
        height: 450px;
    }
    
    .banner-text h1 {
        font-size: 28px;
    }
    
    .banner-text p {
        font-size: 16px;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .banner-buttons .btn {
        width: 100%;
    }
    
    /* 区块标题 */
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    /* 产品网格 */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    /* 优势网格 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-item {
        padding: 20px;
    }
    
    /* 产品详情 */
    .product-detail-section {
        padding: 100px 0 60px;
    }
    
    .product-hero {
        margin-bottom: 60px;
    }
    
    .product-hero-content {
        text-align: center;
    }
    
    .product-hero-content h1 {
        font-size: 26px;
    }
    
    .product-hero-content .subtitle {
        font-size: 18px;
    }
    
    .product-hero-content .banner-buttons {
        justify-content: center;
    }
    
    .product-hero-image {
        order: -1;
    }
    
    .product-hero-image img {
        max-height: 250px;
        width: 100%;
        object-fit: cover;
    }
    
    .product-hero-placeholder {
        height: 250px;
    }
    
    /* 价格表 */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    /* 价格汇总页 */
    .price-section {
        padding: 100px 0 60px;
    }
    
    /* 关于我们 */
    .about-section {
        padding: 100px 0 60px;
    }
    
    .about-content h2 {
        font-size: 24px;
    }
    
    .about-content h3 {
        font-size: 18px;
    }
    
    .about-content p,
    .about-content ul li {
        font-size: 15px;
    }
    
    /* 联系我们 */
    .contact-section {
        padding: 100px 0 60px;
    }
    
    .contact-content h2 {
        font-size: 24px;
    }
    
    .contact-info-box {
        padding: 20px;
    }
    
    /* 文章资讯 */
    .news-section {
        padding: 100px 0 60px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-thumb {
        height: 180px;
    }
    
    .article-detail {
        padding: 24px;
    }
    
    .article-header h1 {
        font-size: 22px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    /* 底部 */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-qrcode .qrcode-box,
    .footer-qrcode .qrcode-placeholder {
        margin: 0 auto;
    }
    
    /* 侧边客服 - 手机端改为点击弹出 */
    .sidebar-service {
        right: 10px;
        bottom: 20px;
        z-index: 999;
    }
    
    .sidebar-service a {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    /* 全局弹窗 - 手机端隐藏 */
    .global-popup {
        display: none !important;
    }
    
    /* 客服弹窗 - 手机端全屏居中 */
    .service-popup .popup-content,
    .product-trial-popup .popup-content {
        max-width: 300px;
        width: 85%;
    }
    
    .service-popup .popup-body img,
    .product-trial-popup .popup-body img {
        width: 160px;
        height: 160px;
    }
}

/* ==================== 小屏手机适配 (≤480px) ==================== */
@media (max-width: 480px) {
    /* 头部 */
    .header-inner {
        height: 60px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .btn-trial {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .btn-trial i {
        display: none;
    }
    
    .main-nav {
        top: 60px;
    }
    
    /* Banner */
    .banner-section {
        height: 400px;
        margin-top: 60px;
    }
    
    .banner-text h1 {
        font-size: 24px;
    }
    
    .banner-text p {
        font-size: 14px;
    }
    
    /* 区块 */
    .products-section,
    .advantages-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    /* 产品卡片 */
    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .product-card h3 {
        font-size: 20px;
    }
    
    /* 价格卡片 */
    .pricing-card h3 {
        font-size: 20px;
    }
    
    .pricing-card .price {
        font-size: 36px;
    }
    
    /* 分页 */
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    /* 文章 */
    .news-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .news-item h3 {
        font-size: 16px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 20px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .header,
    .footer,
    .sidebar-service,
    .global-popup,
    .mobile-menu-btn,
    .btn-trial {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .banner-section {
        height: auto;
        margin-top: 0;
        page-break-after: avoid;
    }
    
    .product-card,
    .pricing-card,
    .news-item {
        break-inside: avoid;
    }
}
