/* ============================================================
   铁甲科技官网 - 完全还原原站设计
   主题色: #0f83d2 (蓝色)
   ============================================================ */

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

:root {
    --primary: #0f83d2;
    --primary-dark: #0c6bad;
    --primary-light: #e6f1fa;
    --secondary: #1a1a1a;
    --text: #444;
    --text-light: #666;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-gray: #f5f7fa;
    --bg-dark: #1a1a1a;
    --border: #e8ebef;
    --header-h: 80px;
}

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   顶部 Header - 完全还原原站
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    height: var(--header-h);
}

.header-inner {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* LOGO */
.head-logo {
    flex-shrink: 0;
}
.head-logo img {
    height: 42px;
    width: auto;
}

/* 导航 */
.head-nav {
    flex: 1;
}
.head-nav > ul {
    display: flex;
    gap: 36px;
}
.head-nav li {
    position: relative;
}
.head-nav h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
    margin: 0;
}
.head-nav h3 a {
    display: inline-block;
    padding: 10px 0;
    color: var(--secondary);
    font-weight: 600;
}
.head-nav h3 a:hover,
.head-nav h3.active a {
    color: var(--primary);
}

/* 产品中心下拉 */
.head-nav li.has-sub:hover h3 a { color: var(--primary); }
.head-nav .nav-slidedown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-top: 2px solid var(--primary);
    padding: 8px 0;
    z-index: 100;
}
.head-nav li.has-sub:hover .nav-slidedown {
    display: block;
}
.head-nav .nav-slidedown a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    transition: all .2s;
}
.head-nav .nav-slidedown a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 28px;
}

/* 右侧"获取报价"按钮 */
.header-right { flex-shrink: 0; }
.btn-quote {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    transition: background .3s;
}
.btn-quote:hover { background: var(--primary-dark); }

/* 移动端按钮 */
.mobile-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--secondary);
}

/* ============================================================
   Hero / Banner
   ============================================================ */
.hero-banner {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 60%, transparent);
}
.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}
.hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-content p {
    font-size: 18px;
    opacity: .95;
    margin-bottom: 28px;
}
.btn-hero {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 2px;
    transition: background .3s;
}
.btn-hero:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 2px;
    margin-left: 12px;
    transition: all .3s;
}
.btn-outline:hover { background: #fff; color: var(--primary); }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 72px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: #fff; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}
.section-header .sub { font-size: 15px; color: var(--text-light); }
.section-header::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary);
    margin: 18px auto 0;
}

/* ============================================================
   统计数据
   ============================================================ */
.stats-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-item .num {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-item .label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
    letter-spacing: 2px;
}

/* ============================================================
   关于我们预览
   ============================================================ */
.about-intro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-intro h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: var(--secondary); }
.about-intro p { color: var(--text-light); font-size: 15px; line-height: 2; margin-bottom: 14px; }
.btn-more {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 28px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    transition: all .3s;
    border-radius: 2px;
}
.btn-more:hover { background: var(--primary); color: #fff; }

/* ============================================================
   基地卡片
   ============================================================ */
.bases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.base-card {
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
}
.base-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: var(--primary);
}
.base-card .base-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}
.base-card .base-info { padding: 24px; }
.base-card .base-info h4 { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.base-card .base-info p { color: var(--text-light); font-size: 14px; }

/* ============================================================
   产品分类导航
   ============================================================ */
.cats-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border);
}
.cats-nav a {
    padding: 14px 28px;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all .25s;
}
.cats-nav a:hover { color: var(--primary); }
.cats-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 首页分类网格 */
.home-cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}
.home-cats a {
    text-align: center;
    padding: 36px 16px;
    background: #fff;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: all .3s;
}
.home-cats a:last-child { border-right: none; }
.home-cats a:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   产品网格
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all .3s;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(15,131,210,.12);
    transform: translateY(-3px);
}
.product-card .p-img {
    height: 240px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
}
.product-card .p-info { padding: 20px; }
.product-card .p-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 42px;
}
.product-card .p-info .p-link { color: var(--primary); font-size: 13px; font-weight: 500; }

