/* ============================================================
   武汉市维多利 · 官网样式
   深色科技风 + 光效 ｜ 苹果式大字号留白
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
  --bg: #080b14;
  --bg-soft: #0b101f;
  --panel: rgba(13, 20, 36, 0.62);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e6ebf5;
  --muted: #8b96ad;
  --accent: #2f81f7;
  --accent2: #22d3ee;
  --grad: linear-gradient(135deg, #2f81f7 0%, #22d3ee 100%);
  --radius: 18px;
  --nav-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(47, 129, 247, 0.35); color: #fff; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* 细滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.25); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 通用 ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: clamp(76px, 10vw, 128px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(47,129,247,.045), rgba(8,11,20,0) 42%); }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto clamp(44px, 6vw, 72px); }
.sec-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--accent2);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 999px;
  margin-bottom: 20px;
  background: rgba(34,211,238,.06);
}
.sec-head h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.sec-head .note { color: #5b657a; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(47, 129, 247, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(47, 129, 247, 0.42); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-2px); }
.btn-ghost .arr { transition: transform .25s ease; }
.btn-ghost:hover .arr { transform: translateX(4px); }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 11, 20, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(8, 11, 20, 0.88); border-bottom-color: var(--line); }
.nav-inner {
  width: min(1180px, 92vw); height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; font-size: 15px; color: var(--muted);
  border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(148,163,184,.1); }
.nav-cta { margin-left: 12px; padding: 9px 22px; font-size: 14px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: min(880px, 90vw); height: 520px;
  background:
    radial-gradient(42% 46% at 38% 42%, rgba(47,129,247,.26), transparent 70%),
    radial-gradient(38% 44% at 66% 58%, rgba(34,211,238,.18), transparent 70%);
  filter: blur(6px);
  animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 38%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 38%, #000 30%, transparent 78%);
}
.hero-beam {
  position: absolute; top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,.55), transparent);
  animation: beamSweep 6.5s ease-in-out infinite;
  opacity: .5;
}
@keyframes beamSweep {
  0%, 100% { transform: translateX(-50%) translateY(-6%) scaleY(.82); opacity: .35; }
  50% { transform: translateX(-50%) translateY(4%) scaleY(1); opacity: .6; }
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px rgba(34,211,238,.9);
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .5; }
  100% { transform: translateY(-46vh); opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; text-align: center; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .18em; color: var(--muted);
  margin-bottom: 26px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent2); box-shadow: 0 0 12px var(--accent2);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse { 50% { opacity: .35; } }
.hero-title {
  font-size: clamp(40px, 7.4vw, 88px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-shadow: 0 10px 60px rgba(8,11,20,.9);
}
.hero-sub {
  margin-top: 26px; font-size: clamp(16px, 2.2vw, 21px);
  color: var(--muted); line-height: 1.9;
}
.hero-sub b { color: var(--accent2); font-weight: 600; }
.hero-tags {
  margin-top: 30px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.hero-tags span {
  font-size: 13px; padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--muted);
  background: rgba(13,20,36,.4);
  backdrop-filter: blur(4px);
}
.hero-cta { margin-top: 42px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 10px; letter-spacing: .34em;
}
.hero-scroll .line {
  width: 1px; height: 46px; background: var(--line-strong);
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--accent2);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 能力总览 ---------- */
.caps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .3s ease;
}
.cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,.4);
  box-shadow: 0 24px 60px rgba(8,11,20,.7), 0 0 40px rgba(47,129,247,.08);
}
.cap-card:hover::before { opacity: 1; }
.cap-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .45s ease;
}
.cap-card:hover .cap-bg { opacity: .22; }
.cap-card > * { position: relative; z-index: 1; }
.cap-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cap-code {
  font-size: 30px; font-weight: 800; line-height: 1;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  opacity: .9;
}
.cap-role {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.cap-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.cap-card > p { font-size: 14px; color: var(--muted); min-height: 44px; }
.cap-key { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cap-key li {
  font-size: 12.5px; color: var(--text);
  padding: 5px 11px; border-radius: 8px;
  background: rgba(47,129,247,.1);
  border: 1px solid rgba(47,129,247,.22);
}

/* ---------- 核心产品 ---------- */
.prod-list { display: grid; gap: 16px; }
.prod-row {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.prod-row:hover { border-color: rgba(47,129,247,.35); box-shadow: 0 18px 50px rgba(8,11,20,.6); }
.prod-code {
  font-size: 13px; font-weight: 700; letter-spacing: .2em;
  color: var(--accent2);
}
.prod-info h3 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin: 6px 0 14px; }
.prod-items li {
  position: relative; padding-left: 20px; margin-bottom: 6px;
  color: var(--muted); font-size: 15px;
}
.prod-items li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--grad); transform: rotate(45deg);
}
.prod-scene { border-left: 1px solid var(--line); padding-left: 30px; }
.scene-label { font-size: 12px; letter-spacing: .2em; color: var(--muted); display: block; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text);
  background: rgba(148,163,184,.05);
}

