/*
Theme Name: 九峰机械定制主题
Theme URI: https://www.sichuanjiufeng.com
Author: Jiufeng
Description: 四川九峰机械制造有限公司企业官网定制主题——高端编辑风 + 氛围交互层；鑫九峰品牌 logo 全站替换；蓝图网格、幽灵水印、滚动动画、悬浮拨号。
Version: 3.4.3
License: GPL-2.0-or-later
Text Domain: jiufeng
*/

/* ============================================================
   九峰机械官网 · 设计令牌（Design Tokens v3）
   方向：高端编辑风 Refined Editorial
   瓷白底 + 墨蓝文字 + 深钴蓝单强调 · 衬线标题 · 发丝线体系 · 无渐变
   ============================================================ */
:root {
  /* ---- 颜色 ---- */
  --color-bg: #f7f8fa;              /* 瓷白：主背景 */
  --color-surface: #ffffff;         /* 纯白面板 */
  --color-surface-2: #eef1f5;       /* 灰蓝面板（图片底/悬停） */
  --color-text: #111c2e;            /* 墨蓝近黑：正文与标题 */
  --color-muted: #576274;           /* 青灰：次要文字（对比度 ≥ 4.5:1） */
  --color-accent: #1d4e89;          /* 深钴蓝：唯一强调色 */
  --color-accent-deep: #153a68;     /* 强调色悬停深化 */
  --color-accent-ink: #ffffff;
  --color-line: rgba(17, 28, 46, 0.14);         /* 发丝线 */
  --color-line-soft: rgba(17, 28, 46, 0.07);    /* 更弱分隔 */
  --color-line-strong: rgba(17, 28, 46, 0.38);  /* 控件描边 */
  --footer-bg: #0f1a2c;             /* 页脚墨蓝 */

  /* ---- 字体 ---- */
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;  /* 展示字：黑体重字重 */
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", Consolas, monospace;                 /* 小型标签 kicker */

  /* ---- 字阶 ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: clamp(1.7rem, 3vw, 2.3rem);
  --text-4xl: clamp(2rem, 3.6vw, 2.9rem);
  --text-hero: clamp(2.7rem, 6vw, 5rem);
  --text-page: clamp(2.1rem, 4.6vw, 3.5rem);

  /* ---- 间距（留白节奏：8 的倍数，宽松档） ---- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 16px;
  --space-4: 24px; --space-5: 40px; --space-6: 72px;
  --space-7: 112px;

  /* ---- 圆角 / 阴影（克制：近直角 + 极轻阴影） ---- */
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 6px;
  --shadow-1: 0 1px 2px rgba(16, 26, 44, 0.05);
  --shadow-2: 0 20px 55px rgba(16, 26, 44, 0.12);
  --shadow-3: 0 34px 90px rgba(16, 26, 44, 0.18);

  /* ---- 动效 ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 360ms;
  --dur-slow: 700ms;

  /* ---- 布局 ---- */
  --wrap: 1160px;
}

/* ============================================================
   九峰机械官网 · 基础层 v3（重置 / 排版 / 留白节奏 / 降级动效）
   高端编辑风：衬线标题 + 宽松行高 + 发丝线分隔
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 标题：衬线，收敛字距，留白呼吸 */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 var(--space-3);
  letter-spacing: 0;
  color: var(--color-text);
  font-weight: 700;
}
h1 { font-size: var(--text-hero); font-weight: 900; line-height: 1.12; }
h2 { font-size: var(--text-3xl); font-weight: 900; }
h3 { font-size: var(--text-xl); font-weight: 700; }
p  { margin: 0 0 var(--space-3); color: var(--color-muted); max-width: 62ch; line-height: 1.95; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--color-text); font-weight: 600; }
em { font-style: normal; color: var(--color-accent); }

/* 焦点可见性 */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--color-accent); color: var(--color-accent-ink); }

/* 氛围层：本版以"无"为高级——旧光斑/点阵全部置空 */
.atmosphere::before { content: none; }
.grain::after { content: none; }

/* ---- 容器 ---- */
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; position: relative; z-index: 2; }

.section { padding-block: var(--space-7); position: relative; }

