/* =====================================================================
   Jieneng Design System — v1.0
   多站共用设计系统（osma CXE 范式：统一视觉语言，各站换主色与品牌层）
   ---------------------------------------------------------------------
   用法：每个站引入本文件，并在 <style> 里覆盖主色变量即可换肤。
   颜色、字体、间距、圆角全部走 CSS 变量，站点之间不共享硬编码样式。

   设计依据：2025 制造业获奖站点共性
   - 大图 Hero + 一句话定位 + 双 CTA，首屏不放参数表
   - 干净排版、现代网格、有意留白
   - 组件特写（真实设备局部）优先于素材图
   - 动效只用于解释工艺，不做装饰性动画
   - 信任标识（认证/专利/产能）在首屏下方即出现
   ===================================================================== */

:root {
  /* ---- 主色：各站覆盖这几个变量即可换肤 ---- */
  --accent:        #0B6E4F;
  --accent-strong: #064A35;
  --accent-soft:   #E8F3EE;
  --accent-line:   rgba(11, 110, 79, .16);
  --gold:          #C8811A;

  /* ---- 中性色 ---- */
  --ink:        #0F1115;
  --text-1:     #12141A;
  --text-2:     #4A505C;
  --text-3:     #767C8A;
  --surface:    #FFFFFF;
  --surface-2:  #F7F8FA;
  --surface-3:  #EEF1F4;
  --line:       #E4E7EC;
  --line-soft:  #F0F2F5;
  --dark:       #0B0D11;

  /* ---- 字体 ---- */
  --font-sans: 'Inter', 'Noto Sans SC', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Inter', 'SF Mono', Consolas, 'Roboto Mono', monospace;

  /* ---- 间距 / 圆角 / 阴影 ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(15,17,21,.05);
  --shadow-2: 0 4px 16px rgba(15,17,21,.07);
  --shadow-3: 0 12px 40px rgba(15,17,21,.10);

  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ========================= 基础 ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-1);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; font-weight: 800; color: var(--ink); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.jn-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.jn-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ========================= 页头 ========================= */
.jn-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.jn-header__in {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 68px; flex-wrap: wrap;
}
.jn-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 19px; color: var(--ink);
  text-decoration: none; letter-spacing: -.01em;
}
.jn-logo:hover { text-decoration: none; }
.jn-logo__mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; flex: none;
}
.jn-logo__sub {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text-3); letter-spacing: .04em; line-height: 1.2;
}
.jn-nav { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.jn-nav a {
  color: var(--text-2); font-weight: 500; font-size: 15px;
  text-decoration: none; padding-block: 6px;
  border-bottom: 2px solid transparent; transition: color .18s var(--ease), border-color .18s var(--ease);
}
.jn-nav a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }
.jn-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.jn-header__spacer { flex: 1 1 auto; }

/* 语言切换 */
.jn-lang { display: flex; gap: 2px; align-items: center; }
.jn-lang a {
  font-size: 12px; font-weight: 700; color: var(--text-3);
  padding: 5px 8px; border-radius: var(--r-sm); text-decoration: none;
  font-family: var(--font-mono); letter-spacing: .02em;
}
.jn-lang a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.jn-lang a[aria-current="true"] { background: var(--accent); color: #fff; }

/* ========================= 面包屑 ========================= */
.jn-crumb { padding-block: var(--sp-4); font-size: 13px; color: var(--text-3); }
.jn-crumb a { color: var(--text-3); }
.jn-crumb a:hover { color: var(--accent); }
.jn-crumb span { margin-inline: 6px; opacity: .5; }

/* ========================= Hero ========================= */
/* 深色工程感 Hero：大图 + 遮罩 + 网格纹理 */
.jn-hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.jn-hero::before {
  /* 工程网格纹理 */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.jn-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: .34;
}
.jn-hero__grad {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(11,110,79,.55) 0%, transparent 55%),
    linear-gradient(135deg, rgba(11,17,21,.94) 0%, rgba(11,17,21,.78) 55%, rgba(11,17,21,.62) 100%);
}
.jn-hero__in {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: var(--sp-8); align-items: center;
  padding-block: var(--sp-9) var(--sp-8);
}
.jn-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 54px);
  letter-spacing: -.02em;
  margin-bottom: var(--sp-4);
}
.jn-hero__lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: rgba(255,255,255,.82);
  max-width: 62ch; margin-bottom: var(--sp-6);
}
.jn-hero__model {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .08em; color: #fff;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px; padding: 5px 14px; margin-bottom: var(--sp-4);
}
.jn-hero__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3); }
.jn-hero__media img {
  width: 100%; height: auto;      /* 模板带 width/height 属性，必须 height:auto 否则 aspect-ratio 失效、图被拉高再裁 */
  aspect-ratio: 4/3; object-fit: cover;
}

