/* =====================================================================
   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 .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; will-change: auto; }

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; }

/* 首页解决方案卡片：hover 上浮 + 封面轻微放大 */
body .solution-card {
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
              box-shadow .35s cubic-bezier(.4, 0, .2, 1),
              border-color .35s cubic-bezier(.4, 0, .2, 1);
}
body .solution-card:hover { transform: translateY(-6px); border-color: #cfe0f2; }
body .solution-card:hover .solution-card-cover { transform: scale(1.045); }

/* 应用板块卡片：图片不单独缩放，改为整块图片容器缩放，避免裁剪接缝重采样出黑线 */
body .category-card:hover .category-card-image img,
body .app-card:hover .app-card-image img { transform: none; }
body .category-card:hover .category-card-image,
body .app-card:hover .app-card-image { transform: scale(1.045); }

/* 图片底部渐变改由 mask 绘制在图片自身上，去掉叠加图层后不再出现接缝灰线 */
body .category-card .category-card-image,
body .app-card .app-card-image {
  background: #fff;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
body .category-card .category-card-image::after,
body .app-card .app-card-image::after { content: none; }
body .category-card .category-card-image img,
body .app-card .app-card-image img {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 58%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 58%, rgba(0, 0, 0, 0) 100%);
}
body .solution-card .solution-card-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 86%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 86%, rgba(0, 0, 0, 0) 100%);
}

/* =====================================================================
   A/B/C 内页精修（2026-11）
   A 插件详情 Banner 与栏目 hero 对齐
   B 正文参数表现代化（仅横线 + 斑马纹，无叠加层）
   C 正文阅读排版
   ===================================================================== */

/* B 正文参数表：去掉满格竖线，仅保留轻横线 */
body .dv-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14.5px;
  line-height: 1.6;
}
body .dv-body table th,
body .dv-body table td {
  border: 0;
  border-bottom: 1px solid #e8eef6;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
body .dv-body table th {
  background: #f4f8fd;
  color: #1b3350;
  font-weight: 600;
  border-bottom: 1px solid #dbe6f3;
}
body .dv-body table tbody tr:nth-child(odd) { background: #fbfcfe; }
body .dv-body table tbody tr:hover { background: #f2f7fd; }

/* C 正文阅读排版 */
body .dv-body {
  font-size: 17px;
  line-height: 1.9;
  color: #2c3e50;
  word-break: break-word;
}
body .dv-body p { margin: 0 0 1.05em; }
body .dv-body h2 {
  position: relative;
  font-size: 22px;
  line-height: 1.5;
  margin: 30px 0 14px;
  padding-left: 14px;
}
body .dv-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2f86d6, #0573C3);
}
body .dv-body h3 { font-size: 19px; line-height: 1.5; margin: 24px 0 10px; }
body .dv-body ul,
body .dv-body ol { padding-left: 1.4em; margin: 0 0 1.05em; }
body .dv-body li { margin: .28em 0; }
body .dv-body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: #f5f9fe;
  border-left: 3px solid #bcd8f2;
  border-radius: 8px;
  color: #33506e;
}
body .dv-body a {
  color: #0573C3;
  text-decoration: underline;
  text-decoration-color: rgba(5, 115, 195, .35);
  text-underline-offset: 3px;
}
body .dv-body img { max-width: 100%; height: auto; margin: 18px 0; border-radius: 8px; }

/* 移动端表格横向滚动，避免挤压 */
@media (max-width: 768px) {
  body .dv-body { font-size: 16px; line-height: 1.85; }
  body .dv-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  body .dv-body h2 { font-size: 20px; }
}

/* =====================================================================
   全站版块头部统一（2026-11）
   浅色底 + 左对齐 + 蓝→金发丝线 + 右侧线圈同心圆 + 图片右置蒙版融合
   覆盖各模板内联的深色 hero 样式（靠 body 前缀提升优先级）
   ===================================================================== */
:root {
  --hero-bg: #f8fafd;
  --hero-ink: #0b2a4a;
  --hero-sub: #5c7089;
  --hero-crumb: #93a6bb;
  --hero-hair: linear-gradient(90deg, rgba(5,115,195,.45) 0%, rgba(233,162,59,.55) 42%, rgba(233,162,59,0) 100%);
  --hero-rings: repeating-radial-gradient(circle at 94% 50%, rgba(5,115,195,.075) 0 1px, transparent 1px 30px);
}

/* --- 通用：栏目列表页 / 产品页 / 文档中心 --- */
body .idx-hero,
body .doc-dl-hero {
  height: 200px;
  min-height: 0;
  padding: 0;
  background: var(--hero-bg);
  align-items: center;
}
body .idx-hero::before,
body .doc-dl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-rings);
  opacity: .9;
  pointer-events: none;
  z-index: 1;
}
body .idx-hero::after,
body .doc-dl-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: auto;
  height: 1px;
  background: var(--hero-hair);
  background-image: none;
  z-index: 5;
  pointer-events: none;
}
body .idx-hero-bg,
body .doc-dl-hero-bg {
  left: auto;
  right: 0;
  width: 48%;
  opacity: .92;
  background-position: center right;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
body .idx-hero-overlay,
body .doc-dl-hero-overlay {
  background: linear-gradient(90deg, var(--hero-bg) 0%, var(--hero-bg) 38%, rgba(248,250,253,.86) 56%, rgba(248,250,253,0) 90%);
}
body .idx-hero-title,
body .doc-dl-hero h1 { color: var(--hero-ink); font-size: 34px; }
body .idx-hero-desc,
body .doc-dl-hero p { color: var(--hero-sub); }
body .idx-hero-breadcrumb,
body .idx-hero-breadcrumb a,
body .idx-hero-breadcrumb .current,
body .doc-dl-breadcrumb,
body .doc-dl-breadcrumb a,
body .doc-dl-breadcrumb .cur { color: var(--hero-crumb); }
body .idx-hero-breadcrumb a:hover,
body .doc-dl-breadcrumb a:hover { color: var(--hero-ink); }

/* --- 栏目横幅（banner.htm，含文章详情） --- */
body .channel-banner {
  height: 200px;
  padding: 0;
  background: var(--hero-bg);
  justify-content: flex-start;
  align-items: center;
}
body .channel-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-rings);
  opacity: .9;
  z-index: 1;
  pointer-events: none;
}
body .channel-banner::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: auto;
  height: 1px;
  background: var(--hero-hair);
  z-index: 5;
}
body .channel-banner-bg {
  left: auto;
  right: 0;
  width: 46%;
  opacity: .92;
  background-position: center right;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
body .channel-banner-decoration { display: none; }
body .banner-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}
body .banner-title { color: var(--hero-ink); font-size: 34px; font-weight: 600; }
body .banner-subtitle { color: var(--hero-sub); margin-left: 0; margin-right: 0; max-width: 620px; }

