:root {
  --brand: #1f6feb;
  --brand-deep: #0d3f8f;
  --brand-soft: #e8f1fe;
  --accent: #2ea8d8;
  --accent-soft: #e0f4fe;
  --ink: #0f1d33;
  --muted: #5a6b85;
  --line: #e3ebf7;
  --bg: #f3f7fd;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 45, 100, 0.08);
  --maxw: 480px;
}

* {
  box-sizing: border-box;
}

html {
  background: #dce6f5;
}

body {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 76px; /* 给底部悬浮 CTA 留位置 */
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  box-shadow: 0 0 60px rgba(15, 45, 100, 0.16);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.section {
  padding: 34px 20px;
  scroll-margin-top: 56px;
}

.section-head {
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 22px;
  font-weight: 700;
}

.section-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------------- 顶部 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(227, 235, 247, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #3b82f6, var(--brand-deep));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
}

.brand-sub {
  display: block;
  margin-top: -4px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #e8eef8;
  border-radius: 999px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.on {
  background: #fff;
  color: var(--brand-deep);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 45, 100, 0.1);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 40px 22px 26px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(
      180deg,
      rgba(8, 27, 68, 0.52) 0%,
      rgba(6, 20, 52, 0.45) 45%,
      rgba(4, 12, 34, 0.8) 100%
    ),
    url('../img/op-hero.webp') center 40% / cover no-repeat,
    linear-gradient(160deg, #1d4ed8 0%, #1e3a8a 55%, #0b1f52 100%);
}

/* 蒙层变淡后，靠文字阴影补对比度 */
.hero h1 {
  text-shadow: 0 2px 18px rgba(2, 8, 24, 0.55);
}

.hero .lede,
.hero .eyebrow {
  text-shadow: 0 1px 12px rgba(2, 8, 24, 0.5);
}

.stats b,
.stats span {
  text-shadow: 0 1px 10px rgba(2, 8, 24, 0.45);
}

.hero::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #d6e8ff;
}

.hero h1 {
  margin-bottom: 12px;
  font-size: 27px;
  font-weight: 800;
}

.hero .lede {
  max-width: 30em;
  margin: 0 0 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-accent {
  background: linear-gradient(140deg, #9adcff, #38bdf8);
  color: #04263f;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-solid {
  width: 100%;
  padding: 15px 18px;
  font-size: 16px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 111, 235, 0.3);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 26px 0 0;
  padding: 16px 6px;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stats li {
  text-align: center;
}

.stats b {
  display: block;
  font-size: 19px;
  font-weight: 700;
}

.stats span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------------- 服务 ---------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  padding: 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.svc-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  font-size: 18px;
  background: var(--brand-soft);
  border-radius: 11px;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------------- 优势 ---------------- */
.why-list {
  display: grid;
  gap: 10px;
}

.why-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 45, 100, 0.04);
}

.why-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
}

.why-item h3 {
  margin-bottom: 3px;
  font-size: 14.5px;
}

.why-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 流程 ---------------- */
.process {
  background: #fff;
}

.steps {
  position: relative;
  margin-top: 6px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding-bottom: 22px;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-soft), #edf2fb);
}

.step-dot {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.step h3 {
  margin-bottom: 3px;
  font-size: 15px;
}

.step p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 案例 ---------------- */
.case-list {
  display: grid;
  gap: 12px;
}

.case {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}

.case-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 6px;
}

.case p {
  margin: 0;
  font-size: 13px;
  color: #2c3b52;
}

/* ---------------- 真实场景 ---------------- */
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #dce6f5;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.shot-wide {
  grid-column: span 2;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.shot-wide img {
  aspect-ratio: 16 / 9;
}

.shot figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 10px 8px;
  font-size: 11.5px;
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 20, 45, 0), rgba(6, 20, 45, 0.75));
}

/* ---------------- 表单 ---------------- */
.consult {
  background: linear-gradient(180deg, #eaf2fd, var(--bg));
}

.form-card {
  padding: 18px 16px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.14);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.privacy {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.form-msg {
  margin: 10px 0 0;
  padding: 9px 10px;
  font-size: 13px;
  text-align: center;
  border-radius: 10px;
}

.form-msg.ok {
  color: #1c6b45;
  background: #e8f5ee;
}

.form-msg.err {
  color: #a3352c;
  background: #fdeceb;
}

/* ---------------- 页脚 ---------------- */
.footer {
  padding: 24px 20px 12px;
  font-size: 11.5px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
}

.footer p {
  margin: 0 0 6px;
}

/* ---------------- 底部悬浮 CTA ---------------- */
.float-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(243, 247, 253, 0), rgba(243, 247, 253, 0.96) 40%);
}

.float-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: var(--maxw);
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(13, 63, 143, 0.4);
}

/* 主 CTA 走 WhatsApp，用官方绿，识别度比品牌蓝更高 */
.float-cta a.wa {
  color: #fff;
  background: linear-gradient(140deg, #34d97b, #0e8a6d);
  box-shadow: 0 10px 26px rgba(14, 138, 109, 0.42);
}

.float-cta a svg {
  flex: 0 0 auto;
}

/* WhatsApp 兜底按钮：表单没提交成功时出现 */
.btn-wa {
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: #04261a;
  background: linear-gradient(140deg, #34d97b, #0e8a6d);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(14, 138, 109, 0.28);
}

.btn[hidden] {
  display: none;
}

/* 桌面端：页面收成手机宽度，悬浮条跟着居中 */
@media (min-width: 481px) {
  .float-cta {
    left: 50%;
    width: var(--maxw);
    transform: translateX(-50%);
  }
}
