/*
Theme Name: 英能基官网
Theme URI: https://www.yingnengjikeji.com
Author: 英能基（河南）新能源科技有限公司
Description: 企业门户主题：钠离子电池品牌官网，含首页轮播、产品中心、产品应用、研发与制造、新闻中心。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: yingnengji
*/

/* ============ 1. 变量与基础 ============ */
:root {
  --brand: #0b4ea2;
  --brand-deep: #072f66;
  --brand-light: #1674d1;
  --brand-tint: #eaf2fc;
  --ink: #0e1b2e;
  --text: #3b4654;
  --muted: #7e8ba0;
  --line: #e4e9f0;
  --bg-soft: #f5f8fc;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(11, 78, 162, .10);
  --shadow-lg: 0 18px 50px rgba(11, 78, 162, .16);
  --w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s, background .25s, border-color .25s; }
a:hover { color: var(--brand-light); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 60px 0; }
.text-center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ============ 2. 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: 100px;
  font-size: 15px; font-weight: 500; border: 1px solid transparent;
  background: var(--brand); color: #fff; line-height: 1.5;
}
.btn:hover { background: var(--brand-light); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--brand); }
.btn--line { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn--line:hover { background: var(--brand); color: #fff; }
.btn--sm { padding: 8px 20px; font-size: 14px; }
.btn .ico { width: 14px; height: 14px; }

/* ============ 3. 头部导航 ============ */
.site-header { position: sticky; top: 0; z-index: 90; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header.is-stuck { box-shadow: 0 8px 26px rgba(14,27,46,.09); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 8px; flex: none;
  background: linear-gradient(140deg, var(--brand-light), var(--brand-deep));
  color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(11,78,162,.28);
}
.logo-text b { display: block; font-size: 19px; color: var(--ink); letter-spacing: 1px; line-height: 1.25; }
.logo-text em { display: block; font-style: normal; font-size: 10px; letter-spacing: 2.2px; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; align-items: center; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 20px; font-size: 16px; color: var(--ink);
  position: relative;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--brand); transform: translateX(-50%); transition: width .28s;
}
.nav > li:hover > a, .nav > li.current-menu-item > a, .nav > li.current_page_item > a { color: var(--brand); }
.nav > li:hover > a::after, .nav > li.current-menu-item > a::after { width: 22px; }

.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 168px; background: #fff; border-radius: 8px; padding: 8px;
  box-shadow: 0 18px 40px rgba(14,27,46,.14);
  opacity: 0; visibility: hidden; transition: all .25s;
}
.nav > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sub-menu a { display: block; padding: 9px 16px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.sub-menu a:hover { background: var(--brand-tint); color: var(--brand); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ============ 4. 首屏轮播 ============ */
.hero { position: relative; height: 660px; overflow: hidden; background: var(--brand-deep); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04);
  transition: opacity 1s ease, transform 8s linear;
  background-size: cover; background-position: center;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,14,32,.82) 0%, rgba(4,14,32,.45) 48%, rgba(4,14,32,.18) 100%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin: 0 0 18px;
}
.hero-title { font-size: 50px; line-height: 1.24; color: #fff; margin: 0 0 16px; letter-spacing: 1px; }
.hero-title small { display: block; font-size: 15px; font-weight: 400; letter-spacing: 3px; color: rgba(255,255,255,.66); margin-top: 20px; text-transform: uppercase; }
.hero-desc { max-width: 520px; color: rgba(255,255,255,.84); font-size: 16px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; }
.hero-nav .container { display: flex; align-items: center; gap: 14px; }
.hero-dot {
  width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.32);
  transition: .3s;
}
.hero-dot.is-active { background: #fff; width: 54px; }
.hero-side {
  position: absolute; right: 40px; bottom: 34px; z-index: 3;
  display: flex; gap: 10px;
}
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  background: transparent; color: #fff; display: flex; align-items: center; justify-content: center;
  transition: .25s;
}
.hero-arrow:hover { background: #fff; color: var(--brand); border-color: #fff; }
.hero-arrow svg { width: 16px; height: 16px; }

/* ============ 5. 内页 banner ============ */
.page-banner {
  position: relative; padding: 96px 0 88px; color: #fff;
  background: var(--brand-deep) url("") center/cover no-repeat;
  overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,18,42,.92), rgba(6,32,74,.62));
}
.page-banner::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(60,150,255,.34), transparent 66%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: 40px; margin: 0 0 10px; }
.page-banner .en { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.62); }
.breadcrumb { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ============ 6. 通用标题 ============ */
.sec-head { margin-bottom: 52px; }
.sec-head .kicker { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--brand-light); margin: 0 0 12px; }
.sec-head h2 { font-size: 34px; margin: 0; }
.sec-head h2 small { display: block; font-size: 12px; font-weight: 400; letter-spacing: 3.4px; color: var(--muted); margin-top: 12px; text-transform: uppercase; }
.sec-head--center { text-align: center; }
.sec-head--center .rule { width: 40px; height: 3px; background: var(--brand); margin: 18px auto 0; }
.sec-head p.lead { color: var(--muted); margin: 16px 0 0; max-width: 720px; }
.sec-head--center p.lead { margin-left: auto; margin-right: auto; }
.sec-head--light h2 { color: #fff; }
.sec-head--light .kicker { color: #7fb4f0; }
.sec-head--light h2 small { color: rgba(255,255,255,.5); }

/* ============ 7. 首页关于 ============ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 4px; width: 100%; }
.about-media::after {
  content: ""; position: absolute; left: -18px; bottom: -18px; width: 130px; height: 130px;
  border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); border-radius: 0 0 0 4px;
}
.about-copy h2 { font-size: 32px; margin: 0 0 8px; }
.about-copy .en { font-size: 11px; letter-spacing: 2.6px; color: var(--muted); text-transform: uppercase; margin: 0 0 24px; }
.about-copy p { color: var(--text); }
.about-copy .btn { margin-top: 26px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.stat { background: #fff; padding: 30px 22px; text-align: center; }
.stat b { display: block; font-size: 38px; color: var(--brand); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.stat b span, .stat b i { display: inline; }
.stat b i { font-style: normal; font-size: 20px; margin-left: 2px; }
.stat span { display: block; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ============ 8. 产品卡片 ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.p-card__media { position: relative; aspect-ratio: 4/3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.p-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .6s; }
.p-card:hover .p-card__media img { transform: scale(1.05); }
.p-card__body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.p-card__cat { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--brand-light); margin: 0 0 8px; }
.p-card__body h3 { font-size: 19px; margin: 0 0 10px; }
.p-card__body p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.p-card__more { margin-top: auto; font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; }
.p-card__more::after { content: "→"; transition: transform .3s; }
.p-card:hover .p-card__more::after { transform: translateX(5px); }

/* ============ 9. 应用场景 ============ */
.app-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.app-item {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 16px;
  text-align: center; transition: .3s;
}
.app-item:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow); }
.app-item svg { width: 34px; height: 34px; stroke: var(--brand); transition: .3s; margin: 0 auto 14px; display: block; }
.app-item:hover svg { stroke: #fff; }
.app-item span { font-size: 15px; }

/* ============ 10. 研发制造深色区 ============ */
.rd-band { position: relative; background: var(--brand-deep); color: #fff; overflow: hidden; }
.rd-band::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(circle at 78% 40%, rgba(28,110,220,.6), transparent 58%);
}
.rd-band .container { position: relative; z-index: 2; }
.rd-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.rd-split .media { border-radius: 6px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.36); }
.rd-feature { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.rd-feature:last-child { border-bottom: 0; }
.rd-feature__ico {
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  background: rgba(90,160,255,.14); display: flex; align-items: center; justify-content: center;
}
.rd-feature__ico svg { width: 24px; height: 24px; stroke: #7fb8ff; }
.rd-feature h4 { color: #fff; font-size: 17px; margin: 0 0 4px; }
.rd-feature p { color: rgba(255,255,255,.62); font-size: 14px; margin: 0; }

/* ============ 11. 新闻 ============ */
.news-home { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; }
.news-feature { display: block; }
.news-feature .media { border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-soft); margin-bottom: 22px; }
.news-feature .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-feature:hover .media img { transform: scale(1.05); }
.news-feature .date { font-size: 13px; color: var(--muted); letter-spacing: .4px; }
.news-feature h3 { font-size: 23px; margin: 10px 0 12px; }
.news-feature p { color: var(--muted); font-size: 14px; }

.news-list { display: flex; flex-direction: column; }
.news-list__item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.news-list__item:first-child { padding-top: 0; }
.news-list__item .thumb { width: 118px; height: 82px; flex: none; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.news-list__item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list__item h4 { font-size: 16px; margin: 0 0 8px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list__item .date { font-size: 13px; color: var(--muted); }
.news-list__item:hover h4 { color: var(--brand); }

/* 新闻列表页 */
.news-rows { display: flex; flex-direction: column; gap: 8px; }
.news-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 26px 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.news-row .media { border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-soft); }
.news-row .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-row:hover .media img { transform: scale(1.05); }
.news-row .date { font-size: 13px; color: var(--muted); }
.news-row h3 { font-size: 21px; margin: 8px 0 10px; }
.news-row p { color: var(--muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row:hover h3 { color: var(--brand); }

/* ============ 12. 合作伙伴 ============ */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.partner {
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  transition: .3s; min-height: 96px;
}
.partner img { max-height: 46px; width: auto; opacity: .82; filter: grayscale(1); transition: .3s; }
.partner:hover { border-color: var(--brand-light); box-shadow: var(--shadow); }
.partner:hover img { filter: none; opacity: 1; }

/* ============ 13. 优势/特性 ============ */
.adv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.adv { background: #fff; padding: 34px 22px; text-align: center; }
.adv svg { width: 32px; height: 32px; stroke: var(--brand); margin: 0 auto 16px; display: block; }
.adv b { display: block; font-size: 26px; color: var(--brand); font-weight: 800; line-height: 1.2; }
.adv h4 { font-size: 15px; margin: 10px 0 6px; }
.adv span { font-size: 13px; color: var(--muted); }

.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px; transition: .3s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.feature-card .ico-wrap { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-card .ico-wrap svg { width: 26px; height: 26px; stroke: var(--brand); }
.feature-card h3 { font-size: 18px; margin: 0 0 10px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ============ 14. 子导航（关于我们） ============ */
.subnav { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 54px; flex-wrap: wrap; }
.subnav a { padding: 14px 26px; font-size: 16px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.is-active, .subnav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.anchor-section { scroll-margin-top: 110px; }

/* ============ 15. 单页/文章 ============ */
.entry { font-size: 16px; line-height: 1.95; color: #3d4756; }
.entry h2 { font-size: 24px; margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--brand); }
.entry h3 { font-size: 19px; margin: 30px 0 12px; }
.entry p { margin: 0 0 1.1em; }
.entry ul { list-style: none; margin: 0 0 1.2em; }
.entry ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.entry ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); }
.entry img { border-radius: 8px; margin: 24px 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.entry table th, .entry table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.entry table th { background: var(--bg-soft); color: var(--ink); font-weight: 600; width: 34%; }
.entry blockquote { margin: 24px 0; padding: 18px 24px; background: var(--brand-tint); border-left: 4px solid var(--brand); border-radius: 0 8px 8px 0; }
.entry a { color: var(--brand); text-decoration: underline; }

.article-head { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: 32px; margin: 0 0 16px; }
.article-meta { font-size: 13px; color: var(--muted); display: flex; gap: 20px; flex-wrap: wrap; }
.article-foot { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.article-foot a { color: var(--brand); }

/* 产品详情 */
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-top .media { border-radius: 10px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.product-top .media img { width: 100%; }
.product-info h1 { font-size: 32px; margin: 0 0 8px; }
.product-info .cat { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-light); }
.product-info .desc { color: var(--text); margin: 18px 0 26px; }
.product-points { display: grid; gap: 12px; margin: 0 0 30px; }
.product-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.product-points li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--brand-tint); box-shadow: inset 0 0 0 5px var(--brand-tint), inset 0 0 0 9px transparent; border: 5px solid var(--brand-tint); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 54px; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border: 0; }

/* ============ 16. 联系页 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px 30px; transition: .3s; }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.contact-card .ico-wrap { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.contact-card .ico-wrap svg { width: 24px; height: 24px; stroke: var(--brand); }
.contact-card h3 { font-size: 16px; margin: 0 0 10px; color: var(--muted); font-weight: 500; }
.contact-card p { font-size: 16px; color: var(--ink); margin: 0; line-height: 1.7; }
.contact-card p + p { margin-top: 6px; font-size: 14px; color: var(--text); }
.map-box { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); height: 340px; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* ============ 17. 页脚 ============ */
.site-footer { background: #061a35; color: rgba(255,255,255,.62); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding: 68px 0 54px; }
.footer-brand .logo-text b { color: #fff; }
.footer-brand .logo-text em { color: rgba(255,255,255,.45); }
.footer-brand p { margin: 22px 0 0; line-height: 1.9; max-width: 330px; color: rgba(255,255,255,.5); }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 20px; letter-spacing: .5px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a:hover { color: #fff; }
.footer-col .contact-line { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.footer-col .contact-line svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.5); flex: none; margin-top: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.42);
}
.footer-bottom a:hover { color: #fff; }

/* ============ 18. 其他 ============ */
.to-top {
  position: fixed; right: 26px; bottom: 96px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(11,78,162,.34); opacity: 0; visibility: hidden; transition: .3s;
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--brand-light); }
.to-top svg { width: 18px; height: 18px; }

.side-contact {
  position: fixed; right: 26px; bottom: 40px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(14,27,46,.12); transition: .3s;
}
.side-contact:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.side-contact svg { width: 20px; height: 20px; }

/* 仅当 JS 可用时才做入场动画，避免脚本失效导致内容不可见 */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal { opacity: 1; }

/* ============ 19. 响应式 ============ */
@media (max-width: 1100px) {
  .hero-title { font-size: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .hero { height: 540px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .about-split, .rd-split, .news-home, .product-top { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .news-row { grid-template-columns: 1fr; gap: 18px; }
  .news-row .media { max-width: 100%; }
  .page-banner { padding: 68px 0 62px; }
  .page-banner h1 { font-size: 30px; }
  .sec-head h2 { font-size: 27px; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 82px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 10px 20px 26px; box-shadow: 0 20px 40px rgba(14,27,46,.14);
    max-height: calc(100vh - 82px); overflow: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .28s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav > li > a::after { display: none; }
  .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    padding: 0 0 8px 14px; min-width: 0;
  }
  .sub-menu a { border-bottom: 1px dashed transparent; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 18px; }
  .hero { height: 480px; }
  .hero-title { font-size: 26px; }
  .hero-title small { font-size: 12px; }
  .hero-desc { display: none; }
  .grid-3, .grid-4, .grid-2, .contact-grid, .adv-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; padding: 48px 0 36px; }
  .sec-head { margin-bottom: 34px; }
  .sec-head h2 { font-size: 23px; }
  .logo-text b { font-size: 16px; }
  .logo-text em { font-size: 9px; letter-spacing: 1.6px; }
  .stat b { font-size: 30px; }
  .article-head h1 { font-size: 24px; }
  .product-info h1 { font-size: 24px; }
  .to-top, .side-contact { right: 14px; }
  .to-top { bottom: 84px; }
  .side-contact { bottom: 28px; }
}

body{margin:0}
.wp-site-blocks{overflow-x:clip}
.site-header{position:sticky;top:0;z-index:90;background:#fff;box-shadow:0 1px 0 #e4e9f0}
.admin-bar .site-header{top:32px}
.site-header .wp-block-group{padding:0}
.site-header .wp-block-navigation__container{gap:0}
.site-header .wp-block-navigation-item__content{padding:10px 20px;font-size:16px;color:#0e1b2e}
.site-header .wp-block-navigation-item__content:hover{color:#0b4ea2}
.site-header .wp-block-navigation__submenu-container{border-radius:8px;box-shadow:0 18px 40px rgba(14,27,46,.14);padding:8px}
.site-header .wp-block-site-logo img{width:auto;max-height:112px}
.site-footer h4,.site-footer h2,.site-footer h3{color:#fff}
.site-footer a{color:rgba(255,255,255,.62)}
.site-footer a:hover{color:#fff}
.wp-block-post-title{margin:0}
.p-card img{width:100%;aspect-ratio:4/3;object-fit:contain;padding:20px;background:#fff}
.p-card{overflow:hidden;padding-bottom:20px}
.p-card h3,.p-card p{margin-left:22px;margin-right:22px}
.p-card p a{color:#0b4ea2}
.hero .wp-block-cover__inner-container{max-width:1200px;margin:0 auto;padding:0 24px}
.hero{border-radius:0}
.page-banner h1{margin:0 0 6px}
.section .wp-block-columns{margin-bottom:0}
.hero .wp-block-heading{max-width:680px}
.hero .wp-block-cover__inner-container p{max-width:520px}
.hero{text-shadow:0 2px 12px rgba(0,0,0,.28)}
.product-grid .wp-block-post-template{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;list-style:none;padding:0}
@media(max-width:900px){.product-grid .wp-block-post-template{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.product-grid .wp-block-post-template{grid-template-columns:1fr}}
.site-footer .wp-block-columns{padding:64px 0 48px;gap:44px}
.site-footer h4{color:#fff;font-size:15px;margin:0 0 18px}
.site-footer p{color:rgba(255,255,255,.55);font-size:14px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:22px 0;font-size:13px}
.footer-bottom p{font-size:13px;color:rgba(255,255,255,.42)}
.stats .wp-block-column p:first-child{font-size:34px;font-weight:800;color:#0b4ea2;line-height:1.2;margin:0}
.stats .wp-block-column p{font-size:14px;color:#7e8ba0;margin:0}
.stats .wp-block-column{padding:18px 0}
.rd-band h2,.rd-band h3{color:#fff}
.rd-band p{color:rgba(255,255,255,.72)}
.rd-band .wp-block-button__link{color:#fff;border-color:rgba(255,255,255,.6)}
.hero .wp-block-cover__inner-container{max-width:1200px;margin:0 auto;padding:0 24px}
body{color:#3b4654}
h1,h2,h3,h4,h5,h6{color:#0e1b2e}
.site-header{background:rgba(255,255,255,.96);box-shadow:0 1px 0 #eef1f6,0 6px 24px rgba(14,27,46,.04)}
.site-header::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#0b4ea2,#1674d1 45%,#4aa8ff)}
.header-inner{min-height:78px;gap:28px}
.header-logo img{width:auto;max-height:56px}
.header-nav .wp-block-navigation__container{gap:2px}
.header-nav .wp-block-navigation-item__content{padding:10px 16px;border-radius:8px;font-size:16px;font-weight:500;color:#0e1b2e;transition:.25s}
.header-nav .wp-block-navigation-item__content:hover{color:#0b4ea2;background:#f2f7fd}
.header-nav .wp-block-navigation-item__content::after{content:"";position:absolute;left:16px;right:16px;bottom:5px;height:2px;border-radius:2px;background:#0b4ea2;transform:scaleX(0);transition:transform .28s}
.header-nav .wp-block-navigation-item__content:hover::after,.header-nav .current-menu-item>.wp-block-navigation-item__content::after{transform:scaleX(1)}
.header-nav .current-menu-item>.wp-block-navigation-item__content{color:#0b4ea2;font-weight:600}
.wp-block-navigation-item__content{position:relative}
.header-cta .wp-block-button__link{font-size:14px;font-weight:500;padding:9px 22px;background:#0b4ea2;color:#fff;border:0;box-shadow:0 8px 18px rgba(11,78,162,.22);transition:.25s}
.header-cta .wp-block-button__link:hover{background:#1674d1;transform:translateY(-1px);box-shadow:0 10px 22px rgba(11,78,162,.3)}
@media(max-width:1080px){.header-cta{display:none}}
.ynj-map{position:relative;height:400px;border-radius:10px;overflow:hidden;border:1px solid #e4e9f0;background:#f5f8fc}
.ynj-map__placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:24px}
.ynj-map__addr{font-size:18px;font-weight:600;color:#0e1b2e;margin:0}
.ynj-map__tip{font-size:13px;color:#7e8ba0;margin:0}
.ynj-map__link{display:inline-flex;margin-top:10px;padding:9px 22px;border-radius:100px;background:#0b4ea2;color:#fff;font-size:14px}
.ynj-map__link:hover{background:#1674d1;color:#fff}
.ynj-map.is-ready .ynj-map__placeholder{display:none}
.stats .wp-block-column{text-align:center}
.pic img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block}
.pic{margin:0 0 14px}
.wp-block-column .pic+*{margin-top:0}
.page-banner h1,.page-banner .wp-block-post-title{color:#fff}
.wp-block-post-content>.wp-block-heading{margin-top:56px}
.wp-block-post-content>.wp-block-heading:first-child{margin-top:0}
.num{font-size:26px;font-weight:800;color:#0b4ea2;margin:0 0 10px}
.wp-block-post-content>.wp-block-columns{margin-bottom:0}
.wp-block-group.page-banner h1,.wp-block-group.page-banner .wp-block-post-title{color:#fff}
.page-banner h1{opacity:1}
.page-banner .wp-block-post-title{color:#fff !important}
.page-banner>.wp-block-group__inner-container,.page-banner .wp-block-post-title{position:relative;z-index:2}
.spec{width:100%;border-collapse:collapse;margin:24px 0 56px;font-size:14px}
.spec th{background:#0b4ea2;color:#fff;padding:13px 14px;font-weight:600;text-align:center;font-size:14px}
.spec td{padding:12px 14px;text-align:center;border-bottom:1px solid #e4e9f0;color:#3b4654}
.spec td:first-child{text-align:left;background:#f5f8fc;color:#0e1b2e;font-weight:600;width:22%}
.spec tbody tr:nth-child(even) td:not(:first-child){background:#fafcfe}
.wp-block-table{margin:0}
figure.wp-block-table table.spec th{background:#0b4ea2 !important;color:#fff !important;padding:13px 14px;text-align:center;font-size:14px;font-weight:600}
figure.wp-block-table table.spec td{padding:12px 14px;text-align:center;border-bottom:1px solid #e4e9f0;color:#3b4654;font-size:14px}
figure.wp-block-table table.spec td:first-child{text-align:left;background:#f5f8fc !important;color:#0e1b2e;font-weight:600;width:22%}
figure.wp-block-table table.spec tbody tr:nth-child(even) td:not(:first-child){background:#fafcfe}
figure.wp-block-table{margin:24px 0 56px}
.page-id-31 .wp-block-column:has(> .pic){background:#f7f9fc;border-radius:10px;padding:28px}
.page-id-31 .wp-block-column .pic img{max-height:420px;object-fit:contain;aspect-ratio:auto;background:transparent}
.page-id-31 .wp-block-column:has(> .pic) .pic{margin:0}
.page-banner{background-color:#072f66;background-image:url(assets/img/page-banner.jpg);background-size:cover;background-position:center}
.page-banner::before{background:linear-gradient(100deg,rgba(5,18,42,.9),rgba(6,32,74,.5))}
.page-id-29 .pic img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.page-id-29 .pic{margin:0 0 12px}
.page-id-29 .wp-block-column h4{text-align:center;font-size:16px;margin:0}
.news-grid .wp-block-post-template{display:grid;grid-template-columns:1fr 1fr;gap:32px 28px;list-style:none}
.news-grid .wp-block-post-template>.wp-block-post:first-child{grid-column:1/-1}
.news-grid .news-pic img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px;transition:transform .5s}
.news-grid .wp-block-post:hover .news-pic img{transform:scale(1.04)}
.news-grid .news-pic{overflow:hidden;border-radius:8px;margin:0 0 14px}
.news-grid .news-date{font-size:13px;color:#7e8ba0;margin:0 0 6px}
.news-grid .news-title{font-size:17px;line-height:1.55;margin:0 0 8px}
.news-grid .wp-block-post:first-child .news-title{font-size:24px}
.news-grid .news-excerpt{font-size:14px;color:#7e8ba0;margin:0}
.news-grid .wp-block-post:first-child .news-excerpt{font-size:15px;color:#3b4654}
@media(max-width:900px){.news-grid .wp-block-post-template{grid-template-columns:1fr}}
.news-grid .wp-block-post-template{grid-template-columns:1fr 1fr;gap:44px 48px}
.news-grid .wp-block-post-template>.wp-block-post:first-child{grid-column:auto}
.news-grid .wp-block-post{display:flex;gap:24px;align-items:flex-start}
.news-grid .wp-block-post:first-child .news-title{font-size:17px}
.news-grid .wp-block-post:first-child .news-excerpt{font-size:14px;color:#7e8ba0}
.news-grid .news-pic{flex:0 0 42%;margin:0;overflow:hidden;border-radius:6px}
.news-grid .news-pic img{width:100%;height:100%;aspect-ratio:16/10;object-fit:cover}
.news-grid .news-title{font-size:16px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .25s}
.news-grid .wp-block-post:hover .news-title{color:#0b4ea2}
.news-grid .news-excerpt{font-size:14px;color:#7e8ba0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-grid .wp-block-post{display:grid;grid-template-columns:42% 1fr;grid-template-rows:auto auto auto;column-gap:24px;row-gap:6px;align-items:start}
.news-grid .news-pic{grid-column:1;grid-row:1/4;flex:none}
.news-grid .news-date{grid-column:2}
.news-grid .news-title{grid-column:2}
.news-grid .news-excerpt{grid-column:2}
.news-grid .news-date br{display:none}
.rd-band::before{pointer-events:none}
.rd-band .wp-block-columns{position:relative;z-index:2}
.page-banner::before,.page-banner::after{pointer-events:none}

/* ============================================================
   移动端适配（≤782px）—— 不影响 PC 端
   ============================================================ */
@media (max-width: 782px) {
  /* 1. 内容左右留白（全站生效，PC 不变） */
  .wp-block-post-content > *,
  .wp-block-group.is-layout-constrained > .wp-block-heading,
  .wp-block-group.is-layout-constrained > .wp-block-paragraph,
  .wp-block-group.is-layout-constrained > .wp-block-columns,
  .wp-block-group.is-layout-constrained > .wp-block-image,
  .wp-block-group.is-layout-constrained > .wp-block-list,
  .wp-block-group.is-layout-constrained > .wp-block-html {
    padding-left: 18px;
    padding-right: 18px;
  }
  .wp-block-post-content > .wp-block-cover { padding-left: 0; padding-right: 0; }

  /* 2. 页头：CTA 不换行 */
  .header-cta .wp-block-button__link { white-space: nowrap; padding: 8px 14px; font-size: 13px; }
  .header-inner { min-height: 64px; gap: 10px; }
  .header-logo img { max-height: 40px; }

  /* 3. 关键数据：居中 */
  .stats .wp-block-column { text-align: center; padding: 14px 8px; }
  .stats .wp-block-column p:first-child { font-size: 30px; }
  .stats .wp-block-column p { font-size: 13px; }

  /* 4. 首页新闻四宫格：单列，图上文下 */
  .news-grid .wp-block-post-template { grid-template-columns: 1fr !important; gap: 30px 0; }
  .news-grid .wp-block-post { grid-template-columns: 116px 1fr; grid-template-rows: auto auto; row-gap: 4px; }
  .news-grid .news-pic { grid-column: 1; grid-row: 1 / 3; }
  .news-grid .news-pic img { aspect-ratio: 4/3; }
  .news-grid .news-date { grid-column: 2; font-size: 12px; }
  .news-grid .news-title { grid-column: 2; font-size: 15px; -webkit-line-clamp: 3; }
  .news-grid .news-excerpt { display: none; }

  /* 5. 合作伙伴：3 列 */
  .partners { grid-template-columns: repeat(3, 1fr); }

  /* 6. 页脚留白 */
  .site-footer .wp-block-columns { padding-left: 18px; padding-right: 18px; }
  .site-footer .footer-bottom { padding-left: 18px; padding-right: 18px; }

  /* 7. 首页产品卡图片高度 */
  .p-card__media img { max-height: 240px; }
}
@media (max-width: 480px) {
  .partners { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 782px){
  .stats .wp-block-column{text-align:center !important}
  .p-card .pic img{max-height:260px;object-fit:contain}
}
.prod-pic{margin:0}
.prod-pic img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#f7f9fc;border-radius:10px;padding:24px}
.cat-grid .prod-pic img{aspect-ratio:4/3}
.cat-grid .wp-block-column h3{margin:18px 0 10px;font-size:19px}