/* ============================================================
   产品应用领域（左列表 + 右大图 轮播）
   ============================================================ */
.app-carousel {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.app-carousel-list {
    width: 280px;
    flex-shrink: 0;
    background: #f5f7fa;
    padding: 16px 0;
}
.app-indicators { list-style: none; margin: 0; padding: 0; }
.app-indicators li {
    position: relative;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
    transition: color .25s;
    user-select: none;
}
.app-indicators li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 0; height: 20px;
    background: var(--primary);
    transform: translateY(-50%);
    transition: width .3s;
}
.app-indicators li.active {
    color: var(--primary);
    font-weight: 600;
}
.app-indicators li.active::before { width: 3px; }
.app-indicators li:hover { color: var(--primary); }

.app-carousel-pic {
    flex: 1;
    position: relative;
    aspect-ratio: 16 / 6;
    overflow: hidden;
}
.app-carousel-inner {
    position: relative;
    width: 100%; height: 100%;
}
.app-carousel-item {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.app-carousel-item.active {
    opacity: 1;
    pointer-events: auto;
}
.app-carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .app-carousel { flex-direction: column; }
    .app-carousel-list { width: 100%; padding: 0; }
    .app-indicators { display: flex; overflow-x: auto; }
    .app-indicators li { padding: 10px 12px; white-space: nowrap; font-size: 14px; border-bottom: none; }
    .app-indicators li.active::before { width: 100%; height: 2px; top: auto; bottom: 0; transform: none; }
    .app-carousel-pic { aspect-ratio: 16 / 9; }
}

/* 旧 grid 兼容删除
.apps-grid ... 已废弃 */

/* ============================================================
   首页视频（glite-video 风格：封面大图 + 播放按钮）
   ============================================================ */
.home-video-section {
    padding: 0;
    background: #000;
}
.glite-video {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.glite-video-link {
    display: block;
    position: relative;
    text-decoration: none;
}
.glite-video-link img {
    width: 100%;
    height: auto;
    display: block;
}
.glite-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.glite-video-play svg {
    transition: transform .3s;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}
.glite-video-link:hover .glite-video-play svg {
    transform: scale(1.12);
}
.glite-video-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 40px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
    color: #fff;
    pointer-events: none;
}
.glite-video-caption h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 1px;
}
.glite-video-caption p {
    font-size: 15px;
    margin: 0;
    color: rgba(255,255,255,.8);
}

@media (max-width: 768px) {
    .glite-video-caption { padding: 16px 20px; }
    .glite-video-caption h3 { font-size: 18px; }
    .glite-video-caption p { font-size: 13px; }
    .glite-video-play svg { width: 52px; height: 52px; }
}

/* ============================================================
   Video Lightbox（点击封面弹出播放）
   ============================================================ */
