/* ==========================================================
   新鑫沃站点样式
   主色：新鑫沃蓝 + 靛紫点缀
   ========================================================== */
:root {
  --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --paper: #f6f8fc;
  --xxw: #0e63c0; --xxw-light: #3b82f6; --accent: #4f46e5;
  --primary: #1d4ed8; --primary-dark: #1e3a8a; --primary-soft: #eef2ff;
  --green: #10b981; --amber: #f59e0b;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07); --shadow-hi: 0 20px 50px rgba(29, 78, 216, .14);
  --r: 16px; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226,232,240,.8); }
.nav-inner { height: 72px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1.2; }
.brand-word b { font-size: 15px; letter-spacing: .02em; }
.brand-word small { font-size: 9px; color: var(--muted); letter-spacing: .08em; margin-top: 3px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--xxw), var(--accent)); transition: right .25s; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--primary); }
/* 当前页横线：CSS 静态兜底，JS 未执行或执行较晚时也稳定显示 */
body.page-products .nav a[href$="products.html"],
body.page-cases .nav a[href$="cases.html"],
body.page-about .nav a[href$="about.html"],
body.page-contact .nav a[href$="contact.html"],
body.page-detail .nav a[href$="products.html"] { color: var(--primary); }
body.page-products .nav a[href$="products.html"]::after,
body.page-cases .nav a[href$="cases.html"]::after,
body.page-about .nav a[href$="about.html"]::after,
body.page-contact .nav a[href$="contact.html"]::after,
body.page-detail .nav a[href$="products.html"]::after { right: 0; }
/* 悬停某个菜单时，当前页的静态横线让位，避免同时出现两条 */
.nav:has(a:hover) a.active:not(:hover)::after { right: 100%; }
.nav-cta { font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(120deg, var(--xxw), var(--accent)); padding: 9px 18px; border-radius: 8px; transition: .2s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.menu-btn { display: none; margin-left: auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.menu-btn span { width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-size: 14px; font-weight: 650; border: 1px solid transparent; transition: .22s; cursor: pointer; }
.btn-primary { color: #fff; background: linear-gradient(120deg, var(--xxw), var(--accent)); box-shadow: 0 8px 22px rgba(29, 78, 216, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(29, 78, 216, .35); }
.btn-ghost { color: #e2e8f0; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { color: var(--primary); border-color: #c7d2fe; background: #fff; }
.btn-outline:hover { background: var(--primary-soft); }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--xxw); }
.eyebrow.light { color: #a5b4fc; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, #0b1b3a 0%, #122a5c 48%, #1e3a8a 100%); padding: 82px 0 92px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.brand-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.brand-badges span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.brand-badges i { color: #94a3b8; font-style: normal; }
.hero h1 { font-size: clamp(38px, 4vw, 56px); line-height: 1.22; margin: 0 0 20px; letter-spacing: -.02em; font-weight: 750; }
.grad { background: linear-gradient(100deg, #60a5fa, #a78bfa 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16px; color: #cbd5e1; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 38px; font-size: 12px; color: #94a3b8; }
.hero-stats b { color: #e2e8f0; font-size: 15px; }
.hero-art { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); }
.hero-art img { width: 100%; height: 420px; object-fit: cover; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.3; margin: 14px 0 12px; letter-spacing: -.02em; }
.sec-head p { color: var(--muted); margin: 0; max-width: 700px; font-size: 15px; }
.sec-head.light h2, .sec-head.light p { color: #fff; }
.sec-head.light p { color: #cbd5e1; }
.text-link { color: var(--primary); font-size: 13px; font-weight: 600; white-space: nowrap; }
.text-link:hover { color: var(--accent); }

/* ---------- 核心业务 ---------- */
.services { background: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hi); border-color: #bfdbfe; }
.svc-icon { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, #dbeafe, #eef2ff); display: grid; place-items: center; margin-bottom: 16px; }
.svc-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--xxw); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { margin: 0 0 10px; font-size: 17px; }
.svc-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- 一体化能力 ---------- */
.bridge { background: linear-gradient(135deg, #0f2c5c, #1e3a8a); color: #fff; }
.bridge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bridge-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r); overflow: hidden; transition: transform .25s, background .25s; }
.bridge-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.11); }
.bridge-img { height: 170px; overflow: hidden; }
.bridge-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.bridge-card:hover .bridge-img img { transform: scale(1.06); }
.bridge-card > div:last-child { padding: 20px 22px 24px; }
.bridge-card h3 { margin: 0 0 8px; font-size: 17px; }
.bridge-card p { margin: 0; color: #cbd5e1; font-size: 13px; }

/* ---------- 案例 ---------- */
.cases { background: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-grid-full { grid-template-columns: repeat(2, 1fr); }
.case-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hi); }
.case-img { height: 190px; overflow: hidden; background: #f1f5f9; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-img img { transform: scale(1.05); }
.case-body { padding: 20px 22px 24px; }
.case-tag { display: inline-block; font-size: 10px; font-weight: 600; color: var(--xxw); background: #dbeafe; padding: 3px 9px; border-radius: 5px; margin-bottom: 10px; }
.case-body h3 { margin: 0 0 8px; font-size: 17px; }
.case-body p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- 产品 ---------- */
.products { background: var(--paper); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; min-height: 190px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hi); border-color: #bfdbfe; }
.prod-top { display: flex; flex-direction: column; gap: 8px; }
.prod-line { font-size: 10px; color: var(--xxw); font-weight: 600; letter-spacing: .04em; }
.prod-card h4 { margin: 0; font-size: 15px; line-height: 1.4; }
.prod-card p { color: var(--muted); font-size: 12px; margin: 10px 0 14px; flex: 1; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-tags span, .tag { font-size: 10px; color: var(--ink); background: #f1f5f9; padding: 3px 8px; border-radius: 5px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; transition: .2s; }
.chip:hover { border-color: #bfdbfe; color: var(--primary); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip b { font-weight: 500; opacity: .6; margin-left: 4px; }

/* ---------- 联系 ---------- */
.contact { background: #fff; }
.contact-inner { display: grid; grid-template-columns: 1.4fr .6fr; gap: 60px; align-items: center; }
.contact h2 { font-size: clamp(28px, 3vw, 38px); margin: 14px 0 16px; }
.contact-inner > div:first-child > p { color: var(--muted); font-size: 15px; max-width: 620px; }
.contact-meta { display: grid; gap: 14px; margin-top: 28px; }
.contact-meta div { border-left: 3px solid var(--xxw); padding-left: 14px; }
.contact-meta small { display: block; color: var(--muted); font-size: 11px; }
.contact-meta b { font-size: 14px; }
.qr-card { text-align: center; background: linear-gradient(160deg, #f8fafc, #eef2ff); border: 1px solid #e0e7ff; border-radius: 18px; padding: 22px; }
.qr-card img { width: 180px; margin: 0 auto 14px; border-radius: 10px; background: #fff; padding: 8px; box-shadow: 0 8px 22px rgba(15,23,42,.12); }
.qr-card small { color: var(--muted); font-size: 11px; }
.qr-card.small img { width: 140px; }

/* ---------- 内页 ---------- */
.page { padding: 54px 0 100px; }
.page-hero { position: relative; overflow: hidden; background: linear-gradient(125deg, #dbeafe, #eef2ff 70%); border: 1px solid #bfdbfe; border-radius: 22px; padding: 52px 56px; margin-bottom: 44px; }
.page-hero::after { content: ""; position: absolute; right: -90px; top: -130px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(14,99,192,.13), transparent 70%); }
.page-hero h1 { font-size: clamp(30px, 3.5vw, 44px); margin: 16px 0 14px; position: relative; }
.page-hero p { font-size: 16px; color: #475569; margin: 0; max-width: 800px; position: relative; }
.blk { margin-bottom: 56px; }
.blk-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.blk-head h2 { font-size: 24px; margin: 0; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 38px; }
.prose p { font-size: 15px; line-height: 1.95; color: #475569; margin: 0 0 16px; }
.prose h2 { font-size: 18px; margin: 24px 0 10px; }
.qual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qual-grid img { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; transition: transform .25s, box-shadow .25s; }
.qual-grid img:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.qual-note { margin: 16px 2px 0; color: var(--muted); font-size: 13px; }
.contact-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }

/* ---------- 详情页 ---------- */
.crumb { display: flex; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.crumb a:hover { color: var(--primary); }
.crumb i { font-style: normal; opacity: .5; }
.detail-hero { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: center; background: linear-gradient(120deg, #dbeafe, #eef2ff); border: 1px solid #bfdbfe; border-radius: 22px; padding: 44px 48px; margin-bottom: 36px; }
.detail-hero h1 { font-size: clamp(28px, 3vw, 40px); margin: 14px 0; }
.detail-hero .lede { color: #475569; font-size: 16px; margin: 0 0 20px; }
.detail-art img { width: 100%; border-radius: 14px; box-shadow: 0 12px 30px rgba(15,23,42,.12); max-height: 300px; object-fit: cover; }
/* 设备详情页图集 */
.detail-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-gallery img { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s, box-shadow .25s; }
.detail-gallery img:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); }
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.detail-main section { margin-bottom: 38px; }
.detail-main h2 { font-size: 20px; margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--xxw); }
.detail-main p { color: #475569; font-size: 15px; line-height: 1.9; margin: 0; }
.ability { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ability li { position: relative; padding: 16px 18px 16px 48px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.ability li::before { content: ""; position: absolute; left: 19px; top: 21px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-soft); border: 3px solid var(--xxw); }
.scenario { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.scenario p { margin: 0; }
.detail-side { position: sticky; top: 92px; }

/* ---------- 页脚 ---------- */
.footer { background: #0b1220; color: #94a3b8; padding: 30px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 32px; height: 32px; }
.foot-brand b { display: block; color: #fff; font-size: 14px; }
.foot-brand small { font-size: 10px; }
.foot-meta { display: flex; gap: 20px; font-size: 11px; flex-wrap: wrap; }
.foot-meta a:hover { color: #fff; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art img { height: 320px; }
  .svc-grid, .bridge-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { gap: 36px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav-inner { height: 62px; }
  .brand img { width: 32px; height: 32px; }
  .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .nav { position: absolute; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid #f1f5f9; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .section { padding: 64px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .svc-grid, .bridge-grid, .case-grid, .case-grid-full, .qual-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner, .detail-hero, .detail-grid, .contact-layout { grid-template-columns: 1fr; }
  .detail-hero { padding: 28px 22px; }
  .detail-side { position: static; }
  .page-hero { padding: 32px 24px; }
  .prose { padding: 24px 22px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 31px; }
  .prod-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