/* --- 插件中心 / 插件详情 / 插件令牌申请 --- */
body .pc-hero,
body .pd-hero,
body .pa-hero {
  height: 200px;
  padding: 0;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
}
body .pc-hero::before,
body .pd-hero::before,
body .pa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-rings);
  opacity: .9;
  pointer-events: none;
  z-index: 1;
}
body .pc-hero::after,
body .pd-hero::after,
body .pa-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: auto;
  height: 1px;
  background: var(--hero-hair);
  background-image: var(--hero-hair);
  z-index: 5;
  pointer-events: none;
}
body .pc-hero-inner,
body .pd-hero-inner,
body .pa-hero-inner { z-index: 2; width: 100%; }
body .pc-hero h1,
body .pd-hero h1,
body .pa-hero h1 { color: var(--hero-ink); }
body .pc-hero p,
body .pa-hero p { color: var(--hero-sub); }
body .pc-breadcrumb,
body .pc-breadcrumb a,
body .pd-breadcrumb,
body .pd-breadcrumb a,
body .pa-breadcrumb,
body .pa-breadcrumb a { color: var(--hero-crumb); }
body .pc-breadcrumb a:hover,
body .pd-breadcrumb a:hover,
body .pa-breadcrumb a:hover { color: var(--hero-ink); }
body .pd-chip {
  background: rgba(5,115,195,.07);
  border: 1px solid rgba(5,115,195,.16);
  color: #2b6ca3;
}

@media (max-width: 768px) {
  body .idx-hero,
  body .doc-dl-hero,
  body .channel-banner,
  body .pc-hero,
  body .pd-hero,
  body .pa-hero { height: auto; padding-top: 38px; padding-bottom: 34px; }
  body .idx-hero-bg,
  body .doc-dl-hero-bg,
  body .channel-banner-bg { width: 100%; opacity: .2; }
  body .idx-hero-title,
  body .doc-dl-hero h1,
  body .channel-banner .banner-title,
  body .pc-hero h1,
  body .pd-hero h1 { font-size: 26px; }
  body .idx-hero-overlay,
  body .doc-dl-hero-overlay {
    background: linear-gradient(180deg, rgba(248,250,253,.82) 0%, rgba(248,250,253,.96) 60%, var(--hero-bg) 100%);
  }
}

/* 产品页 Banner：渐变已并入图片本身（与关于/支持页同一条色带），整幅铺满，不再用蒙版拼接 */
@media (min-width: 769px) {
  body .idx-hero-bg[style*="banner_encoder_chip"] {
    left: 0;
    width: 100%;
    background-image: url('/uploads/allimg/20260726/banner_encoder_chip.jpg?v=2') !important;
    background-size: 100% 100%;
    background-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
