/*
Theme Name: CablePro Industrial
Template: astra
Version: 2.0
*/

/* ===== 基础重置 ===== */
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f3f4f6;
    color: #374151;
    line-height: 1.6;
}

/* ===== 顶部信任条 ===== */
body:before {
    content: "✓ UL Listed 认证 | ✓ Fluke 测试通过 | ✓ 终身保修 | ✓ 48 小时发货 | ✓ 1976 年品牌历史";
    display: block;
    background: #111827;
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid #f59e0b;
}

/* ===== 导航栏 ===== */
.main-header-bar, .site-header {
    background: #ffffff !important;
    border-bottom: 3px solid #1e3a8a !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    margin-top: 41px;
}

.main-header-menu {
    display: flex !important;
    gap: 40px !important;
    justify-content: center !important;
    list-style: none !important;
}

.main-header-menu a {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.main-header-menu a:hover {
    color: #1e3a8a !important;
}

/* ===== 隐藏页面标题 ===== */
.page-title, .entry-title, h1.main-page-title {
    display: none !important;
}

/* ===== Hero 区域 ===== */
#hero-section, .home-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: white !important;
    padding: 120px 20px 100px !important;
    text-align: center !important;
}

#hero-section h1, .home-banner h1 {
    color: white !important;
    font-size: 48px !important;
    font-weight: 800 !important;
    margin: 0 0 20px 0 !important;
}

#hero-section p, .home-banner p {
    color: rgba(255,255,255,0.95) !important;
    font-size: 20px !important;
    margin: 0 0 40px 0 !important;
}

.hero-buttons {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.button-primary {
    background: #f59e0b !important;
    color: white !important;
    padding: 16px 40px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.button-secondary {
    background: transparent !important;
    color: white !important;
    padding: 16px 40px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    border: 2px solid white !important;
}

/* ===== 产品网格 ===== */
.products, .product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    padding: 60px 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.product, .woocommerce ul.products li.product {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1) !important;
}

.product-price {
    color: #dc2626 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #111827 !important;
    color: #9ca3af !important;
    padding: 60px 20px 30px !important;
    margin-top: 80px !important;
    border-top: 4px solid #1e3a8a !important;
}

/* 修复重复 header */
.site-header + .site-header { display: none !important; }
.main-header-bar + .main-header-bar { display: none !important; }
body:after { display: none !important; }
