/* IEQ 响应式设计 - iPad & Mobile Style */

/* ===== iPad 平板 (768px - 1024px) ===== */
@media only screen and (min-width: 768px) and (max-width: 1024px) {

/* Hero区域 */
.home-hero, .about-hero, .products-hero {
    padding: 80px 30px 60px !important;
}
.home-hero h1, .about-hero h1, .products-hero h1 {
    font-size: clamp(28px, 5vw, 42px) !important;
}
.home-hero p, .about-hero p, .products-hero p {
    font-size: 16px !important;
    max-width: 90% !important;
}

/* 统计条 */
.stats-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 90% !important;
}
.stat-item {
    padding: 24px 16px !important;
}
.stat-num {
    font-size: 36px !important;
}

/* 产品网格 */
.products-grid, .cases-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 0 20px !important;
}
.product-card, .product-card .product-img {
    height: auto !important;
}

/* 双栏布局 */
.why-grid, .about-intro {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
}
.why-images {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

/* 资质认证 */
.certs-grid, .values-grid, .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* 团队 */
.team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* 时间轴 */
.timeline::before {
    left: 24px !important;
}
.timeline-item {
    grid-template-columns: 48px 1fr !important;
}
.timeline-item:nth-child(odd) .tl-content,
.timeline-item:nth-child(even) .tl-content {
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 0 !important;
}
}

/* ===== 手机端 (< 768px) ===== */
@media only screen and (max-width: 767px) {

/* 通用设置 */
.section-header {
    padding: 0 20px !important;
}
.section-header h2 {
    font-size: 28px !important;
}
.section-header p {
    font-size: 14px !important;
}

/* 语言切换器 - 调整位置 */
.lang-switcher {
    top: 10px !important;
    right: 10px !important;
    padding: 3px !important;
}
.lang-switcher a {
    padding: 6px 12px !important;
    font-size: 11px !important;
}

/* Hero区域 */
.home-hero, .about-hero, .products-hero {
    padding: 60px 20px 50px !important;
}
.home-hero h1, .about-hero h1, .products-hero h1 {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.3 !important;
}
.home-hero h1 br, .about-hero h1 br {
    display: none !important;
}
.home-hero h1 span, .about-hero h1 span {
    display: block !important;
}
.home-hero p, .about-hero p, .products-hero p {
    font-size: 14px !important;
    line-height: 1.6 !important;
}
.hero-btns {
    flex-direction: column !important;
    gap: 12px !important;
}
.hero-btn-primary, .hero-btn-secondary {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 24px !important;
    font-size: 14px !important;
}

/* 统计条 */
.home-stats {
    margin-top: -30px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    border-radius: 12px !important;
}
.stats-inner {
    grid-template-columns: repeat(2, 1fr) !important;
}
.stat-item {
    padding: 20px 12px !important;
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.stat-item:last-child, .stat-item:nth-child(2) {
    border-bottom: none !important;
}
.stat-num {
    font-size: 28px !important;
}
.stat-label {
    font-size: 11px !important;
}

/* 产品卡片 */
.home-products, .home-why, .home-cases, .home-certs, .home-cta {
    padding: 60px 16px !important;
}
.products-grid, .cases-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 16px !important;
}
.product-card .product-img {
    height: 180px !important;
}
.product-info {
    padding: 20px !important;
}
.product-info h3 {
    font-size: 16px !important;
}
.product-info p {
    font-size: 13px !important;
}

/* 为什么选择我们 */
.why-grid, .about-intro {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 0 16px !important;
}
.why-images {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}
.why-content h2 {
    font-size: 28px !important;
}
.why-list li {
    font-size: 14px !important;
    padding: 12px 0 !important;
}

/* 案例展示 */
.home-cases .section-header h2 {
    font-size: 28px !important;
}
.case-info {
    padding: 16px !important;
}
.case-info h4 {
    font-size: 14px !important;
}
.case-meta {
    flex-direction: column !important;
    gap: 4px !important;
}

/* 资质认证 */
.certs-grid, .values-grid, .features-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    padding: 0 16px !important;
}
.cert-card, .value-card, .feature-card {
    padding: 24px 16px !important;
}
.cert-icon, .value-icon, .feature-icon {
    font-size: 36px !important;
}
.cert-card h4, .value-card h4, .feature-card h4 {
    font-size: 14px !important;
}
.cert-card p, .value-card p, .feature-card p {
    font-size: 12px !important;
}

