/*
Theme Name: B2BStack
Theme URI: https://www.b2bseo.net
Author: B2BStack Team
Author URI: https://www.b2bseo.net
Description: A clean, high-performance WordPress theme tailored for industrial B2B manufacturing and electronic hardware exporters, inspired by Kaida Connector.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: b2bstack
*/

/* --- 核心基础样式重置 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333333;
    background-color: #f8f9fa;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #0d6efd;
}
img {
    max-width: 100%;
    height: auto;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section 标题全局公用样式 (还原截图中的蓝色左前缀) --- */
.section-title {
    font-size: 28px;
    color: #111;
    position: relative;
    padding-left: 15px;
    margin-bottom: 30px;
    font-weight: 700;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    background-color: #0076c0; /* 标志性 Kaida 蓝 */
}

/* --- Header 顶部导航 --- */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 50px;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
.main-navigation ul li a {
    color: #444;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}
.main-navigation ul li a:hover {
    color: #0076c0;
}

/* --- Hero Banner 区域 --- */
.hero-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.2) 100%), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80') no-repeat center/cover;
    padding: 100px 0;
    min-height: 450px;
    display: flex;
    align-items: center;
}
.hero-content {
    max-width: 550px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-top: 5px solid #0076c0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.hero-content h1 {
    font-size: 36px;
    color: #0076c0;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}
.btn-discover {
    display: inline-block;
    background: #002e5b;
    color: #fff;
    padding: 12px 30px;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-discover:hover {
    background: #0076c0;
    color: #fff;
}

/* --- Products 网格区域 --- */
.products-section {
    padding: 60px 0;
    background: #ffffff;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.product-card {
    border: 1px solid #eee;
    background: #fff;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #0076c0;
}
.product-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #fdfdfd;
}
.product-image img {
    max-height: 100%;
    object-fit: contain;
}
.product-card h3 {
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
}
.product-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 56px;
    overflow: hidden;
}
.btn-learn {
    display: inline-block;
    border: 1px solid #0076c0;
    color: #0076c0;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-learn:hover {
    background: #0076c0;
    color: #fff;
}

/* --- Applications 应用领域展示区域 --- */
.applications-section {
    padding: 60px 0;
    background: #f8f9fa;
}
.app-intro {
    font-size: 15px;
    color: #555;
    max-width: 900px;
    margin-bottom: 35px;
}
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.app-card {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.app-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.app-card:hover img {
    transform: scale(1.1);
}
.app-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
}
.app-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 600;
}
.app-overlay p {
    font-size: 12px;
    opacity: 0.8;
    height: 36px;
    overflow: hidden;
}

/* --- Footer 底部大板块 --- */
.site-footer {
    background: #002144;
    color: #bccbdc;
    padding: 60px 0 20px 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #0076c0;
}
.footer-col p {
    line-height: 1.6;
    color: #a2b4c7;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #a2b4c7;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: #ffffff;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #a2b4c7;
}

/* 底部版权与申明 */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #7188a0;
}

/* 浮动询盘按钮 (右侧 Inquiry 挂件还原) */
.floating-inquiry {
    position: fixed;
    right: 0;
    top: 35%;
    background: #0076c0;
    color: #fff;
    padding: 12px 18px;
    writing-mode: vertical-lr;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    border-radius: 4px 0 0 4px;
    z-index: 1000;
    transition: background 0.3s;
}
.floating-inquiry:hover {
    background: #002e5b;
    color: #fff;
}

/* 移动端基础响应式适配 */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; text-align: center; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .hero-section { padding: 40px 0; }
    .hero-content { padding: 20px; }
}