/* ==========================================================================
   元点智创GEO · 全站设计系统（base.css）
   统一色彩、字体、导航、页脚、按钮、表单、弹窗与基础动效。
   供首页与所有由 FastAPI 渲染的子页面共用。
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  color-scheme: light;

  /* Brand：取自品牌图标的深海军蓝 + 冰蓝高光 */
  --brand: #2f8fff;
  --brand-strong: #1a6ee8;
  --brand-ink: #0c1c33;
  --brand-soft: #e9f3ff;
  --brand-glow: rgba(47, 143, 255, 0.26);
  --navy: #14263f;
  --navy-deep: #0a1c33;
  --cyan: #6fd3ff;
  --cyan-deep: #189fd8;
  --cyan-soft: #e6f8ff;

  /* 三段渐变：细分隔线 / 可点击按钮 / 深色大面板 */
  --brand-gradient: linear-gradient(90deg, #2f8fff 0%, #6fd3ff 100%);
  --action-gradient: linear-gradient(135deg, #1450c8 0%, #2f8fff 56%, #4db5ff 100%);
  --deep-gradient: linear-gradient(118deg, #0a1c33 0%, #123a66 54%, #1f6fd0 100%);

  /* 兼容旧别名：此前的紫色强调统一收束到品牌蓝 */
  --violet: #2f8fff;
  --violet-strong: #146fb8;
  --violet-soft: #e9f3ff;

  /* Neutrals：冷白底 + 纯白卡片 + 深海军蓝文字 */
  --ink: #0a1524;
  --ink-2: #0f1e33;
  --ink-3: #17283f;
  --paper: #f5f8fd;
  --paper-2: #fafcff;
  --surface: #ffffff;
  --surface-2: #fbfdff;
  --line: #e3eaf5;
  --line-strong: #cfdaea;
  --text: #0f1a2b;
  --text-2: #1b2a40;
  --muted: #5c6a80;

  /* Semantic */
  --success: #0e9f6e;
  --success-soft: #e8f7f1;
  --warning: #b45309;
  --error: #d92d20;
  --error-soft: #fef3f2;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows：冷色柔和投影 */
  --shadow-xs: 0 1px 2px rgba(15, 26, 43, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 26, 43, 0.04), 0 10px 24px -16px rgba(21, 63, 120, 0.2);
  --shadow-md: 0 18px 44px -26px rgba(21, 63, 120, 0.24), 0 2px 6px rgba(15, 26, 43, 0.04);
  --shadow-lg: 0 38px 90px -44px rgba(8, 26, 50, 0.35);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 118px);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(34px, 4.6vw, 62px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

strong {
  font-weight: 700;
}

time {
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(40px, 5vw, 72px);
}

.section--paper {
  background: var(--paper);
}

.section--white {
  background: var(--surface);
}

.section--dark {
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(47, 143, 255, 0.24), transparent 62%),
    radial-gradient(760px 500px at 96% 0%, rgba(111, 211, 255, 0.12), transparent 58%),
    var(--ink);
  color: #e8edf8;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .lead,
.section--dark .muted {
  color: rgba(232, 237, 248, 0.72);
}

.section-head {
  max-width: 760px;
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-head .lead {
  max-width: 68ch;
}

/* 参考站点样式：标题下方的渐变短横线 */
.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 16px;
  border-radius: 3px;
  background: var(--brand-gradient);
}

.section-head.is-center h2::after {
  margin-inline: auto;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head-row .section-head {
  margin-bottom: 0;
}

/* ---------- 4. Typography utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-strong);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 4px rgba(47, 143, 255, 0.12);
}

.eyebrow--light {
  color: #9db6ff;
}

.eyebrow--light::before {
  box-shadow: 0 0 0 4px rgba(157, 182, 255, 0.18);
}

.lead {
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.85;
  color: var(--text-2);
}

.muted {
  color: var(--muted);
}

.text-sm {
  font-size: 13.5px;
}

.text-xs {
  font-size: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 5. Buttons ---------- */
.button,
.btn,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.button::after,
.btn::after,
.button-link::after {
  content: "→";
  font-size: 0.95em;
  opacity: 0.72;
  transition: transform 0.35s var(--ease);
}

.button:hover::after,
.btn:hover::after,
.button-link:hover::after {
  transform: translateX(3px);
}

.button:hover,
.btn:hover,
.button-link:hover {
  transform: translateY(-2px);
}

.button:active,
.btn:active,
.button-link:active {
  transform: translateY(0);
}

.button[disabled],
.btn[disabled],
.button-link[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 主按钮：品牌蓝 */
.button-primary,
.button-link-primary,
.btn-primary {
  background: var(--action-gradient);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(47, 143, 255, 0.55);
}

.button-primary:hover,
.button-link-primary:hover,
.btn-primary:hover {
  background: var(--action-gradient);
  filter: saturate(115%) brightness(1.06);
  box-shadow: 0 20px 42px -16px rgba(26, 110, 232, 0.55);
}

/* 次按钮：白底描边 */
.button-secondary,
.button-link-secondary,
.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line-strong);
  color: var(--text);
}

.button-secondary:hover,
.button-link-secondary:hover,
.btn-ghost:hover {
  border-color: var(--text);
  background: #fff;
}

/* 浅色背景上的深色主按钮 */
.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(10, 16, 29, 0.9);
}

.btn-ink:hover {
  background: #16223a;
}

/* 深色背景上的按钮 */
.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: #eef2ff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.09);
}

/* 纯文字链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid transparent;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow:hover {
  gap: 11px;
  border-color: currentColor;
}

/* ---------- 6. Header / navigation ---------- */
.nav-shell {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding-top: 14px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  margin-inline: auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(231, 227, 217, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 16px 40px -30px rgba(47, 143, 255, 0.35);
  transition: box-shadow 0.35s var(--ease), background-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.nav-shell.is-stuck .nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 50px -28px rgba(47, 143, 255, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 6px 16px -10px rgba(8, 26, 50, 0.5);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-text span {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links > a,
.nav-parent-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-links > a,
.nav-parent-link {
  position: relative;
}

.nav-links > a::after,
.nav-parent-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav-links > a.active::after,
.nav-parent-link.active::before {
  width: 22px;
}

.nav-links > a:hover,
.nav-parent-link:hover,
.nav-link-group.is-open .nav-parent-link,
.nav-links > a.active,
.nav-parent-link.active {
  background: transparent;
  color: var(--brand);
}

.nav-parent-link::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
}

.nav-link-group {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 232px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
}

.nav-link-group.is-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-submenu a:hover,
.nav-submenu a.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.25s var(--ease);
}

.nav-phone::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 143, 255, 0.14);
}

.nav-phone:hover {
  background: var(--paper);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--action-gradient);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(21, 63, 120, 0.55);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  filter: brightness(1.06) saturate(112%);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1060px) {
  .nav-phone {
    display: none;
  }

  .nav-links > a,
  .nav-parent-link {
    padding-inline: 10px;
    font-size: 13.5px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 62px;
  }

  .nav-shell {
    padding-top: 10px;
  }

  .nav {
    width: calc(100% - 20px);
    padding: 9px 10px 9px 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: min(74vh, 620px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a,
  .nav-parent-link {
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-links > a::after,
  .nav-parent-link::before {
    display: none;
  }

  .nav-links > a:hover,
  .nav-parent-link:hover,
  .nav-link-group.is-open .nav-parent-link,
  .nav-links > a.active,
  .nav-parent-link.active {
    background: var(--brand-soft);
  }

  .nav-link-group {
    width: 100%;
  }

  .nav-submenu {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 12px;
    background: var(--paper-2);
    opacity: 1;
    visibility: visible;
    min-width: 0;
    display: none;
    margin: 4px 0 6px;
  }

  .nav-link-group.is-open .nav-submenu {
    display: grid;
    transform: none;
  }

  .nav-actions {
    margin-left: auto;
  }
}@media (max-width: 920px) {
  body {
    padding-bottom: 78px;
  }}

/* ---------- 8. Footer ---------- */
.footer {
  position: relative;
  margin-top: clamp(24px, 3vw, 40px);
  padding: clamp(52px, 6vw, 84px) 0 28px;
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(47, 143, 255, 0.24), transparent 62%),
    var(--ink);
  color: rgba(232, 237, 248, 0.7);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 52px);
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer-brand .brand-text strong {
  color: #fff;
}

.footer-brand .brand-text span {
  color: rgba(232, 237, 248, 0.55);
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(232, 237, 248, 0.62);
  max-width: 42ch;
}

.footer-col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 237, 248, 0.44);
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-link {
  font-size: 13.5px;
  color: rgba(232, 237, 248, 0.74);
  transition: color 0.2s var(--ease);
  width: fit-content;
}

.footer-link:hover {
  color: #fff;
}

.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-cities a {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(232, 237, 248, 0.7);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.footer-cities a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-contact {
  display: grid;
  gap: 6px;
}

.footer-phone {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.footer-phone:hover {
  color: #b9c9ff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: rgba(232, 237, 248, 0.5);
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: rgba(232, 237, 248, 0.5);
}

.footer-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-style: normal;
}

.footer-address .footer-link {
  font-size: 12.5px;
  color: rgba(232, 237, 248, 0.55);
}

.footer-record-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}

.coverage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.footer-city-links {
  font-size: 12.5px;
}

.footer-city-links .footer-city-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 237, 248, 0.42);
  margin-right: 4px;
}

