/* ============================================================
   閲嶅簡杈炬眽鐢靛瓙绉戞妧鏈夐檺鍏徃 瀹樼綉鏍峰紡
   ============================================================ */
:root {
    --blue: #0b3d91;
    --blue-dark: #0a2f6e;
    --blue-light: #1a6fe0;
    --accent: #ff8a00;
    --text: #333;
    --text-light: #777;
    --bg: #f5f7fa;
    --line: #e5e9f0;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    background: #fff;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-light); }

img { max-width: 100%; border: 0; vertical-align: middle; }

ul, ol { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ================= 澶撮儴 ================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    box-shadow: 0 2px 12px rgba(10, 47, 110, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 48px; width: auto; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: .3s; }

.main-nav > ul { display: flex; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block; padding: 0 22px; line-height: 76px;
    color: var(--text); font-size: 16px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--blue-light); }

.main-nav > ul > li.active > a::after,
.main-nav > ul > li > a:hover::after {
    content: ""; position: absolute; left: 22px; right: 22px; bottom: 0;
    height: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
}

.sub-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #fff; min-width: 150px; padding: 8px 0;
    box-shadow: 0 8px 24px rgba(10, 47, 110, .15);
    border-radius: 0 0 8px 8px; z-index: 99;
}
.has-sub:hover .sub-menu { display: block; }
.sub-menu li a {
    display: block; padding: 9px 20px; color: var(--text); white-space: nowrap; font-size: 14px;
}
.sub-menu li a:hover { background: var(--bg); color: var(--blue-light); }

