/* ============================================================
   诺派网络科技 · 企业官网样式
   ============================================================ */

:root {
  /* 色彩 */
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --blue-500: #3b6ef6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --ink-900: #0b1220;
  --ink-800: #131c2e;
  --ink-700: #1f2a3d;
  --ink-600: #3d4a60;
  --ink-500: #5b6880;
  --ink-400: #8492a8;
  --line: #e5eaf3;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: #0a1120;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(16, 32, 66, .06);
  --shadow: 0 10px 30px rgba(16, 32, 66, .08);
  --shadow-lg: 0 24px 60px rgba(16, 32, 66, .12);

  --container: 1180px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, .68, .32, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink-900); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--blue-600); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
}
.btn .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, .38);
}
.btn-primary:hover .ico { transform: translateX(4px); }

.btn-ghost {
  background: #fff;
  color: var(--ink-800);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 32, 66, .05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  height: 38px;
  width: auto;
  display: block;
  flex: none;
}
.logo-mark img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 17px; color: var(--ink-900); letter-spacing: .01em; }
.logo-text em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--ink-400);
  font-weight: 600;
  margin-top: 2px;
}
.logo-light .logo-text strong { color: #fff; }
.logo-light .logo-text em { color: rgba(255, 255, 255, .42); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: 8px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-link.active { color: var(--blue-600); }

.nav-cta {
  margin-left: 10px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
  font-weight: 600;
}
.nav-cta:hover { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background .2s;
}
.nav-toggle:hover { background: var(--blue-50); }
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 78%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero-orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(59, 110, 246, .45), transparent 68%);
  top: -160px; right: -100px;
  animation: float 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124, 58, 237, .28), transparent 68%);
  bottom: -180px; left: -120px;
  animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-28px, 34px) scale(1.06); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-700);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, .06); }
}

.hero-title {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 800;
}
.hero-title .grad {
  background: linear-gradient(100deg, var(--blue-600) 10%, #7c3aed 55%, #06b6d4 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 7s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}

.hero-sub {
  margin-top: 24px;
  max-width: 520px;
  font-size: 17px;
  color: var(--ink-500);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 12px 38px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-stats strong::after { content: "+"; font-size: .6em; color: var(--blue-600); margin-left: 2px; }
.hero-stats li:last-child strong::after { content: "%"; }
.hero-stats span { font-size: 13px; color: var(--ink-400); margin-top: 4px; }

/* Hero 右侧代码卡片 */
.hero-panel { position: relative; }

.code-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #111c30, #0a1220);
  box-shadow: 0 32px 70px rgba(11, 18, 32, .28);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
}
.code-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 80% 0%, rgba(59, 110, 246, .28), transparent 70%);
  pointer-events: none;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; }
