/* =====================================================================
   上海市虹口区欣鑫诚软件服务中心 — 官网样式表
   结构：变量 → 基础重置 → 通用组件 → 各区块 → 响应式
   ===================================================================== */

/* ---------- 1. 全局变量 ---------- */
:root {
  --primary: #1a56db;          /* 主色：稳重科技蓝 */
  --primary-dark: #12308b;     /* 主色深：hover / 渐变起点 */
  --primary-light: #e8f0fe;    /* 主色浅底 */
  --accent: #0ea5e9;           /* 辅助色：青蓝 */
  --accent-2: #06b6d4;

  --text: #1f2937;             /* 正文 */
  --text-sub: #5b6675;         /* 次要文字 */
  --text-mute: #8a94a6;        /* 弱化文字 */
  --line: #e6eaf0;             /* 分割线 */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;          /* 浅底区块 */
  --bg-dark: #101c33;          /* 深色（页脚等） */

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(16, 28, 51, .06);
  --shadow: 0 10px 30px rgba(16, 28, 51, .08);
  --shadow-lg: 0 24px 60px rgba(16, 28, 51, .12);

  --header-h: 72px;
  --maxw: 1200px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.35; font-weight: 700; color: #16213a; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- 3. 通用组件 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); }

/* 区块标题 */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.sec-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.5px;
  margin-bottom: 14px;
  position: relative;
}
.sec-head.center h2::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.sec-head p { color: var(--text-sub); font-size: 17px; }