/* 团队 */
.team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 0 16px !important;
}
.team-avatar {
    width: 70px !important;
    height: 70px !important;
    font-size: 28px !important;
}
.team-card h4 {
    font-size: 14px !important;
}
.team-card p {
    font-size: 12px !important;
}

/* 时间轴 */
.about-timeline {
    padding: 50px 16px !important;
}
.timeline::before {
    left: 20px !important;
    width: 2px !important;
}
.timeline-item {
    grid-template-columns: 40px 1fr !important;
    margin-bottom: 32px !important;
}
.tl-dot {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
}
.tl-content {
    padding: 0 0 0 16px !important;
}
.tl-content .year {
    font-size: 22px !important;
}
.tl-content h3 {
    font-size: 15px !important;
}
.tl-content p {
    font-size: 13px !important;
}

/* CTA区域 */
.home-cta, .products-cta, .about-cta {
    padding: 50px 16px !important;
}
.home-cta h2, .products-cta h2, .about-cta h2 {
    font-size: 26px !important;
}
.home-cta p, .products-cta p, .about-cta p {
    font-size: 14px !important;
}
.cta-btns {
    flex-direction: column !important;
    gap: 12px !important;
}
.cta-btn-white, .cta-btn-outline, .btn-white, .btn-outline {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 24px !important;
}

/* WooCommerce 产品页 */
.woocommerce-products-header {
    padding: 40px 20px !important;
}
.woocommerce-products-header h1 {
    font-size: 28px !important;
}
.woocommerce-result-count {
    font-size: 12px !important;
    margin-bottom: 12px !important;
}
.woocommerce-ordering {
    margin-bottom: 20px !important;
}
.woocommerce-ordering select {
    width: 100% !important;
}
.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 0 16px !important;
}
.product a img {
    height: 160px !important;
}
.woocommerce-loop-product__title {
    font-size: 14px !important;
    padding: 12px 12px 4px !important;
}
.product .price {
    font-size: 16px !important;
    padding: 0 12px 8px !important;
}
.product .button {
    padding: 10px 12px !important;
    font-size: 12px !important;
}

/* 产品详情页 */
.single-product div.product {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 20px !important;
}
.single-product .product_title {
    font-size: 24px !important;
}
.single-product .price {
    font-size: 22px !important;
}

/* 导航菜单调整 */
.site-header-inner-wrap {
    flex-wrap: wrap !important;
}
.main-navigation {
    order: 3 !important;
    width: 100% !important;
    margin-top: 10px !important;
}
.mobile-menu-toggle {
    display: block !important;
}

/* 页脚 */
.site-footer {
    padding: 30px 16px !important;
}
.footer-widgets {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}
}

/* ===== 小手机 (< 480px) ===== */
@media only screen and (max-width: 480px) {

/* 进一步调整 */
.home-hero, .about-hero, .products-hero {
    padding: 50px 16px 40px !important;
}

.stats-inner {
    grid-template-columns: 1fr 1fr !important;
}

.products-grid, .cases-grid, .certs-grid, .values-grid, .team-grid, .features-grid {
    grid-template-columns: 1fr !important;
}

.why-images {
    grid-template-columns: 1fr !important;
}

.product-card .product-img {
    height: 160px !important;
}

.team-grid {
    grid-template-columns: 1fr !important;
}

/* 语言切换器更小 */
.lang-switcher a {
    padding: 5px 10px !important;
    font-size: 10px !important;
}
.lang-switcher .flag {
    font-size: 12px !important;
}

/* 按钮调整 */
.hero-btn-primary, .hero-btn-secondary, .cta-btn-white, .cta-btn-outline {
    padding: 12px 20px !important;
    font-size: 13px !important;
}

/* WooCommerce */
.products {
    grid-template-columns: 1fr !important;
}
.product a img {
    height: 180px !important;
}
}