.video-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.video-lightbox-mask {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.85);
    animation: fadeIn .2s ease;
}
.video-lightbox-box {
    position: relative;
    width: 90%;
    max-width: 1000px;
    animation: zoomIn .25s ease;
}
.video-lightbox-close {
    position: absolute;
    top: -44px; right: 0;
    width: 36px; height: 36px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer;
    transition: background .2s;
}
.video-lightbox-close:hover { background: rgba(255,255,255,.3); }
.video-lightbox-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}
.video-lightbox-frame video {
    width: 100%; height: 100%;
    display: block;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   时间轴（历程）
   ============================================================ */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 44px 56px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-item::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
    z-index: 2;
}
.timeline-item:nth-child(odd)::before { right: -9px; }
.timeline-item:nth-child(even)::before { left: -9px; }
.timeline-item .year { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.timeline-item .desc { font-size: 14px; color: var(--text-light); line-height: 1.9; }

/* ============================================================
   企业文化
   ============================================================ */
.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.culture-card { text-align: center; padding: 40px 24px; background: #fff; border: 1px solid var(--border); }
.culture-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.culture-card p { color: var(--text-light); font-size: 14px; line-height: 1.8; }
.culture-card .culture-num {
    font-size: 42px; font-weight: 700; color: var(--primary);
    opacity: .2; margin-bottom: 10px; line-height: 1;
}

/* ============================================================
   关于我们 - 统计数据（4 项横排）
   ============================================================ */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}
.about-stat {
    text-align: center;
    padding: 20px 10px;
    position: relative;
}
.about-stat + .about-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 30%; height: 40%;
    width: 1px; background: #ddd;
}
.about-stat .as-num {
    font-size: 54px; font-weight: 700; color: var(--primary);
    line-height: 1; margin-bottom: 14px;
}
.about-stat .as-num span { font-size: 24px; }
.about-stat .as-label {
    font-size: 14px; color: #666;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.about-stat .as-label b {
    color: var(--primary); font-size: 14px; font-weight: 600;
}

/* ============================================================
   关于我们 - 基地卡片
   ============================================================ */
.base-card {
    background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.07); transition: all .3s;
}
.base-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.base-card .base-img { height: 200px; background-size: cover; background-position: center; }
.base-card .base-info { padding: 22px; text-align: center; }
.base-card .base-info h4 { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 8px; }
.base-card .base-info p { color: #777; font-size: 13px; line-height: 1.7; margin: 0; }

/* ============================================================
   关于我们 - 生产环境交替布局
   ============================================================ */
.facility-list { max-width: 1200px; margin: 0 auto; }
.facility-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: #fff; margin-bottom: 0;
}
.facility-row + .facility-row { border-top: 1px solid #eee; }
.facility-row.reverse { direction: rtl; }
.facility-row.reverse > * { direction: ltr; }
.facility-row .fr-img {
    height: 380px; background-size: cover; background-position: center;
}
.facility-row .fr-text {
    padding: 50px;
    display: flex; flex-direction: column; justify-content: center;
}
.facility-row .fr-text h3 {
    font-size: 20px; font-weight: 700; color: #222; margin-bottom: 18px;
    position: relative; padding-bottom: 12px;
}
.facility-row .fr-text h3::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 30px; height: 2px; background: var(--primary);
}
.facility-row.reverse .fr-text h3::after { left: auto; right: 0; }
.facility-row .fr-text p { color: #555; font-size: 14px; line-height: 1.9; margin: 0; }
.facility-row.reverse .fr-text { text-align: right; padding-left: 60px; padding-right: 50px; }
.facility-row .fr-text { padding-right: 60px; padding-left: 50px; }

/* ============================================================
   关于我们 - 证书墙
   ============================================================ */
.certs-grid {
    display: grid; gap: 16px;
}
.cert-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    transition: all .25s;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.cert-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); border-color: var(--primary); }
.cert-item img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}

/* ============================================================
   生产环境（交替图文）
   ============================================================ */
.facility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); }
.facility-item { display: flex; min-height: 300px; }
.facility-item.reverse { flex-direction: row-reverse; }
.facility-item .f-img {
    flex: 1;
    background-size: cover;
    background-position: center;
}
.facility-item .f-text {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}
.facility-item .f-text h4 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: var(--secondary); }
.facility-item .f-text p { color: var(--text-light); line-height: 2; font-size: 14px; }

