/* ================================================================
   media.css — 全站移动端适配（除 header 区域外）
   覆盖页面：index / search / details / document / price / about / news / footer
   断点：768px（平板/手机） / 600px（小屏手机）
   ================================================================ */

/* ========== 通用基础 ========== */
@media (max-width: 768px) {
    .page-wrap { width: 90%; }

    /* 全局 Hero 字号 */
    .hero h1 { font-size: 32px; letter-spacing: -1px; }
    .hero p { font-size: 16px; }
    .hero-inner { padding: 48px 0 36px; }

    /* 全局 CTA */
    .cta { padding: 64px 0; }
    .cta h2 { font-size: 28px; letter-spacing: -0.5px; }
    .cta p { font-size: 15px; margin-bottom: 28px; }
    .cta-btns { flex-direction: column; align-items: center; }
    .cta-btns .btn { padding: 14px 32px; width: 100%; max-width: 280px; text-align: center; }

    /* 全局 Masonry */
    .masonry { column-count: 1; }

    /* 全局卡片 hover 在触屏禁用 */
    .card-hover { opacity: 1; transform: translateY(0); }
    .card:hover .card-hover { opacity: 1; transform: translateY(0); }
    .card:hover .card-img { box-shadow: none; }
    .card:hover .card-img img { transform: none; }

    /* 全局 Section Header */
    .section-header h2 { font-size: 28px; }
    .section-header p { font-size: 14px; }

    /* ========== Footer ========== */
    .footer { padding: 64px 0 32px; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px; padding-bottom: 40px;
    }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* ========== Index 首页 ========== */
    .templates { padding: 0 0 48px; }
    .search-overlay { padding-top: 120px; }
    .search-box { width: 92vw; }

    /* ========== Search 搜索页 ========== */
    .search-area-inner { padding: 32px 0 16px; }
    .filter-tabs { gap: 0; flex-wrap: wrap; }
    .filter-tab { padding: 10px 16px; font-size: 13px; }
    .filter-tab.active::after { left: 16px; right: 16px; }
    .filter-group { gap: 6px; }
    .filter-btn { padding: 5px 10px; font-size: 12px; }
    .templates { padding: 24px 0 64px; }
    .empty-state { padding: 48px 0; }

    /* ========== Details 详情页 ========== */
    .breadcrumb { padding: 56px 0 0; }
    .detail-hero { padding: 24px 0 40px; }
    .detail-hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .detail-info { padding-top: 0; }
    .detail-info h1 { font-size: 28px; letter-spacing: -1px; }
    .detail-info .btn-group {
        flex-direction: column;
    }
    .detail-info .btn-group .btn {
        padding: 14px 32px; width: 100%;
    }
    .cases { padding: 48px 0; }
    .cases-grid { grid-template-columns: 1fr; gap: 16px; }
    .related { padding: 0 0 64px; }
    .related-grid { grid-template-columns: 1fr; gap: 16px; }
    .related-tags { flex-wrap: wrap; gap: 6px; }
    .related-tags a { padding: 5px 12px; font-size: 12px; }

    /* ========== Document 帮助中心 ========== */
    .doc-hero { padding: 32px 0 24px; }
    .doc-hero h1 { font-size: 32px; }
    .hero-desc { font-size: 14px; margin-bottom: 24px; }
    .search-bar { max-width: 100%; }
    .doc-body {
        width: 90%; flex-direction: column; gap: 24px;
        padding: 24px 0 64px;
    }
    .doc-sidebar {
        width: 100%; position: static;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
    }
    .sidebar-nav {
        flex-direction: row; gap: 8px;
        padding-bottom: 4px;
    }
    .sidebar-item {
        white-space: nowrap; padding: 8px 14px;
        border-radius: 999px;
    }
    .sidebar-title { display: none; }
    .sidebar-count { display: none; }
    .sidebar-icon { width: 28px; height: 28px; border-radius: 6px; }
    .article-card { padding: 24px 0; }
    .article-card-top { flex-wrap: wrap; gap: 8px; }
    .article-title {
        font-size: 16px;
        white-space: normal;
        -webkit-line-clamp: 2;
    }
    .article-desc { font-size: 13px; }

    /* ========== Price 定价页 ========== */
    .price-hero { padding: 32px 0 24px; }
    .price-hero h1 { font-size: 32px; }
    .price-hero-desc { font-size: 14px; margin-bottom: 24px; }
    .pricing-section { padding: 0 0 80px; }
    .pricelist-box { padding: 24px 0; }
    .pricelist-header,
    .pricelist-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
    .pricelist-header-title { padding: 16px; }
    .pricelist-header-name { font-size: 15px; }
    .pricelist-header-note { font-size: 11px; }
    .pricelist-plan { padding: 16px 10px; }
    .price-num { font-size: 28px; }
    .pricelist-plan-renew { font-size: 11px; padding: 6px 0; }
    .pricelist-row-label { padding: 12px 16px; font-size: 13px; }
    .pricelist-cell { padding: 12px 10px; }
    .addon-section { padding: 64px 0 80px; }
    .addon-section .section-header { margin-bottom: 40px; }
    .addon-section .section-header h2 { font-size: 32px; }
    .addon-section .section-header p { font-size: 14px; }
    .addon-grid { grid-template-columns: 1fr; max-width: 400px; }

    /* ========== About 关于页 ========== */

    /* --- Hero --- */
    .about-hero {
        padding: 120px 0 64px; min-height: auto;
    }
    .about-hero h1 { font-size: 40px; letter-spacing: -1.5px; }
    .about-hero p { font-size: 16px; margin-bottom: 28px; }
    .about-hero .hero-btn { padding: 14px 28px; font-size: 14px; }

    /* Hero 内 Stats（反色） */
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
    .hero-stat-item { text-align: center; }
    .hero-stat-num { font-size: 40px; }
    .hero-stat-num span { font-size: 28px; }
    .hero-stat-label { font-size: 13px; }

    /* --- Product Intro --- */
    .product-section { padding: 80px 0 64px; }
    .product-layout { grid-template-columns: 1fr; gap: 48px; }
    .product-text { padding-right: 0; }
    .product-text .product-label { font-size: 12px; letter-spacing: 2px; margin-bottom: 20px; }
    .product-text .product-title { font-size: 40px; letter-spacing: -1.5px; margin-bottom: 28px; }
    .product-text p { font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
    .product-text .product-link {
        padding: 12px 24px; font-size: 14px;
        width: 100%; justify-content: center; margin-top: 20px;
    }

    /* Stats Panel */
    .product-stats-panel { padding: 32px 20px; }
    .stats-panel-eyebrow { font-size: 11px; }
    .stats-panel-title { font-size: 22px; margin-bottom: 28px; }
    .stats-panel-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stats-panel-item { padding: 20px 16px; }
    .stats-panel-icon { width: 36px; height: 36px; border-radius: 8px; margin-bottom: 12px; }
    .stats-panel-value { font-size: 26px; }
    .stats-panel-value span { font-size: 18px; }
    .stats-panel-label { font-size: 12px; }
    .stats-panel-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
    .stats-panel-bar-wrap { width: 100%; }
    .stats-panel-bar-value { align-self: flex-start; }

    /* --- Values（深色区块） --- */
    .values-section { padding: 80px 0; }
    .values-header { margin-bottom: 48px; }
    .values-header .section-heading { font-size: 36px; letter-spacing: -1.5px; }
    .values-header .section-desc { font-size: 15px; }
    .values-row { grid-template-columns: 1fr; gap: 0; }
    .value-cell { padding: 40px 24px; }
    .value-cell-number { margin-bottom: 24px; }
    .value-cell-icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px; }
    .value-cell h3 { font-size: 20px; letter-spacing: -0.3px; }
    .value-cell p { font-size: 14px; line-height: 1.75; }

    /* --- Testimonials --- */
    .testimonials-section { padding: 80px 0; }
    .testimonials-header { margin-bottom: 48px; }
    .testimonials-row { grid-template-columns: 1fr; gap: 16px; }
    .testimonial-card { padding: 32px 20px 28px; }
    .testimonial-card-index { font-size: 10px; margin-bottom: 20px; }
    .testimonial-text { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
    .testimonial-text::before { font-size: 48px; top: -16px; }
    .testimonial-author { gap: 12px; padding-top: 20px; }
    .testimonial-avatar { width: 40px; height: 40px; border-radius: 10px; }
    .testimonial-name { font-size: 14px; }
    .testimonial-role { font-size: 12px; margin-top: 2px; }

    /* --- Clients 行业网格 --- */
    .clients-section { padding: 80px 0; }
    .clients-header { margin-bottom: 48px; }
    .clients-header .section-heading { font-size: 36px; }
    .clients-header .section-desc { font-size: 15px; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .client-card { padding: 28px 16px; }
    .client-card-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
    .client-card h4 { font-size: 13px; }
    .client-card p { font-size: 11px; }

    /* --- Series 产品系列 --- */
    .series-section { padding: 80px 0; }
    .series-header { margin-bottom: 48px; }
    .series-cards { grid-template-columns: 1fr; gap: 16px; }
    .series-card { padding: 28px 20px; }
    .series-card-badge { font-size: 10px; padding: 4px 10px; margin-bottom: 12px; }
    .series-card-title { font-size: 24px; }
    .series-card-subtitle { font-size: 13px; }
    .series-card-desc { font-size: 13px; line-height: 1.75; margin-bottom: 16px; }
    .series-card-tags { gap: 6px; margin-bottom: 16px; }
    .series-tag { padding: 4px 10px; font-size: 11px; }
    .series-card-features { gap: 8px; margin-bottom: 20px; }
    .series-feature { padding: 12px 14px; }
    .series-feature svg { width: 16px; height: 16px; }
    .series-feature-h { font-size: 12px; margin-bottom: 2px; }
    .series-feature-p { font-size: 11px; line-height: 1.5; }
    .series-card-btn { padding: 12px 24px; font-size: 13px; width: 100%; justify-content: center; }

    /* --- About 页 Header 反色（移动端） --- */
    .about-hero .hamburger-btn span { background: #fff; }
    .about-hero .icon-btn svg { color: #fff; }

    /* ========== News 资讯页 ========== */
    .news-hero { padding: 32px 0 24px; }
    .news-hero h1 { font-size: 32px; }
    .news-hero-desc { font-size: 14px; margin-bottom: 24px; }
    .news-sidebar {
        flex-wrap: wrap; justify-content: center;
    }
    .sidebar-group { flex-wrap: wrap; justify-content: center; }
    .sidebar-item { padding: 7px 16px; font-size: 13px; }
    .news-body { width: 90%; padding: 24px 0 64px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-pagination { margin-top: 36px; gap: 6px; flex-wrap: wrap; }
    .news-pagination button { min-width: 36px; height: 36px; font-size: 13px; }
}

/* ========== 600px 小屏手机 ========== */
@media (max-width: 600px) {
    /* Price 定价表完全堆叠 */
    .pricelist-header,
    .pricelist-row {
        grid-template-columns: 1fr;
    }
    .pricelist-header-title {
        padding: 16px; border-bottom: 1px solid #e5e5ea;
    }
    .pricelist-plan {
        border-left: none; border-bottom: 1px solid #e5e5ea;
        padding: 14px 16px;
    }
    .pricelist-plan:last-child { border-bottom: none; }
    .pricelist-plan-renew { margin: 12px auto 0; max-width: 140px; }
    .pricelist-row-label {
        border-right: none; border-bottom: 1px solid #f0f0f2;
        padding: 10px 16px; font-size: 13px;
    }
    .pricelist-cell {
        border-right: none; border-bottom: 1px solid #f0f0f2;
        padding: 10px 16px;
        justify-content: flex-start; gap: 8px;
    }
    .pricelist-cell::before {
        content: attr(data-label);
        font-size: 12px; color: #86868b;
    }
    .pricelist-row-values {
        display: grid;
        grid-template-columns: 1fr;
        grid-column: 1;
    }

    /* About 页面更紧凑 */
    .about-hero { padding: 100px 0 48px; }
    .about-hero h1 { font-size: 32px; letter-spacing: -1px; }
    .about-hero p { font-size: 15px; margin-bottom: 24px; }
    .about-hero .hero-btn { padding: 12px 24px; font-size: 13px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
    .hero-stat-num { font-size: 32px; letter-spacing: -1px; }
    .hero-stat-num span { font-size: 22px; }
    .hero-stat-label { font-size: 12px; }

    .product-section { padding: 64px 0 48px; }
    .product-layout { gap: 32px; }
    .product-text .product-title { font-size: 32px; letter-spacing: -1px; }
    .product-text p { font-size: 14px; }
    .stats-panel-grid { grid-template-columns: 1fr; }
    .stats-panel-value { font-size: 24px; }

    .values-section { padding: 64px 0; }
    .values-header .section-heading { font-size: 28px; letter-spacing: -1px; }
    .value-cell { padding: 32px 20px; }
    .value-cell h3 { font-size: 18px; }

    .testimonials-section { padding: 64px 0; }
    .testimonials-header { margin-bottom: 36px; }
    .testimonial-card { padding: 28px 16px 24px; }
    .testimonial-text { font-size: 13px; }
    .testimonial-text::before { font-size: 40px; top: -14px; }

    .clients-section { padding: 64px 0; }
    .clients-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .client-card { padding: 24px 12px; }
    .client-card-icon { width: 40px; height: 40px; border-radius: 10px; }

    .series-section { padding: 64px 0; }
    .series-header { margin-bottom: 36px; }
    .series-card-title { font-size: 22px; }
}
