/* ============================================================
   智辉科技 官网样式表
   设计方向：工业技术精密感 · 编辑式 B2B · 沉稳专业
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 色彩 */
  --navy: #0B2A4A;
  --navy-900: #071E36;
  --navy-700: #123A5E;
  --blue: #2E7CE4;
  --blue-soft: #E8F1FC;
  --ink: #1A2733;
  --muted: #5A6B7B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --paper: #FFFFFF;
  --grey: #F4F6F9;
  --grey-deep: #EDF1F6;

  /* 字体 */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas,
    "Courier New", monospace;

  /* 间距节奏 */
  --gap: 24px;
  --section-y: 96px;
  --radius: 4px;
  --radius-lg: 8px;

  /* 效果 */
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(11, 42, 74, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 42, 74, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
h4 { font-size: 1.05rem; }
p { color: var(--muted); }
strong { color: var(--ink); }

/* 技术标签（等宽序号/眉标） */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: none;
}
.eyebrow--center { justify-content: center; }

/* ---------- 布局 ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.container--narrow { width: min(880px, 92vw); }
section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h1 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 16px; font-size: 1.075rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* 蓝图网格背景 */
.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: height 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.is-scrolled {
  height: 62px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: min(1180px, 92vw); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--navy); font-size: 1.18rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand__logo { width: 34px; height: 34px; flex: none; object-fit: contain; }
.brand__logo--chip { background: #fff; border-radius: 8px; padding: 3px; box-sizing: border-box; }
.brand small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; color: var(--muted); font-weight: 500; margin-top: 1px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 0.94rem; color: var(--ink); font-weight: 500; position: relative; padding: 4px 0; transition: color 0.2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
/* 导航栏 CTA：强调文字链接，区别于实心按钮 */
.nav__action { display: inline-flex; align-items: center; gap: 7px; font-size: 0.94rem; font-weight: 600; color: var(--blue); position: relative; padding: 6px 2px; }
.nav__action svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.nav__action::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); transition: width 0.25s var(--ease); }
.nav__action:hover::after { width: 100%; }
.nav__action:hover svg { transform: translateX(3px); }
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: var(--navy); transform: translate(-50%, -50%); transition: 0.3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; transition: 0.25s var(--ease); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(46, 124, 228, 0.6); }
.btn--primary:hover { background: #1f6ad2; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(46, 124, 228, 0.65); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-900); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn--light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--light:hover { background: #fff; color: var(--navy); }

/* ---------- 面包屑（蓝色 eyebrow 风格） ---------- */
.crumb { padding-top: calc(var(--nav-h) + 30px); padding-bottom: 2px; }
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; color: var(--blue); }
.crumb a { color: var(--blue); opacity: 0.68; transition: opacity 0.2s; }
.crumb a:hover { opacity: 1; }
.crumb li::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-top: 1.5px solid var(--blue); border-right: 1.5px solid var(--blue); opacity: 0.5; transform: rotate(45deg); vertical-align: middle; }
.crumb li:last-child::after { display: none; }
.crumb li[aria-current] { color: var(--blue); font-weight: 600; }
.crumb li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.crumb li:last-child::after { display: none; }
.crumb li[aria-current] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 72px); padding-bottom: 88px; overflow: hidden; background: var(--paper); }
.hero__grid { position: absolute; inset: 0; opacity: 0.5; -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%); }
.hero__art { position: absolute; top: 0; right: -4%; width: 46%; max-width: 640px; opacity: 0.9; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 900px; }

/* 深色代码背景首屏 */
.hero--code { background: var(--navy-900); padding-top: calc(var(--nav-h) + 90px); padding-bottom: 96px; }
.hero--code .hero__bg { position: absolute; inset: 0; background: url(../img/hero-code.jpg) center right / cover no-repeat; }
.hero--code .hero__veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(6,24,44,0.97) 0%, rgba(6,24,44,0.9) 38%, rgba(7,30,54,0.62) 72%, rgba(7,30,54,0.5) 100%),
  linear-gradient(0deg, rgba(6,24,44,0.85) 0%, rgba(6,24,44,0) 40%); }
