/* ============================================
   QIANMIAO THEME - Bug Fixes & Improvements
   Version: 6.0.0
   Last Updated: 2026-01-29
   ============================================ */

/* ===========================================
   1. PRODUCT DETAIL - QUICK QUOTE TITLE WHITE
   =========================================== */

.quick-quote-title,
h2.quick-quote-title,
.quick-quote-cta .quick-quote-title,
.quick-quote-content .quick-quote-title,
.quick-quote-cta h2,
.quick-quote-cta h2.quick-quote-title {
    color: #ffffff !important;
}

.quick-quote-text,
.quick-quote-cta p {
    color: rgba(255,255,255,0.9) !important;
}

/* ===========================================
   2. PRODUCT DETAIL - TABLE STYLING
   =========================================== */
/* 
 * 表格样式已统一移至 product-detail.css 管理
 * 包含: .specs-table, .full-specs-table, .info-table
 * 请勿在此文件添加表格相关样式
 */

/* ===========================================
   3. QUALITY PAGE - EQUIPMENT IMAGE FIX
   =========================================== */

.equipment-image {
    position: relative;
    width: 100%;
    height: 200px;
    min-height: 180px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.equipment-image.no-image {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.equipment-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.equipment-placeholder svg {
    width: 64px;
    height: 64px;
    color: #0095de;
    opacity: 0.4;
}

/* ===========================================
   4. SUPPORT PAGE - BUTTON FIX
   =========================================== */

.support-form button[type="submit"],
.support-form .btn-primary,
.support-form button.btn-primary,
form button[type="submit"].btn-primary,
button.btn.btn-primary[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    padding: 14px 28px !important;
    min-width: fit-content !important;
    width: auto !important;
}

.support-form button[type="submit"] .btn-icon,
.support-form .btn-primary .btn-icon,
button.btn-primary .btn-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

@media (max-width: 576px) {
    .support-form button[type="submit"],
    .support-form .btn-primary {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ===========================================
   5. SHIPPING PAGE - MAP IMPROVEMENT
   =========================================== */

.coverage-map {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 20px rgba(0,149,222,0.1);
}

.coverage-map::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 120px 80px at 20% 35%, rgba(0,149,222,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 100px 70px at 50% 30%, rgba(0,149,222,0.30) 0%, transparent 70%),
        radial-gradient(ellipse 140px 90px at 75% 40%, rgba(0,149,222,0.35) 0%, transparent 70%),
        radial-gradient(ellipse 60px 45px at 70% 70%, rgba(0,149,222,0.20) 0%, transparent 70%),
        radial-gradient(ellipse 70px 50px at 30% 75%, rgba(0,149,222,0.15) 0%, transparent 70%);
    z-index: 0;
    animation: mapPulse 4s ease-in-out infinite;
}

@keyframes mapPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.coverage-map-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    position: relative;
    z-index: 1;
}

.coverage-map svg {
    filter: drop-shadow(0 4px 12px rgba(0,149,222,0.2));
}

.coverage-map svg ellipse {
    animation: regionPulse 3s ease-in-out infinite;
}

.coverage-map svg ellipse:nth-child(2) { animation-delay: 0.4s; }
.coverage-map svg ellipse:nth-child(3) { animation-delay: 0.8s; }
.coverage-map svg ellipse:nth-child(4) { animation-delay: 1.2s; }
.coverage-map svg ellipse:nth-child(5) { animation-delay: 1.6s; }
.coverage-map svg ellipse:nth-child(6) { animation-delay: 2s; }

@keyframes regionPulse {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.02); }
}

.coverage-map svg circle {
    filter: drop-shadow(0 0 6px rgba(0,149,222,0.6));
}

/* ===========================================
   6. SHIPPING PAGE - COLD CHAIN TITLE WHITE
   =========================================== */

.cold-chain h2,
.cold-chain-info h2,
.cold-chain .cold-chain-title,
h2.cold-chain-title,
.cold-chain-info .cold-chain-title {
    color: #ffffff !important;
}

.cold-chain-info p {
    color: rgba(255,255,255,0.9) !important;
}

/* ===========================================
   7. DISTRIBUTOR PAGE - FONT CONSISTENCY
   =========================================== */

.page-template-page-distributor,
.page-template-page-distributor *,
.distributor-page,
.distributor-page * {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.page-template-page-distributor h1,
.page-template-page-distributor h2,
.page-template-page-distributor h3,
.page-template-page-distributor h4,
.page-template-page-distributor h5,
.page-template-page-distributor h6,
.distributor-page h1,
.distributor-page h2,
.distributor-page h3,
.distributor-page h4,
.distributor-page h5,
.distributor-page h6 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
}