/* ================= 棣栭〉 Hero ================= */
.hero {
    position: relative; height: 480px; overflow: hidden;
    background: #0a2f6e center/cover no-repeat;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('../img/banner-home.jpg') center/cover no-repeat;
    animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 30, 66, .78) 0%, rgba(8, 30, 66, .42) 55%, rgba(8, 30, 66, .1) 100%);
}
.hero-inner {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    color: #fff;
}
.hero-inner .kicker {
    display: inline-block; width: fit-content;
    border: 1px solid rgba(255, 255, 255, .5); border-radius: 30px;
    padding: 4px 18px; font-size: 14px; letter-spacing: 3px; margin-bottom: 18px;
    color: #dbe7ff;
}
.hero-inner h1 { font-size: 42px; letter-spacing: 2px; margin-bottom: 14px; }
.hero-inner h1 em { font-style: normal; color: var(--accent); }
.hero-inner p { font-size: 17px; color: #d6e2f5; max-width: 620px; }
.hero-btns { margin-top: 30px; }
.btn {
    display: inline-block; padding: 12px 34px; border-radius: 4px;
    font-size: 15px; transition: .25s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff9d26; color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.7); color: #fff; margin-left: 14px; }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ================= 鏁版嵁鏉?================= */
.stat-bar { background: var(--blue-dark); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 0; }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: 0; }
.stat-item .num { font-size: 34px; font-weight: 700; color: #fff; }
.stat-item .num i { font-style: normal; font-size: 16px; margin-left: 2px; color: var(--accent); }
.stat-item .label { font-size: 14px; color: #b8c8e4; margin-top: 4px; }

/* ================= 閫氱敤鏉垮潡 ================= */
.section { padding: 64px 0; }
.section.alt { background: var(--bg); }

.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 {
    display: inline-block; font-size: 30px; color: var(--blue-dark);
    position: relative; padding: 0 0 12px;
}
.sec-head h2::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 46px; height: 3px; background: var(--accent); border-radius: 2px;
}
.sec-head p { color: var(--text-light); margin-top: 10px; font-size: 14px; letter-spacing: 1px; }

/* ================= 鍏充簬鎴戜滑锛堥椤碉級 ================= */
.about-flex { display: flex; gap: 44px; align-items: center; }
.about-flex .about-img { flex: 0 0 42%; }
.about-flex .about-img img { border-radius: 8px; box-shadow: 0 12px 32px rgba(10,47,110,.18); width: 100%; }
.about-flex .about-txt h3 { font-size: 22px; color: var(--blue-dark); margin-bottom: 16px; }
.about-flex .about-txt p { color: #555; margin-bottom: 12px; text-align: justify; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 24px; }
.about-points li { position: relative; padding-left: 16px; color: var(--text); font-size: 14px; }
.about-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }

/* ================= 鏂伴椈锛堥椤?鍒楄〃锛?================= */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.news-grid-single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.news-col .col-head {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--blue-dark); padding-bottom: 10px; margin-bottom: 6px;
}
.news-col .col-head h3 { font-size: 19px; color: var(--blue-dark); }
.news-col .col-head a { font-size: 13px; color: var(--text-light); }
.news-item {
    display: flex; padding: 16px 4px; border-bottom: 1px dashed var(--line); gap: 16px;
}
.news-item .date {
    flex: 0 0 62px; text-align: center; background: var(--bg); border-radius: 6px; padding: 8px 4px; align-self: flex-start;
}
.news-item .date b { display: block; font-size: 22px; color: var(--blue); line-height: 1.1; }
.news-item .date span { font-size: 12px; color: var(--text-light); }
.news-item .body h4 { font-size: 15.5px; margin-bottom: 4px; font-weight: 600; }
.news-item .body h4 a { color: var(--text); }
.news-item .body h4 a:hover { color: var(--blue-light); }
.news-item .body p { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-top {
    display: inline-block; font-size: 12px; color: #fff; background: var(--accent);
    border-radius: 3px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px;
}

/* ================= 浜у搧 ================= */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 34px 24px; text-align: center; transition: .25s; position: relative; overflow: hidden;
}
.product-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light)); transform: scaleX(0); transition: .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(10,47,110,.12); border-color: transparent; }
.product-card:hover::before { transform: scaleX(1); }
.product-card .p-icon {
    width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
    background: linear-gradient(135deg, #eaf1ff, #d6e5ff);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--blue); font-size: 15px;
}
.product-card h3 { font-size: 20px; color: var(--blue-dark); margin-bottom: 8px; }
.product-card p { font-size: 13.5px; color: var(--text-light); margin-bottom: 14px; }
.product-card .more { font-size: 13px; color: var(--blue-light); }

/* ================= 搴旂敤鍦烘櫙鏉★紙棣栭〉锛?================= */
.apps-strip {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-top: 38px; background: var(--bg); border-radius: 10px;
    padding: 18px 26px;
}
.apps-strip .apps-label {
    font-size: 16px; font-weight: 700; color: var(--blue-dark);
    padding-right: 16px; border-right: 2px solid var(--line); flex-shrink: 0;
}
.apps-strip .apps-links { display: flex; flex-wrap: wrap; gap: 10px; }
.apps-strip .apps-links a {
    background: #fff; border: 1px solid var(--line); color: var(--text);
    padding: 7px 18px; border-radius: 30px; font-size: 14px; transition: .2s;
}
.apps-strip .apps-links a:hover {
    background: var(--blue); border-color: var(--blue); color: #fff;
}
.apps-strip .apps-more { margin-left: auto; font-size: 13.5px; color: var(--blue-light); flex-shrink: 0; }
.apps-strip .apps-more:hover { color: var(--blue); }

/* ================= 鑱旂郴鏉?================= */
.contact-strip { background: linear-gradient(120deg, var(--blue), var(--blue-light)); color: #fff; }
.contact-strip .inner { display: flex; align-items: center; justify-content: space-between; padding: 44px 0; gap: 20px; flex-wrap: wrap; }
.contact-strip h3 { font-size: 26px; margin-bottom: 6px; }
.contact-strip p { color: #d9e6ff; font-size: 14px; }
.contact-strip .phone { font-size: 32px; font-weight: 700; }
.contact-strip .phone small { display: block; font-size: 13px; font-weight: 400; color: #cfe0ff; text-align: right; }

/* ================= 鍐呴〉 ================= */
.page-banner {
    position: relative; height: 220px; display: flex; align-items: center;
    color: #fff; overflow: hidden;
}
.page-banner-bg { position: absolute; inset: 0; background: center/cover; filter: brightness(.6); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 32px; letter-spacing: 2px; margin-bottom: 8px; }
.crumb { font-size: 13px; color: #cfddfa; }
.crumb a { color: #cfddfa; }
.crumb a:hover { color: #fff; }
.crumb em { font-style: normal; margin: 0 8px; opacity: .6; }
.crumb span { color: #fff; }

.page-main { min-height: 300px; }

/* 鍐呴〉甯冨眬 */
.page-body { display: flex; gap: 40px; padding: 50px 0 70px; }
.page-body.with-side .side { flex: 0 0 220px; }
.page-body .main { flex: 1; min-width: 0; }

.side-title {
    background: var(--blue-dark); color: #fff; font-size: 17px;
    padding: 14px 18px; border-radius: 6px 6px 0 0; position: relative;
}
.side-title::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 9px; height: 1px; background: rgba(255,255,255,.25); }
.side-nav { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; overflow: hidden; background: #fff; }
.side-nav a {
    display: block; padding: 12px 18px; color: var(--text); font-size: 14.5px;
    border-bottom: 1px solid #f0f3f8; position: relative; padding-left: 32px;
}
.side-nav a:last-child { border-bottom: 0; }
.side-nav a::before {
    content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; background: #c3cfdd; border-radius: 50%; transition: .2s;
}
.side-nav a:hover { color: var(--blue-light); background: #f8fafd; }
.side-nav a.current { color: var(--blue); font-weight: 600; background: #eef4fd; }
.side-nav a.current::before { background: var(--accent); }

.side-contact { margin-top: 26px; background: var(--bg); border-radius: 8px; padding: 20px; }
.side-contact h4 { font-size: 15px; color: var(--blue-dark); margin-bottom: 10px; }
.side-contact p { font-size: 13px; color: var(--text-light); margin-bottom: 6px; word-break: break-all; }
.side-contact p b { color: var(--blue); font-size: 17px; display: block; }

/* 瀵屾枃鏈唴瀹?*/
.rich-text { font-size: 15.5px; color: #2f2f2f; }
.rich-text p { margin-bottom: 14px; }
.rich-text img { max-width: 100%; height: auto; border-radius: 6px; margin: 6px 0; }
.rich-text h2, .rich-text h3 { color: var(--blue-dark); margin: 18px 0 10px; }
.rich-text h2 { font-size: 21px; padding-left: 12px; border-left: 4px solid var(--blue-light); }
.rich-text h3 { font-size: 17px; }
.rich-text a { word-break: break-all; }
.rich-text table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.rich-text table td, .rich-text table th { border: 1px solid var(--line); padding: 8px 10px; }
.rich-text ul, .rich-text ol { padding-left: 24px; margin: 10px 0 16px; }
.rich-text ul li { list-style: disc; margin-bottom: 7px; }
.rich-text ol li { list-style: decimal; margin-bottom: 7px; }
.rich-text img.hero-img { width: 100%; border-radius: 10px; margin-bottom: 18px; box-shadow: 0 10px 26px rgba(10,47,110,.14); }

/* 瀵屾枃鏈崱鐗囷紙浜у搧/搴旂敤鎬昏锛屽悗鍙板彲缂栬緫鏂囧瓧锛?*/
.rich-text .card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px 0; }
.rich-text .card-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.rich-text .pcard { border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-align: center; background: #fff; transition: .25s; }
.rich-text .pcard:hover { box-shadow: 0 10px 24px rgba(10,47,110,.1); border-color: transparent; transform: translateY(-4px); }
.rich-text .pcard img { width: 100%; height: auto; border-radius: 8px; margin: 0 0 8px; }
.rich-text .pcard h3 { margin: 6px 0; font-size: 18px; color: var(--blue-dark); }
.rich-text .pcard p { font-size: 13.5px; color: var(--text-light); margin-bottom: 8px; }
.rich-text .pcard a.more { font-size: 13.5px; }

/* 瀵屾枃鏈椂闂寸嚎锛堝彂灞曞巻绋嬶紝鍚庡彴鍙紪杈戞枃瀛楋級 */
.rich-text .timeline { border-left: 3px solid var(--blue-light); padding-left: 26px; margin: 18px 0 8px; }
.rich-text .tl-item { position: relative; margin-bottom: 22px; }
.rich-text .tl-item::before {
    content: ""; position: absolute; left: -33px; top: 7px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,0,.25);
}
.rich-text .tl-item h3 { margin: 0 0 4px; font-size: 17px; color: var(--blue-dark); }
.rich-text .tl-item .tl-date { color: var(--accent); font-size: 14px; font-weight: 700; }

@media (max-width: 768px) {
    .rich-text .card-row { grid-template-columns: 1fr; }
    .rich-text .card-row.cols-2 { grid-template-columns: 1fr; }
}

/* 鏂伴椈鍒楄〃椤?*/
.news-page-list .news-item { padding: 18px 0; }
.news-page-list .news-item .thumb { flex: 0 0 150px; border-radius: 6px; overflow: hidden; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span {
    display: inline-block; min-width: 36px; text-align: center;
    padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px;
    color: var(--text); font-size: 14px; background: #fff;
}
.pagination .cur { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }

/* 鏂伴椈璇︽儏 */
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; }
.article-head h1 { font-size: 25px; color: var(--blue-dark); line-height: 1.5; margin-bottom: 12px; }
.article-meta { font-size: 13px; color: var(--text-light); display: flex; gap: 18px; flex-wrap: wrap; }
.article-meta .cat-tag { color: #fff; background: var(--blue-light); padding: 1px 10px; border-radius: 3px; }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 18px; }
.article-nav a {
    flex: 1; background: var(--bg); border-radius: 6px; padding: 12px 16px;
    color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-nav a:hover { background: #e8f0fc; color: var(--blue); }

/* ================= 搴曢儴 ================= */
.site-footer { background: #10233f; color: #a9b8cf; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 40px; padding: 54px 0 40px; }
.footer-logo { height: 44px; margin-bottom: 16px; background: #fff; padding: 6px 10px; border-radius: 6px; }
.footer-desc { font-size: 13px; line-height: 1.9; color: #8fa0b8; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.footer-contact p { font-size: 13.5px; margin-bottom: 7px; color: #c3cfe0; }
.footer-contact p span { display: inline-block; min-width: 40px; color: #7488a3; margin-right: 6px; }
.footer-nav h3, .footer-qrcode h3 { color: #e8eef7; font-size: 16px; margin-bottom: 16px; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a { color: #a9b8cf; font-size: 14px; }
.footer-nav ul li a:hover { color: #fff; }
.footer-qrcode { text-align: center; }
.footer-qrcode img { width: 130px; height: 130px; border-radius: 8px; background: #fff; padding: 5px; }
.footer-qrcode p { font-size: 12.5px; margin-top: 10px; color: #8fa0b8; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.footer-bar p { text-align: center; font-size: 13px; color: #7488a3; }
.footer-bar a { color: #a9b8cf; }

/* 娴姩鑱旂郴 */
.float-contact {
    position: fixed; right: 18px; bottom: 90px; z-index: 90;
    background: var(--accent); color: #fff; border-radius: 10px;
    padding: 12px 16px; text-align: center; box-shadow: 0 8px 24px rgba(255,138,0,.35);
}
.float-contact strong { display: block; font-size: 12px; font-weight: 400; opacity: .9; }
.float-contact em { font-style: normal; font-size: 16px; font-weight: 700; }
.float-contact:hover { color: #fff; background: #ff9d26; }

/* ================= 鍝嶅簲寮?================= */
@media (max-width: 992px) {
    .about-flex { flex-direction: column; }
    .about-flex .about-img { flex: none; width: 100%; }
    .news-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-body { flex-direction: column; }
    .page-body.with-side .side { flex: none; width: 100%; }
    .hero-inner h1 { font-size: 32px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; box-shadow: 0 12px 24px rgba(10,47,110,.15);
        max-height: 70vh; overflow-y: auto;
    }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; }
    .main-nav > ul > li > a { line-height: 1.4; padding: 14px 22px; border-top: 1px solid #f2f5fa; }
    .main-nav > ul > li.active > a::after,
    .main-nav > ul > li > a:hover::after { display: none; }
    .sub-menu { display: none; position: static; transform: none; box-shadow: none; background: #f8fafd; min-width: 0; padding: 4px 0 10px; border-radius: 0; }
    .has-sub.open .sub-menu { display: block; }
    .sub-menu li a { padding: 9px 34px; }

    .hero { height: 400px; }
    .hero-inner h1 { font-size: 26px; }
    .hero-inner p { font-size: 14.5px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item .num { font-size: 26px; }
    .product-grid { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
    .sec-head h2 { font-size: 24px; }
    .page-banner { height: 160px; }
    .page-banner h1 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-strip .phone { text-align: left; font-size: 26px; }
    .news-item .thumb { flex: 0 0 110px; }
    .article-head h1 { font-size: 20px; }
    .float-contact { display: none; }
}

/* 视频区块（工厂实拍 / 关于我们） */
.video-wrap {
    margin: 24px auto 0;
    max-width: 980px;
    border-radius: 12px;
    overflow: hidden;
    background: #0b1a33;
    box-shadow: 0 12px 32px rgba(11, 29, 65, 0.16);
}
.video-wrap video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    background: #000;
}
@media (max-width: 768px) {
    .video-wrap { margin-top: 16px; border-radius: 8px; }
    .video-wrap video { max-height: 240px; }
}