/* ===== 量赢科技官网 · 公共样式 ===== */
:root {
  --navy: #0a1930;
  --navy-2: #10294a;
  --ink: #16233d;
  --muted: #5b6b84;
  --line: #e4ebf5;
  --bg: #f6f9fc;
  --white: #ffffff;
  --blue: #1f6feb;
  --blue-d: #1657c0;
  --teal: #12b5a0;
  --shadow: 0 12px 34px rgba(15, 40, 80, .09);
  --radius: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 235, 245, .9);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 26px rgba(15, 40, 80, .08); }

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

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 111, 235, .28);
}
.brand-text { line-height: 1.2; display: flex; flex-direction: column; }
.brand-name { display: block; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.brand-sub { display: block; font-size: 10px; color: var(--muted); letter-spacing: 2.4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 15px;
  color: #2b3a55;
  transition: color .2s, background .2s;
}
.nav a:hover { background: #f1f5fb; color: var(--blue); }
.nav a.active { color: var(--blue); font-weight: 600; background: #eef4ff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 111, 235, .26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 111, 235, .34); }
.btn-ghost { border-color: rgba(255, 255, 255, .38); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn-outline { border-color: #c9d8ee; color: var(--blue-d); background: #fff; }
.btn-outline:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 620px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, #081426 6%, rgba(8, 20, 38, .88) 42%, rgba(8, 20, 38, .3) 100%),
    radial-gradient(1000px 420px at 88% 0%, rgba(18, 181, 160, .16), transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner { position: relative; z-index: 3; max-width: 730px; padding: 120px 0 150px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .07);
}
.eyebrow i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 181, 160, .22);
}
.hero h1 {
  font-size: clamp(32px, 4.3vw, 54px);
  line-height: 1.22;
  letter-spacing: 1px;
  margin: 22px 0 18px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #6ee7d8, #8fc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* 数据条 */
.stats { position: relative; z-index: 4; margin-top: -66px; }
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px 8px;
}
.stat { text-align: center; padding: 6px 14px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--blue-d);
  line-height: 1.25;
  letter-spacing: .5px;
}
.stat span { font-size: 13px; color: var(--muted); letter-spacing: 1px; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 730px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 3px;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  margin: 12px 0 14px;
  letter-spacing: .5px;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- 业务卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.svc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d5e3f8; }
.svc-card:hover::before { transform: scaleX(1); }
.icon-box {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #eaf2ff, #e6fbf7);
  color: var(--blue-d);
  margin-bottom: 20px;
}
.svc-card h3 { font-size: 18px; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.svc-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--blue-d);
  font-weight: 600;
}
.svc-card .more svg { transition: transform .25s; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* ---------- 图文双列 ---------- */
.split {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(15, 40, 80, .16);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.media-badge {
  position: absolute;
  right: -18px;
  bottom: -22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.media-badge b { font-size: 22px; color: var(--blue-d); }
.media-badge span { font-size: 12.5px; color: var(--muted); }
.split-body h2 { font-size: clamp(25px, 2.6vw, 34px); line-height: 1.34; margin: 10px 0 16px; }
.split-body p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 24px; }
.checks li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: #33415c; }
.checks .ck {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  background: #e8fbf6;
  color: var(--teal);
  display: grid; place-items: center;
}

/* ---------- 场景图集 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(15, 40, 80, .1);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 22px 20px;
  color: #fff;
  background: linear-gradient(transparent, rgba(6, 18, 34, .88));
}
.gallery figcaption b { display: block; font-size: 16px; margin-bottom: 4px; }
.gallery figcaption span { font-size: 13px; color: rgba(255, 255, 255, .78); }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s;
}
.adv:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.adv .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal);
}
.adv h3 { font-size: 19px; margin: 12px 0 10px; }
.adv p { color: var(--muted); font-size: 14.5px; }

/* ---------- 流程 ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 26px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cddcf0 12%, #cddcf0 88%, transparent);
}
.step { position: relative; padding: 0 22px; text-align: center; }
.step .dot {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d5e3f8;
  color: var(--blue-d);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 15px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(15, 40, 80, .07);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0a1930, #12345f 60%, #0f4653);
  color: #fff;
  border-radius: 22px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 181, 160, .3), transparent 65%);
}
.cta-band h2 { font-size: clamp(22px, 2.4vw, 31px); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .78); font-size: 15px; }
.cta-band .btn { position: relative; z-index: 2; flex: none; }

/* ---------- 内页头 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #081426, #10294a 55%, #0d3b4a);
  color: #fff;
  padding: 96px 0 76px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 111, 235, .3), transparent 68%);
}
.page-hero .container { position: relative; z-index: 2; }
.crumb { font-size: 13px; color: rgba(255, 255, 255, .62); letter-spacing: .5px; }
.crumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 16px 0 12px; line-height: 1.3; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 680px; font-size: 15.5px; }

/* ---------- 关于页 ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.info-table th,
.info-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 168px;
  color: var(--muted);
  background: #f8fbfe;
  font-weight: 500;
  white-space: nowrap;
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- 业务详情 ---------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 40px 0;
}
.detail:nth-child(even) .detail-media { order: 2; }
.detail-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(15, 40, 80, .14);
}
.detail-body .kicker { letter-spacing: 2px; }
.detail-body h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 10px 0 14px; line-height: 1.35; }
.detail-body > p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 46px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin-top: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color .25s, box-shadow .25s;
}
.contact-item:hover { border-color: #d3e2f6; box-shadow: 0 10px 24px rgba(15, 40, 80, .07); }
.contact-item .icon-box { width: 44px; height: 44px; margin-bottom: 0; flex: none; border-radius: 11px; }
.contact-item b { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-item span { font-size: 14px; color: var(--muted); word-break: break-all; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px 32px;
}
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card .hint { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: #33415c; margin-bottom: 7px; font-weight: 500; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12.5px; color: #8a99b0; margin-top: 14px; }
.form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  background: #e8fbf6;
  color: #0a7a6b;
  border: 1px solid #bfeee4;
}
.form-msg.show { display: block; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #071325;
  color: rgba(255, 255, 255, .72);
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 46px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255, 255, 255, .45); }
.footer-about p { margin-top: 18px; max-width: 340px; color: rgba(255, 255, 255, .62); line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, .52);
}
.footer-bar a:hover { color: #fff; }

/* ---------- 入场动画 ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { gap: 34px; }
}

@media (max-width: 900px) {
  .header-inner { height: 66px; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(15, 40, 80, .1);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 84px 0 120px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 6px; }
  .split, .contact-grid, .detail { grid-template-columns: 1fr; }
  .detail:nth-child(even) .detail-media { order: 0; }
  .split-media { order: -1; }
  .media-badge { right: 12px; bottom: -18px; }
  .gallery { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .process::before { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .values { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .grid-4, .adv-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { margin-top: -46px; }
  .stats-card { padding: 24px 4px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-card { padding: 26px 22px; }
  .page-hero { padding: 76px 0 60px; }
  .brand-name { font-size: 16px; }
}