.footer-city-links a {
  color: rgba(232, 237, 248, 0.62);
}

.footer-city-links a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-brand .brand-mark {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

/* ---------- 9. Modal shell ---------- */
.diagnosis-modal,
.article-modal,
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(8, 12, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.diagnosis-modal.open,
.article-modal.open,
.privacy-modal.open {
  opacity: 1;
  visibility: visible;
}

.diagnosis-modal-dialog,
.article-modal-dialog,
.privacy-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.35s var(--ease);
}

.diagnosis-modal.open .diagnosis-modal-dialog,
.article-modal.open .article-modal-dialog,
.privacy-modal.open .privacy-modal-dialog {
  transform: translateY(0) scale(1);
}

.article-modal-dialog {
  width: min(840px, 100%);
}

.diagnosis-modal-close,
.article-modal-close,
.privacy-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-2);
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.diagnosis-modal-close:hover,
.article-modal-close:hover,
.privacy-modal-close:hover {
  background: var(--paper);
  transform: rotate(90deg);
}

/* ---------- 10. Forms ---------- */
.field {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field::placeholder {
  color: #98a2b3;
}

.field:hover {
  border-color: #b9b3a4;
}

.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 143, 255, 0.14);
}

textarea.field {
  min-height: 116px;
  resize: vertical;
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6778' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .is-full {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.diagnosis-feedback {
  min-height: 20px;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.diagnosis-feedback.success {
  color: var(--success);
}

.diagnosis-feedback.error {
  color: var(--error);
}

/* Searchable select（首页客资计算器使用） */
.searchable-select {
  position: relative;
  width: 100%;
}

.searchable-select-input {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6778' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.searchable-select-native {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.searchable-select-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 232px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
  display: none;
}

.searchable-select.is-open .searchable-select-panel {
  display: block;
}

.searchable-select-option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  text-align: left;
  font-size: 14px;
  color: var(--text-2);
}

