/* ===== 基础变量与重置 ===== */
:root {
  --bg: #0a0e1a;
  --bg-soft: #0e1424;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-dim: #94a3b8;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --grad: linear-gradient(120deg, #3b82f6, #06b6d4);
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: rgba(59, 130, 246, 0.4); }
a { text-decoration: none; color: inherit; }

/* ===== 导航栏 ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; transition: all 0.35s ease;
}
nav.scrolled {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-img {
  height: 40px; width: auto; display: block;
  transition: opacity 0.3s, height 0.35s ease;
}
.logo:hover .logo-img { opacity: 0.88; }
nav.scrolled .logo-img { height: 33px; }
.footer-brand .logo-img { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: 15px;
  transition: color 0.25s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -7px;
  width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 9px 22px !important; border-radius: 99px; color: #fff !important;
  background: var(--grad); font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 6px 0; border-radius: 2px; transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: 140px 24px 80px;
  background:
    radial-gradient(ellipse 60% 45% at 70% 18%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 18% 72%, rgba(139, 92, 246, 0.13), transparent);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 99px; font-size: 13.5px;
  color: #93c5fd; background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3); margin-bottom: 26px;
}
.hero-badge i {
  width: 7px; height: 7px; border-radius: 50%; background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee; animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 72px); line-height: 1.2;
  font-weight: 800; letter-spacing: -1px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead {
  margin-top: 22px; font-size: clamp(15.5px, 1.9vw, 18.5px);
  color: var(--text-dim); max-width: 640px;
}
.hero-actions { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px; font-size: 15.5px; font-weight: 600;
  transition: 0.28s; cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(6, 182, 212, 0.45); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.1); }
.hero-stats {
  margin-top: 88px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  padding: 24px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.stat b { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; color: #fff; display: block; }
.stat b em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 14px; color: var(--text-dim); }

/* ===== 通用区块 ===== */
section { padding: 110px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.sec-tag {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 2px;
  color: #67e8f9; background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25); margin-bottom: 18px;
}
.sec-title { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -0.5px; }
.sec-desc { margin-top: 14px; color: var(--text-dim); font-size: 16.5px; max-width: 660px; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== 关于我们 ===== */
.about-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 64px; align-items: center; margin-top: 56px;
}
.about-text h3 { font-size: 23px; font-weight: 700; margin-bottom: 16px; }
.about-text p { color: var(--text-dim); margin-bottom: 15px; }
.about-points { margin-top: 26px; display: grid; gap: 18px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.25);
}
.point b { display: block; font-size: 15.5px; }
.point p { color: var(--text-dim); font-size: 14.5px; }
.about-visual { position: relative; min-height: 420px; }
.orb { position: absolute; border-radius: 50%; filter: blur(62px); opacity: 0.5; }
.orb-1 { width: 290px; height: 290px; background: #2563eb; top: 6%; left: 8%; animation: float 8s ease-in-out infinite; }
.orb-2 { width: 230px; height: 230px; background: #7c3aed; bottom: 4%; right: 4%; animation: float 10s ease-in-out infinite reverse; }
.orb-3 { width: 170px; height: 170px; background: #0891b2; top: 44%; right: 28%; animation: float 12s ease-in-out infinite 1s; }
@keyframes float { 50% { transform: translateY(-24px); } }
.visual-card {
  position: absolute; padding: 18px 22px; border-radius: 14px;
  background: rgba(14, 20, 36, 0.85); border: 1px solid var(--border);
  backdrop-filter: blur(12px); box-shadow: 0 18px 44px rgba(0,0,0,0.45);
  font-size: 14px; animation: float 9s ease-in-out infinite; z-index: 2;
}
.visual-card b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14.5px; margin-bottom: 4px; }
.visual-card p { color: var(--text-dim); font-size: 13.5px; margin: 0; }
.vc-1 { top: 8%; right: 2%; }
.vc-2 { top: 42%; left: 0; animation-delay: 1.5s; }
.vc-3 { bottom: 8%; right: 14%; animation-delay: 3s; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.dot.blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.dot.purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

/* ===== 五步服务流程 ===== */
.flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 50px; position: relative;
}
/* 贯穿五步的背景连接线，位于编号圆中心高度 */
.flow::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 34px;
  height: 2px; z-index: 0;
  background: linear-gradient(90deg,
    rgba(59,130,246,0.10) 0%, rgba(6,182,212,0.55) 50%, rgba(59,130,246,0.10) 100%);
  background-size: 220% 100%;
  animation: flowMove 3.2s linear infinite;
}
@keyframes flowMove {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}

.flow-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 14px 20px; border-radius: 14px;
  background: rgba(14, 20, 36, 0.92);
  border: 1px solid var(--border);
  opacity: 0.3; transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease,
              border-color 0.35s ease, background 0.35s ease;
}
.flow-step.lit { opacity: 1; transform: none; }
.flow-step:hover {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(59, 130, 246, 0.1);
}

