/* ============ SODA AI 四足具身智能巡检解决方案 ============ */
:root {
  --bg: #0b0b10;
  --bg-2: #101017;
  --bg-3: #16161f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3f5;
  --muted: #9aa0ab;
  --green: #7ac143;
  --blue: #00a0e9;
  --red: #e0457b;
  --yellow: #f5b52e;
  --grad: linear-gradient(90deg, #1a7fd4, #00c2ff);
  --radius: 16px;
  --maxw: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 26px; width: auto; }
.nav-logo .brand {
  font-size: 13px; color: var(--muted); letter-spacing: 0.08em;
  border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.3;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.lang-toggle {
  flex-shrink: 0; cursor: pointer; border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 13px; padding: 7px 14px; border-radius: 999px;
  font-family: inherit; transition: border-color 0.2s, background 0.2s;
}
.lang-toggle:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: 140px 0 80px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(0, 160, 233, 0.14), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(122, 193, 67, 0.1), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 58px); line-height: 1.18; font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none; font-family: inherit;
}
.btn-primary { background: var(--text); color: #0b0b10; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 24px; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.hero-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-top: 64px; border-top: 1px solid var(--line); padding-top: 32px;
}
.stat .num {
  font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- 通用区块 ---------- */
section { padding: 96px 0; }
section.alt { background: var(--bg-2); }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-eyebrow {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; font-weight: 700;
}
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 卡片网格 ---------- */
.cards { display: grid; gap: 18px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background:
    radial-gradient(600px 220px at 15% -10%, rgba(0, 160, 233, 0.14), transparent 65%),
    var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: rgba(0, 160, 233, 0.45); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 160, 233, 0.14);
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.01em; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 架构 ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.layer {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background:
    radial-gradient(600px 220px at 15% -10%, rgba(0, 160, 233, 0.14), transparent 65%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  position: relative; overflow: hidden;
}
.layer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
}
.layer .tag { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.layer h3 { font-size: 20px; font-weight: 800; margin: 6px 0 10px; }
.layer p { font-size: 14px; color: var(--muted); }
.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.flow span { font-size: 14px; color: var(--text); }
.flow i { color: var(--blue); font-style: normal; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-3); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

/* ---------- 截图 ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.shot {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-3);
  transition: transform 0.25s, border-color 0.25s;
}
.shot:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.2); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; cursor: zoom-in; }
.shot .cap {
  padding: 10px 14px; font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline;
}
.shot .cap b { color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ---------- 案例 ---------- */
.scene-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
  cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-family: inherit; transition: all 0.2s;
}
.chip.active, .chip:hover { color: #0b0b10; background: var(--text); border-color: var(--text); }
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3);
  display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s;
}
.scene:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.scene .media { position: relative; cursor: pointer; overflow: hidden; }
.scene .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s; }
.scene:hover .media img { transform: scale(1.04); }
.scene .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.scene .tag { font-size: 12px; color: var(--blue); letter-spacing: 0.1em; font-weight: 700; }
.scene h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.scene p { font-size: 13.5px; color: var(--muted); flex: 1; }
.play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.25); transition: background 0.25s;
}
.scene .media:hover .play-badge { background: rgba(0, 0, 0, 0.45); }
.play-badge .circle {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.play-badge svg { margin-left: 3px; }
.dur {
  position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.65);
  color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 6px; backdrop-filter: blur(4px);
}

/* 全宽特色案例（一行一个） */
.scene.wide { grid-column: 1 / -1; flex-direction: row; }
.scene.wide .media { flex: 1.6; min-width: 0; }
.scene.wide .media img { aspect-ratio: 16 / 9; height: 100%; object-fit: cover; }
.scene.wide .body { flex: 1; justify-content: center; padding: 32px; }
.scene.wide h3 { font-size: 22px; }
.scene.wide p { font-size: 15px; }
@media (max-width: 800px) {
  .scene.wide { flex-direction: column; }
  .scene.wide .media img { aspect-ratio: 16 / 9; height: auto; }
}

/* ---------- 研发条 ---------- */
.rnd-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 44px; }
.rnd-strip figure { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.rnd-strip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rnd-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 14px 10px;
  font-size: 12.5px; color: #ddd; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

/* ---------- 视频弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px); padding: 24px;
}
.modal.open { display: flex; }
.modal video { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 12px; outline: none; background: #000; }
#img-modal-img {
  max-width: min(1200px, 92vw); max-height: 86vh; object-fit: contain;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); cursor: zoom-out;
}
img[data-zoom] { cursor: zoom-in; }
.modal .close {
  position: absolute; top: 22px; right: 26px; font-size: 32px; color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); border: none;
}
.modal .close:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Contact / Footer ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; margin-bottom: 14px; }
.contact p { color: var(--muted); margin-bottom: 30px; }
.contact-intro {
  max-width: 760px; margin: 26px auto 0; font-size: 13px; color: #6b7280;
  line-height: 1.9; text-align: justify;
}
.contact .mail {
  font-size: clamp(20px, 3vw, 30px); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg-2); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-inner img { height: 22px; opacity: 0.9; }
.foot-inner .fine { font-size: 12px; color: var(--muted); max-width: 640px; line-height: 1.6; }
.foot-inner .fine a { color: var(--blue); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .cards.c3, .cards.c4, .layers, .scenes, .shots, .rnd-strip { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-burger {
    display: block; margin-left: auto; background: none; border: none; color: var(--text);
    font-size: 22px; cursor: pointer; padding: 4px 10px;
  }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: rgba(11, 11, 16, 0.97); border-bottom: 1px solid var(--line); padding: 12px;
  }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .cards.c2, .cards.c3, .cards.c4, .layers, .scenes, .shots, .rnd-strip { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