.page-template-page-distributor input,
.page-template-page-distributor select,
.page-template-page-distributor textarea,
.page-template-page-distributor .form-input,
.page-template-page-distributor .form-select,
.page-template-page-distributor .form-textarea,
.distributor-page input,
.distributor-page select,
.distributor-page textarea {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.value-title,
.distributor-shipping h2 {
    color: #ffffff !important;
}

/* ===========================================
   8. PRODUCTS PAGE - FILTER CARD TITLE
   =========================================== */

.filter-card h4 {
    color: #fff !important;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.product-badge {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===========================================
   9. SEARCH RESULTS PAGE FIXES
   =========================================== */

.search-results-header {
    padding-top: calc(var(--topbar-height, 40px) + var(--header-height, 72px) + 40px);
}

.search-filters-bar {
    top: calc(var(--topbar-height, 40px) + var(--header-height, 72px));
}

/* ===========================================
   10. PRODUCT DETAIL PAGE - ACTION BUTTONS
   ★ 修复: 覆盖 products.css 中的 pointer-events: none
   =========================================== */

/* 产品详情页的按钮需要可点击 */
.product-detail .product-actions,
.product-info-card .product-actions {
    pointer-events: auto !important;
}

.product-detail .product-actions .btn,
.product-info-card .product-actions .btn {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.product-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 20px;
}

.product-actions.has-two-buttons .btn {
    flex: 1;
    min-width: 0;
}

.product-actions.has-one-button .btn {
    width: 100%;
}

.product-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #0095de 0%, #00b4ff 100%);
    color: white;
    border: none;
}

.product-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 149, 222, 0.3);
}

.product-actions .btn-outline {
    background: white;
    color: #0095de;
    border: 2px solid #e5e7eb;
}

.product-actions .btn-outline:hover {
    border-color: #0095de;
    background: #f0f9ff;
}

@media (max-width: 576px) {
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions.has-two-buttons .btn,
    .product-actions.has-one-button .btn {
        width: 100%;
        flex: none;
    }
}

/* ===========================================
   11. FAQ PAGE FIXES
   =========================================== */

.faq-sidebar {
    position: sticky;
    top: calc(var(--header-height, 72px) + var(--topbar-height, 40px) + 24px);
    height: fit-content;
    max-height: calc(100vh - var(--header-height, 72px) - var(--topbar-height, 40px) - 48px);
    overflow-y: auto;
}

.faq-contact-title {
    color: #fff !important;
}

.faq-contact .btn-primary {
    background: white !important;
    color: #0095de !important;
}

.faq-contact .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .faq-sidebar {
        position: static;
        max-height: none;
    }
    
    .faq-categories {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
    }
    
    .faq-category-btn {
        flex-shrink: 0;
    }
}

/* ===========================================
   12. CONTACT PAGE FIXES
   =========================================== */

.contact-info-title,
.contact-method-title,
.contact-social-title {
    color: #fff !important;
}

/* ===========================================
   13. QUALITY PAGE CTA FIXES
   =========================================== */

.quality-cta .cta-title,
.quality-cta h2.cta-title {
    color: #fff !important;
}

.quality-cta .btn-primary {
    background: white !important;
    color: #0095de !important;
}

.quality-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* ===========================================
   14. SERVICES PAGE CTA FIXES
   =========================================== */

.cta {
    background: linear-gradient(135deg, #0095de 0%, #007ab8 100%);
}

.cta .cta-title {
    color: #fff !important;
}

.cta .cta-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

.cta .btn-primary {
    background: white !important;
    color: #0095de !important;
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
}

.cta .btn-outline {
    background: transparent !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.cta .btn-outline:hover {
    border-color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ===========================================
   15. DISTRIBUTOR PAGE - COVERAGE STATS
   =========================================== */

.coverage-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.coverage-stat {
    text-align: center;
    flex: 0 0 auto;
    min-width: 80px;
}

@media (max-width: 768px) {
    .coverage-stats {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        gap: 10px;
    }
    
    .coverage-stat {
        flex: 1;
        min-width: 0;
    }
    
    .coverage-stat-value {
        font-size: 24px;
    }
    
    .coverage-stat-label {
        font-size: 11px;
    }
}

/* ===========================================
   16. LANDING PAGE - MOBILE LOGO FIX
   =========================================== */

.landing-logo,
.site-logo img,
.custom-logo,
.header-logo img,
.logo img {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-logo,
    .header-logo,
    .logo {
        max-width: 120px;
        height: auto;
    }
    
    .site-logo img,
    .header-logo img,
    .logo img {
        max-width: 100%;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* ===========================================
   17. HOME PAGE - MOBILE HERO FIXES
   =========================================== */

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-image-container {
        margin-top: 20px;
    }
    
    .hero-image {
        max-width: 360px;
        height: auto;
    }
    
    .hero-floating-card {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-image {
        max-width: 300px;
    }
}

/* ===========================================
   END OF FIXES
   =========================================== */