/* 亮色 Hero（用于需要产品全貌的页面） */
.jn-hero--light { background: var(--surface-2); color: var(--text-1); }
.jn-hero--light::before {
  background-image:
    linear-gradient(rgba(15,17,21,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,17,21,.035) 1px, transparent 1px);
}
.jn-hero--light .jn-hero__grad {
  background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.9) 100%);
}
.jn-hero--light h1 { color: var(--ink); }
.jn-hero--light .jn-hero__lead { color: var(--text-2); }
.jn-hero--light .jn-hero__model {
  color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line);
}

/* ========================= 按钮 ========================= */
.jn-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
  cursor: pointer;
}
.jn-btn:hover { text-decoration: none; transform: translateY(-1px); }
.jn-btn--primary { background: var(--accent); color: #fff; }
.jn-btn--primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-2); }
.jn-btn--ghost { border-color: currentColor; color: var(--accent); background: transparent; }
.jn-btn--ghost:hover { background: var(--accent-soft); }
.jn-hero .jn-btn--ghost { color: #fff; }
.jn-hero .jn-btn--ghost:hover { background: rgba(255,255,255,.12); }
.jn-btn--light { background: #fff; color: var(--accent-strong); }
.jn-btn--light:hover { box-shadow: var(--shadow-2); }
.jn-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ========================= 区块 ========================= */
.jn-section { padding-block: var(--sp-8); border-top: 1px solid var(--line-soft); }
.jn-section--alt { background: var(--surface-2); }
.jn-section--dark { background: var(--dark); color: #fff; }
.jn-section__head { margin-bottom: var(--sp-6); max-width: 70ch; }
.jn-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--sp-2);
}
.jn-h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.015em; }
.jn-sub { color: var(--text-2); margin-top: var(--sp-3); font-size: 16px; }
.jn-section--dark .jn-h2 { color: #fff; }
.jn-section--dark .jn-sub { color: rgba(255,255,255,.72); }

/* ========================= 网格 ========================= */
.jn-grid { display: grid; gap: var(--sp-5); }
.jn-grid--2 { grid-template-columns: repeat(2, 1fr); }
.jn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.jn-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ========================= 卡片 ========================= */
.jn-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.jn-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.jn-card__media { margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-4); }
.jn-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-md) var(--r-md) 0 0; }
.jn-card__tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .07em; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px;
  padding: 3px 10px; margin-bottom: var(--sp-2);
}
.jn-card h3 { font-size: 18px; margin-bottom: var(--sp-2); }
.jn-card p { color: var(--text-2); font-size: 15px; }
.jn-card__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--sp-3); font-weight: 700; font-size: 14px; color: var(--accent);
}
.jn-card__more::after { content: '→'; transition: transform .18s var(--ease); }
.jn-card:hover .jn-card__more::after { transform: translateX(4px); }