/* 区块标题：发丝线 + 重字重标题 + 等宽 kicker；进入视口时强调线绘制 */
.sec-head {
  position: relative;
  display: flex; align-items: baseline; gap: var(--space-4);
  padding-top: var(--space-4);
  margin-bottom: var(--space-6);
}
.sec-head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--color-line);
}
.sec-head::after {
  content: ""; position: absolute; top: 0; left: 0; width: 112px; height: 1px;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 900ms var(--ease-out) 120ms;
}
.sec-head.in::after { transform: scaleX(1); }
.sec-index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  letter-spacing: 0.06em;
}
.sec-title-cn { font-size: var(--text-3xl); font-weight: 900; margin: 0; }
.sec-sub {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---- 按钮：近直角 + 字距拉开（相对定位以承载涟漪） ---- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.2em;
  cursor: pointer;
  transition: background var(--dur-fast) ease-out, color var(--dur-fast) ease-out,
    border-color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn-accent:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn-ghost { background: transparent; border-color: var(--color-line-strong); color: var(--color-text); }
.btn-ghost:hover { background: var(--color-text); border-color: var(--color-text); color: #fff; }

/* ---- 媒体框：发丝描边 + 微交互缩放 ---- */
.media-frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  background: var(--color-surface-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.media-frame:hover img { transform: scale(1.03); }

/* 图片说明行 */
.media-cap {
  display: flex; align-items: center; gap: 12px;
  margin: var(--space-3) 0 0;
  font-family: var(--font-mono); font-size: 0.9375rem;
  letter-spacing: 0.08em; color: var(--color-muted);
}
.media-cap::before { content: ""; width: 24px; height: 1px; background: var(--color-accent); flex: none; }

/* ---- 入场序列：更慢更轻 ---- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }

/* ---- 降级 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 768px) {
  .section { padding-block: var(--space-6); }
  .sec-head { flex-wrap: wrap; row-gap: var(--space-1); }
  .sec-sub { margin-left: 0; width: 100%; }
}

/* ============================================================
   九峰机械官网 · 组件层 v3（高端编辑风）
   版式以发丝线与留白组织层次，去卡片化、去渐变、去发光
   ============================================================ */

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-4); min-height: 76px; }

.brand { display: flex; align-items: center; gap: var(--space-3); margin-right: auto; }
.brand-mark {
  width: 60px; height: 60px; flex: none;
  display: block; object-fit: contain;
  border-radius: var(--radius-sm);
}
/* 页头品牌区：鑫九峰完整 LOGO + 中英文公司名 */
.site-header .brand-logo-full { width: 60px; height: 60px; padding: 2px; }
.brand-text-main strong { font-size: 1.125rem; }
.brand-text-main small { font-size: 0.6875rem; letter-spacing: 0.18em; }
.brand-logo-full {
  width: 84px; height: 84px; flex: none;
  display: block; object-fit: contain;
  background: #fff; padding: 5px;
  border-radius: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: var(--text-base); font-weight: 700; letter-spacing: 0.12em; }
.brand-text small { font-size: var(--text-xs); color: var(--color-muted); letter-spacing: 0.14em; }

.site-nav { display: flex; gap: var(--space-1); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  font-size: var(--text-base); color: var(--color-muted);
  letter-spacing: 0.08em;
  position: relative; transition: color var(--dur-fast) ease-out;
}
.site-nav a::after {
  content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 10px;
  height: 1px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { white-space: nowrap; font-size: var(--text-base) !important; letter-spacing: 0.1em !important; }

.nav-toggle {
  display: none; width: 48px; height: 48px; flex: none;
  background: transparent; border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; margin-inline: auto;
  background: var(--color-text); position: relative;
  transition: transform var(--dur-fast) ease-out;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(247, 248, 250, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-line);
    padding: var(--space-3) var(--space-4) var(--space-5);
    transform: translateY(-120%); visibility: hidden;
    transition: transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a { min-height: 52px; font-size: var(--text-base); }
  .site-nav a::after { left: 0; right: auto; width: 24px; bottom: 12px; }
}

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-6) 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr);
  gap: var(--space-6); align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.16em;
  line-height: 1.9;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.hero-tag i {
  width: 32px; height: 1px; background: var(--color-accent); flex: none; font-style: normal;
}
.hero-lead { font-size: var(--text-lg); line-height: 2; margin-block: var(--space-4) var(--space-5); max-width: 36em; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: 0; }
/* 强调行（第三行）缩小，与前两行形成大小对比 */
.hero h1 em { font-size: 0.72em; line-height: 1.25; }