.searchable-select-option:hover,
.searchable-select-option.is-active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.searchable-select-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 11. Reveal / motion ---------- */
.reveal {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

html.reveal-ready .reveal:not(.visible):not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 12. Generic badges & pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.pill--brand {
  border-color: rgba(47, 143, 255, 0.22);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.14);
}

/* ---------- 13. Scrollbars ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: #c3d2e6 transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #c3d2e6;
}

::-webkit-scrollbar-thumb:hover {
  background: #a9b1cf;
}

/* 套餐卡：主推卡流光边缘 */
@property --plan-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}


@keyframes plan-edge-flow {
  to {
    --plan-angle: 360deg;
  }
}


/* 套餐主推卡流光边缘：用 border-box 渐变画在边框上 *




/* 主推套餐：流光边缘脉冲 *


@keyframes plan-edge-pulse {
  0%,
  100% {
    border-color: rgba(111, 211, 255, 0.55);
    box-shadow:
      0 0 0 1px rgba(47, 143, 255, 0.2),
      0 0 24px rgba(47, 143, 255, 0.35),
      0 30px 60px -30px rgba(8, 26, 50, 0.48);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
      0 0 0 1px rgba(111, 211, 255, 0.5),
      0 0 42px rgba(47, 143, 255, 0.72),
      0 30px 60px -30px rgba(8, 26, 50, 0.48);
  }
}


/* 主推卡：稳定卡面颜色，仅边缘做流光，不与选中色互相影响 *


@keyframes plan-edge-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(47, 143, 255, 0.18),
      0 0 22px rgba(47, 143, 255, 0.3),
      0 30px 60px -30px rgba(8, 26, 50, 0.48);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(111, 211, 255, 0.38),
      0 0 34px rgba(47, 143, 255, 0.55),
      0 30px 60px -30px rgba(8, 26, 50, 0.48);
  }
}


/* 套餐卡悬停切换选中态时，主推徽标只在选中卡显示 *


/* 套餐卡切换选中态的过渡 *


/* 主推卡：循环流光边缘（旋转光带） *





/* 修正：主推徽标保持右上角绝对定位 *



/* 套餐卡：选中态平滑过渡 *






/* 保证套餐卡内容始终在渐变遮罩之上 *



/* 套餐卡：更明显的颜色淡入淡出 *




/* 淡入淡出时文字先换色，避免浅色字压在浅色底上 *




/* 背景做淡入淡出，文字颜色快速切换保证中间态可读 *



/* 文字颜色即时切换，背景保留淡入淡出 *


/* 套餐卡点击切换选中态 *




/* 主推卡：去掉旋转柔光，只保留稳定的选中描边 *


/* 套餐细则链接：悬停放大，不再出现细下划线 *



/* 主推卡：保留旋转流光，但去掉柔光光晕，只做清晰光带 *



/* 加宽流光边，旋转时更清晰（仍无柔光） *


/* 流光质感：深色尾迹 + 冰蓝过渡 + 白色高光核心 *



/* 回退：取消旋转流光与流光质感，恢复稳定选中态 *



/* 套餐标题占满整行，按钮放到底部右侧 */
#services .section-head-row {
  position: relative;
  display: block;
}

#services .section-head {
  max-width: 1136px;
}

#services .lead {
  max-width: 820px;
}

#services .section-head-row > .button {
  position: absolute;
  right: 0;
  bottom: 0;
}

@media (max-width: 760px) {
  #services .section-head-row > .button {
    position: static;
    margin-top: 12px;
  }
}

/* 内容中心标题区占满整行，按钮放到底部右侧 */
#frontier .section-head-row {
  position: relative;
  display: block;
}

#frontier .section-head {
  max-width: 1136px;
}

#frontier .lead {
  max-width: 820px;
}

#frontier .section-head-row > .button {
  position: absolute;
  right: 0;
  bottom: 0;
}

@media (max-width: 760px) {
  #frontier .section-head-row > .button {
    position: static;
    margin-top: 12px;
  }
}

/* 内容中心：按钮放到卡片下方居中 */
.frontier-status:empty {
  display: none;
}

.frontier-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* 板块进入视口淡入 */
.section {
  transition: opacity 0.7s var(--ease-out);
}

html.section-reveal-ready .section:not(.is-inview) {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.section-reveal-ready .section:not(.is-inview) {
    opacity: 1;
  }
}

/* FAQ：标题独立成行，问题列表与联系卡左右分栏 */
.faq-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 28px clamp(24px, 3.2vw, 48px);
  align-items: start;
}

.faq-aside {
  display: contents;
}

.faq-aside > .section-head {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 4px;
}

.faq-aside > .section-head .lead {
  max-width: 820px;
}

.faq-list {
  grid-column: 1;
  grid-row: 2;
}

.faq-contact {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-aside > .section-head {
    grid-column: 1;
    grid-row: 1;
  }

  .faq-list {
    grid-column: 1;
    grid-row: 2;
  }

  .faq-contact {
    grid-column: 1;
    grid-row: 3;
    position: static;
  }
}

/* 滚动条：加宽轨道，避免细窄边缘出现断层 */
* {
  scrollbar-width: auto;
  scrollbar-color: #c3d2e6 #f2f6fc;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f2f6fc;
}

