/* =====================================================================
   Induxense 视觉升级 · refine.css (P0 + P1)
   统一设计令牌 / 卡片规范 / 首屏 / 导航 / 页脚 / 动效
   说明：所有覆盖规则加 body 前缀以稳定压过各模板内联样式
   ===================================================================== */

:root {
  /* 基础令牌兜底（各页面若已定义则值一致） */
  --ink: #1a1a1a;
  --muted: #555f6d;
  --accent: #0573C3;
  --surface: #ffffff;
  --rule: #e0e4ea;
  --orange: #FFA505;
  --bg: #ffffff;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --sh-2: 0 4px 14px rgba(16, 24, 40, .06), 0 14px 34px rgba(16, 24, 40, .08);
  --sh-3: 0 20px 50px rgba(16, 24, 40, .12);

  --ink-2: #334155;
  --ink-3: #5a6270;
  --accent-2: #0466b0;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body { font-feature-settings: "kern" 1; }

body h1, body h2, body h3, body h4 { letter-spacing: -.02em; }
body h2 { letter-spacing: -.025em; }

.stat-num, .spec-value, .spec-val, .hero-trust b { font-variant-numeric: tabular-nums; }

/* ---------- 区块节奏 ---------- */
body .section { padding: 96px 0; }
body .section-header { margin-bottom: 56px; }
body .section-header .eyebrow { letter-spacing: .16em; }
body .section-header h2 { margin-bottom: 14px; }
body .section-header p { color: var(--ink-3); line-height: 1.75; }

@media (max-width: 768px) {
  body .section { padding: 60px 0; }
  body .section-header { margin-bottom: 36px; }
}

/* ---------- 卡片统一 ---------- */
body .product-card,
body .solution-card,
body .resource-card,
body .wiki-card,
body .news-card,
body .new-card,
body .spec-card {
  background: var(--surface);
  border: 1px solid #e8edf5;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

body .product-card:hover,
body .solution-card:hover,
body .resource-card:hover,
body .wiki-card:hover,
body .news-card:hover,
body .new-card:hover,
body .spec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
  border-color: #d6e2f2;
}

body .new-card img,
body .solution-card-image img,
body .resource-card-image img,
body .news-card-image,
body .wiki-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

body .new-card:hover img,
body .solution-card:hover .solution-card-image img,
body .resource-card:hover .resource-card-image img {
  transform: scale(1.035);
}

body .new-card-content,
body .solution-card-body,
body .resource-card-body,
body .news-card-content {
  padding: 22px 22px 24px;
}

body .new-card h3,
body .solution-card-body h3,
body .resource-card-body h3,
body .news-card-content h3 {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--ink);
}

body .new-card p,
body .solution-card-body p,
body .resource-card-body p,
body .news-card-content p {
  color: var(--ink-3);
  line-height: 1.7;
  font-size: 14.5px;
}

/* ---------- 动效：错落进入 ---------- */
body .fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
body .fade-in.visible { opacity: 1; transform: none; }

body .new-grid > .fade-in:nth-child(2),
body .product-grid > .fade-in:nth-child(2),
body .solution-grid > .fade-in:nth-child(2),
body .resource-grid > .fade-in:nth-child(2),
body .news-grid > .fade-in:nth-child(2),
body .wiki-grid > .fade-in:nth-child(2) { transition-delay: .08s; }

body .new-grid > .fade-in:nth-child(3),
body .product-grid > .fade-in:nth-child(3),
body .solution-grid > .fade-in:nth-child(3),
body .resource-grid > .fade-in:nth-child(3),
body .news-grid > .fade-in:nth-child(3),
body .wiki-grid > .fade-in:nth-child(3) { transition-delay: .16s; }

body .new-grid > .fade-in:nth-child(4),
body .product-grid > .fade-in:nth-child(4),
body .resource-grid > .fade-in:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  body .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 导航：白色玻璃拟态 ---------- */
body .modern-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid #e8edf5;
}
body .modern-header.scrolled {
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .06);
}