/* Hero 视觉：照片 + 后移发丝框 + 图注 */
.hero-visual { position: relative; }
.hero-visual .media-frame { aspect-ratio: 4 / 3.1; position: relative; z-index: 1; }
.hero-visual::before {
  content: ""; position: absolute;
  top: var(--space-4); left: var(--space-4);
  right: calc(-1 * var(--space-4)); bottom: calc(-1 * var(--space-4));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

/* 工艺关键词跑马灯：弱化为编辑感字距 */
.marquee {
  border-block: 1px solid var(--color-line);
  overflow: hidden; white-space: nowrap; position: relative; z-index: 2;
  background: var(--color-surface);
  margin-top: var(--space-7);
}
.marquee-track {
  display: inline-flex; gap: 0;
  padding-block: var(--space-4);
  animation: marquee 44s linear infinite;
  font-size: var(--text-sm); letter-spacing: 0.32em;
  color: var(--color-muted); font-weight: 500;
}
.marquee-track b { color: var(--color-accent); font-weight: 400; padding-inline: var(--space-4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 数据条：纯排版，竖发丝线分栏 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--space-2) var(--space-4); border-left: 1px solid var(--color-line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--color-accent); font-weight: 700;
  font-variant-numeric: lining-nums; line-height: 1.15;
  letter-spacing: 0.01em;
}
.stat-num i { font-style: normal; font-size: 0.62em; color: var(--color-accent); margin-left: 3px; }
.stat-label { font-size: var(--text-base); color: var(--color-muted); margin-top: var(--space-2); line-height: 1.75; }

/* ---------- 图文双栏 ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6); align-items: center;
}
.split .media-frame { aspect-ratio: 4 / 3; }
.split.rev .media-frame { order: -1; }
.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.img-row .media-frame { aspect-ratio: 4 / 3; }

/* ---------- 业务版块：编辑式图卡（无边框堆叠） ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5) var(--space-4); }
.svc-card {
  position: relative;
  display: flex; flex-direction: column;
}
.svc-card:first-child, .svc-card.wide { grid-column: span 2; }
.svc-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--color-line); background: var(--color-surface-2); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88); transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.svc-card:hover .svc-img img { transform: scale(1.04); filter: saturate(1); }
.svc-index {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.2em;
  color: #fff; background: rgba(15, 26, 44, 0.62);
  padding: 5px 12px; border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.svc-card h3 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-xl); }
.svc-card p { margin: 0; font-size: 1.125rem; line-height: 1.85; flex: 1; }

/* ---------- 六道工艺流程带：竖发丝线分栏 ---------- */
.process {
  background: var(--color-surface);
  border-block: 1px solid var(--color-line);
}
.process-band {
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.step {
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-4);
  min-height: 190px; display: flex; flex-direction: column; gap: var(--space-2);
  border-left: 1px solid var(--color-line);
}
.step:first-child { border-left: 0; padding-left: 0; }
.step-no {
  font-family: var(--font-mono); font-size: var(--text-sm);
  color: #0d8ec0; letter-spacing: 0.24em;
}
.step-name { font-family: var(--font-body); font-weight: 900; font-size: var(--text-lg); letter-spacing: 0.3em; transition: color var(--dur-fast) ease-out; }
.step:hover .step-name { color: var(--color-accent); }
.step-desc { font-size: var(--text-base); color: var(--color-muted); line-height: 1.8; margin: auto 0 0; }

/* ---------- 优势：编辑式行列 ---------- */
.adv-list { display: grid; }
.adv {
  display: grid; grid-template-columns: 80px minmax(0, 220px) 1fr; gap: var(--space-4);
  align-items: baseline; padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--color-line);
  transition: background var(--dur-fast) ease-out;
}
.adv:last-child { border-bottom: 1px solid var(--color-line); }
.adv:hover { background: rgba(29, 78, 137, 0.045); }
.adv-no { font-family: var(--font-display); font-size: var(--text-xl); color: #0d8ec0; }
.adv h3 { margin: 0; font-size: var(--text-lg); }
.adv p { margin: 0; font-size: var(--text-base); line-height: 1.9; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5) var(--space-4); }
.news-card {
  display: flex; flex-direction: column;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-line);
}
.news-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--color-line); background: var(--color-surface-2); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88); transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.news-card:hover .news-thumb img { transform: scale(1.04); filter: saturate(1); }
.news-body { padding-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.news-meta {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--color-muted); letter-spacing: 0.14em;
  display: flex; align-items: center; gap: var(--space-2);
}
.news-meta b { color: var(--color-accent); font-weight: 500; }
.news-card h3 { font-size: var(--text-lg); margin: 0; line-height: 1.5; color: var(--color-accent); transition: color var(--dur-fast) ease-out; }
.news-card:hover h3 { color: var(--color-accent); }
.news-card p { margin: 0 0 auto; font-size: var(--text-base); line-height: 1.9; }

