/* ========================================
   SMT电子 - 企业网站样式 (Bootstrap 4)
   ======================================== */

:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #e8f0fe;
    --secondary: #ff6a00;
    --dark: #0a1f44;
    --gray-bg: #f5f7fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #e8ecf1;
    --shadow-sm: 0 2px 15px rgba(0,0,0,0.06);
    --shadow-md: 0 5px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 40px rgba(0,86,179,0.15);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* -------- 导航栏 -------- */
#mainNav {
    background: transparent;
    transition: var(--transition);
    padding: 15px 0;
}

#mainNav.navbar-scrolled {
    background: rgba(10, 31, 68, 0.97);
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-brand { display: flex; align-items: center; }
.brand-text { font-size: 1.4rem; font-weight: 700; color: #fff; margin-left: 10px; }

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    transition: var(--transition);
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-item.active .nav-link { color: #fff; }

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-item.active .nav-link::after { transform: scaleX(1); }

/* -------- Hero 主视觉 -------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1560165143-fa7e2d9e594c?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center center / cover no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 31, 68, 0.65);
    z-index: 1;
}

.hero-section .container { position: relative; z-index: 2; }
.hero-section h1 { text-shadow: 0 2px 20px rgba(0,0,0,0.3); letter-spacing: 2px; }
.hero-section .lead { font-size: 1.2rem; opacity: 0.9; letter-spacing: 1px; }

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to right top, #fff 49%, transparent 50%);
    z-index: 2;
}

/* -------- 页面通用 -------- */
.section-padding { padding: 90px 0; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* -------- 页面横幅 -------- */
.page-banner {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0a1f44, #003d82);
    text-align: center;
    color: #fff;
}

.page-banner h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; }
.page-banner .breadcrumb { background: transparent; justify-content: center; margin: 0; }
.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* -------- 服务卡片 -------- */
.service-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-icon {
    width: 70px; height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 28px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}

.service-card h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.service-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0; }

/* -------- 数据统计 -------- */
.stats-section {
    background: linear-gradient(135deg, var(--dark), #003d82);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to right bottom, transparent 49%, var(--dark) 50%);
}

.stat-number { font-size: 3rem; font-weight: 800; display: inline-block; }
.stat-plus { font-size: 2rem; font-weight: 700; margin-left: 2px; }
.stat-label { font-size: 1rem; opacity: 0.85; margin-top: 8px; letter-spacing: 1px; }

/* -------- 优势卡片 -------- */
.advantage-card {
    padding: 35px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    width: 60px; height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 24px;
    margin: 0 auto 18px;
}

.advantage-card h5 { font-weight: 600; margin-bottom: 10px; }
.advantage-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* -------- 行业卡片 -------- */
.industry-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.industry-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.industry-overlay {
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(10,31,68,0.9));
    color: #fff;
}

.industry-overlay h5 { font-weight: 600; margin-bottom: 5px; }
.industry-overlay p { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* -------- CTA -------- */
.cta-section { background: linear-gradient(135deg, var(--dark), #003d82); }

/* -------- 页脚 -------- */
.footer-section {
    background: #0a1f44;
    color: #a0aec0;
    padding: 60px 0 0;
}

.footer-section h5 { color: #fff; font-weight: 600; margin-bottom: 20px; font-size: 1.05rem; }

.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 8px; }
.footer-links li a { color: #a0aec0; transition: var(--transition); }
.footer-links li a:hover { color: var(--secondary); text-decoration: none; padding-left: 5px; }

.footer-contact li { margin-bottom: 12px; display: flex; align-items: flex-start; }
.footer-contact li i { width: 20px; margin-right: 10px; color: var(--secondary); margin-top: 4px; }

.social-links { margin-top: 15px; }

.social-link {
    display: inline-flex;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #a0aec0;
    margin-right: 8px;
    transition: var(--transition);
}

.social-link:hover { background: var(--secondary); color: #fff; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* -------- 时间线 -------- */
.timeline { position: relative; padding: 20px 0; }

.timeline::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item .row { align-items: center; }

.timeline-year {
    display: inline-block;
    padding: 6px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.timeline-content h5 { font-weight: 600; margin-bottom: 8px; }
.timeline-content p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

/* -------- 设备卡片 -------- */
.equipment-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.equipment-img {
    height: 200px;
    background: linear-gradient(135deg, #e8f0fe, #d4e4f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary);
    background-size: cover;
    background-position: center;
    position: relative;
}

.equipment-img.has-bg {
    background-size: cover;
    background-position: center;
    color: transparent;
}

.equipment-img.has-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent 50%, rgba(10,31,68,0.7));
    z-index: 0;
}

.equipment-img.has-bg i {
    display: none;
}

.equipment-info { padding: 20px; }
.equipment-info h5 { font-weight: 600; margin-bottom: 8px; }
.equipment-info p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

/* -------- 流程步骤 -------- */
.process-step { text-align: center; position: relative; padding: 30px 15px; }

.process-number {
    width: 60px; height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.process-step h5 { font-weight: 600; margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.process-connector {
    position: absolute;
    top: 45px;
    right: -30px;
    width: 60px;
    height: 2px;
    background: var(--border-color);
}

.process-connector i {
    position: absolute;
    right: -8px;
    top: -7px;
    color: var(--primary);
    font-size: 16px;
}

@media (max-width: 767.98px) { .process-connector { display: none; } }

/* -------- 客户卡片 -------- */
.client-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.client-logo {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: var(--primary);
}

.client-card h5 { font-weight: 600; margin-bottom: 5px; }
.client-card .client-industry { font-size: 0.85rem; color: var(--primary); margin-bottom: 10px; }
.client-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

/* -------- 品质优势 -------- */
.quality-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.quality-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quality-icon {
    width: 70px; height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 28px;
    margin: 0 auto 18px;
}

.quality-item h5 { font-weight: 600; margin-bottom: 10px; }
.quality-item p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* -------- 认证徽章 -------- */
.cert-badge {
    text-align: center;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cert-badge:hover { box-shadow: var(--shadow-md); }

.cert-badge .cert-img {
    width: 100px; height: 100px;
    margin: 0 auto 15px;
    background: var(--gray-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
}

.cert-badge h6 { font-weight: 600; }

/* -------- 联系表单 -------- */
.contact-info-card {
    background: var(--dark);
    color: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    height: 100%;
}

.contact-info-card h4 { font-weight: 600; margin-bottom: 25px; }

.contact-info-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-info-item .icon {
    width: 45px; height: 45px;
    min-width: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary);
    font-size: 18px;
}

.contact-info-item h6 { color: #fff; font-weight: 600; margin-bottom: 3px; }
.contact-info-item p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.9rem; }

.contact-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper .form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    height: auto;
    font-size: 0.95rem;
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0,86,179,0.15);
}

.contact-form-wrapper textarea.form-control { min-height: 130px; }

/* -------- 地图占位 -------- */
.map-placeholder {
    height: 350px;
    background: var(--gray-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* -------- 按钮 -------- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,86,179,0.3);
}

.btn-outline-light {
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 500;
}

/* -------- 响应式微调 -------- */
@media (max-width: 991.98px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.7rem; }
    .stat-number { font-size: 2.3rem; }
    .timeline::before { left: 30px; }
}

@media (max-width: 767.98px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1rem; }
    .page-banner h1 { font-size: 1.8rem; }
    .contact-form-wrapper { padding: 25px; }
}

/* -------- 回到顶部 -------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 3px 15px rgba(0,86,179,0.3);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show { display: flex; }