.hero--code .eyebrow { color: #A0CBF5; }
.hero--code .eyebrow::before { background: #A0CBF5; }
.hero--code h1 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); white-space: nowrap; }
.hero--code h1 .hl { color: #fff; }
.hero--code .hero__lead { color: #D4DEE8; font-size: 1.1rem; }
.hero--code .btn--ghost { border-color: rgba(255,255,255,0.32); color: #fff; }
.hero--code .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero--code .hero__caps { margin-top: 48px; padding-top: 30px; background: none; border: none; border-top: 1px solid rgba(255,255,255,0.15); border-radius: 0; overflow: visible; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 22px; }
.hero--code .cap { background: none; backdrop-filter: none; padding: 0; }
.hero--code .cap h4, .hero--code .cap p { white-space: nowrap; }
@media (max-width: 680px) { .hero--code .hero__caps { grid-template-columns: repeat(2, 1fr); } }
.hero--code .cap h4 { color: #fff; }
.hero--code .cap p { color: #BAC8D6; }
.hero--code .cap svg { color: #A0CBF5; }
.hero h1 { margin-top: 24px; }
.hero h1 .hl { color: var(--blue); }
.hero__lead { margin-top: 26px; max-width: 620px; font-size: 1.2rem; line-height: 1.65; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__meta { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.hero__meta .stat { background: var(--paper); padding: 24px 22px; }

/* 首屏能力卡 */
.hero__caps { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cap { background: var(--paper); padding: 22px 24px; display: flex; align-items: flex-start; gap: 14px; }
.cap svg { width: 26px; height: 26px; color: var(--blue); flex: none; margin-top: 2px; }
.cap h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.cap p { font-size: 0.85rem; color: var(--muted); }

/* 统计数字 */
.stat__num { font-family: var(--mono); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.stat__num .unit { font-size: 0.9rem; color: var(--blue); margin-left: 3px; }
.stat__label { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* ---------- 卡片 / 服务三层 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* 产品类型标签 */
.tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag { padding: 11px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem; color: var(--ink); transition: 0.25s var(--ease); cursor: default; }
.tag:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* 交付清单 */
.deliver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deliver { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; color: var(--ink); transition: 0.25s var(--ease); }
.deliver svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.deliver:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
@media (max-width: 1024px) { .deliver-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .deliver-grid { grid-template-columns: 1fr; } }

/* 服务流程 · 蛇形拐弯 */
.snake { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 56px; }
.snakecard { position: relative; padding: 24px 22px; border: 1px solid rgba(255,255,255,0.13); border-radius: 12px; background: rgba(255,255,255,0.03); transition: 0.25s var(--ease); }
.snakecard:hover { border-color: rgba(127,178,242,0.45); }
.snakecard__n { display: inline-block; color: #7FB2F2; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.snakecard h4 { color: #fff; margin: 0 0 6px; }
.snakecard p { color: #9DB4CC; font-size: 0.85rem; }
/* 蛇形定位：行1左→右，行2右→左，行3左→右 */
.snake > :nth-child(1) { grid-area: 1 / 1; }
.snake > :nth-child(2) { grid-area: 1 / 2; }
.snake > :nth-child(3) { grid-area: 1 / 3; }
.snake > :nth-child(4) { grid-area: 2 / 3; }
.snake > :nth-child(5) { grid-area: 2 / 2; }
.snake > :nth-child(6) { grid-area: 2 / 1; }
.snake > :nth-child(7) { grid-area: 3 / 1; }
.snake > :nth-child(8) { grid-area: 3 / 2; }
.snake > :nth-child(9) { grid-area: 3 / 3; }
/* 转向箭头 */
.snakecard::after { content: ""; position: absolute; width: 0; height: 0; border: 7px solid transparent; }
.snake > :nth-child(1)::after, .snake > :nth-child(2)::after,
.snake > :nth-child(7)::after, .snake > :nth-child(8)::after { top: 50%; right: -35px; transform: translateY(-50%); border-left-color: rgba(127,178,242,0.6); }
.snake > :nth-child(4)::after, .snake > :nth-child(5)::after { top: 50%; left: -35px; transform: translateY(-50%); border-right-color: rgba(127,178,242,0.6); }
.snake > :nth-child(3)::after, .snake > :nth-child(6)::after { left: 50%; bottom: -25px; transform: translateX(-50%); border-top-color: rgba(127,178,242,0.6); }
.snake > :nth-child(9)::after { display: none; }
@media (max-width: 760px) {
  .snake { grid-template-columns: 1fr; gap: 14px; }
  .snake > * { grid-area: auto !important; }
  .snakecard::after { display: none !important; }
}

.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px; transition: 0.3s var(--ease);
}
/* 卡片顶部配图 */
.card__media { margin: -34px -30px 24px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--grey-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

/* 整图覆盖式卡片 */
.tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,24,44,0.12) 0%, rgba(6,24,44,0.5) 48%, rgba(6,24,44,0.94) 100%); transition: opacity 0.3s var(--ease); }
.tile__body { position: relative; z-index: 2; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.tile__body h3 { color: #fff; margin-bottom: 10px; }
.tile__body p { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.tile:hover .tile__img { transform: scale(1.06); }
.tile__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: #fff; }
.tile__more svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.tile:hover .tile__more svg { transform: translateX(4px); }
.tile__arrow { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-left: 5px; transition: transform 0.25s var(--ease); }
.tile:hover .tile__arrow { transform: translateX(4px); }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 34px;
  border-top: 2px solid var(--blue); border-left: 2px solid var(--blue);
  border-top-left-radius: var(--radius-lg); opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card__idx { font-family: var(--mono); font-size: 0.78rem; color: var(--blue); letter-spacing: 0.1em; }
.card__icon { width: 52px; height: 52px; margin: 20px 0 20px; color: var(--blue); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }
.card__list { margin-top: 20px; display: grid; gap: 10px; }
.card__list li { position: relative; padding-left: 20px; font-size: 0.9rem; color: var(--ink); }
.card__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--blue-soft); border: 1.5px solid var(--blue); border-radius: 2px; }
.card__more { margin-top: 24px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.card__more svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.card:hover .card__more { color: var(--blue); }
.card:hover .card__more svg { transform: translateX(3px); }

/* 差异化优势（细线卡） */
.feature { padding: 30px 4px; border-top: 1px solid var(--line); }
.feature__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.feature__icon { width: 34px; height: 34px; color: var(--blue); }
.feature__idx { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--line-strong); letter-spacing: -0.02em; line-height: 1; }
.feature h3 { margin: 0 0 12px; font-size: 1.2rem; }
.feature p { font-size: 0.94rem; }

/* ---------- 深色区块 ---------- */
.dark { background: var(--navy); color: #EAF1F8; position: relative; overflow: hidden; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: #A9BDD1; }
.dark .eyebrow { color: #7FB2F2; }
.dark .feature { border-color: rgba(255,255,255,0.14); }
.dark .feature__icon { color: #7FB2F2; }
.dark .feature__idx { color: rgba(255,255,255,0.38); }
.dark .eyebrow::before { background: #7FB2F2; }
.dark__grid { position: absolute; inset: 0; opacity: 0.14; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 54px 54px; -webkit-mask-image: radial-gradient(100% 100% at 100% 0, #000, transparent 70%); mask-image: radial-gradient(100% 100% at 100% 0, #000, transparent 70%); }
.dark .container { position: relative; z-index: 2; }

/* ---------- 合作流程 ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 20px; }
.step { position: relative; padding: 30px 20px 30px 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: 12px; left: 46px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.step__num { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--blue); color: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; background: var(--paper); position: relative; z-index: 1; }
.step h4 { margin: 20px 0 8px; }
.step p { font-size: 0.9rem; }

/* ---------- 案例 ---------- */
.case {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: 0.3s var(--ease);
}
.case:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--line-strong); }
.case__top { padding: 26px 28px 0; }
.case__tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 5px 10px; border-radius: 3px; display: inline-block; }
.case h3 { margin: 18px 0 10px; font-size: 1.22rem; }
.case p { font-size: 0.92rem; padding: 0 28px; }
.case__stats { display: flex; gap: 28px; padding: 22px 28px 26px; margin-top: 20px; border-top: 1px solid var(--line); }
.case__stat .n { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.case__stat .n .unit { font-size: 0.8rem; color: var(--blue); }
.case__stat .l { font-size: 0.78rem; color: var(--muted); }

/* 效果数据示意标注 */
.demo-note { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); background: var(--grey); border: 1px dashed var(--line-strong); padding: 8px 12px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 8px; }
.demo-note::before { content: "i"; width: 16px; height: 16px; border-radius: 50%; background: var(--line-strong); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-style: italic; }

/* ---------- 服务详情锚点区块 ---------- */
.svc { padding-block: 88px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.svc:nth-child(even) { background: var(--grey); }
.svc__layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.svc__aside h2 { margin: 18px 0 20px; }
.svc__meta { margin-top: 28px; display: grid; gap: 16px; }
.svc__meta-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.svc__meta-row dt { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.svc__meta-row dd { margin: 0; color: var(--ink); }

/* ---------- 方案（行业） ---------- */
/* 场景背景图 + 文字叠加 */
.scene { position: relative; display: flex; align-items: center; min-height: 420px; margin-bottom: 26px; border-radius: var(--radius-lg); overflow: hidden; background-size: cover; background-position: center right; box-shadow: var(--shadow-md); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.scene:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,38,0.95) 0%, rgba(6,20,38,0.8) 48%, rgba(7,26,48,0.12) 100%); }
.scene__inner { position: relative; z-index: 2; padding: 56px 60px; max-width: 620px; }
/* 偶数场景：文字放右侧，渐变与背景翻转 */
.scene:nth-child(even) { justify-content: flex-end; background-position: center left; }
.scene:nth-child(even)::before { background: linear-gradient(270deg, rgba(6,20,38,0.95) 0%, rgba(6,20,38,0.8) 48%, rgba(7,26,48,0.12) 100%); }
.scene .eyebrow { color: #7FB2F2; }
.scene h2 { color: #fff; margin: 14px 0 16px; }
.scene p { color: #C6D6E8; margin-bottom: 22px; }
.scene__tags { justify-content: flex-start; }
.scene__tags .tag { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: #fff; }
.scene__tags .tag:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.42); color: #fff; transform: none; box-shadow: none; }
.scene__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 0.95rem; font-weight: 600; color: #fff; }
.scene__cta svg { display: inline-block; width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.scene:hover .scene__cta svg { transform: translateX(4px); }
@media (max-width: 640px) { .scene { min-height: 360px; } .scene__inner { padding: 36px 26px; } .scene:nth-child(even) { justify-content: flex-start; } }

.solution { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 72px; border-top: 1px solid var(--line); }
.solution:nth-child(even) .solution__media { order: -1; }
.solution__panel { background: var(--grey); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.pain-list { display: grid; gap: 14px; margin-top: 8px; }
.pain-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.94rem; color: var(--ink); }
.pain-list svg { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }

/* ---------- CTA 区 ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 0; text-align: center; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B6C8DB; margin: 18px auto 34px; max-width: 560px; font-size: 1.08rem; }
.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 联系 / 表单 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.info-block { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.info-block svg { width: 22px; height: 22px; color: var(--blue); margin-top: 4px; }
.info-block h4 { margin-bottom: 4px; }
.info-block p { font-size: 0.94rem; }
.info-block .mono { font-family: var(--mono); color: var(--navy); font-size: 1.05rem; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 9px; }
.field label .req { color: var(--blue); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper); transition: 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D64545; box-shadow: 0 0 0 3px rgba(214,69,69,0.1); }
.field__err { display: none; margin-top: 7px; font-size: 0.8rem; color: #D64545; }
.field.has-error .field__err { display: block; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.form__success {
  display: none; text-align: center; padding: 30px 10px;
}
.form__success.is-shown { display: block; }
.form__success svg { width: 56px; height: 56px; color: var(--blue); margin: 0 auto 18px; }
.form.is-submitted .form__body { display: none; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-900); color: #9FB4C9; padding-top: 72px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer .brand { color: #fff; }
.footer .brand small { color: #6E86A0; }
.footer__desc { margin-top: 18px; font-size: 0.9rem; color: #8DA2B8; max-width: 300px; }
.footer h5 { color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono); font-weight: 500; margin: 0 0 18px; }
.footer__col a, .footer__col p { display: block; font-size: 0.9rem; color: #9FB4C9; margin-bottom: 12px; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 26px 0; font-size: 0.82rem; color: #6E86A0; }
.footer__bottom .mono { font-family: var(--mono); }

/* Deerflow 署名（克制） */
.df-sign { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.75rem; color: #5E7691; opacity: 0.75; transition: opacity 0.25s, color 0.25s; }
.df-sign:hover { opacity: 1; color: #7FB2F2; }
.df-sign::before { content: "✦"; font-size: 0.7rem; }

/* ---------- 滚动淡入 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  :root { --section-y: 76px; }
  .svc__layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .solution { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .solution:nth-child(even) .solution__media { order: 0; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__art { display: none; }
  .hero--code h1 { white-space: normal; }
}
@media (max-width: 760px) {
  .grid3, .grid2, .process { grid-template-columns: 1fr; }
  .hero__meta { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .field--row { grid-template-columns: 1fr; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 6vw 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.3s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open .nav__links { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__links .btn { display: inline-flex; margin-top: 16px; justify-content: center; }
}
@media (max-width: 480px) {
  .hero__meta { grid-template-columns: 1fr; }
  .grid4, .footer__top { grid-template-columns: 1fr; }
  .form, .svc__panel, .solution__panel { padding: 24px; }
}

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