/* 新闻列表页：横向编辑式行列 */
.news-list { display: grid; }
.news-list .news-card {
  display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: var(--space-5);
  align-items: center; padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-line);
}
.news-list .news-card:first-child { padding-top: 0; }
.news-list .news-thumb { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
.news-list .news-body { padding-top: 0; }

/* ---------- CTA：留白 + 居中衬线，收进上下发丝线 ---------- */
.cta {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(29, 78, 137, 0.28);
}
.cta h2 { font-size: var(--text-4xl); margin-bottom: var(--space-2); color: #fff; }
.cta p { margin-inline: auto; margin-bottom: var(--space-5); max-width: 44ch; color: rgba(255, 255, 255, 0.85); }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }
.cta .btn { background: #fff; border-color: #fff; color: var(--color-accent); font-size: var(--text-base); }
.cta .btn:hover { background: var(--color-surface-2); border-color: var(--color-surface-2); }
.cta .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }

/* ---------- 页脚（墨蓝压轴） ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.75); padding-block: var(--space-6) var(--space-5); }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, 0.5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs); color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.3em; margin-bottom: var(--space-3);
  font-weight: 400;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-grid a {
  color: rgba(255, 255, 255, 0.75); font-size: var(--text-base);
  transition: color var(--dur-fast) ease-out;
}
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-brand p { font-size: var(--text-base); margin-top: var(--space-3); color: rgba(255, 255, 255, 0.62); }
.footer-bottom {
  margin-top: var(--space-6); padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.45);
}

/* ---------- 子页 Hero ---------- */
.page-hero {
  padding-block: var(--space-7) var(--space-6);
  border-bottom: 1px solid var(--color-line);
  position: relative;
}
.page-hero .sec-sub { margin-left: 0; display: inline-flex; align-items: center; gap: 14px; }
.page-hero .sec-sub::before { content: ""; width: 32px; height: 1px; background: var(--color-accent); }
.page-hero h1 { font-size: var(--text-page); margin-block: var(--space-3) var(--space-4); }
.page-hero p { max-width: 56ch; }

/* ---------- 详情块（服务页） ---------- */
.detail-block {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-6); padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-line);
  align-items: start;
}
.detail-media { position: relative; margin-bottom: var(--space-4); }
.detail-media .media-frame { aspect-ratio: 16 / 10; }
.detail-media::before {
  content: ""; position: absolute;
  top: var(--space-3); left: var(--space-3);
  right: calc(-1 * var(--space-3)); bottom: calc(-1 * var(--space-3));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}
.detail-no {
  font-family: var(--font-display); font-size: var(--text-2xl);
  color: var(--color-accent); line-height: 1;
  letter-spacing: 0.06em;
}
.detail-block h2 { font-size: var(--text-2xl); margin-block: var(--space-2) var(--space-3); }
.detail-block ul { margin: 0; padding: 0; list-style: none; }
.detail-block li {
  display: flex; gap: var(--space-4); align-items: baseline;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-line-soft);
  font-size: var(--text-sm);
}
.detail-block li:first-child { border-top: 0; padding-top: 0; }
.detail-block li b { color: var(--color-text); flex: none; font-weight: 600; min-width: 4.5em; }
.detail-block li span { color: var(--color-muted); line-height: 1.85; }

