/* ===== 京鸿消防科技 v5 - 清新科技风 ===== */

/* 基础重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'WenQuanYi Micro Hei', 'Microsoft YaHei', sans-serif;
    background: #f8fafd;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: transform .35s ease, box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.navbar.hidden { transform: translateY(-100%); }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 42px; height: 42px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-cn { font-size: 18px; font-weight: 700; color: #0f2048; letter-spacing: 1px; }
.logo-en { font-size: 10px; color: #5a6a7e; letter-spacing: 2px; }
.nav-menu { display: flex; list-style: none; gap: 8px; }
.nav-link {
    padding: 8px 16px; border-radius: 8px; font-size: 15px;
    color: #3a4a5e; transition: all .25s; font-weight: 500;
}
.nav-link:hover, .nav-link.active {
    color: #1e50a0; background: rgba(30,80,160,.08);
}
.nav-phone {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #1e50a0, #3a8fd6);
    color: #fff; padding: 8px 18px; border-radius: 24px;
    font-size: 15px; font-weight: 600;
}
.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #333; border-radius: 2px; }

/* ===== Hero 区域 ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f5ff 0%, #f8fafd 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(30,80,160,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,80,160,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}
.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
}
.glow-1 { width: 300px; height: 300px; background: #3a8fd6; top: 10%; left: -100px; animation: float1 8s ease-in-out infinite; }
.glow-2 { width: 400px; height: 400px; background: #00c8e6; top: 40%; right: -150px; animation: float2 10s ease-in-out infinite; }
.glow-3 { width: 200px; height: 200px; background: #6c8eff; bottom: 10%; left: 30%; animation: float1 6s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-30px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(40px)} }

.hero-container {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center;
}

/* 左侧 */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(30,80,160,.08); color: #1e50a0;
    padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 500;
    margin-bottom: 24px;
}
.badge-dot { width: 8px; height: 8px; background: #00c8e6; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
    font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 20px;
}
.title-line { display: block; }
.gradient-text {
    background: linear-gradient(135deg, #1e50a0, #00c8e6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 18px; color: #5a6a7e; margin-bottom: 36px; line-height: 1.8; }

.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 600;
    transition: all .3s; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #1e50a0, #3a8fd6);
    color: #fff; box-shadow: 0 4px 20px rgba(30,80,160,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(30,80,160,.4); }
.btn-outline {
    background: #fff; color: #1e50a0; border: 2px solid #1e50a0;
}
.btn-outline:hover { background: #1e50a0; color: #fff; }
.btn-arrow { transition: transform .3s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat-item { display: flex; align-items: baseline; gap: 4px; }
.stat-number { font-size: 36px; font-weight: 800; color: #1e50a0; }
.stat-plus { font-size: 24px; font-weight: 700; color: #3a8fd6; }
.stat-label { font-size: 14px; color: #5a6a7e; margin-left: 4px; }
.stat-divider { width: 1px; height: 30px; background: #d0d8e8; }

/* 右侧 - 联系卡片 */
.hero-right { display: flex; justify-content: center; }
.contact-card-wrapper {
    position: relative;
    animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.contact-card-img {
    width: 360px; height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(15,32,72,.2), 0 8px 20px rgba(0,0,0,.08);
    transition: transform .3s;
}
.contact-card-img:hover { transform: scale(1.02); }
.card-float-badge {
    position: absolute; top: -10px; right: -10px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 6px 14px; border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255,71,87,.4);
    animation: pulse 2s infinite;
    z-index: 10;
}

/* 联系页面大卡片 */
.contact-qrcode { display: flex; justify-content: center; }
.qrcode-card-large {
    background: linear-gradient(135deg, #f0f5ff, #e8f4fd);
    border-radius: 24px; padding: 24px;
    box-shadow: 0 12px 40px rgba(15,32,72,.1);
    border: 2px solid rgba(30,80,160,.1);
    text-align: center;
}
.contact-card-img-large {
    width: 100%; max-width: 460px; height: auto; border-radius: 16px;
}

/* 滚动指示 */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: #5a6a7e; font-size: 13px; z-index: 1;
}
.scroll-arrow {
    width: 24px; height: 24px; border-right: 2px solid #1e50a0; border-bottom: 2px solid #1e50a0;
    transform: rotate(45deg); animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce { 0%,100%{transform:rotate(45deg) translate(0,0)} 50%{transform:rotate(45deg) translate(4px,4px)} }

/* ===== 品牌认证栏 ===== */
.brand-bar { background: #fff; padding: 24px 0; border-bottom: 1px solid #eef2f7; }
.brand-items { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.brand-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; color: #3a4a5e; font-weight: 500;
}
.brand-icon { font-size: 22px; }

/* ===== 通用 section header ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block; font-size: 13px; color: #3a8fd6;
    letter-spacing: 4px; font-weight: 600; margin-bottom: 8px;
}
.section-title { font-size: 36px; font-weight: 800; color: #0f2048; margin-bottom: 12px; }
.section-desc { font-size: 16px; color: #5a6a7e; }

/* ===== 产品中心 ===== */
.products { padding: 80px 0; background: #fff; }
.product-tabs {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px;
    border: 2px solid #e8eef5; background: #f8fafd;
    font-size: 15px; font-weight: 600; color: #5a6a7e;
    cursor: pointer; transition: all .3s;
}
.tab-btn:hover { border-color: #3a8fd6; color: #1e50a0; }
.tab-btn.active {
    background: linear-gradient(135deg, #1e50a0, #3a8fd6);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 16px rgba(30,80,160,.3);
}
.tab-icon { font-size: 20px; }

.tab-panel { display: none; animation: fadeIn .4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.product-showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.product-image {
    position: relative; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.product-image img { width: 100%; height: 360px; object-fit: cover; transition: transform .5s; }
.product-image:hover img { transform: scale(1.05); }
.image-badge {
    position: absolute; top: 16px; left: 16px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
}

.product-info h3 { font-size: 26px; color: #0f2048; margin-bottom: 12px; }
.product-desc { font-size: 15px; color: #5a6a7e; line-height: 1.8; margin-bottom: 16px; }

.product-models { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.model-tag {
    background: rgba(30,80,160,.06); color: #1e50a0;
    font-size: 13px; padding: 4px 12px; border-radius: 6px; font-weight: 500;
}

.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.spec-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: #f8fafd; border-radius: 8px;
    border-left: 3px solid #3a8fd6;
}
.spec-label { font-size: 13px; color: #5a6a7e; }
.spec-value { font-size: 14px; font-weight: 700; color: #0f2048; }

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* 产品子图 */
.product-sub-images {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    margin-top: 32px;
}
.sub-img {
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transition: transform .3s;
}
.sub-img:hover { transform: translateY(-4px); }
.sub-img img { width: 100%; height: 200px; object-fit: cover; }
.sub-img p {
    padding: 10px 14px; background: #fff; font-size: 14px;
    color: #1e50a0; font-weight: 600; text-align: center;
}
.tag {
    background: linear-gradient(135deg, rgba(30,80,160,.08), rgba(0,200,230,.08));
    color: #1e50a0; font-size: 13px; padding: 6px 14px;
    border-radius: 20px; border: 1px solid rgba(30,80,160,.15);
}

/* ===== 应用场景 ===== */
.scenes { padding: 80px 0; background: #f8fafd; }
.scene-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scene-card {
    position: relative; border-radius: 16px; overflow: hidden;
    height: 280px; cursor: pointer;
}
.scene-image { width: 100%; height: 100%; }
.scene-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.scene-card:hover .scene-image img { transform: scale(1.1); }
.scene-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 32px 24px 24px;
    background: linear-gradient(to top, rgba(15,32,72,.9), transparent);
    color: #fff;
}
.scene-overlay h3 { font-size: 20px; margin-bottom: 6px; }
.scene-overlay p { font-size: 14px; opacity: .9; }

/* ===== 企业实力 ===== */
.strength { padding: 80px 0; background: #fff; }
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strength-card {
    text-align: center; padding: 32px 20px;
    border-radius: 16px; background: #f8fafd;
    transition: all .3s; border: 1px solid #eef2f7;
}
.strength-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(30,80,160,.1);
    border-color: rgba(30,80,160,.2);
}
.strength-icon { font-size: 40px; margin-bottom: 16px; }
.strength-card h3 { font-size: 18px; color: #0f2048; margin-bottom: 8px; }
.strength-card p { font-size: 14px; color: #5a6a7e; line-height: 1.7; }

/* ===== 关于我们 ===== */
.about { padding: 80px 0; background: #f8fafd; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about-text { font-size: 16px; color: #3a4a5e; line-height: 1.9; margin-bottom: 16px; }
.about-values { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.value-item { display: flex; align-items: flex-start; gap: 14px; }
.value-icon { font-size: 28px; }
.value-item h4 { font-size: 16px; color: #0f2048; }
.value-item p { font-size: 14px; color: #5a6a7e; }

.info-card {
    background: #fff; border-radius: 16px; padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    border: 1px solid #eef2f7;
}
.info-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eef2f7; }
.info-logo { width: 36px; height: 36px; }
.info-card-header span { font-size: 16px; font-weight: 700; color: #0f2048; }
.info-rows { display: flex; flex-direction: column; gap: 14px; }
.info-row { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 13px; color: #5a6a7e; font-weight: 500; }
.info-value { font-size: 14px; color: #1a1a2e; }

/* ===== 联系我们 ===== */
.contact { padding: 80px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { font-size: 28px; }
.contact-item h4 { font-size: 16px; color: #0f2048; margin-bottom: 4px; }
.contact-item p { font-size: 15px; color: #5a6a7e; line-height: 1.6; }

.contact-qrcode { display: flex; justify-content: center; }

/* ===== 页脚 ===== */
.footer { background: #0f2048; color: #a0b0c0; padding: 60px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; margin-bottom: 36px; }
.footer-brand h3 { color: #fff; font-size: 22px; margin: 12px 0 4px; }
.footer-brand p { font-size: 14px; }
.footer-slogan { color: #3a8fd6 !important; font-size: 15px !important; margin-top: 8px; font-weight: 500; }
.footer-logo { width: 48px; height: 48px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: #8899aa; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #3a8fd6; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 36px; }
    .product-showcase { grid-template-columns: 1fr; }
    .scene-grid { grid-template-columns: 1fr; }
    .strength-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    .contact-card-img { width: 280px; }
}
@media (max-width: 600px) {
    .hero-title { font-size: 28px; }
    .section-title { font-size: 26px; }
    .strength-grid { grid-template-columns: 1fr; }
    .product-specs { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; }
    .contact-card-img { width: 240px; }
}