::-webkit-scrollbar-thumb {
  background: #c3d2e6;
  border: 3px solid #f2f6fc;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #a9b1cf;
  border: 3px solid #f2f6fc;
  background-clip: padding-box;
}

/* 移除滚动条上下箭头，避免边缘出现三角按钮 */
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* 强制隐藏滚动条两端箭头 */
::-webkit-scrollbar-button,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* 交还给 WebKit 自定义滚动条，避免原生箭头出现在两端 */
* {
  scrollbar-width: initial !important;
  scrollbar-color: initial !important;
}

/* 滚动条轨道透明，避免深色区块右侧出现白条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c3d2e6;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #a9b1cf;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* 页脚改为四列：品牌 / 解决方案 / 行业案例 / 联系与合规 */
.footer-main {
  grid-template-columns: 1.35fr 0.9fr 1.1fr 0.9fr;
  gap: clamp(24px, 3.2vw, 48px);
}

/* 页脚品牌图标与顶部导航图标左对齐 */
@media (min-width: 1200px) {
  .footer-brand {
    margin-left: -15px;
  }
}

/* 页脚行业案例单列排列 */
.footer-cities {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 8px;
}

/* 页脚品牌图标与页眉使用同一套视觉样式 */
.footer-brand .brand-mark {
  box-shadow: 0 6px 16px -10px rgba(8, 26, 50, 0.5);
}

/* 导航子菜单：内容居中，收紧左右留白 */
.nav-submenu {
  min-width: 156px;
  padding: 6px;
}

.nav-submenu a {
  justify-content: center;
  padding: 9px 14px;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   鍙充晶娴姩瀹㈡湇锛堥鏌氬紡锛?   ========================================================================== */
.float-contact {
  position: fixed;
  right: 16px;
  top: 50%;
  z-index: 80;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.float-contact-group {
  display: grid;
  overflow: visible;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(15, 32, 56, 0.45);
}

.float-contact-item {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 84px;
  padding: 12px 6px;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  border-radius: 0;
  background: #fff;
  color: #2f3b4d;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.float-contact-item:last-child {
  border-bottom: 0;
}

.float-contact-item:hover,
.float-contact-item:focus-visible {
  background: #f6f9ff;
  color: #2f6cff;
}

.float-contact-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #2f3b4d;
}

.float-contact-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.float-contact-item.is-wechat {
  border-radius: 10px;
  background: #3b5bff;
  color: #fff;
}

.float-contact-item.is-wechat .float-contact-icon {
  color: #fff;
}

.float-contact-item.is-wechat:hover,
.float-contact-item.is-wechat:focus-visible {
  background: #2f4dff;
  color: #fff;
}

.float-contact-top {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-left: auto;
  border: 1px solid #e5ebf3;
  border-radius: 10px;
  background: #fff;
  color: #2f3b4d;
  cursor: pointer;
  box-shadow: 0 10px 26px -18px rgba(15, 32, 56, 0.4);
}

.float-contact-top svg {
  width: 24px;
  height: 24px;
}

.float-contact-top:hover {
  color: #2f6cff;
  border-color: #c8d9f5;
}

.float-contact-wechat {
  position: relative;
}

.float-contact-qr {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  z-index: 2;
  width: 244px;
  padding: 18px 18px 16px;
  border: 1px solid #e6ecf5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px -22px rgba(15, 32, 56, 0.5);
  transform: translateY(-50%);
  text-align: center;
}

.float-contact-qr::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #e6ecf5;
  border-right: 1px solid #e6ecf5;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.float-contact-qr strong {
  display: block;
  margin-bottom: 4px;
  color: #1f2d3f;
  font-size: 15px;
  line-height: 1.4;
}

.float-contact-qr p {
  margin: 0 0 10px;
  color: #5f6e82;
  font-size: 12px;
  line-height: 1.6;
}

.float-contact-qr p span {
  color: #f59e0b;
}

.float-contact-qr img {
  display: block;
  width: 200px;
  height: 190px;
  margin: 0 auto;
  object-fit: contain;
}

.float-contact-qr[hidden] {
  display: none;
}

@media (max-width: 920px) {
  .float-contact {
    right: 10px;
    top: auto;
    bottom: 12px;
    transform: none;
    gap: 8px;
  }

  .float-contact-group {
    grid-auto-flow: row;
  }

  .float-contact-item {
    width: 68px;
    padding: 9px 4px;
    font-size: 11px;
  }

  .float-contact-icon,
  .float-contact-icon svg {
    width: 24px;
    height: 24px;
  }

  .float-contact-top {
    width: 48px;
    height: 48px;
  }

  .float-contact-qr {
    width: min(238px, calc(100vw - 110px));
  }

  .float-contact-qr img {
    width: 100%;
    height: auto;
  }
}

.float-contact-entry {
  position: relative;
}

.float-contact-entry .float-contact-item,
.float-contact-entry .float-contact-item.is-wechat {
  background: #fff;
  color: #2f3b4d;
}

.float-contact-entry .float-contact-item.is-wechat .float-contact-icon {
  color: #2f3b4d;
}

.float-contact-entry:hover .float-contact-item,
.float-contact-entry.is-active .float-contact-item,
.float-contact-entry:hover .float-contact-item.is-wechat,
.float-contact-entry.is-active .float-contact-item.is-wechat {
  background: #3b5bff;
  color: #fff;
}

.float-contact-entry:hover .float-contact-item .float-contact-icon,
.float-contact-entry.is-active .float-contact-item .float-contact-icon,
.float-contact-entry:hover .float-contact-item.is-wechat .float-contact-icon,
.float-contact-entry.is-active .float-contact-item.is-wechat .float-contact-icon {
  color: #fff;
}