/* 关于页叙述（.prose 与 .wrap 同用时，不让 72ch 上限压缩整个容器） */
.prose { max-width: 72ch; }
.wrap.prose { max-width: min(var(--wrap), 92%); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-6); }
.prose .img-row, .prose .stats { max-width: none; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-5); max-width: none; }
.value-card {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-4);
  transition: border-color var(--dur-base) ease-out;
}
.value-card b {
  display: block; font-family: var(--font-display);
  font-size: var(--text-lg); margin-bottom: var(--space-1); font-weight: 700;
}
.value-card span { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.9; }
.value-card:hover { border-top-color: var(--color-accent); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); align-items: start; }
.contact-info { display: grid; }
.contact-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.contact-item:first-child { padding-top: 0; }
.contact-item h3 {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--color-muted); letter-spacing: 0.24em; margin-bottom: var(--space-1);
  font-weight: 400;
}
.contact-item p { margin: 0; font-size: var(--text-lg); color: var(--color-text); font-variant-numeric: tabular-nums; line-height: 1.7; }
.contact-item small { color: var(--color-muted); font-size: var(--text-xs); line-height: 1.8; display: block; margin-top: 4px; }

.contact-form {
  display: grid; gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field { display: grid; gap: var(--space-1); }
.field label { font-size: var(--text-xs); color: var(--color-muted); letter-spacing: 0.12em; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  min-height: 48px; padding: 0 2px;
  background: transparent; border: 0;
  border-bottom: 1px solid var(--color-line-strong);
  border-radius: 0; color: var(--color-text);
  font: inherit; letter-spacing: 0.01em;
  transition: border-color var(--dur-fast) ease-out;
}
.field select { text-overflow: ellipsis; }
.field textarea { min-height: 110px; padding-block: var(--space-2); resize: vertical; }
.field select { background: transparent; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--color-accent); outline: none;
}
.form-hint { font-size: var(--text-xs); color: var(--color-muted); margin: 0; }
.form-status { font-size: var(--text-sm); min-height: 1.4em; }
.form-status.ok { color: var(--color-accent); }
.form-status.err { color: #b42318; }

/* 分页 */
.pagelinks { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; padding-top: var(--space-5); }
.pagelinks .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--space-3);
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--color-text); font-size: var(--text-sm);
  transition: border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.pagelinks .page-numbers.current { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.pagelinks .page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-visual { max-width: 640px; }
  .hero-visual::before { right: var(--space-3); bottom: var(--space-3); }
  .svc-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .process-band { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-5); }
  .step:nth-child(4) { border-left: 0; padding-left: 0; }
  .split, .detail-block, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split.rev .media-frame { order: 0; }
  .adv { grid-template-columns: 56px 1fr; gap: var(--space-3); }
  .adv p { grid-column: 2; }
  .detail-media::before { right: var(--space-3); bottom: var(--space-3); }
}
@media (max-width: 700px) {
  .svc-grid, .news-grid, .values-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-card:first-child, .svc-card.wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-bottom: 1px solid var(--color-line-soft); padding: var(--space-4) var(--space-2); }
  .stat:nth-child(odd) { border-right: 1px solid var(--color-line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .process-band { grid-template-columns: 1fr 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--color-line-soft); padding: var(--space-3) 0; min-height: 0; }
  .step:nth-child(-n+2) { border-top: 0; }
  .news-list .news-card { grid-template-columns: 1fr; gap: var(--space-3); }
  .adv { grid-template-columns: 44px 1fr; padding-inline: 0; }
  .img-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .marquee-track { font-size: var(--text-xs); }
  .hero-actions .btn { flex: 1 1 auto; }
  .contact-form { padding: var(--space-4); }
}

/* ============================================================
   特效层 v3.1：滚动动画 / 视差 / 微交互
   （prefers-reduced-motion 下全部停用，见文件末尾）
   ============================================================ */