.flow-head { display: flex; align-items: center; gap: 10px; }
.flow-num {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
  animation: numGlow 3s ease-in-out infinite;
}
/* 五个圆错开，形成波浪式呼吸 */
.flow-step:nth-child(1) .flow-num { animation-delay: 0s; }
.flow-step:nth-child(2) .flow-num { animation-delay: 0.22s; }
.flow-step:nth-child(3) .flow-num { animation-delay: 0.44s; }
.flow-step:nth-child(4) .flow-num { animation-delay: 0.66s; }
.flow-step:nth-child(5) .flow-num { animation-delay: 0.88s; }
@keyframes numGlow {
  0%, 100% { box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45); }
  50% {
    box-shadow: 0 6px 28px rgba(6, 182, 212, 0.8),
                0 0 0 6px rgba(6, 182, 212, 0.09);
    transform: translateY(-2px);
  }
}

.flow-step b {
  font-size: 16px; font-weight: 700; white-space: nowrap;
  background: linear-gradient(120deg, #fff, #c7d9ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.flow-step > span {
  display: block; margin-top: 10px; font-size: 12.5px; line-height: 1.6;
  color: var(--text-dim); text-align: center; letter-spacing: 0.2px;
}

/* 卡片之间的箭头（桌面端） */
.flow-step::after {
  content: ""; position: absolute; top: 31px; right: -13px; z-index: 2;
  width: 0; height: 0;
  border-left: 6px solid rgba(6, 182, 212, 0.9);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  animation: arrowPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.7));
}
@keyframes arrowPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.flow-step:last-child::after { display: none; }

/* ===== 核心业务卡片 ===== */

/* ===== 核心业务卡片 ===== */
/* 4 个板块一行铺满 */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 56px;
}
.card {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  transition: transform 0.35s, border-color 0.35s, background 0.35s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.07);
}
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.22);
  margin-bottom: 20px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 16px; }
.card ul { list-style: none; display: grid; gap: 8px; }
.card li {
  font-size: 13.5px; color: var(--text-dim);
  padding-left: 18px; position: relative;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
}

/* ===== 联系我们 ===== */
#contact { background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.05), transparent); }
/* 左栏信息 + 右栏表单：顶部对齐，右栏表单吸附（左栏很长时表单跟随滚动，视觉始终成对） */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-top: 52px; align-items: stretch;
}
/* 左栏：2×2 信息卡（二维码已移至右栏）
   第三行（分部卡片）设为 1fr：右栏因内容变高（如城市推荐提示条展开）时，
   左栏被 stretch 拉高，分部卡片会自动吃掉多余高度，
   底边仍与右栏齐平，不会在左栏底部留一截空白。 */
.contact-info {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
}
.contact-info .branches { grid-column: 1 / -1; }
.info-item {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px 19px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.info-item:hover {
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(59, 130, 246, 0.07);
  transform: translateY(-2px);
}
.info-icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.25);
}
.info-item b { display: block; font-size: 15px; margin-bottom: 4px; letter-spacing: 0.2px; }
.info-item p { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }
.info-item p a { transition: opacity 0.25s; }
.info-item p a:hover { opacity: 0.75; }

/* 分公司：整行横跨，内部多列。
   用 flex 列布局 + .br-list flex:1，让城市列表吃掉卡片内的剩余高度，
   多余空间由各行平分（grid 默认 align-content:stretch 会拉伸 auto 行），
   分隔线保持连续，底部不空一截。 */