.float-contact-pop {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 270px;
  padding: 16px;
  border: 1px solid #e6ecf5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px -22px rgba(15, 32, 56, 0.5);
  transform: translateY(-50%);
  text-align: left;
  color: #1f2d3f;
}

.float-contact-pop::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #e6ecf5;
  border-right: 1px solid #e6ecf5;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.float-contact-pop[hidden] {
  display: none;
}

.float-contact-pop--hello {
  width: 250px;
}

.float-contact-hello-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #cfe9ff;
  background: linear-gradient(145deg, #eaf6ff, #d8ecff);
  color: #2f6cff;
}

.float-contact-hello-avatar svg {
  width: 30px;
  height: 30px;
}

.float-contact-pop strong {
  display: block;
  margin-bottom: 4px;
  color: #1f2d3f;
  font-size: 16px;
  line-height: 1.4;
}

.float-contact-pop p {
  margin: 0;
  color: #5f6e82;
  font-size: 12px;
  line-height: 1.65;
}

.float-contact-pop--qr {
  display: block;
  width: 244px;
  text-align: center;
}

.float-contact-pop--qr strong {
  font-size: 15px;
}

.float-contact-pop--qr p span {
  color: #f59e0b;
}

.float-contact-pop--qr img {
  display: block;
  width: 200px;
  height: 190px;
  margin: 0 auto;
  object-fit: contain;
}

.float-contact-pop--phone {
  width: 250px;
}

.float-contact-phone-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3b5bff;
  color: #fff;
}

.float-contact-phone-icon svg {
  width: 20px;
  height: 20px;
}

.float-contact-pop--phone p {
  line-height: 1.9;
}

.float-contact-pop--phone a {
  color: #3b5bff;
  font-weight: 600;
}

.float-contact-top-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #2f5bff;
  color: #fff;
}

.float-contact-top-icon svg {
  width: 22px;
  height: 22px;
}

.float-contact-group {
  width: 66px;
}

.float-contact-item {
  width: 66px;
  min-height: 66px;
  height: 66px;
  padding: 7px 3px;
  gap: 4px;
  font-size: 11px;
}

.float-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.float-contact-icon svg {
  width: 23px;
  height: 23px;
}

.float-contact-top {
  width: 66px;
  height: 66px;
  border-radius: 10px;
}

.float-contact-top-icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.float-contact-top-icon svg {
  width: 20px;
  height: 20px;
}

.float-contact-entry:hover .float-contact-item,
.float-contact-entry.is-active .float-contact-item,
.float-contact-entry:hover .float-contact-item.is-wechat,
.float-contact-entry.is-active .float-contact-item.is-wechat {
  background: #fff;
  color: #2f3b4d;
}

.float-contact-entry:hover .float-contact-item .float-contact-icon,
.float-contact-entry.is-active .float-contact-item .float-contact-icon,
.float-contact-entry:hover .float-contact-item.is-wechat .float-contact-icon,
.float-contact-entry.is-active .float-contact-item.is-wechat .float-contact-icon {
  color: #fff;
  background: #3b5bff;
}

@media (max-width: 920px) {
  .float-contact-group {
    width: 61px;
  }

  .float-contact-item {
    width: 61px;
    min-height: 60px;
    height: 60px;
    padding: 6px 2px;
    font-size: 10.5px;
  }

  .float-contact-icon {
    width: 25px;
    height: 25px;
  }

  .float-contact-icon svg {
    width: 21px;
    height: 21px;
  }

  .float-contact-top {
    width: 61px;
    height: 61px;
  }

  .float-contact-top-icon {
    width: 33px;
    height: 33px;
  }
}

/* 回到顶部：未选中时图标保持白色底、深色箭头 */
.float-contact-top-icon {
  background: transparent;
  color: #2f3b4d;
}

.float-contact-top:hover .float-contact-top-icon,
.float-contact-top:focus-visible .float-contact-top-icon {
  background: #3b5bff;
  color: #fff;
}