/* ---- 滚动进度条 + 页头滚动投影（元素由 JS 注入） ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 50;
  height: 2px; width: 0;
  background: var(--color-accent);
  pointer-events: none;
}
.site-header { transition: box-shadow var(--dur-base) ease-out; }
.site-header.scrolled { box-shadow: 0 12px 32px rgba(16, 26, 44, 0.08); }

/* ---- Hero：入场模糊显影 ---- */
.hero .reveal { filter: blur(8px); }
.hero .reveal.in {
  filter: blur(0);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), filter 800ms var(--ease-out);
}
/* Hero 主图交由 JS 视差驱动，禁用自身 transform 过渡避免拖影 */
.hero-visual .media-frame img { transition: filter var(--dur-slow) var(--ease-out); will-change: transform; }

/* ---- 数据条：数字模糊显影 + 逐个错峰 ---- */
.stats .stat-num {
  opacity: 0; transform: translateY(16px); filter: blur(8px);
}
.stats.reveal.in .stat-num {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}
.stats.reveal.in .stat:nth-child(2) .stat-num { transition-delay: 100ms; }
.stats.reveal.in .stat:nth-child(3) .stat-num { transition-delay: 200ms; }
.stats.reveal.in .stat:nth-child(4) .stat-num { transition-delay: 300ms; }
.stat:hover .stat-num { color: var(--color-accent); }
.stat-num { transition: color var(--dur-fast) ease-out; }

/* ---- 图文双栏：方向性入场（仅桌面，避免移动端横向越界） ---- */
@media (min-width: 1025px) {
  .split > .media-frame.reveal { transform: translate3d(30px, 14px, 0); }
  .split.rev > .media-frame.reveal { transform: translate3d(-30px, 14px, 0); }
  .split > .media-frame.reveal.in { transform: none; }
}

/* ---- 业务卡片：标题联动 + 轻浮动 ---- */
.svc-card { transition: transform var(--dur-base) var(--ease-out); }
.svc-card:hover { transform: translateY(-6px); }
.svc-card h3 { transition: color var(--dur-fast) ease-out; }
.svc-card:hover h3 { color: var(--color-accent); }
.svc-index { transition: background var(--dur-fast) ease-out; }
.svc-card:hover .svc-index { background: var(--color-accent); }

/* ---- 工艺步骤：悬停浮起 ---- */
.step { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease-out, background var(--dur-base) ease-out; border-radius: var(--radius-md); }
.step:hover { transform: translateY(-5px); background: var(--color-surface); box-shadow: var(--shadow-2); }

/* ---- 优势行：编号随行微移 ---- */
.adv-no { transition: transform var(--dur-base) var(--ease-out); }
.adv:hover .adv-no { transform: translateX(6px); }

/* ---- 新闻标题下划线扫过 ---- */
.news-card h3 { position: relative; display: inline-block; }
.news-card h3::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.news-card:hover h3::after { transform: scaleX(1); }

/* ---- 主按钮：箭头微移 ---- */
.btn-accent::after {
  content: "→"; display: inline-block; margin-left: 4px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-accent:hover::after { transform: translateX(5px); }

/* ---- 页脚品牌徽标（完整 logo 白底托底，见 .brand-logo-full） ---- */

/* ---- 降级：减少动效偏好时全部静止 ---- */
@media (prefers-reduced-motion: reduce) {
  .hero .reveal, .stats .stat-num, .split > .media-frame.reveal,
  .split.rev > .media-frame.reveal {
    filter: none !important; opacity: 1 !important; transform: none !important;
  }
  .scroll-progress { display: none; }
  .hero-visual .media-frame img { transform: none !important; }
}

/* ============================================================
   氛围与交互层 v3.2：蓝图网格背景 / 幽灵水印 / 角标 / 涟漪 / 倾斜
   ============================================================ */

/* ---- 全局背景：蓝图网格 + 光斑 + 漂浮圆环 ---- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(17, 28, 46, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 28, 46, 0.032) 1px, transparent 1px),
    radial-gradient(58rem 42rem at 10% -12%, rgba(29, 78, 137, 0.08), transparent 62%),
    radial-gradient(46rem 34rem at 104% 6%, rgba(29, 78, 137, 0.055), transparent 58%);
  background-size: 88px 88px, 88px 88px, auto, auto;
}
body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; right: -150px; top: 12%;
  border: 1px solid rgba(29, 78, 137, 0.12); border-radius: 50%;
  animation: bgFloat 28s ease-in-out infinite alternate;
}
@keyframes bgFloat {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-46px, 56px) rotate(10deg); }
}
@media (max-width: 900px) { body::after { display: none; } }

/* ---- 鼠标光晕跟随（元素由 JS 注入，触屏不启用） ---- */
.cursor-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 18%), rgba(29, 78, 137, 0.07), transparent 65%);
}

