/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    background: #fff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color .3s; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ========== 通用标题 ========== */
.section-title { text-align: center; margin-bottom: 45px; }
.section-title h2 {
    font-size: 32px; font-weight: 700; color: #1a3a6c; position: relative;
    display: inline-block; padding-bottom: 14px;
}
.section-title h2::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 60px; height: 4px; background: linear-gradient(90deg, #e8302a, #ff6a3d);
    border-radius: 2px;
}
.section-title p { margin-top: 14px; color: #888; font-size: 15px; }

/* ========== 顶部信息条 ========== */
.top-bar {
    background: #16294d; color: #c4d4f0; font-size: 13px; padding: 7px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #c4d4f0; }
.top-bar a:hover { color: #ff9a3d; }
.top-bar .tb-left span { margin-right: 22px; }
.top-bar .tb-right a { margin-left: 16px; }

/* ========== 头部 / Logo + 导航 ========== */
.header {
    position: relative; z-index: 100; background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
    width: 54px; height: 54px; border-radius: 12px;
    background: linear-gradient(135deg, #e8302a 0%, #ff6a3d 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; font-weight: 700; flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(232,48,42,.35);
}
.logo-text { line-height: 1.2; }
.logo-text .brand {
    font-size: 26px; font-weight: 800; color: #e8302a;
    letter-spacing: 1px;
}
.logo-text .brand sup { font-size: 12px; font-weight: 700; vertical-align: super; margin-left: 2px; }
.logo-text .sep { color: #ccc; margin: 0 6px; font-size: 22px; }
.logo-text .tag { font-size: 16px; color: #1a3a6c; font-weight: 700; }

.nav-toggle { display: none; font-size: 26px; background: none; border: none; cursor: pointer; color: #1a3a6c; }

.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
    padding: 10px 18px; font-size: 16px; font-weight: 500; color: #333;
    border-radius: 6px; position: relative;
}
.nav-menu a::after {
    content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px;
    background: #e8302a; transform: scaleX(0); transition: transform .3s;
}
.nav-menu a:hover, .nav-menu a.active { color: #e8302a; }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }

/* ========== Banner（与导航一体化动态） ========== */
.banner {
    position: relative; min-height: 540px; display: flex; align-items: center;
    overflow: hidden;
}
.banner-bg {
    position: absolute; inset: 0; z-index: 1;
    background: url('../img/mjgtcp/mjgtcp91.png') center/cover no-repeat;
    transform: scale(1.08);
    animation: bannerZoom 18s ease-in-out infinite alternate;
}
@keyframes bannerZoom {
    0% { transform: scale(1.08) translateX(-1%); }
    100% { transform: scale(1.15) translateX(1%); }
}
.banner-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(120deg, rgba(16,36,80,.82) 0%, rgba(16,36,80,.45) 55%, rgba(232,48,42,.35) 100%);
}
.banner-content { position: relative; z-index: 3; color: #fff; max-width: 760px; padding: 30px 0; }
.banner-content h1 {
    font-size: 46px; font-weight: 800; margin-bottom: 18px; line-height: 1.3;
    opacity: 0; animation: slideIn .8s .2s forwards;
}
.banner-content .b-sub {
    font-size: 20px; margin-bottom: 28px; opacity: 0;
    animation: slideIn .8s .5s forwards; color: #ffd9c2;
}
.banner-content .b-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; opacity: 0; animation: slideIn .8s .7s forwards; }
.banner-content .b-tags span {
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    padding: 6px 16px; border-radius: 30px; font-size: 14px; backdrop-filter: blur(4px);
}
.banner-content .b-btns { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: slideIn .8s .9s forwards; }
.banner-content .b-btns a {
    padding: 13px 34px; border-radius: 30px; font-size: 16px; font-weight: 600;
}
.btn-primary { background: linear-gradient(90deg, #e8302a, #ff6a3d); color: #fff !important; box-shadow: 0 6px 20px rgba(232,48,42,.4); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff !important; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline:hover { background: rgba(255,255,255,.15); }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滚动数据条 */
.data-strip { background: linear-gradient(90deg, #1a3a6c, #2a5099); padding: 30px 0; }
.data-strip .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.data-item { text-align: center; color: #fff; }
.data-item .num { font-size: 38px; font-weight: 800; color: #ffce4d; }
.data-item .num small { font-size: 20px; }
.data-item .label { font-size: 14px; color: #c4d4f0; margin-top: 4px; }

/* ========== 公司介绍 ========== */
.about { padding: 70px 0; background: #f7f9fc; }
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.about-img img { width: 100%; height: 340px; object-fit: cover; }
.about-img .exp-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: rgba(232,48,42,.92); color: #fff; padding: 14px 22px; border-radius: 10px;
}
.about-img .exp-badge .big { font-size: 30px; font-weight: 800; }
.about-text h2 { font-size: 30px; color: #1a3a6c; margin-bottom: 8px; font-weight: 700; }
.about-text .en { color: #ccc; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.about-text p { color: #555; margin-bottom: 14px; font-size: 15px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.about-tags span {
    background: #fff; border: 1px solid #e0e8f5; color: #1a3a6c;
    padding: 7px 16px; border-radius: 30px; font-size: 13px; font-weight: 600;
}
.about-tags span:hover { background: #1a3a6c; color: #fff; border-color: #1a3a6c; }

/* ========== 产品展示 ========== */
.products { padding: 70px 0; }
.product-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.product-tabs button {
    padding: 9px 22px; border: 2px solid #dfe6f0; background: #fff; border-radius: 30px;
    font-size: 14px; font-weight: 600; color: #555; cursor: pointer; transition: all .3s;
}
.product-tabs button.active, .product-tabs button:hover {
    border-color: #e8302a; color: #e8302a; background: #fff5f4;
}
.product-grid, .product-panel.active { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.product-panel { display: none; }
.product-card {
    background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.product-card .img-wrap { overflow: hidden; height: 180px; position: relative; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .img-wrap img { transform: scale(1.1); }
.product-card .img-wrap .zoom-icon {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; opacity: 0; transition: opacity .3s;
}
.product-card:hover .zoom-icon { opacity: 1; }
.product-card .info { padding: 12px 14px; }
.product-card .info .name { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 4px; }
.product-card .info .desc { font-size: 12px; color: #888; }

/* ========== 应用领域 ========== */
.fields { padding: 70px 0; background: linear-gradient(180deg, #f7f9fc, #eef2f9); }
.fields-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.field-card {
    background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center;
    transition: transform .3s, box-shadow .3s; border-top: 4px solid transparent;
}
.field-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.1); border-top-color: #e8302a; }
.field-card .icon { font-size: 40px; margin-bottom: 14px; }
.field-card h3 { font-size: 17px; color: #1a3a6c; margin-bottom: 8px; }
.field-card p { font-size: 13px; color: #888; }

/* ========== 案例展示 ========== */
.cases { padding: 70px 0; }
.cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.case-card {
    background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.case-card .img-wrap { overflow: hidden; height: 200px; position: relative; }
.case-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .img-wrap img { transform: scale(1.08); }
.case-card .img-wrap .city-tag {
    position: absolute; top: 12px; left: 12px; background: rgba(26,58,108,.85);
    color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
}
.case-card .info { padding: 12px 16px; }
.case-card .info .title { font-size: 15px; font-weight: 700; color: #333; }
.case-card .info .loc { font-size: 12px; color: #888; margin-top: 3px; }

/* ========== FAQ ========== */
.faq { padding: 70px 0; background: #f7f9fc; }
.faq-list { max-width: 920px; margin: 0 auto; }
.faq-item {
    background: #fff; border-radius: 10px; margin-bottom: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04); border: 1px solid #eef2f9;
}
.faq-q {
    padding: 16px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    font-weight: 600; font-size: 15px; color: #1a3a6c; transition: background .3s;
}
.faq-q:hover { background: #f5f8fc; }
.faq-q .q-icon { font-size: 20px; color: #e8302a; transition: transform .3s; flex-shrink: 0; margin-left: 10px; }
.faq-item.open .faq-q .q-icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s;
    padding: 0 20px; color: #666; font-size: 14px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }

/* ========== 联系我们 ========== */
.contact { padding: 70px 0; background: linear-gradient(135deg, #16294d, #1a3a6c); color: #fff; }
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.contact-info h2 { font-size: 30px; margin-bottom: 24px; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 16px; }
.contact-list .ci-icon {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-list .ci-label { color: #c4d4f0; font-size: 13px; }
.contact-list .ci-value { font-size: 17px; font-weight: 600; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: #ff9a3d; }
.contact-qr { text-align: center; background: rgba(255,255,255,.08); border-radius: 14px; padding: 30px; }
.contact-qr img { width: 200px; height: 200px; border-radius: 10px; margin: 0 auto 14px; }
.contact-qr p { color: #c4d4f0; font-size: 14px; }

/* ========== 城市分站链接 ========== */
.city-links { padding: 56px 0; background: #f7f9fc; }
.city-links .cl-title { text-align: center; font-size: 26px; font-weight: 700; color: #1a3a6c; margin-bottom: 10px; position: relative; padding-bottom: 12px; }
.city-links .cl-title::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 4px; background: linear-gradient(90deg, #e8302a, #ff6a3d); border-radius: 2px; }
.city-links .cl-sub { text-align: center; color: #888; font-size: 14px; margin-bottom: 28px; }
.city-links .cl-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.city-links .cl-grid a { background: #fff; border: 1px solid #e8eef5; border-radius: 6px; padding: 11px 6px; text-align: center; font-size: 14px; color: #555; transition: all .25s; }
.city-links .cl-grid a:hover { background: #e8302a; color: #fff; border-color: #e8302a; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(232,48,42,.25); }
@media (max-width: 1024px) { .city-links .cl-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 768px) { .city-links .cl-grid { grid-template-columns: repeat(4, 1fr); } .city-links .cl-title { font-size: 22px; } }
@media (max-width: 560px) { .city-links .cl-grid { grid-template-columns: repeat(3, 1fr); } }

/* ========== 底部 ========== */
.footer { background: #0d1b35; color: #8898b8; padding: 36px 0 20px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #8898b8; margin: 0 8px; font-size: 13px; }
.footer-links a:hover { color: #ff9a3d; }
.footer-copy { text-align: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid #1c2f55; font-size: 13px; line-height: 2; }
.footer-copy a { color: #8898b8; }
.footer-copy a:hover { color: #ff9a3d; }

/* ========== 灯箱 ========== */
.lightbox {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.88);
    display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 90%; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-close {
    position: absolute; top: 24px; right: 30px; font-size: 36px; color: #fff; cursor: pointer;
    background: rgba(255,255,255,.15); width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.lightbox .lb-caption { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 15px; }

/* ========== 返回顶部 ========== */
.back-top {
    position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%;
    background: #e8302a; color: #fff; border: none; font-size: 22px; cursor: pointer;
    opacity: 0; transform: translateY(20px); transition: all .3s; z-index: 500;
    box-shadow: 0 4px 14px rgba(232,48,42,.4);
}
.back-top.show { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .product-grid, .product-panel.active, .fields-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
        padding: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12); display: none; gap: 0;
    }
    .nav-menu.show { display: flex; }
    .nav-menu a { width: 100%; padding: 12px 18px; border-radius: 6px; }
    .nav-menu a::after { display: none; }
    .about-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 30px; }
    .banner-content h1 { font-size: 34px; }
    .data-strip .container { grid-template-columns: repeat(2,1fr); gap: 24px; }
}
@media (max-width: 768px) {
    .product-grid, .product-panel.active, .fields-grid { grid-template-columns: repeat(2,1fr); }
    .cases-grid { grid-template-columns: repeat(2,1fr); }
    .section-title h2 { font-size: 26px; }
    .banner { min-height: 420px; }
    .banner-content h1 { font-size: 28px; }
    .banner-content .b-sub { font-size: 16px; }
    .logo-text .brand { font-size: 22px; }
    .logo-text .tag { font-size: 14px; }
    .top-bar .tb-left span { margin-right: 12px; }
}
@media (max-width: 560px) {
    .product-grid, .product-panel.active, .fields-grid, .cases-grid { grid-template-columns: 1fr; }
    .data-strip .container { grid-template-columns: 1fr 1fr; }
    .banner-content .b-btns a { padding: 11px 24px; font-size: 14px; }
    .about, .products, .fields, .cases, .faq, .contact { padding: 50px 0; }
}