/* ============================================================
   证书墙 / 合作伙伴
   ============================================================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.certs-grid div {
    aspect-ratio: 1.4/1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    padding: 8px;
    transition: all .3s;
}
.certs-grid div:hover { color: var(--primary); background: var(--primary-light); }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.partners-grid div {
    aspect-ratio: 2/1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    transition: all .3s;
}
.partners-grid div:hover { background: var(--bg-gray); color: var(--primary); }

/* ---------- 合作客户（原站 jwell_clients，首页/产品中心/关于我们通用）---------- */
.jwell-clients { padding: 70px 0 80px; background: #fff; }
.jwell-clients .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.jwell-clients .tit { text-align: center; margin-bottom: 40px; }
.jwell-clients .tit h3 { text-align: center; font-size: 26px; font-weight: 700; color: #111; margin: 0; }
.jwell-clients .list { display: flex; flex-direction: column; gap: 18px; }
.jwell-clients .partner-row { overflow: hidden; }
.jwell-clients .partner-track {
    display: flex;
    width: max-content;
    animation: partnerMarquee 120s linear infinite;
}
.jwell-clients .partner-row.reverse .partner-track { animation-direction: reverse; }
.jwell-clients:hover .partner-track { animation-play-state: paused; }
.jwell-clients .partner-group { display: flex; gap: 18px; padding-right: 18px; }
.jwell-clients .partner-slide { flex: 0 0 210px; height: auto; }
@keyframes partnerMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.jwell-clients .pic {
    height: 96px; padding: 12px 16px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #eee; border-radius: 4px;
    transition: box-shadow .3s, border-color .3s;
}
.jwell-clients .pic:hover { border-color: #dcdcdc; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.jwell-clients .pic img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.jwell-clients .pic:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
    .jwell-clients { padding: 50px 0 60px; }
    .jwell-clients .tit h3 { font-size: 22px; }
    .jwell-clients .partner-slide { flex-basis: 150px; }
    .jwell-clients .pic { height: 76px; padding: 8px 10px; }
}

/* ============================================================
   页面 Banner / 面包屑
   ============================================================ */
.page-banner {
    height: 220px;
    background: linear-gradient(135deg, #0f83d2 0%, #0a5a91 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 6px; }
.page-banner p { opacity: .9; font-size: 15px; }
.page-banner.has-image {
    height: 450px;
    background-size: cover;
    background-position: center;
}

.breadcrumb-bar {
    background: var(--bg-gray);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb-bar .container { font-size: 13px; color: var(--text-light); }
.breadcrumb-bar a { color: var(--text-light); }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar .sep { margin: 0 10px; color: var(--text-muted); }

/* ============================================================
   产品详情
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
}
.pd-gallery .main-img {
    width: 100%;
    height: 440px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fafafa;
    border: 1px solid var(--border);
}
.pd-info h1 { font-size: 26px; font-weight: 700; margin-bottom: 12px; color: var(--secondary); }
.pd-info .p-meta { color: var(--text-light); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pd-info h3 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; color: var(--secondary); }
.pd-info .spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.pd-info .spec-table th,
.pd-info .spec-table td { padding: 10px 16px; border: 1px solid var(--border); }
.pd-info .spec-table th { background: var(--bg-gray); width: 35%; font-weight: 600; color: var(--secondary); }

/* ============================================================
   联系页面
   ============================================================ */
.contact-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-wrap h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--secondary); }

.contact-info .ci-row { display: flex; gap: 12px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px dashed var(--border); }
.contact-info .ci-row i { font-size: 18px; color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.contact-info .ci-row h5 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--secondary); }
.contact-info .ci-row p { color: var(--text-light); font-size: 14px; }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form .field { margin-bottom: 16px; }
.contact-form button {
    padding: 12px 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
}
.contact-form button:hover { background: var(--primary-dark); }

/* ============================================================
   新闻页面
   ============================================================ */
.news-list-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
}
.news-sidebar h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--secondary); }
.news-sidebar .cat-list a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    transition: all .2s;
}
.news-sidebar .cat-list a:hover { color: var(--primary); padding-left: 28px; }
.news-sidebar .cat-list a.active { color: var(--primary); background: var(--primary-light); }

.news-items .news-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.news-items .n-img {
    width: 220px;
    height: 150px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.news-items .n-info h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}