.float-contact-group > .float-contact-entry:first-child .float-contact-item {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.float-contact-group > .float-contact-entry:last-child .float-contact-item {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* 微信弹层缩小，并补上鼠标移动过渡区 */
.float-contact-pop--qr {
  width: 206px;
  padding: 14px 12px 12px;
}

.float-contact-pop--qr strong {
  font-size: 14px;
  margin-bottom: 3px;
}

.float-contact-pop--qr p {
  margin-bottom: 8px;
  font-size: 11px;
}

.float-contact-pop--qr img {
  width: 158px;
  height: 150px;
}

.float-contact-pop::before {
  content: "";
  position: absolute;
  top: 0;
  right: -16px;
  width: 16px;
  height: 100%;
}

.float-contact-entry:hover .float-contact-item,
.float-contact-entry.is-active .float-contact-item,
.float-contact-entry:hover .float-contact-item.is-wechat,
.float-contact-entry.is-active .float-contact-item.is-wechat {
  background: #fff;
  color: #3b5bff;
  font-weight: 600;
}

.float-contact-entry:hover .float-contact-item .float-contact-icon,
.float-contact-entry.is-active .float-contact-item .float-contact-icon,
.float-contact-entry:hover .float-contact-item.is-wechat .float-contact-icon,
.float-contact-entry.is-active .float-contact-item.is-wechat .float-contact-icon {
  color: #3b5bff;
  background: transparent;
}

/* 选中项整体蓝块；回到顶部同样整块变蓝且尺寸一致 */
.float-contact-entry:hover .float-contact-item,
.float-contact-entry.is-active .float-contact-item,
.float-contact-entry:hover .float-contact-item.is-wechat,
.float-contact-entry.is-active .float-contact-item.is-wechat {
  background: #3b5bff;
  color: #fff;
  font-weight: 600;
}

.float-contact-entry:hover .float-contact-item .float-contact-icon,
.float-contact-entry.is-active .float-contact-item .float-contact-icon,
.float-contact-entry:hover .float-contact-item.is-wechat .float-contact-icon,
.float-contact-entry.is-active .float-contact-item.is-wechat .float-contact-icon {
  color: #fff;
  background: transparent;
}

.float-contact-top {
  background: #fff;
  color: #2f3b4d;
  border-color: #e5ebf3;
}

.float-contact-top:hover,
.float-contact-top:focus-visible {
  background: #3b5bff;
  color: #fff;
  border-color: #3b5bff;
}

.float-contact-top:hover .float-contact-top-icon,
.float-contact-top:focus-visible .float-contact-top-icon {
  background: transparent;
  color: #fff;
}

/* 选中蓝块贴边：去掉微信项自身圆角与分隔线白边 */
.float-contact-item.is-wechat {
  border-radius: 0;
}

.float-contact-entry:hover .float-contact-item,
.float-contact-entry.is-active .float-contact-item,
.float-contact-entry:hover .float-contact-item.is-wechat,
.float-contact-entry.is-active .float-contact-item.is-wechat {
  border-bottom-color: transparent;
}

/* 选中：白边包住内部蓝色方块 */
.float-contact-entry:hover .float-contact-item,
.float-contact-entry.is-active .float-contact-item,
.float-contact-entry:hover .float-contact-item.is-wechat,
.float-contact-entry.is-active .float-contact-item.is-wechat {
  background: #3b5bff;
  color: #fff;
  border: 4px solid #fff;
  padding: 4px 2px;
}

.float-contact-top:hover,
.float-contact-top:focus-visible {
  background: #3b5bff;
  border: 4px solid #fff;
}

.float-contact-group,
.float-contact-item,
.float-contact-top {
  width: 78px;
}

@media (max-width: 920px) {
  .float-contact-group,
  .float-contact-item,
  .float-contact-top {
    width: 72px;
  }
}

/* 白色边框加宽，外框尺寸不变 */
.float-contact-entry:hover .float-contact-item,
.float-contact-entry.is-active .float-contact-item,
.float-contact-entry:hover .float-contact-item.is-wechat,
.float-contact-entry.is-active .float-contact-item.is-wechat {
  border-width: 7px;
  padding: 3px 1px;
}

.float-contact-top:hover,
.float-contact-top:focus-visible {
  border-width: 7px;
}

/* 压缩蓝色区域：加宽白边 */
.float-contact-entry:hover .float-contact-item,
.float-contact-entry.is-active .float-contact-item,
.float-contact-entry:hover .float-contact-item.is-wechat,
.float-contact-entry.is-active .float-contact-item.is-wechat {
  border-width: 10px;
  padding: 2px 0;
}

.float-contact-item .float-contact-label,
.float-contact-entry .float-contact-item span:last-child {
  font-size: 10px;
}

.float-contact-top:hover,
.float-contact-top:focus-visible {
  border-width: 10px;
}

/* 页眉咨询热线：提高辨识度 */
@media (min-width: 1061px) {
  .nav-phone {
    height: 44px;
    padding: 0 16px;
    border: 1px solid #cfe2ff;
    background: #eef5ff;
    color: #1b4dff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px -16px rgba(27, 77, 255, 0.55);
  }

  .nav-phone::before {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E")
        center / 13px no-repeat,
      #2f8fff;
    box-shadow: none;
  }

  .nav-phone:hover {
    background: #e4efff;
    border-color: #b9d6ff;
  }
}

/* 桌面端页眉导航：四个入口等间距分布 */
@media (min-width: 1061px) {
  .nav-links {
    flex: 1;
    justify-content: space-evenly;
    gap: 0;
    margin-inline: clamp(18px, 3vw, 48px);
  }

  .nav-links > a,
  .nav-parent-link {
    padding-inline: 10px;
  }
}

/* 页脚行业案例：两列，每列 4 个 */
.footer-cities {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 8px;
  row-gap: 8px;
  justify-items: start;
}

/* 页眉：电话底色加深、免费诊断底色减淡 */
.nav-phone {
  background: #dbe8ff;
  border-color: #b7d1ff;
  color: #1747c7;
}

.nav-phone:hover {
  background: #d0e1ff;
  border-color: #a9c8ff;
}

.nav-cta {
  background: linear-gradient(135deg, #86bbff 0%, #63a3ff 100%);
  box-shadow: 0 10px 22px -16px rgba(33, 92, 190, 0.45);
}

.nav-cta:hover {
  filter: brightness(1.03);
}

/* 免费诊断恢复原背景 */
.nav-cta {
  background: var(--action-gradient);
  box-shadow: 0 10px 22px -14px rgba(21, 63, 120, 0.55);
}

.nav-cta:hover {
  filter: brightness(1.06) saturate(112%);
}

@media (min-width: 900px) {
  .footer-main {
    grid-template-columns: 1.5fr 0.9fr 1fr;
    gap: clamp(28px, 4vw, 64px);
  }
}

/* 页脚底行：版权左、城市中、隐私政策最右 */
.footer-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.footer-city-links {
  justify-content: center;
}

.footer-bottom-privacy {
  justify-self: end;
  color: rgba(232, 237, 248, 0.55);
  font-size: 12.5px;
}

.footer-bottom-privacy:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-city-links {
    justify-content: flex-start;
  }

  .footer-bottom-privacy {
    justify-self: start;
  }
}

.footer-city-row {
  padding-top: 18px;
}

.footer-city-row .footer-city-links {
  justify-content: flex-start;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 700px) {
  .footer-city-row .footer-city-links {
    justify-content: flex-start;
  }
}

/* 备案号前的 ICP 标识 */
.footer-icp-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 16px;
  margin-right: 5px;
  border-radius: 4px;
  background: #2f6cff;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: -2px;
}

.footer-icp-logo {
  display: inline-block;
  width: 16px;
  height: 17px;
  margin-right: 5px;
  object-fit: contain;
  vertical-align: -3px;
}

/* 备案图标统一尺寸 */
.footer-icp-logo,
.footer-record-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  object-fit: contain;
  vertical-align: -3px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.footer-legal .footer-link {
  color: rgba(232, 237, 248, 0.55);
  font-size: 12.5px;
}

.footer-legal .footer-link:hover {
  color: #fff;
}

/* 页脚底行四项等间距 */
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
}