.branches {
  grid-column: 1 / -1; margin-top: 4px;
  padding: 22px 20px 10px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.branches h4 {
  font-size: 15px; font-weight: 700; margin-bottom: 4px;
  display: flex; align-items: center; gap: 9px;
}
.branches h4::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px;
  background: var(--grad); flex: none;
}
.branches .br-hint { font-size: 12.5px; color: #64748b; margin-bottom: 15px; }
.br-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  flex: 1 1 auto;   /* 吃掉分部卡片内的剩余高度，各行平分 */
}
/* 每个城市一格，用分隔线切成规整网格，左边缘天然对齐 */
.br-item {
  font-size: 12.5px; line-height: 1.62;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.br-item:nth-child(3n+1) { padding-left: 0; }
.br-item:nth-child(3n) { padding-right: 0; }
.br-item:nth-child(3n+2) { border-left: 1px solid var(--border); }
.br-item:nth-child(3n) { border-left: 1px solid var(--border); }
.br-item .city {
  display: inline-block; font-weight: 700; color: #bfdbfe;
  background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 6px; padding: 1px 8px; margin: 0 7px 4px 0;
  font-size: 12px; white-space: nowrap; vertical-align: 1px;
}
.br-item .addr { color: var(--text-dim); word-break: break-word; }
.br-item .tel { color: #7dd3fc; font-size: 12.5px; display: block; margin-top: 7px; letter-spacing: 0.2px; }

.contact-form {
  padding: 32px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  display: grid; gap: 17px; align-content: start;
}
/* 右栏：表单 + 二维码卡片；撑满网格行高，使底部与左栏齐平 */
.contact-right {
  display: flex; flex-direction: column; gap: 16px;
  height: 100%;
}
/* 卡片自动吃掉剩余高度，内容垂直居中，避免底部空一截 */
.contact-right .qr-card { flex: 1 1 auto; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: #cbd5e1; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: rgba(59, 130, 246, 0.08);
}
.field textarea { resize: vertical; }
.field select option { background: #0e1424; }
.form-note { font-size: 12.5px; color: #64748b; text-align: center; margin: -4px 0 0; }

/* 算术验证码（默认关闭；script.js 里 CAPTCHA_ENABLED = true 时才渲染出来） */
.captcha-row { display: flex; align-items: center; gap: 12px; margin-top: -2px; }
.captcha-q {
  flex: 0 0 auto; padding: 11px 16px; border-radius: 10px; font-size: 15px; font-weight: 700;
  letter-spacing: 1px; color: #93c5fd;
  background: rgba(59, 130, 246, 0.10); border: 1px solid rgba(59, 130, 246, 0.28);
}
.captcha-a {
  flex: 1 1 auto; min-width: 0; padding: 12px 15px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color 0.25s, background 0.25s;
}
.captcha-a:focus { outline: none; border-color: var(--blue); background: rgba(59, 130, 246, 0.08); }
.form-tip {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac; grid-column: 1 / -1; text-align: center;
}

/* ===== 页脚 ===== */
footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3); padding-top: 60px; margin-top: 40px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 14px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col b { font-size: 15px; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: var(--text-dim); font-size: 14px; transition: color 0.25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px 0;
}
.footer-bottom p { color: #64748b; font-size: 13px; text-align: center; }

/* ===== 资质荣誉标签 ===== */
.badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--border);
}
.badge {
  padding: 9px 18px; border-radius: 99px; font-size: 13.5px;
  color: #bfdbfe; background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.24);
  transition: 0.28s;
}
.badge:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.5); }