.news-items .n-info h4:hover { color: var(--primary); }
.news-items .n-info .n-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.news-items .n-info .n-summary { color: var(--text-light); font-size: 14px; line-height: 1.8; }

/* ============================================================
   分页
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span {
    padding: 8px 16px;
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--text);
    transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   页脚 - 完全还原原站 (witrfm_area / footer-middle / footer-bottom)
   ============================================================ */
.site-footer { background: #1a1a1a; color: #aaa; }

/* footer-middle */
.footer-middle { padding: 50px 0 30px; }
.footer-middle .container { max-width: 1200px; padding: 0 20px; }

/* 原站 grid 比例：col-lg-3 / col-lg-1 / col-lg-4 / col-lg-3 */
.footer-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 4fr 3fr;
    gap: 40px;
}
.footer-col { position: relative; }

/* 标题 h2.widget-title（原站用 h2） */
.footer-col .widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 22px;
    position: relative;
}
.footer-col .widget-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -8px;
    width: 22px; height: 2px;
    background: var(--primary);
}

/* 第一列：LOGO + 社交 */
.footer-logo { height: 38px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { margin: 6px 0; font-size: 14px; color: #999; line-height: 1.8; }
.footer-brand .phone a { color: #999; text-decoration: none; }
.social-icons { margin-top: 16px; display: flex; gap: 12px; }
.social-icons a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #2a2a2a;
    border-radius: 50%;
    color: #aaa;
    font-size: 16px;
    transition: all .25s;
}
.social-icons a:hover { background: var(--primary); color: #fff; }

/* 第二列：快速链接 */
.footer-col ul.menu { list-style: none; margin: 0; padding: 0; }
.footer-col ul.menu li { margin-bottom: 12px; }
.footer-col ul.menu a {
    color: #aaa; font-size: 14px; text-decoration: none;
    transition: color .2s;
}
.footer-col ul.menu a:hover { color: var(--primary); }

/* 第三列：联系我们 */
.footer-widget .footer_s_inner {
    display: flex; gap: 12px; margin-bottom: 14px;
    font-size: 13px; line-height: 1.8;
}
.footer-widget .footer-sociala-icon {
    flex-shrink: 0;
    width: 20px;
    color: var(--primary);
    font-size: 16px;
    margin-top: 4px;
}
.footer-widget .footer-sociala-info { color: #aaa; }
.footer-widget .footer-sociala-info p { margin: 0; color: #aaa; }
.footer-widget .footer-sociala-info a { color: #aaa; text-decoration: none; }
.footer-widget .footer-sociala-info a:hover { color: var(--primary); }

/* 第四列：订阅 */
.mc4wp-form-fields p { margin: 0; display: flex; }
.mc4wp-form-fields input[type="email"] {
    flex: 1;
    padding: 11px 14px;
    border: none;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
    outline: none;
    border-radius: 2px 0 0 2px;
}
.mc4wp-form-fields input::placeholder { color: #666; }
.mc4wp-form-fields .submit {
    padding: 11px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
    transition: background .2s;
}
.mc4wp-form-fields .submit:hover { background: #0d6fb3; }

/* footer-bottom */
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}
.footer-bottom .container { max-width: 1200px; padding: 0 20px; }
.footer-bottom a { color: #777; text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* 响应式 */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1.5fr; gap: 32px; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-middle { padding: 40px 0 20px; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .certs-grid { grid-template-columns: repeat(5, 1fr); }
    .home-cats { grid-template-columns: repeat(3, 1fr); }
    .bases-grid { grid-template-columns: repeat(2, 1fr); }
    .culture-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(5, 1fr); }
    .facility-grid { grid-template-columns: 1fr; }
    .facility-item, .facility-item.reverse { flex-direction: column; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; gap: 16px; }
    .head-logo img { height: 32px; }

    .head-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: #fff;
        padding: 20px;
        border-top: 1px solid var(--border);
        max-height: 70vh;
        overflow-y: auto;
    }
    .head-nav.open { display: block; }
    .head-nav > ul { flex-direction: column; gap: 0; }
    .head-nav > ul > li { border-bottom: 1px solid var(--border); }
    .head-nav .nav-slidedown {
        position: static;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding: 8px 20px;
    }

    .header-right .btn-quote { padding: 8px 16px; font-size: 13px; }
    .mobile-toggle { display: block; margin-left: auto; }

    .hero-banner { min-height: 360px; }
    .hero-content h1 { font-size: 26px; }
    .hero-content p { font-size: 15px; }

    .section { padding: 48px 0; }
    .container { padding: 0 20px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 24px; }
    .stat-item .num { font-size: 40px; }

    .about-intro { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px; }
    .bases-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-card .p-img { height: 180px; }
    .home-cats { grid-template-columns: repeat(2, 1fr); }

    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%; left: 0; padding-left: 50px; text-align: left;
    }
    .timeline-item::before, .timeline-item:nth-child(even)::before { left: 12px; right: auto; }

    .product-detail { grid-template-columns: 1fr; gap: 30px; padding: 30px 20px; }
    .pd-gallery .main-img { height: 300px; }
    .contact-wrap { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .news-list-page { grid-template-columns: 1fr; padding: 40px 20px; }
    .news-items .news-item { flex-direction: column; }
    .news-items .n-img { width: 100%; height: 180px; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 20px; }
}

/* ============================================================
   首页 5 图轮播（原站风格）
   Banner 图片比例: 3840x1500 (2.56:1) 和 1920x700 (2.74:1)
   统一容器比例，用 object-fit:cover 保持图片完整覆盖
   ============================================================ */
.hero-carousel {
    position: relative;
    width: 100%;
    /* 保持图片比例 1920:700 ≈ 2.74:1 */
    aspect-ratio: 1920 / 700;
    min-height: 360px;
    overflow: hidden;
    background: #1a1a1a;
}
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}
.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
    z-index: 1;
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1400px;
    width: calc(100% - 80px);
    color: #fff;
    z-index: 3;
}
.slide-content h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.slide-content p {
    font-size: 18px;
    opacity: .95;
    margin-bottom: 28px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: var(--primary); }
.carousel-arrow.prev { left: 32px; }
.carousel-arrow.next { right: 32px; }
.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .3s;
    border: none;
    padding: 0;
}
.carousel-dots .dot.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

/* 响应式轮播 */
@media (max-width: 768px) {
    .hero-carousel {
        /* 移动端稍微矮一点，但保持宽屏比例 */
        aspect-ratio: 1920 / 900;
        min-height: 280px;
    }
    .slide-content { width: calc(100% - 40px); }
    .slide-content h1 { font-size: 24px; }
    .slide-content p { font-size: 14px; margin-bottom: 20px; }
    .carousel-arrow.prev { left: 12px; width: 36px; height: 36px; font-size: 16px; }
    .carousel-arrow.next { right: 12px; width: 36px; height: 36px; font-size: 16px; }
    .carousel-dots { bottom: 16px; gap: 8px; }
    .carousel-dots .dot { width: 8px; height: 8px; }
    .carousel-dots .dot.active { width: 20px; }
}

/* ============================================================
   Banner 下方区块：我们是谁 + 统计数据（原站精确还原）
   ============================================================ */
.home-about-section {
    padding: 72px 0 48px;
    background: #fff;
}
.home-about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 56px;
}
/* 左侧：带叠加"22年"的图片 */
.home-about-img {
    position: relative;
    overflow: hidden;
}
.home-about-img img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}
.home-about-badge {
    position: absolute;
    bottom: 32px;
    left: 0;
    width: 180px;
    height: 130px;
    background: rgba(30, 40, 50, 0.82);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 12px;
    backdrop-filter: blur(2px);
}
.home-about-badge .badge-num {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.home-about-badge .badge-text {
    font-size: 14px;
    margin-top: 8px;
    color: rgba(255,255,255,.85);
    letter-spacing: 2px;
}
/* 右侧文字 */
.home-about-text .ha-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}
.home-about-text p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 20px;
}
.home-about-text .ha-btn {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    transition: all .3s;
    margin-top: 12px;
}
.home-about-text .ha-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* 紧接下方：统计数据一行（原站样式） */
.home-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.home-stats-row .h-stat {
    text-align: center;
    padding: 16px 0;
}
.home-stats-row .h-stat .h-num {
    font-size: 44px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}