/* ---------- 首屏 Hero v2（浅色 · 左文右图） ---------- */
.hero-v2 {
  position: relative;
  overflow: hidden;
  padding: 84px 0 88px;
  background:
    radial-gradient(900px 420px at 78% 38%, rgba(5, 115, 195, .10), transparent 62%),
    linear-gradient(180deg, #eef6ff 0%, #f8fbff 46%, #ffffff 100%);
}
.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 115, 195, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 115, 195, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-v2-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 56px;
}
.hero-v2-copy { max-width: 620px; }
.hero-v2 .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  background: rgba(5, 115, 195, .08);
  border: 1px solid rgba(5, 115, 195, .16);
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-v2 h1 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.14;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -.03em;
}
.hero-v2 h1 .hl { color: var(--accent); }
.hero-v2 .hero-subtitle {
  font-size: clamp(1rem, 1.15vw, 1.10rem);
  color: var(--ink-3);
  line-height: 1.8;
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-v2 .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

/* 右侧点阵纹理，避免图形区空旷 */
.hero-v2-visual::after {
  content: '';
  position: absolute;
  inset: -6% -4%;
  z-index: 0;
  background-image: radial-gradient(rgba(5, 115, 195, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 32%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 32%, transparent 72%);
  pointer-events: none;
}
/* 按钮一律无下划线（覆盖全局 a 链接样式） */
a.btn, a.btn:hover, a.btn:focus { text-decoration: none; }

.hero-v2 .btn { padding: 13px 26px; border-radius: 10px; font-weight: 600; }
.hero-v2 .btn-primary {
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(5, 115, 195, .24);
}
.hero-v2 .btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.hero-v2 .btn-outline {
  border: 1px solid #cbd9ea;
  color: var(--ink);
  background: #fff;
}
.hero-v2 .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }
.hero-trust b {
  display: block;
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -.01em;
}

.hero-v2-visual { position: relative; display: flex; justify-content: center; }
.hero-v2-glow {
  position: absolute;
  inset: 8% 2%;
  background: radial-gradient(circle at 55% 45%, rgba(5, 115, 195, .22), transparent 66%);
  filter: blur(14px);
  z-index: 0;
}
.hero-v2-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 44%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, 0) 76%);
  mask-image: radial-gradient(ellipse at center, #000 44%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, 0) 76%);
}

.hero-v2 .hero-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #6db3e8 45%, var(--orange) 100%);
  z-index: 3;
}

@media (max-width: 992px) {
  .hero-v2-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-v2 { padding: 64px 0 64px; }
  .hero-v2-copy { max-width: 100%; }
  .hero-v2-visual { order: 0; }
  .hero-v2-visual img { max-width: 460px; }
}
@media (max-width: 560px) {
  .hero-v2 { padding: 52px 0 52px; }
  .hero-v2 h1 { font-size: 1.9rem; }
  .hero-trust { gap: 20px; }
  .hero-v2 .hero-cta { margin-bottom: 28px; }
  .hero-v2-visual img { max-width: 100%; border-radius: var(--r-lg); }
}

/* ---------- 页脚：深色收束 ---------- */
/* CTA 由品牌蓝渐变收进页脚深色，消除蓝黑硬切 */
body .cta {
  background: linear-gradient(180deg, #125a9c 0%, #144a7c 48%, #163654 86%, #163654 100%);
}
body .cta::before { opacity: .45; }
body .cta .eyebrow {
  color: #d6e9ff;
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .10);
}
body .cta h2 { color: #ffffff; }
body .cta p { color: rgba(226, 240, 255, .88); }
body .cta .btn-primary { color: #144a7c; }

/* 页脚：深海军蓝 + 品牌金发丝线（两端渐隐，呼应 logo 橙金弧线） */
body .simple-footer,
body .footer {
  background: #163654;
  color: #cfdcea;
  border-top: 0 !important;
  position: relative;
}
body .simple-footer::before,
body .footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(233, 162, 59, 0) 0%,
    rgba(233, 162, 59, .55) 18%,
    rgba(245, 184, 92, .95) 50%,
    rgba(233, 162, 59, .55) 82%,
    rgba(233, 162, 59, 0) 100%);
}
body .simple-footer .footer-top { border-bottom-color: rgba(255, 255, 255, .09); }
body .simple-footer .footer-brand-logo .brand-text,
body .simple-footer .footer-phone span,
body .simple-footer .footer-nav-col h4 { color: #ffffff; }
body .simple-footer .footer-nav-links a { color: #aab8cb; }
body .simple-footer .footer-nav-links a:hover { color: #7dd3fc; }
body .simple-footer .footer-nav-links .footer-group-title { color: #e2e8f0; }
body .simple-footer .footer-phone svg { color: #7dd3fc; }
body .simple-footer .footer-bottom { border-top-color: rgba(255, 255, 255, .09); }
body .simple-footer .footer-copyright { color: #9aa9bd; }
body .simple-footer .footer-copyright a { color: #aab8cb; }
body .simple-footer .footer-copyright a:hover { color: #7dd3fc; }