/* 能力卡（无图） */
.jn-cap { padding: var(--sp-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.jn-cap__n {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent); margin-bottom: var(--sp-2);
}
.jn-cap h3 { font-size: 17px; margin-bottom: var(--sp-2); }
.jn-cap p { color: var(--text-2); font-size: 14.5px; }

/* ========================= 工艺流程 ========================= */
/* 横向步骤条：顶部色条 + 序号 + 标题 + 说明 */
.jn-flow { display: grid; gap: var(--sp-4); grid-template-columns: repeat(6, 1fr); }
.jn-flow--4 { grid-template-columns: repeat(4, 1fr); }
.jn-flow--3 { grid-template-columns: repeat(3, 1fr); }
.jn-flow__step {
  position: relative; padding-top: var(--sp-4);
  border-top: 3px solid var(--accent-line);
}
.jn-flow__step::before {
  content: ''; position: absolute; inset-inline-start: 0; inset-block-start: -3px;
  width: 34px; height: 3px; background: var(--accent);
}
.jn-flow__n {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent); margin-bottom: 6px;
}
.jn-flow__step h4 { font-size: 16px; margin-bottom: 6px; }
.jn-flow__step p { font-size: 14px; color: var(--text-2); }
.jn-section--dark .jn-flow__step { border-top-color: rgba(255,255,255,.16); }
.jn-section--dark .jn-flow__step::before { background: var(--gold); }
.jn-section--dark .jn-flow__step h4 { color: #fff; }
.jn-section--dark .jn-flow__step p { color: rgba(255,255,255,.68); }
.jn-section--dark .jn-flow__n { color: var(--gold); }

/* ========================= 参数表 ========================= */
.jn-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.jn-spec caption { text-align: start; font-size: 13px; color: var(--text-3); padding-bottom: var(--sp-3); }
.jn-spec th, .jn-spec td { border: 1px solid var(--line); padding: 12px 16px; text-align: start; vertical-align: top; }
.jn-spec th { background: var(--surface-2); font-weight: 700; width: 40%; color: var(--text-1); }
.jn-spec tbody tr:nth-child(even) td { background: var(--surface); }
.jn-spec tbody tr:hover td { background: var(--accent-soft); }
.jn-spec__box { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.jn-spec__note {
  margin-top: var(--sp-3); font-size: 13px; color: var(--text-3);
  border-inline-start: 3px solid var(--accent); padding-inline-start: var(--sp-3);
}

/* ========================= 信任标识 ========================= */
.jn-trust { display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, 1fr); }
.jn-trust__item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-4); background: var(--surface);
}
.jn-trust__item b { display: block; font-size: 15px; margin-bottom: 3px; }
.jn-trust__item span { font-size: 13px; color: var(--text-3); }
.jn-section--dark .jn-trust__item { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.jn-section--dark .jn-trust__item b { color: #fff; }
.jn-section--dark .jn-trust__item span { color: rgba(255,255,255,.6); }

/* ========================= 图集 / 视频 ========================= */
.jn-gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, 1fr); }
.jn-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); background: var(--surface-3); }
.jn-video { border-radius: var(--r-md); overflow: hidden; background: var(--dark); }
.jn-video video { width: 100%; display: block; aspect-ratio: 16/9;
  object-fit: contain; background: #000; }  /* 竖版素材按比例内嵌，不横向拉伸 */
.jn-video__cap { margin-top: var(--sp-2); font-size: 13px; color: var(--text-3); }

/* ========================= FAQ ========================= */
.jn-faq { max-width: 860px; }
.jn-faq details { border-bottom: 1px solid var(--line); }
.jn-faq summary {
  cursor: pointer; font-weight: 700; font-size: 17px;
  padding-block: var(--sp-4); list-style: none;
  display: flex; align-items: flex-start; gap: var(--sp-3);
}
.jn-faq summary::-webkit-details-marker { display: none; }
.jn-faq summary::after {
  content: '+'; margin-inline-start: auto; color: var(--accent);
  font-size: 22px; font-weight: 400; line-height: 1; flex: none;
}
.jn-faq details[open] summary::after { content: '−'; }
.jn-faq details p { padding-bottom: var(--sp-4); color: var(--text-2); padding-inline-end: var(--sp-6); }

/* ========================= CTA 区 ========================= */
.jn-cta-band { background: var(--surface-2); border-top: 1px solid var(--line); }
.jn-cta-band--dark { background: var(--dark); }
.jn-cta-band--dark .jn-h2 { color: #fff; }
.jn-cta-band--dark .jn-sub { color: rgba(255,255,255,.72); }
.jn-contact { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-5); }
.jn-contact a {
  font-weight: 700; padding: 12px 22px; border-radius: var(--r-sm);
  background: var(--accent); color: #fff;
}
.jn-contact a:hover { background: var(--accent-strong); text-decoration: none; }
.jn-contact a.is-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.jn-cta-band--dark .jn-contact a.is-ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* ========================= 页脚 ========================= */
.jn-footer { border-top: 1px solid var(--line); background: var(--surface); }
.jn-footer__in {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-6);
  padding-block: var(--sp-7) var(--sp-5);
}
.jn-footer h4 { font-size: 14px; margin-bottom: var(--sp-3); }
.jn-footer li { margin-bottom: 8px; font-size: 14px; }
.jn-footer a { color: var(--text-2); }
.jn-footer a:hover { color: var(--accent); }
.jn-footer__legal {
  border-top: 1px solid var(--line-soft);
  padding-block: var(--sp-4); font-size: 13px; color: var(--text-3);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}