.home-stats-row .h-stat .h-num span {
    font-size: 22px;
    color: var(--primary);
    margin-left: 2px;
}
.home-stats-row .h-stat .h-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
    letter-spacing: 4px;
}
.home-stats-row .h-stat + .h-stat {
    border-left: 1px solid var(--border);
}

@media (max-width: 768px) {
    .home-about-section { padding: 40px 0 32px; }
    .home-about-row {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }
    .home-about-img img { min-height: 260px; }
    .home-about-badge {
        width: 140px;
        height: 100px;
        bottom: 20px;
    }
    .home-about-badge .badge-num { font-size: 40px; }
    .home-about-badge .badge-text { font-size: 12px; }
    .home-about-text .ha-title { font-size: 22px; }
    .home-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        border-top: none;
        padding-top: 24px;
    }
    .home-stats-row .h-stat + .h-stat { border-left: none; }
    .home-stats-row .h-stat:nth-child(2n) { border-left: none; }
    .home-stats-row .h-stat:nth-child(3) { border-top: 1px solid var(--border); padding-top: 24px; }
    .home-stats-row .h-stat:nth-child(4) { border-top: 1px solid var(--border); padding-top: 24px; }
    .home-stats-row .h-num { font-size: 32px !important; }
}

/* ---------- Markdown 渲染内容（后台以 Markdown 编写的文本） ---------- */
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 {
    color: #111; line-height: 1.4; margin: 1.4em 0 .6em;
}
.rich-text h1 { font-size: 26px; }
.rich-text h2 { font-size: 23px; }
.rich-text h3 { font-size: 20px; }
.rich-text h4 { font-size: 17px; }
.rich-text p { margin: 0 0 1em; }
.rich-text ul, .rich-text ol { margin: 0 0 1em; padding-left: 1.6em; }
.rich-text li { margin: .35em 0; }
.rich-text table {
    width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px;
}
.rich-text th, .rich-text td {
    border: 1px solid #e8e8e8; padding: 9px 12px; text-align: left;
}
.rich-text th { background: #f6f8fa; font-weight: 600; }
.rich-text blockquote {
    margin: 1.2em 0; padding: 10px 18px;
    border-left: 3px solid var(--primary);
    background: #f7f9fb; color: #666;
}
.rich-text img { max-width: 100%; height: auto; border-radius: 4px; margin: 1em 0; }
.rich-text code {
    background: #f3f4f6; padding: 2px 6px; border-radius: 3px; font-size: .9em;
}
.rich-text pre {
    background: #2d2d2d; color: #eee; padding: 16px;
    border-radius: 6px; overflow: auto;
}
.rich-text pre code { background: none; padding: 0; color: inherit; }
.rich-text hr { border: none; border-top: 1px solid #eee; margin: 1.8em 0; }
.rich-text a { color: var(--primary); }

/* 关于公司简介中的 Markdown 列表 / 表格 */
.about-text ul, .about-text ol {
    margin: 0 0 16px; padding-left: 1.6em; color: #555; font-size: 14px; line-height: 2;
}
.about-text table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.about-text th, .about-text td { border: 1px solid #e8e8e8; padding: 9px 12px; text-align: left; }
.about-text th { background: #f6f8fa; }