.code-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.code-body {
  margin: 0;
  padding: 24px 22px 30px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.95;
  color: #cbd5e1;
  overflow-x: auto;
}
.c-k { color: #c084fc; }
.c-p { color: #7dd3fc; }
.c-s { color: #86efac; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  white-space: nowrap;
}
.chip-ico {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 12px;
}
.chip-1 { top: -20px; right: -18px; animation: bob 5s ease-in-out infinite; }
.chip-2 { bottom: -22px; left: -18px; animation: bob 6.5s ease-in-out infinite .8s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   技术跑马灯
   ============================================================ */
.marquee-section {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.marquee-title {
  text-align: center;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink-400);
  margin-bottom: 22px;
  font-weight: 500;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scrollX 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-600);
  white-space: nowrap;
}
@keyframes scrollX {
  to { transform: translateX(-50%); }
}

/* ============================================================
   通用 Section
   ============================================================ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  max-width: 720px;
  margin-bottom: 58px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -.02em;
  line-height: 1.28;
}

.section-desc {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--ink-500);
  line-height: 1.85;
}

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 服务卡片 ---------- */
.card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), #7c3aed, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}
.card:hover::after { transform: scaleX(1); }

.card-ico {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 22px;
  transition: transform .35s var(--ease);
}
.card-ico svg { width: 25px; height: 25px; }
.card:hover .card-ico { transform: scale(1.08) rotate(-4deg); }

.ico-blue { background: #eaf1ff; color: #2563eb; }
.ico-violet { background: #f2ebff; color: #7c3aed; }
.ico-cyan { background: #e4f9fd; color: #0891b2; }
.ico-amber { background: #fff5e5; color: #d97706; }
.ico-rose { background: #ffecec; color: #e11d48; }
.ico-green { background: #e8fbef; color: #059669; }

.card h3 { font-size: 19px; margin-bottom: 12px; }
.card > p { font-size: 14.8px; color: var(--ink-500); line-height: 1.8; }

.card-list {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-600);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 110, 246, .14);
}

/* ---------- 优势 ---------- */
.adv {
  padding: 30px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.adv:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.adv-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue-600);
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--blue-50);
  margin-bottom: 18px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.adv h3 { font-size: 18px; margin-bottom: 10px; }
.adv p { font-size: 14.5px; color: var(--ink-500); line-height: 1.8; }

/* ---------- 流程时间轴 ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-200, #c7d7fb), var(--blue-500), #7c3aed);
  opacity: .45;
}
.timeline-item { position: relative; }
.tl-dot {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-100);
  color: var(--blue-600);
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .1);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.timeline-item:hover .tl-dot {
  transform: scale(1.1);
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}
.tl-body h3 { font-size: 17px; margin-bottom: 9px; }
.tl-body p { font-size: 14.2px; color: var(--ink-500); line-height: 1.8; }

/* ---------- 案例 ---------- */
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.case-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.case-card:hover .case-media img { transform: scale(1.06); }
.case-body { padding: 24px 24px 28px; }
.case-tag {
  display: inline-block;
  padding: 3px 11px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
}
.case-body h3 { font-size: 18px; margin-bottom: 9px; }
.case-body p { font-size: 14.4px; color: var(--ink-500); line-height: 1.78; }

/* ---------- 关于 ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: start;
}
.about-copy > p {
  margin-top: 18px;
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.9;
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 34px;
}
.fact {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.fact strong { display: block; font-size: 16px; color: var(--ink-900); margin-bottom: 5px; }
.fact span { font-size: 13px; color: var(--ink-400); }

.about-points { display: flex; flex-direction: column; gap: 16px; }
.about-points li {
  position: relative;
  padding: 26px 26px 26px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--blue-500), #7c3aed);
}
.about-points li:hover {
  transform: translateX(4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
}
.about-points h3 { font-size: 17px; margin-bottom: 8px; }
.about-points p { font-size: 14.3px; color: var(--ink-500); line-height: 1.8; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-800);
  cursor: pointer;
  list-style: none;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-600); }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-400);
  border-bottom: 2px solid var(--ink-400);
  transform: rotate(45deg);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
  margin-top: -4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--blue-600);
  margin-top: 4px;
}
.faq-content { padding: 0 24px 22px; }
.faq-content p { font-size: 14.8px; color: var(--ink-500); line-height: 1.85; }

/* ---------- 联系 ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 38px;
}
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci-ico {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.ci-ico svg { width: 21px; height: 21px; }
.contact-list em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.contact-list strong { font-size: 16px; color: var(--ink-800); font-weight: 600; }

.contact-form {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}
.field label span { color: #e11d48; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 14.5px;
  color: var(--ink-800);
  outline: none;
  transition: border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238492a8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-right: 42px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-400); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 110, 246, .12);
}
.field.invalid input,
.field.invalid textarea {
  border-color: #ef4444;
  background: #fff5f5;
}
.field.invalid input:focus,
.field.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }

.error {
  display: block;
  min-height: 17px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #e11d48;
}

.form-note {
  margin-top: 14px;
  font-size: 13.5px;
  text-align: center;
  min-height: 20px;
  color: var(--ink-400);
}
.form-note.ok { color: #059669; font-weight: 600; }
.form-note.err { color: #e11d48; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, .62);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 110, 246, .6), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .42);
  line-height: 1.9;
}

.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links h4 {
  color: #fff;
  font-size: 14.5px;
  margin-bottom: 6px;
  font-weight: 600;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  transition: color .2s var(--ease), transform .2s var(--ease);
  width: fit-content;
}
.footer-links a:hover { color: #fff; transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, .38); }
.beian {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  transition: color .2s var(--ease);
}
.beian:hover { color: #fff; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--blue-600); border-color: var(--blue-500); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   滚动入场动画
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* 卡片错峰 */
.grid .reveal:nth-child(2) { transition-delay: .06s; }
.grid .reveal:nth-child(3) { transition-delay: .12s; }
.grid .reveal:nth-child(4) { transition-delay: .18s; }
.grid .reveal:nth-child(5) { transition-delay: .1s; }
.grid .reveal:nth-child(6) { transition-delay: .16s; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-panel { max-width: 560px; }
  .hero-sub { max-width: 620px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-points { flex-direction: column; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { display: none; }
  .timeline-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding-bottom: 30px;
    align-items: start;
  }
  .timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 56px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue-100), rgba(37, 99, 235, .1));
  }
  .tl-dot { margin-bottom: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 24px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(16, 32, 66, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 13px 16px; font-size: 16px; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; text-align: center; padding: 14px; }

  .nav-toggle { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-stats li { padding: 0; }
  .hero { padding-top: calc(var(--header-h) + 52px); padding-bottom: 72px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .about-facts { grid-template-columns: 1fr; }
  .chip-1 { right: -6px; top: -16px; }
  .chip-2 { left: -6px; bottom: -16px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .logo-text strong { font-size: 15.5px; }
  .logo-text em { letter-spacing: .1em; font-size: 8.5px; }
  .logo-mark { height: 32px; }
  .logo-mark img { height: 32px; }

  .hero-title { font-size: clamp(30px, 9vw, 42px); }
  .hero-sub { font-size: 15.5px; margin-top: 20px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats strong { font-size: 25px; }

  .code-body { font-size: 12px; padding: 18px 16px 24px; }
  .float-chip { font-size: 12px; padding: 8px 13px; }

  .card { padding: 26px 22px; }
  .contact-form { padding: 28px 22px; }
  .faq-item summary { padding: 17px 18px; font-size: 15px; }
  .faq-content { padding: 0 18px 18px; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

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

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}