/* ===== 发展历程时间线 ===== */
.timeline {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 18px; margin-top: 44px;
}
.tl-item {
  padding: 22px 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border);
  position: relative; transition: 0.3s;
}
.tl-item::before {
  content: ""; position: absolute; top: -7px; left: 20px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
}
.tl-item:hover { border-color: rgba(59, 130, 246, 0.45); transform: translateY(-4px); }
.tl-item b { font-size: 20px; font-weight: 800; color: #fff; display: block; }
.tl-item p { font-size: 13px; color: var(--text-dim); margin-top: 6px; line-height: 1.6; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .flow::before { display: none; }
  .flow-step::after { display: none; }
  .flow-step:nth-child(4) { grid-column: 1 / 2; }
  .flow-step:nth-child(5) { grid-column: 2 / 3; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { min-height: 360px; }
  .contact-grid { grid-template-columns: 1fr; }
  /* 单列布局下取消拉伸 */
  .contact-right { height: auto; }
  .contact-right .qr-card { flex: 0 0 auto; }
  /* 平板 2 列：重置 3 列分隔规则，改用 2 列节奏 */
  .br-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .br-item, .br-item:nth-child(n) {
    padding: 13px 18px; border-left: none;
  }
  .br-item:nth-child(odd) { padding-left: 0; }
  .br-item:nth-child(even) { border-left: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; top: 0;
    width: 78%; max-width: 320px; height: 100vh;
    flex-direction: column; align-items: flex-start; gap: 26px;
    padding: 100px 32px; background: #0d1424;
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: block; }
  section { padding: 76px 20px; }
  .hero { padding: 120px 20px 60px; min-height: auto; }
  /* 手机端标题字号收小到 25px，保证最长的第二行「一站式科研组织原位染色检测」完整放下不拆词 */
  .hero h1 { font-size: clamp(23px, 6.4vw, 25px); line-height: 1.32; letter-spacing: -0.3px; }
  .cards { grid-template-columns: 1fr; }
  .card:last-child { grid-column: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .flow { grid-template-columns: 1fr; gap: 10px; margin-top: 34px; }
  .flow-step:nth-child(4), .flow-step:nth-child(5) { grid-column: auto; }
  /* 手机端：编号 + 名称在上，说明在下，避免右侧文字被挤压换行 */
  .flow-step {
    flex-direction: row; align-items: center; flex-wrap: wrap;
    padding: 16px 18px; gap: 0 14px;
    border-radius: 12px;
  }
  .flow-head { gap: 12px; flex: 1 1 auto; min-width: 0; }
  .flow-num { width: 40px; height: 40px; border-radius: 11px; font-size: 13.5px; }
  .flow-step b { font-size: 16.5px; }
  .flow-step > span {
    flex: 1 1 100%; margin: 9px 0 0 52px;
    text-align: left; font-size: 12.5px; line-height: 1.5;
    color: #7e8ca3;
  }
  .logo-img { height: 35px; }
  nav.scrolled .logo-img { height: 29px; }
  .footer-brand .logo-img { height: 39px; }
  .badges { gap: 8px; }
  .badge { font-size: 12.5px; padding: 7px 14px; }
  .hero-stats { gap: 12px; }
  .stat { padding: 18px 20px; }
  .contact-form { padding: 24px 22px; }
  /* 单列时 info-item 各占一行（共 5 行），必须清掉桌面端的 3 行定义，
     否则第 3 行会被强制拉伸、布局错乱 */
  .contact-info { grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
  .info-item { padding: 18px 17px; }
  .branches { padding: 20px 17px; }
  .br-list { grid-template-columns: 1fr; }
  /* 单列布局：所有格子统一「左右 0 内边距 + 无左边框 + 无 3 列分隔规则」，
     保证每行城市标签都紧贴左边缘、上下用底边框分隔。
     注意必须写 .br-item:nth-child(n) —— 只写 3n / 3n+2 会漏掉第 4、10 格
     （长沙、西安），它们既不是奇数也不匹配那两个式子，
     会残留 1024 断点的 18px 左内边距 + 1px 左边框，看起来「没靠左」。 */
  .br-item, .br-item:nth-child(n) {
    padding: 12px 0;
    padding-left: 0;
    padding-right: 0;
    border-left: none;
  }
  .br-item .city { margin-bottom: 3px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .vc-2 { left: -4%; }
}
/* ===== 扫码咨询卡片（表单下方，与左栏底部对齐） ===== */
.qr-card {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 143, 232, 0.12), rgba(0, 214, 192, 0.08));
  border: 1px solid rgba(47, 143, 232, 0.28);
}
/* 右栏内被拉伸时，让二维码与文案整体垂直居中 */
.contact-right .qr-card > * { align-self: center; }
.qr-img {
  flex: 0 0 116px; width: 116px; height: 116px; border-radius: 10px;
  background: #fff; padding: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.qr-img img { width: 100%; height: 100%; display: block; border-radius: 6px; object-fit: contain; }
.qr-text { min-width: 0; }
.qr-text b {
  display: flex; align-items: center; gap: 8px;
  font-size: 15.5px; color: #fff; margin-bottom: 8px;
}
.qr-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: qrPulse 2s ease-in-out infinite;
}
@keyframes qrPulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.06); } }
/* 首次进入的轻抖动，提示可点击 */
.cs-bounce { animation: csBounce 0.7s ease-in-out 3; }
@keyframes csBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}
.qr-text p { font-size: 13.5px; color: #cbd5e1; line-height: 1.7; margin: 0 0 8px; }
.qr-note { font-size: 12px; color: #7f92ab; }

/* ===== 悬浮在线客服 ===== */
.cs-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  /* ★ 关键：容器本身不接收指针事件。
     .cs-panel 平时只是 visibility:hidden，仍参与布局并撑高父容器，
     导致 .cs-float 变成一块 232×402 的透明区域（手机上覆盖屏幕右侧约 62% 宽、
     下半屏约 50% 高），把下面的表单输入框、正文长按选区全部挡住。
     只放行按钮和「展开后」的面板即可。 */
  pointer-events: none;
}
.cs-float > * { pointer-events: auto; }
.cs-btn {
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 18px; border: 0; border-radius: 26px;
  background: linear-gradient(135deg, #2f8fe8, #00d6c0);
  color: #fff; font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; box-shadow: 0 10px 26px rgba(47, 143, 232, 0.42);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cs-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(47, 143, 232, 0.52); }
.cs-btn:active { transform: translateY(0); }
.cs-btn svg { flex: 0 0 22px; }
/* 有未读提示的小红点，加强"可直接对话"的暗示 */
.cs-btn::after {
  content: ""; position: absolute; top: 8px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: #f43f5e;
  border: 2px solid #0e1424;
}
.cs-btn { position: relative; }

.cs-panel {
  width: 258px; border-radius: 16px; overflow: hidden;
  background: rgba(14, 20, 36, 0.97); border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.97);
  transform-origin: bottom right;
  /* 收起时彻底不接收事件：visibility:hidden 已断事件，但这里显式声明更保险，
     同时避免某些安卓 WebView 上 opacity:0 元素仍参与命中测试的差异。 */
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.cs-panel.open {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cs-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(47, 143, 232, 0.16), rgba(0, 214, 192, 0.1));
}
.cs-panel-hd b { font-size: 14px; color: #fff; }
.cs-close {
  width: 24px; height: 24px; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: #94a3b8;
  font-size: 17px; line-height: 1; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cs-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cs-panel-body { padding: 18px 15px 16px; text-align: center; }
.cs-panel-body img {
  width: 178px; height: 178px; border-radius: 10px; background: #fff;
  padding: 6px; margin: 0 auto 10px; display: block;
}
/* 二维码容器：仅展示，不做链接（企业微信添加链接在普通浏览器打开是白屏） */
.cs-qr-box {
  border-radius: 12px; padding: 4px; display: inline-block;
}
.cs-panel-body p { font-size: 13px; color: #cbd5e1; margin: 8px 0 10px; line-height: 1.6; }
.cs-tel {
  display: inline-block; font-size: 13px; color: #93c5fd; text-decoration: none;
  padding: 6px 14px; border-radius: 8px; background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.cs-tel:hover { background: rgba(59, 130, 246, 0.22); }

@media (max-width: 768px) {
  .qr-card { flex-direction: column; text-align: center; gap: 14px; padding: 18px 16px; }
  .qr-text b { justify-content: center; }
  .cs-float { right: 14px; bottom: 14px; }
  .cs-btn { height: 46px; padding: 0 16px 0 14px; font-size: 14px; }
  .cs-btn-label { display: none; }
  .cs-btn { width: 46px; padding: 0; justify-content: center; }
  .cs-panel { width: 232px; }
  .cs-panel-body img { width: 156px; height: 156px; }
}

/* 超窄屏（iPhone SE 等 320px）：缩小装饰光球，避免右边缘溢出产生横向滚动条 */
@media (max-width: 400px) {
  .orb-1 { width: 190px; height: 190px; left: 2%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