/* 渐变文字 */
.grad {
  background: linear-gradient(100deg, var(--primary-dark) 0%, var(--primary) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: all .28s var(--ease);
  white-space: nowrap;
}
.btn-sm { height: 40px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 86, 219, .28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(26, 86, 219, .36);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- 4. 顶部导航 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.header.scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(16, 28, 51, .06);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: block;
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(26, 86, 219, .18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 17px; color: #16213a; letter-spacing: .3px; }
.brand-text em { font-size: 12px; font-style: normal; color: var(--text-mute); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: 8px;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.nav-cta { margin-left: 12px; }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  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); }

/* ---------- 5. 首屏 ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 88px;
  background:
    radial-gradient(1200px 600px at 85% -10%, #e8f2ff 0%, rgba(232, 242, 255, 0) 60%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.hero-bg .c1 {
  width: 320px; height: 320px;
  top: -110px; right: -80px;
  background: radial-gradient(circle at 30% 30%, rgba(26, 86, 219, .16), rgba(26, 86, 219, 0) 70%);
}
.hero-bg .c2 {
  width: 220px; height: 220px;
  bottom: 40px; left: -90px;
  background: radial-gradient(circle at 40% 40%, rgba(14, 165, 233, .16), rgba(14, 165, 233, 0) 70%);
}
.hero-bg .c3 {
  width: 130px; height: 130px;
  top: 42%; left: 46%;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, .12), rgba(6, 182, 212, 0) 70%);
}
.grid-mask {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26, 86, 219, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 86, 219, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 62%);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e6fb;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); }
  50%      { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
  letter-spacing: -1px;
}
.hero .lead {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 26px;
}

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-sub);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* 首屏右侧代码卡片 */
.hero-card { position: relative; }
.code-card {
  background: #0f1b32;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .04);
  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: 12.5px;
  color: #7d8ba6;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;
}
.code-body {
  margin: 0;
  padding: 22px 20px 26px;
  overflow-x: auto;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 13.5px;
  line-height: 2;
  color: #c3cee0;
  white-space: pre;
}
.code-body .c-key { color: #7dd3fc; font-weight: 600; }

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.stat-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-item strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
}
.stat-item span { font-size: 15px; color: var(--primary); font-weight: 600; }
.stat-item em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 2px;
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 2px solid rgba(26, 86, 219, .35);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
}
.scroll-hint span {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--primary);
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- 6. 数据条 ---------- */
.stats {
  background: linear-gradient(100deg, var(--primary-dark), var(--primary) 55%, #0d7fb8);
  padding: 40px 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-cell strong {
  display: block;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}
.stat-cell span { font-size: 14.5px; color: rgba(255, 255, 255, .82); }

/* ---------- 7. 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}
.about-copy h3 { font-size: 24px; margin-bottom: 18px; }
.about-copy p { color: var(--text-sub); margin-bottom: 16px; }
.about-copy strong { color: var(--primary); }

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-tags span {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 500;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.info-card h4 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.info-list li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  font-size: 14.5px;
  border-bottom: 1px dashed #eef1f6;
}
.info-list li:last-child { border-bottom: 0; }
.info-list span { flex: 0 0 84px; color: var(--text-mute); }
.info-list b { flex: 1; font-weight: 600; color: var(--text); }
.info-list b small,
.addr-note {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-mute);
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: all .28s var(--ease);
}
.value-card:hover {
  transform: translateX(4px);
  border-color: #c9dcfb;
  box-shadow: var(--shadow-sm);
}
.value-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.value-card h4 { font-size: 15.5px; margin-bottom: 2px; }
.value-card p { font-size: 13.5px; color: var(--text-sub); line-height: 1.6; }

/* ---------- 8. 服务范围 ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  transition: all .3s var(--ease);
  overflow: hidden;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: #cfe0fd;
  box-shadow: var(--shadow);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 20px;
  transition: all .3s var(--ease);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card:hover .svc-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.svc-card h3 { font-size: 19px; margin-bottom: 12px; }
.svc-card > p { font-size: 15px; color: var(--text-sub); margin-bottom: 18px; }

.svc-list { border-top: 1px dashed var(--line); padding-top: 16px; }
.svc-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.svc-tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff4e6;
  color: #d97706;
}

/* ---------- 9. 客户案例 ---------- */
.case-list { display: grid; gap: 24px; }
.case-item {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 34px;
  transition: all .3s var(--ease);
}
.case-item:hover {
  border-color: #cfe0fd;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.case-cate {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.case-body h3 { font-size: 22px; margin-bottom: 14px; }
.case-body p { color: var(--text-sub); font-size: 15.5px; }

.case-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.case-meta li {
  font-size: 13.5px;
  color: var(--text-sub);
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.case-side {
  border-left: 1px dashed var(--line);
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-num {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case-kv { font-size: 14px; }
.case-kv span { display: block; color: var(--text-mute); font-size: 12.5px; margin-bottom: 2px; }
.case-kv b { font-weight: 600; }

.case-note {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--text-mute);
  text-align: center;
}

/* ---------- 10. 服务流程 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #cfd9ea 0 8px, transparent 8px 16px);
  z-index: 0;
}
.flow-item { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.flow-step {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d8e3f7;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  transition: all .3s var(--ease);
}
.flow-item:hover .flow-step {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(26, 86, 219, .3);
}
.flow-item h4 { font-size: 17px; margin-bottom: 8px; }
.flow-item p { font-size: 14px; color: var(--text-sub); }

/* ---------- 11. 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.ct-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  transition: all .28s var(--ease);
}
.ct-card:hover { border-color: #cfe0fd; box-shadow: var(--shadow-sm); }
.ct-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
}
.ct-icon svg { width: 21px; height: 21px; }
.ct-card h4 { font-size: 16px; margin-bottom: 4px; }
.ct-card p { font-size: 15px; color: var(--text-sub); }
.ct-card a:hover { color: var(--primary); }
.ct-card small { font-size: 12.5px; color: var(--text-mute); }

.qr-box {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f3f8ff, #eaf4ff);
  border: 1px dashed #cfe0fd;
}
.qr-img {
  flex-shrink: 0;
  width: 112px; height: 112px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}
.qr-box p { font-size: 13.5px; color: var(--text-sub); }

/* 联系引导卡（替代原在线留言表单） */
.contact-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-cta h3 {
  font-size: 21px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.contact-cta > p { font-size: 14.5px; color: var(--text-sub); margin-bottom: 24px; }
.contact-cta .qr-box { margin-top: 0; }

.cta-list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.cta-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  font-size: 15px;
}
.cta-list span { flex: 0 0 44px; color: var(--text-mute); font-size: 14px; }
.cta-list a, .cta-list b { font-weight: 600; color: var(--text); }
.cta-list a:hover { color: var(--primary); }

.cta-note {
  margin-top: 20px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-mute);
  background: var(--bg-soft);
  border-radius: 10px;
}

/* ---------- 12. 页脚 ---------- */
.footer { background: var(--bg-dark); color: #a9b6cc; padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.brand-light { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand-light strong { color: #fff; font-size: 17px; }
.footer-brand p { font-size: 14px; line-height: 1.9; }

.footer-col h5 {
  color: #fff;
  font-size: 15.5px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h5::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #a9b6cc;
}
.footer-col a:hover { color: #7dd3fc; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 20px 0 26px;
  font-size: 13.5px;
  text-align: center;
}
.footer-bottom p { margin-bottom: 6px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  color: #7b8aa3;
}
.footer-legal > * { flex-shrink: 0; }
.footer-legal > span { white-space: nowrap; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: #7dd3fc; }
.gongan-beian {
  display: inline-block;
  white-space: nowrap;
  padding-left: 21px;
  background: url(../img/gongan-beian.png) left center / 16px 17px no-repeat;
}

/* ---------- 13. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 86, 219, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
  z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

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

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 26px 18px; }
  .flow::before { display: none; }
  .case-item { grid-template-columns: 1fr; gap: 24px; }
  .case-side {
    border-left: 0;
    border-top: 1px dashed var(--line);
    padding-left: 0;
    padding-top: 20px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .28s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 13px 4px; border-bottom: 1px solid #f1f4f9; }
  .nav-link.active::after { display: none; }
  .nav-cta { margin: 14px 0 0; height: 46px; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .container { padding: 0 18px; }
  .hero { padding: calc(var(--header-h) + 44px) 0 64px; }
  .hero .lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .svc-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .code-body { font-size: 12px; }
  .case-item { padding: 24px 20px; }
  .contact-cta { padding: 24px 20px; }
}

@media (max-width: 420px) {
  .brand-text em { display: none; }
  .stat-row { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
}

/* ---------- 16. 打印友好 ---------- */
@media print {
  .header, .to-top, .scroll-hint, .contact-cta { display: none; }
  body { color: #000; }
}