/* 站群互链：只在页脚，自然描述性锚文本 */
.jn-network { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.jn-network a { font-size: 13px; color: var(--text-3); }
.jn-network a:hover { color: var(--accent); }

/* ========================= 两级信息架构 ========================= */
/* 一级：方案/行业入口卡（替代平铺全部产品） */
.jn-hub { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, 1fr); }
.jn-hub__item {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.jn-hub__item:hover { text-decoration: none; border-color: var(--accent-line); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.jn-hub__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-3); }
.jn-hub__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.jn-hub__item:hover .jn-hub__media img { transform: scale(1.035); }
.jn-hub__body { padding: var(--sp-5); }
.jn-hub__body h3 { font-size: 20px; margin-bottom: var(--sp-2); }
.jn-hub__body p { color: var(--text-2); font-size: 15px; }
.jn-hub__meta {
  margin-top: var(--sp-3); display: flex; gap: var(--sp-3);
  font-size: 13px; color: var(--text-3); font-family: var(--font-mono);
}

/* ========================= 响应式 ========================= */
@media (max-width: 1080px) {
  .jn-hero__in { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-7); }
  .jn-flow { grid-template-columns: repeat(3, 1fr); }
  .jn-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .jn-grid--2, .jn-grid--3, .jn-grid--4, .jn-hub { grid-template-columns: 1fr; }
  .jn-flow, .jn-flow--4, .jn-flow--3 { grid-template-columns: repeat(2, 1fr); }
  .jn-trust { grid-template-columns: 1fr; }
  .jn-gallery { grid-template-columns: 1fr 1fr; }
  .jn-footer__in { grid-template-columns: 1fr; gap: var(--sp-5); }
  .jn-header__in { min-height: auto; padding-block: var(--sp-3); }
  .jn-nav { order: 3; width: 100%; gap: var(--sp-4); padding-bottom: var(--sp-2); }
  .jn-header__spacer { display: none; }
  .jn-section { padding-block: var(--sp-7); }
}
@media (max-width: 520px) {
  .jn-flow, .jn-flow--4, .jn-flow--3 { grid-template-columns: 1fr; }
  .jn-gallery { grid-template-columns: 1fr; }
  .jn-spec th, .jn-spec td { padding: 10px 12px; font-size: 14px; }
  .jn-spec th { width: 46%; }
}

/* ========================= RTL ========================= */
/* 使用逻辑属性，ar 站点自动镜像，无需额外规则 */
[dir="rtl"] .jn-flow__step::before { inset-inline-start: 0; }
[dir="rtl"] .jn-card__more::after { content: '←'; }
[dir="rtl"] .jn-card:hover .jn-card__more::after { transform: translateX(-4px); }
[dir="rtl"] .jn-faq summary::after { margin-inline-start: auto; }

/* ========================= 动效 ========================= */
/* 只做「解释型」动效：进入视口时流程步骤依次亮起
   关键：隐藏态只在 .js 下生效。JS 未加载、被禁用或执行失败时，
   步骤默认可见，绝不会因为动画而丢失内容。 */
@media (prefers-reduced-motion: no-preference) {
  .js .jn-flow__step { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .jn-flow__step.is-in { opacity: 1; transform: none; }
  .js .jn-flow__step:nth-child(1) { transition-delay: .00s; }
  .js .jn-flow__step:nth-child(2) { transition-delay: .08s; }
  .js .jn-flow__step:nth-child(3) { transition-delay: .16s; }
  .js .jn-flow__step:nth-child(4) { transition-delay: .24s; }
  .js .jn-flow__step:nth-child(5) { transition-delay: .32s; }
  .js .jn-flow__step:nth-child(6) { transition-delay: .40s; }
}

/* ========================= 打印 ========================= */
@media print {
  .jn-header, .jn-footer, .jn-lang, .jn-cta { display: none; }
  .jn-section { page-break-inside: avoid; }
}

/* Responsive images: <picture> carries the WebP source only */
picture { display: contents; }