.footer-wechat-qr {
  margin: 4px 0 2px;
}

.footer-wechat-qr img {
  display: block;
  width: 88px;
  height: 88px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

/* 页脚品牌列：电话贴底，与右侧菜单最后一项对齐 */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-phone {
  margin-top: auto;
}

/* 页脚咨询微信列：二维码放大并与左侧电话底部对齐 */
.footer-col:last-child {
  display: flex;
  flex-direction: column;
}

.footer-col:last-child .footer-wechat-qr {
  margin-top: auto;
}

.footer-wechat-qr img {
  width: 108px;
  height: 108px;
  padding: 5px;
}

/* 页脚列底部对齐 */
.footer-col--nav {
  display: grid;
  grid-template-rows: auto 1fr;
}

.footer-col--nav .footer-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 100%;
}

.footer-col:last-child {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-items: start;
}

.footer-col:last-child .footer-wechat-qr {
  align-self: end;
  margin: 0;
}

/* 页脚咨询微信：二维码贴底对齐电话 */
.footer-col:last-child {
  grid-template-rows: auto 1fr;
}

.footer-col:last-child .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.footer-col:last-child .footer-wechat-qr {
  margin-top: auto;
}

@media (min-width: 1200px) {
  .footer-city-row,
  .footer-shell {
    padding-left: 17px;
  }
}

/* 电话文字行高收紧，底部与右侧菜单、二维码对齐 */
.footer-phone {
  line-height: 1;
}

@media (min-width: 900px) {
  .footer-col:last-child .footer-wechat-qr {
    margin-right: -32px;
  }
}

.footer-phone-label {
  margin-right: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(232, 237, 248, 0.62);
  vertical-align: 2px;
}

/* 二维码右侧留白与左侧介绍文字留白一致 */
@media (min-width: 900px) {
  .footer-col:last-child .footer-wechat-qr {
    margin-right: -15px;
  }
}

@media (min-width: 900px) {
  .footer-bottom-privacy {
    margin-right: -15px;
  }
}

/* 页脚：热线标签与号码同字号；三列等宽等间距 */
.footer-phone-label {
  font-size: inherit;
  font-weight: 600;
  color: #eaf1ff;
  vertical-align: 0;
  margin-right: 6px;
}

@media (min-width: 900px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 56px);
  }
}

/* 咨询微信标题和微信号右对齐到二维码右边缘 */
@media (min-width: 900px) {
  .footer-col:last-child {
    text-align: right;
  }

  .footer-col:last-child .footer-contact {
    align-items: flex-end;
  }

  .footer-col:last-child .footer-col-title,
  .footer-col:last-child .footer-contact > a {
    margin-right: -15px;
  }
}

/* 咨询微信列整体左对齐 */
@media (min-width: 900px) {
  .footer-col:last-child {
    text-align: left;
  }

  .footer-col:last-child .footer-contact {
    align-items: flex-start;
  }

  .footer-col:last-child .footer-col-title,
  .footer-col:last-child .footer-contact > a {
    margin-right: 0;
  }

  .footer-col:last-child .footer-wechat-qr {
    align-self: flex-start;
    margin-left: 0;
    margin-right: 0;
  }
}

/* 二维码放大，底部保持对齐 */
.footer-wechat-qr img {
  width: 132px;
  height: 132px;
  padding: 6px;
}

/* 页脚三块按实际内容等间隔分布 */
@media (min-width: 900px) {
  .footer-main {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    column-gap: 0;
  }

  .footer-brand {
    flex: 0 0 430px;
    max-width: 430px;
  }

  .footer-col--nav,
  .footer-col:last-child {
    flex: 0 0 auto;
  }
}

@media (min-width: 1200px) {
  .footer-city-row {
    padding-right: 17px;
  }

  .footer-city-row .footer-city-links {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }
}

@media (min-width: 1200px) {
  .footer-city-row .footer-city-label {
    margin-right: 0;
  }
}

@media (min-width: 900px) {
  .footer-brand {
    flex: 0 0 315px;
    max-width: 315px;
  }
}

@media (min-width: 900px) {
  .footer-brand {
    flex: 0 0 308px;
    max-width: 308px;
  }
}

@media (min-width: 900px) {
  .footer-col--nav {
    transform: translateX(-3px);
  }
}

/* 页脚两个栏目标题更醒目 */
.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #eaf1ff;
}

/* 页脚栏目标题用品牌浅蓝强调 */
.footer-col-title {
  color: #9cc4ff;
}