/* ---------- 差异化优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.adv-item {
  position: relative;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.adv-item:hover { transform: translateY(-4px); box-shadow: 0 0 40px rgba(47,129,247,.14); }
.adv-num {
  font-size: 13px; font-weight: 800; letter-spacing: .12em;
  color: var(--accent2); display: block; margin-bottom: 12px;
}
.adv-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.adv-item p { font-size: 14px; color: var(--muted); }
.adv-hot {
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 46px rgba(47,129,247,.12);
}
.adv-hot .adv-num, .adv-hot h3 { color: #fff; }
.hot-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; padding: 4px 11px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 4px 18px rgba(47,129,247,.4);
}

/* ---------- 案例 ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.35); box-shadow: 0 24px 60px rgba(8,11,20,.7); }
.case-visual {
  position: relative; height: 150px;
  display: flex; align-items: flex-end; padding: 14px;
  background-size: cover; background-position: center;
}
.case-visual.v1 {
  background:
    url("../assets/cases/case1.png") center/cover no-repeat,
    radial-gradient(60% 90% at 30% 20%, rgba(47,129,247,.5), transparent 65%),
    radial-gradient(50% 70% at 78% 70%, rgba(34,211,238,.4), transparent 62%),
    linear-gradient(160deg, #0d1730, #0a0f1e);
}
.case-visual.v2 {
  background:
    url("../assets/cases/case2.png") center/cover no-repeat,
    linear-gradient(115deg, rgba(47,129,247,.42), transparent 55%),
    linear-gradient(200deg, transparent 40%, rgba(34,211,238,.34)),
    linear-gradient(160deg, #0f1833, #0a0f1e);
}
.case-visual.v3 {
  background:
    url("../assets/cases/case3.png") center/cover no-repeat,
    radial-gradient(70% 70% at 70% 30%, rgba(34,211,238,.45), transparent 66%),
    linear-gradient(140deg, #0d1c33, #0a0f1e);
}
.case-visual.v4 {
  background:
    url("../assets/cases/case4.png") center/cover no-repeat,
    linear-gradient(150deg, rgba(47,129,247,.36), rgba(34,211,238,.28)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px),
    linear-gradient(160deg, #0e1731, #0a0f1e);
}
.case-visual::after {
  content: "";
  position: absolute; top: 12px; left: 12px;
}
.case-tag {
  font-size: 11px; padding: 4px 11px; border-radius: 999px;
  background: rgba(8,11,20,.72); border: 1px solid var(--line-strong);
  color: var(--accent2); backdrop-filter: blur(4px);
}
.case-body { padding: 18px 18px 20px; }
.case-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.case-body p { font-size: 13px; color: var(--muted); }

/* 案例区引流（链接 + 扫码双通道） */
.case-more { margin-top: 46px; }
.case-more-label {
  display: block; text-align: center; font-size: 12px; letter-spacing: .26em;
  color: var(--muted); margin-bottom: 24px;
}
.platform-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 860px; margin: 0 auto;
}
.platform-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  text-align: center;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.platform-card:hover {
  border-color: rgba(34, 211, 238, .35);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(8, 11, 20, .6);
}
.platform-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-align: left; }
.platform-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: rgba(47, 129, 247, .12); border: 1px solid rgba(47, 129, 247, .28);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent2);
}
.platform-icon svg { width: 20px; height: 20px; }
.platform-head h3 { font-size: 16px; font-weight: 700; line-height: 1.2; }
.platform-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.platform-qr {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in;
}
.platform-qr img {
  width: 172px; height: 172px; margin: 0 auto; display: block;
  border-radius: 12px; border: 1px solid var(--line-strong); background: #fff;
  object-fit: contain; padding: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.platform-qr:hover img { transform: scale(1.04); box-shadow: 0 10px 30px rgba(8, 11, 20, .65); }
.platform-qr span {
  display: block; margin-top: 11px; font-size: 12.5px;
  color: var(--muted); letter-spacing: .08em;
}
.case-more-tip { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* 二维码放大弹窗 */
.qr-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.qr-modal.open { opacity: 1; pointer-events: auto; }
.qr-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 6, 12, .84); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qr-modal-box {
  position: relative; z-index: 1;
  width: min(420px, 90vw);
  background: #0c1220; border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 28px 28px 24px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(47, 129, 247, .1);
  transform: scale(.94); transition: transform .25s ease;
}
.qr-modal.open .qr-modal-box { transform: none; }
.qr-modal-close {
  position: absolute; top: 8px; right: 14px;
  background: none; border: 0; color: var(--muted);
  font-size: 28px; line-height: 1; cursor: pointer; transition: color .2s ease;
}
.qr-modal-close:hover { color: #fff; }
.qr-modal-img img {
  width: 264px; height: 264px; margin: 4px auto 18px; display: block;
  border-radius: 14px; background: #fff;
  object-fit: contain; padding: 10px;
}
.qr-modal-name { font-size: 17px; font-weight: 700; }
.qr-modal-tip { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.8; }

@media (max-width: 760px) {
  .platform-grid { grid-template-columns: 1fr; max-width: 340px; }
}

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.about-year {
  font-size: 40px; font-weight: 800; line-height: 1;
  color: transparent; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  display: block; margin-bottom: 14px;
}
.about-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.about-card p { font-size: 14.5px; color: var(--muted); }
.about-card p b { color: var(--text); }
.about-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.about-stats { display: flex; gap: 34px; }
.about-stats div { text-align: center; }
.about-stats b {
  display: block; font-size: 30px; font-weight: 800;
  color: transparent; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
}
.about-stats span { font-size: 12px; color: var(--muted); }

/* ---------- 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.contact-info {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 4px;
}
.info-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 6px; border-bottom: 1px dashed var(--line);
}
.info-label { width: 44px; font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.info-val { font-size: 15px; font-weight: 600; word-break: break-all; }
a.info-val:hover { color: var(--accent2); }
.service-area { margin-top: auto; padding-top: 20px; }

.lead-form {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.lead-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.lead-form label { display: block; margin-bottom: 14px; }
.lead-form label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(8,11,20,.6);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}
.lead-form textarea { resize: vertical; }
.lead-form .btn { margin-top: 6px; }
.form-note { margin-top: 12px; font-size: 12px; color: #5b657a; text-align: center; }

/* ---------- 底部 ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 30px; background: var(--bg-soft); }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand-text { font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color .2s ease; }
.footer-links a:hover { color: var(--accent2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 22px; font-size: 12.5px; color: #5b657a;
}

/* ---------- AI 客服 ---------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 200; font-family: var(--font); }
.chat-fab {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px rgba(47, 129, 247, 0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.chat-fab:hover { transform: scale(1.07); box-shadow: 0 16px 44px rgba(47,129,247,.55); }
.chat-fab svg { width: 26px; height: 26px; }
.fab-close { display: none; }
.chat-widget.open .fab-icon { display: none; }
.chat-widget.open .fab-close { display: block; }
.chat-widget.open .fab-pulse { display: none; }
.fab-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(34,211,238,.7);
  animation: fabPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

.chat-panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(372px, calc(100vw - 40px));
  height: min(540px, calc(100vh - 120px));
  background: #0c1220;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(47,129,247,.06), 0 0 60px rgba(47,129,247,.08);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.chat-widget.open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(120deg, rgba(47,129,247,.18), rgba(34,211,238,.1)), #0d1424;
  border-bottom: 1px solid var(--line);
}
.chat-head-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 16px rgba(47,129,247,.4);
}
.chat-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.chat-status { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.chat-close {
  background: none; border: 0; color: var(--muted); font-size: 24px;
  cursor: pointer; line-height: 1; padding: 4px 8px; transition: color .2s ease;
}
.chat-close:hover { color: #fff; }

.chat-body {
  flex: 1; overflow-y: auto; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-body::-webkit-scrollbar { width: 5px; }
.msg { display: flex; }
.msg-ai { justify-content: flex-start; }
.msg-user { justify-content: flex-end; }
.msg-bubble {
  max-width: 82%; padding: 11px 14px; font-size: 14px; line-height: 1.7;
  border-radius: 14px; white-space: pre-wrap; word-break: break-word;
}
.msg-ai .msg-bubble {
  background: #131c30; border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg-user .msg-bubble {
  background: var(--grad); color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.msg-typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent2);
  animation: typing 1.2s ease-in-out infinite;
}
.msg-typing i:nth-child(2) { animation-delay: .18s; }
.msg-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 0; }
.chat-suggest button {
  font-size: 12.5px; color: var(--accent2);
  background: rgba(47,129,247,.09);
  border: 1px solid rgba(47,129,247,.3);
  border-radius: 999px; padding: 7px 13px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.chat-suggest button:hover { background: rgba(47,129,247,.22); color: #fff; }

.chat-input {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #0b1220;
}
.chat-input textarea {
  flex: 1; resize: none; max-height: 96px;
  background: #101830; color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 10px 14px;
  font-size: 14px; font-family: inherit; line-height: 1.5;
}
.chat-input textarea:focus { outline: none; border-color: var(--accent2); }
.chat-input textarea::placeholder { color: #566177; }
.chat-send {
  width: 42px; height: 42px; flex: none; border-radius: 12px; border: 0;
  background: var(--grad); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-send:hover { transform: scale(1.06); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }
.chat-send svg { width: 19px; height: 19px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-row { grid-template-columns: 1fr; }
  .prod-scene { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(8,11,20,.97);
    backdrop-filter: blur(20px);
    padding: 18px 6vw 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 16px; font-size: 16px; border-radius: 12px; }
  .nav-cta { margin: 10px 0 0; }
}

@media (max-width: 640px) {
  .caps-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-wide { grid-column: auto; grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 22px; flex-wrap: wrap; }
  .footer-top { flex-direction: column; gap: 18px; }
  .footer-links { gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .only-desk { display: none; }
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(30px, 8.8vw, 40px); }
  .hero-title .grad-text { white-space: nowrap; }
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-fab { width: 54px; height: 54px; }
}

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