/* ============================================================
   Skybility HA 官网 — 共享样式
   深色科技风 · 毛玻璃 · 蓝紫渐变
   ============================================================ */
:root {
  --bg-primary: #0b0f1f;
  --bg-secondary: #05070f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(0, 200, 255, 0.16);
  --border-hover: rgba(0, 200, 255, 0.55);
  --text: #e3eaf3;
  --text-dim: #8a9bc0;
  --text-faint: #6b7b9e;
  --accent: #21d4fd;
  --accent-2: #2a6cff;
  --accent-grad: linear-gradient(135deg, #21d4fd 0%, #2a6cff 100%);
  --glow: rgba(33, 212, 253, 0.22);
  --ok: #36e0a0;
  --maxw: 1180px;
  --nav-h: 64px;
  --foot-h: 56px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-secondary);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  padding-bottom: var(--foot-h);
}

/* 背景网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, #0e1838 0%, transparent 55%),
    radial-gradient(circle at 85% 12%, #10204a 0%, transparent 50%),
    var(--bg-secondary);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 212, 253, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 212, 253, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: -1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 26px;
  background: rgba(8, 12, 26, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .5px;
  color: #fff;
  white-space: nowrap;
}
.nav .brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 10px var(--glow)); }
.nav .brand b { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav .links { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.nav .links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.nav .links a:hover, .nav .links a.active { color: #fff; border-bottom-color: var(--accent); text-decoration: none; }
.nav .cta {
  background: var(--accent-grad);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(42, 108, 255, .35);
}
.nav .cta:hover { box-shadow: 0 8px 28px rgba(42, 108, 255, .55); }

/* ---------- 容器 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ---------- 标题 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
h1, h2, h3 { color: #fff; line-height: 1.25; font-weight: 700; }
.h-title {
  font-size: 38px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff, #8fd4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h-sub { font-size: 17px; color: var(--text-dim); max-width: 760px; }
.h-center { text-align: center; }
.h-center .h-sub { margin: 0 auto; }

/* ---------- HERO ---------- */
.hero { padding: 84px 0 56px; text-align: center; }
.hero h1 { font-size: 54px; }
.hero .tagline { font-size: 20px; color: var(--text-dim); margin: 16px auto 0; max-width: 720px; }
.metrics {
  display: flex; justify-content: center; gap: 54px;
  margin: 42px 0 40px; flex-wrap: wrap;
}
.metric { text-align: center; }
.metric .num {
  font-size: 42px; font-weight: 800;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.metric .lab { font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 40px;
  font-weight: 600; font-size: 16px; transition: all .3s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 6px 24px rgba(42, 108, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(42, 108, 255, .55); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--accent); text-decoration: none; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: 0 22px 60px rgba(0, 90, 220, .12); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(33, 212, 253, .1); border: 1px solid var(--border);
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-dim); }
.card .tag { display:inline-block; font-size:12px; color: var(--accent); background: rgba(33,212,253,.1); border:1px solid var(--border); padding:2px 10px; border-radius: 20px; margin-bottom: 10px; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 14.5px; }
.tbl th { background: rgba(33, 212, 253, .08); color: #a9d6ff; text-align: left; padding: 14px 16px; font-weight: 600; }
.tbl td { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .05); color: #d2dcec; vertical-align: top; }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.tbl td:first-child { color: #fff; font-weight: 500; white-space: nowrap; }

/* ---------- 分栏（图文） ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.split.flip { grid-template-columns: .95fr 1.05fr; }
.split .txt h2 { font-size: 30px; margin-bottom: 14px; }
.split .txt p { color: var(--text-dim); margin-bottom: 12px; }
.split .txt ul { list-style: none; }
.split .txt li { color: var(--text-dim); padding-left: 22px; position: relative; margin-bottom: 8px; }
.split .txt li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

/* ---------- 架构图框 ---------- */
.figbox {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; display: grid; place-items: center;
}
.figbox svg { width: 100%; height: auto; max-width: 520px; }

/* ---------- 徽章/统计条 ---------- */
.pill-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.pill { font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 30px; }

/* ---------- 案例 ---------- */
.case { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.case .org { font-size: 18px; color: #fff; font-weight: 700; margin-bottom: 4px; }
.case .scene { font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.case p { font-size: 14px; color: var(--text-dim); }

/* ---------- 面包屑/页头 ---------- */
.pagehead { padding: 56px 0 18px; text-align: center; }
.pagehead h1 { font-size: 40px; }

/* ---------- 支持页 ---------- */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.support-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.support-item h3 { font-size: 17px; margin-bottom: 6px; }
.support-item p { font-size: 14px; color: var(--text-dim); }
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.contact div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.contact .k { font-size: 13px; color: var(--text-faint); }
.contact .v { font-size: 16px; color: #fff; font-weight: 600; margin-top: 2px; }
.faq { display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; color: #fff; font-size: 15.5px; }
.faq details p { color: var(--text-dim); font-size: 14px; margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--foot-h);
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 12, 26, .85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-dim);
  z-index: 40;
  white-space: nowrap; overflow-x: auto;
  padding: 0 14px;
}
.footer .inner { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.footer a { color: var(--accent); }
.footer a:hover { color: #aaddff; }
.footer .sep { color: var(--text-faint); margin: 0 8px; }
.footer .shield { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 26px; }
  .support-grid, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { gap: 12px; padding: 0 14px; }
  .nav .links { gap: 14px; }
  .nav .links a { font-size: 13.5px; }
  .nav .cta { padding: 6px 12px; font-size: 13px; }
  .hero h1 { font-size: 36px; }
  .hero .tagline { font-size: 16px; }
  .h-title { font-size: 30px; }
  .metrics { gap: 30px; }
  .metric .num { font-size: 34px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer { font-size: 11px; }
  .footer .sep { margin: 0 5px; }
}
@media (max-width: 480px) {
  .nav .brand span.txt { display: none; }
  .hero h1 { font-size: 30px; }
}