/* 咨询微信整列右移，二维码右侧对齐隐私政策，标题对齐二维码左缘 */
@media (min-width: 900px) {
  .footer-col:last-child {
    transform: translateX(15px);
  }
}

/* 页脚品牌图标去掉边缘光圈，避免看起来填充不完整 */
.footer-brand .brand-mark {
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.55);
}

/* 页脚品牌图标略放大 */
.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

/* 页脚品牌图标恢复原尺寸 */
.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* 移动端下拉导航：用不透明底色，避免透出首屏标题 */
@media (max-width: 1060px) {
  .nav-links {
    background: #fff;
  }
}

/* ---------- 移动端客服：改成底部双按钮操作栏，避免悬浮遮挡正文 ---------- */
@media (max-width: 720px) {
  body {
    padding-bottom: 72px;
  }

  .float-contact {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    display: block;
    transform: none;
    z-index: 90;
  }

  .float-contact-group {
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e5ebf3;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 30px -22px rgba(15, 32, 56, 0.5);
    backdrop-filter: blur(8px);
  }

  .float-contact-entry {
    flex: 1 1 0;
    min-width: 0;
  }

  .float-contact-entry .float-contact-item,
  .float-contact-entry .float-contact-item.is-wechat {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #fff;
    color: #2f3b4d;
    font-size: 13px;
    box-shadow: none;
  }

  .float-contact-entry .float-contact-item > span:not(.float-contact-icon) {
    display: inline;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .float-contact-entry:first-child .float-contact-item {
    border-color: #3b5bff;
    background: #3b5bff;
    color: #fff;
  }

  .float-contact-entry:first-child .float-contact-icon {
    color: #fff;
  }

  .float-contact-item {
    transition: background-color 0.18s ease, border-color 0.18s ease,
      color 0.18s ease, transform 0.12s ease;
  }

  .float-contact-item:active {
    transform: scale(0.98);
  }

  .float-contact-entry:hover .float-contact-item,
  .float-contact-entry.is-active .float-contact-item,
  .float-contact-entry:hover .float-contact-item.is-wechat,
  .float-contact-entry.is-active .float-contact-item.is-wechat {
    border-color: #2440df;
    background: #2440df;
    color: #fff;
  }

  .float-contact-entry.is-active .float-contact-item {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  }

  .float-contact-entry:hover .float-contact-item .float-contact-icon,
  .float-contact-entry.is-active .float-contact-item .float-contact-icon,
  .float-contact-entry:hover .float-contact-item.is-wechat .float-contact-icon,
  .float-contact-entry.is-active .float-contact-item.is-wechat .float-contact-icon {
    background: transparent;
    color: #fff;
  }

  .float-contact-item > span:not(.float-contact-icon) {
    display: inline;
  }

  .float-contact-icon,
  .float-contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .float-contact-top {
    display: none;
  }

  .float-contact-pop,
  .float-contact-qr {
    position: fixed;
    left: 12px;
    right: auto;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    top: auto;
    width: min(260px, calc(100vw - 24px));
    transform: none;
    z-index: 95;
  }

  .float-contact-qr::after {
    display: none;
  }
}

/* ---------- 移动端页脚：品牌全宽，导航两列，二维码右上 ---------- */
/* 桌面端用 order 还原：版权 → ICP → 公网安备 → 隐私政策 */
.footer-legal-line {
  display: contents;
}

.footer-copy {
  order: 1;
}

.footer-icp {
  order: 2;
}

.footer-record {
  order: 3;
}

.footer-bottom-privacy {
  order: 4;
}

@media (max-width: 900px) {
  .footer {
    padding-top: 26px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 20px;
    padding-bottom: 12px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    gap: 12px;
  }

  .footer-desc {
    max-width: none;
    font-size: 13px;
    line-height: 1.75;
  }

  .footer-phone {
    font-size: 22px;
  }

  .footer-col--nav {
    grid-column: 1;
    align-self: start;
    display: block;
  }

  .footer-col-title {
    display: block;
    margin-bottom: 4px;
  }

  .footer-col--nav .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    min-height: 0;
    justify-content: initial;
  }

  .footer-col:last-child {
    grid-column: 2;
    justify-self: end;
    align-self: start;
    display: block;
  }

  .footer-col:last-child .footer-contact,
  .footer-col:last-child .footer-wechat-qr {
    margin: 0;
    align-self: start;
  }

  .footer-wechat-qr img {
    width: 72px;
    height: 72px;
    padding: 4px;
  }

  .footer-city-row {
    padding-top: 8px;
  }

  .footer-city-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: initial;
    gap: 6px 6px;
    font-size: clamp(9.5px, 3vw, 12.5px);
  }

  .footer-city-links a {
    white-space: nowrap;
  }

  .footer-city-links .footer-city-label {
    grid-column: 1 / -1;
    margin-right: 0;
  }

  .footer-shell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 18px;
    text-align: left;
    font-size: 12px;
  }

  .footer-legal-line {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .footer-legal-line--records .footer-record {
    order: 1;
  }

  .footer-legal-line--records .footer-icp {
    order: 2;
  }

  .footer-shell .footer-link,
  .footer-shell .footer-copy {
    font-size: 12px;
  }
}

@media (max-width: 440px) {
  .footer-col--nav .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-col:last-child .footer-wechat-qr {
    margin-top: 0;
  }

  .footer-shell {
    column-gap: 8px;
    font-size: 11px;
  }

  .footer-shell .footer-link,
  .footer-shell .footer-copy {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .footer-shell {
    column-gap: 6px;
    font-size: 10.5px;
  }

  .footer-shell .footer-link,
  .footer-shell .footer-copy {
    font-size: 10.5px;
  }
}