/* ---- Hero：巨型描边水印 + 旋转虚线圆环 ---- */
.hero::after {
  content: "JIUFENG";
  position: absolute; left: -1%; bottom: -3%;
  font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em;
  font-size: clamp(5rem, 15vw, 12.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(17, 28, 46, 0.08);
  pointer-events: none; user-select: none; z-index: 0;
}
.hero-visual::after {
  content: ""; position: absolute; z-index: 0;
  width: 46%; aspect-ratio: 1; top: -12%; right: -9%;
  border: 1px dashed var(--color-line-strong); border-radius: 50%;
  animation: spinSlow 48s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---- 子页 Hero：幽灵大字水印 ---- */
.page-hero { overflow: hidden; }
.page-hero::after {
  content: attr(data-ghost);
  position: absolute; right: 1%; bottom: -22%;
  font-family: var(--font-display); font-weight: 900; letter-spacing: 0.02em;
  font-size: clamp(4rem, 13vw, 10.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(17, 28, 46, 0.09);
  pointer-events: none; user-select: none; white-space: nowrap;
}

/* ---- 图片四角括号（悬停浮现） ---- */
.media-frame::before, .media-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 2;
  border-color: var(--color-accent); border-style: solid;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) ease-out, transform var(--dur-base) var(--ease-out);
}
.media-frame::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; transform: translate(8px, 8px); }
.media-frame::after { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; transform: translate(-8px, -8px); }
.media-frame:hover::before, .media-frame:hover::after { opacity: 1; transform: translate(0, 0); }

/* ---- 按钮涟漪（span.ripple 由 JS 注入） ---- */
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0); pointer-events: none;
  animation: rippleGo 600ms ease-out forwards;
}
.btn-ghost .ripple, .cta .btn .ripple { background: rgba(29, 78, 137, 0.18); }
@keyframes rippleGo { to { transform: scale(1); opacity: 0; } }

/* ---- 3D 倾斜目标的透视基础 ---- */
.svc-card, .news-card, .value-card { transform-style: preserve-3d; will-change: transform; }

/* ---- 工艺带 / 页脚背景层次 ---- */
.process { position: relative; }
.process::after {
  content: "PROCESS"; position: absolute; right: 2%; top: 8%;
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.4em; color: var(--color-line-strong);
  pointer-events: none;
}
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
}
.site-footer::after {
  content: ""; position: absolute; left: -150px; bottom: -190px;
  width: 440px; height: 440px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: bgFloat 32s ease-in-out infinite alternate;
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }

/* ---- 降级补充 ---- */
@media (prefers-reduced-motion: reduce) {
  body::after, .hero-visual::after, .site-footer::after { animation: none; }
  .cursor-glow { display: none; }
}

/* ============================================================
   悬浮电话按钮 v3.3（元素由 JS 注入，全站右下角）
   ============================================================ */
.call-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--color-accent); color: var(--color-accent-ink);
  border-radius: 999px;
  box-shadow: var(--shadow-2);
  font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.12em;
  animation: fabIn 600ms var(--ease-out) 400ms both;
  transition: background var(--dur-fast) ease-out, transform var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out;
}
.call-fab:hover {
  background: var(--color-accent-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.call-fab svg { flex: none; }
.call-fab::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  animation: fabPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes fabIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fabPulse {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}
@media (max-width: 700px) {
  .call-fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 13px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .call-fab { animation: none; }
  .call-fab::before { animation: none; opacity: 0; }
}
