/* =========================================================
   随电查 — 品牌官网样式
   风格：简约、留白、克制配色（苹果式）
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #fafafc;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-soft: rgba(0, 0, 0, 0.05);

  /* 主体：取自 App 界面的蓝 */
  --accent: #0052ff;
  --accent-hover: #0047e0;
  --accent-deep: #0040c8;      /* 小字号文字用深一档，保证对比度 */
  --accent-2: #4d8cff;         /* 渐变浅蓝端 */
  --accent-soft: rgba(0, 82, 255, 0.08);
  --ui-accent: #0052ff;        /* App 界面内的数值色 */

  /* 点缀：取自 LOGO 的红 */
  --red: #f04e00;
  --red-deep: #c24200;
  --red-soft: rgba(240, 78, 0, 0.10);

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.02), 0 12px 32px -18px rgba(0, 0, 0, 0.18);
  --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, 0.32), 0 8px 24px rgba(0, 0, 0, 0.08);

  --nav-h: 56px;
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, dl, dd, dt, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: rgba(0, 113, 227, 0.16); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
}
.skip-link:focus { left: 16px; }

/* ---------- 布局 ---------- */
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: clamp(80px, 10vw, 148px) 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin-top: 14px;
  text-wrap: balance;
}

.section__lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--ink-2);
  letter-spacing: 0.002em;
  text-wrap: pretty;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  text-transform: none;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 1.5px;
  background: var(--red);
  vertical-align: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(240, 78, 0, 0.75);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); background: var(--accent-deep); }

.btn--ghost {
  color: var(--accent);
  padding-inline: 18px;
}
.btn--ghost:hover { background: var(--accent-soft); }
.btn--ghost .arrow { transition: transform 0.3s var(--ease); }
.btn--ghost:hover .arrow { transform: translateX(3px); }

.btn--sm { height: 34px; padding: 0 16px; font-size: 14px; }

.arrow { display: inline-block; font-size: 0.95em; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); }

.nav__inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); justify-self: start; }
.brand__logo {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}
.brand__name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-self: center;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 6px 24px 22px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(1100px, 120vw);
  height: 780px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(0, 82, 255, 0.10), rgba(0, 82, 255, 0) 70%),
    radial-gradient(closest-side, rgba(240, 78, 0, 0.06), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}

.hero__inner { position: relative; text-align: center; }

.hero__title {
  margin-top: 18px;
  font-size: clamp(38px, 6.6vw, 78px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lead {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
  color: var(--ink-2);
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* 首屏舞台：手机 + 浮动卡片 */
.hero__stage {
  position: relative;
  margin: clamp(44px, 6vw, 68px) auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(24px, 5vw, 64px);
}

/* ---------- 手机 ---------- */
.phone {
  width: clamp(252px, 78vw, 300px);
  flex: none;
  filter: drop-shadow(0 30px 55px rgba(0, 40, 120, 0.20));
}

.phone__frame {
  position: relative;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #3a3a3c 0%, #17171a 42%, #2c2c2e 100%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone__screen {
  position: relative;
  height: 668px;
  border-radius: 34px;
  background: #f4f5f8;
  padding: 11px 11px 0;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 手机内的界面元素 —— 新版卡片式界面 */
.phone__screen {
  background: #f4f5f8;
}

.ph-conn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.ph-conn__icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}
.ph-conn__icon svg { width: 15px; height: 15px; }

.ph-conn__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ph-conn__text b { font-size: 11.5px; font-weight: 600; color: #1d1d1f; line-height: 1.2; }
.ph-conn__text small {
  font-size: 8px;
  color: #9a9aa1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ph-conn__btn {
  margin-left: auto;
  flex: none;
  height: 23px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* 通用卡片 */
.ph-panel {
  padding: 10px 11px 7px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.ph-panel__head { display: flex; align-items: center; gap: 7px; }
.ph-panel__head h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}
.ph-refresh { margin-left: auto; width: 12px; height: 12px; color: #a6a6ad; }
.ph-chev { margin-left: auto; width: 10px; height: 10px; color: #c2c2c8; }

.ph-ico {
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 6px;
  background: rgba(0, 82, 255, 0.10);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.ph-ico svg { width: 12px; height: 12px; }

/* 电量与健康度 */
.ph-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 7px;
}
.ph-live__num {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}
.ph-live__num span {
  margin-left: 1px;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
}
.ph-live__label { display: block; margin-top: 6px; font-size: 8px; color: #9a9aa1; }

.ph-badge {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(165deg, #eaf1ff, #d8e5ff);
  color: var(--accent-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ph-badge b { font-size: 14px; font-weight: 600; line-height: 1; }
.ph-badge small { font-size: 7px; color: #6f86b8; }

.ph-bar {
  height: 3px;
  border-radius: 999px;
  background: #e9ecf3;
  overflow: hidden;
}
.ph-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width 1.2s var(--ease);
}
.is-in .ph-bar i { width: var(--w); }

/* 六项指标 */
.ph-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px 5px;
  padding: 11px 0 5px;
}
.ph-metric b {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ph-metric b span { margin-left: 1px; font-size: 7.5px; font-weight: 500; }
.ph-metric small { display: block; margin-top: 3px; font-size: 8px; color: #9a9aa1; }

/* 电芯行 */
.ph-cellrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 1px;
  border-bottom: 1px solid #f2f3f6;
  font-size: 9.5px;
  color: #3a3a3c;
}
.ph-cellrow:first-of-type { margin-top: 5px; }
.ph-cellrow:last-child { border-bottom: 0; padding-bottom: 2px; }
.ph-cellrow b { font-weight: 500; font-size: 9.5px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ph-cellrow.is-off b { color: #c2c2c8; font-weight: 400; }

/* 信息行 */
.ph-rows { margin-top: 6px; }
.ph-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6.5px 1px;
  border-bottom: 1px solid #f2f3f6;
  font-size: 9.5px;
}
.ph-rows > div:last-child { border-bottom: 0; padding-bottom: 2px; }
.ph-rows dt { color: #8e8e93; flex: none; }
.ph-rows dd { color: #1d1d1f; font-variant-numeric: tabular-nums; }

/* 电池编号 */
.ph-code {
  margin-top: 7px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f6f7fa;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.01em;
  color: #3a3a3c;
}

.ph-home {
  flex: none;
  align-self: center;
  margin-top: auto;
  margin-bottom: 6px;
  width: 88px;
  height: 4px;
  border-radius: 999px;
  background: #1d1d1f;
  opacity: 0.14;
}

/* 浮动卡片 */
.float-card {
  width: 236px;
  flex: none;
  margin-top: 84px;
  padding: 18px 18px 20px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.tag--live { background: var(--red-soft); color: var(--red-deep); }

/* 浮动卡：实时概要 */
.float-rows { display: flex; flex-direction: column; gap: 11px; }
.float-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
}
.float-rows dd {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.float-rows dd i { font-style: normal; font-size: 10px; font-weight: 400; color: var(--ink-3); margin-left: 2px; }
.float-rows dd.is-good { color: var(--accent); }

/* 异常信息面板 */
.dot-red {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 3px;
}

.alert-panel { flex: 1; min-width: 0; }
.alert-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 13px;
  background: #f7f8fa;
  font-size: 14px;
  color: var(--ink);
}
.alert-row + .alert-row { margin-top: 9px; }
.alert-row__icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red-deep);
}
.alert-row__icon svg { width: 16px; height: 16px; }
.alert-row__name { flex: none; }
.alert-row b {
  margin-left: auto;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.alert-row__state {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--ink-3);
}

.port + .port { margin-top: 14px; }
.port__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.port__top b { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.port__bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.port__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.1s var(--ease);
}
.is-in .port__bar i { width: var(--w); }

/* ---------- Bento 数据区 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(24px, 2.6vw, 34px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
/* 仅横向宽卡：左侧文案固定占比，右侧可视化自适应 */
.card--wide .card__text { flex: 0 1 400px; }

.card__text { max-width: 460px; }
.card__text h3 {
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -0.012em;
}
.card__text p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* 电量可视化 */
.battery-viz { flex: 1; min-width: 0; }
.battery-viz__num {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.battery-viz__num span { font-size: 0.45em; margin-left: 2px; color: var(--ink-3); font-weight: 500; }
.battery-viz__track {
  margin-top: 18px;
  height: 8px;
  border-radius: 999px;
  background: #f0f0f4;
  overflow: hidden;
}
.battery-viz__track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.3s var(--ease);
}
.is-in .battery-viz__track i { width: var(--w); }
.battery-viz__legend {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}
.battery-viz__legend li { display: flex; flex-direction: column; gap: 3px; }
.battery-viz__legend b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.battery-viz__legend span { font-size: 12.5px; color: var(--ink-3); }

/* 曲线 */
.chart svg { width: 100%; height: 128px; }
.chart__line {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.is-in .chart__line { stroke-dashoffset: 0; }
.chart__area { opacity: 0; transition: opacity 1.2s ease 0.5s; }
.is-in .chart__area { opacity: 1; }
.chart__axis {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 6px;
}

/* 端口 */
.ports { display: flex; flex-direction: column; gap: 16px; }
.port--lg .port__top { font-size: 13px; margin-bottom: 9px; }
.port--lg .port__top b { font-size: 15px; }
.port--lg .port__bar { height: 7px; }

/* 电池健康 */
.health { display: flex; align-items: center; gap: 30px; }

.health__ring {
  width: 106px;
  height: 106px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #74a9ff, #3f7dff 72%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 34px -22px rgba(0, 82, 255, 0.95);
}
.health__ring svg { width: 19px; height: 19px; opacity: 0.95; }
.health__ring b { font-size: 26px; font-weight: 600; line-height: 1; margin-top: 2px; }
.health__ring small { font-size: 9.5px; opacity: 0.85; margin-top: 4px; }

.health__rows { flex: 1; min-width: 0; }
.health__rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.health__rows > div:last-child { border-bottom: 0; }
.health__rows dt { color: var(--ink-2); }
.health__rows dd { font-weight: 500; font-variant-numeric: tabular-nums; }

/* 电芯编码与复制 */
.code-copy {
  flex: none;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
  transition: background-color 0.25s, transform 0.25s;
}
.code-copy:hover { background: var(--accent-soft); }
.code-copy:active { transform: scale(0.96); }

/* 电芯 */
.cells { display: flex; flex-direction: column; gap: 13px; }
.cells__row {
  display: grid;
  grid-template-columns: 44px 1fr 54px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.cells__row b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.cells__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-3);
}
.cells__meta b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-left: 6px;
  letter-spacing: 0.01em;
}
.cells__row i {
  display: block;
  height: 6px;
  width: 0;
  border-radius: 999px;
  background: #eef1f8;
  transition: width 1.2s var(--ease);
}
.is-in .cells__row i { width: var(--w); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.cells__row.is-off { color: #b6b6bc; }
.cells__row.is-off b { color: #b6b6bc; font-weight: 400; }
.cells__row.is-off i { background: transparent; }

/* ---------- 连接方式 ---------- */
.connect {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.connect__card {
  padding: clamp(26px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.connect__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.connect__icon svg { width: 25px; height: 25px; fill: currentColor; }

.connect__card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.012em; }
.connect__card > p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

.connect__list { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.connect__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.connect__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c3c3ca;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.steps li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.steps span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}
.steps h4 { margin-top: 10px; font-size: 16px; font-weight: 600; }
.steps p { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

/* ---------- 网页版预留 ---------- */
.webapp {
  position: relative;
  border-radius: 24px;
  padding: clamp(18px, 3vw, 38px);
  background: linear-gradient(180deg, #f7f8fb, #f1f2f6);
  border: 1px solid var(--line-soft);
}

.webapp__frame {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px -34px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.webapp__frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -32px rgba(0, 55, 170, 0.35);
}
.webapp__frame:focus-visible { outline-offset: 4px; }
.webapp__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: #fbfbfd;
  border-bottom: 1px solid var(--line-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e2e7; }
.webapp__addr {
  margin-left: 12px;
  flex: 1;
  max-width: 340px;
  padding: 5px 12px;
  border-radius: 7px;
  background: #f0f0f4;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
  font-family: var(--mono);
}
.webapp__go {
  margin-left: auto;
  flex: none;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 11px;
  white-space: nowrap;
  transition: background-color 0.25s;
}
.webapp__frame:hover .webapp__go { background: rgba(0, 82, 255, 0.14); }

.webapp__body {
  display: flex;
  gap: 18px;
  padding: 20px;
  min-height: 300px;
}
.webapp__main { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.webapp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.skeleton {
  position: relative;
  background: #f1f2f5;
  border-radius: 10px;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: shimmer 2.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.skeleton--side { width: 132px; background: #f7f7fa; border-radius: 12px; }
.skeleton--head { height: 42px; width: 46%; }
.skeleton--card { height: 96px; }
.skeleton--tall { grid-column: span 3; height: 108px; }

.webapp__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.webapp__badge p { font-size: 13px; color: var(--ink-2); }

/* ---------- 下载 ---------- */
.app-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: -8px 0 36px;
}

.app-badge img {
  width: 72px;
  height: 72px;
  flex: none;
  box-shadow: 0 14px 30px -18px rgba(240, 78, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-badge__text { display: flex; flex-direction: column; gap: 3px; }
.app-badge__text b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.app-badge__text span { font-size: 12.5px; color: var(--ink-3); }
.app-badge .tag { margin-left: 4px; }

.stores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.store {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  min-height: 78px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.28);
  border-color: rgba(0, 0, 0, 0.1);
}

.store__icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4f4f7;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.store__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.store__meta b { font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.store__meta small { font-size: 11.5px; color: var(--ink-3); }

.store .arrow { color: #c7c7cc; font-size: 14px; transition: transform 0.3s var(--ease), color 0.3s; }
.store:hover .arrow { transform: translateX(3px); color: var(--ink-2); }

/* 公司入口 */
.company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 38px);
  border-radius: var(--radius-lg);
  background: #16161a;
  color: #fff;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.company:hover { background: #1f1f24; transform: translateY(-2px); }
.company__text { display: flex; flex-direction: column; gap: 5px; }
.company__label { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.08em; }
.company__text b { font-size: clamp(17px, 2vw, 21px); font-weight: 500; letter-spacing: -0.01em; }
.company__text small { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.company__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.company__link-label { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.company__link-label small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
}
.company__link .arrow { transition: transform 0.3s var(--ease); }
.company:hover .company__link .arrow { transform: translateX(4px); }

/* ---------- 隐私政策页 ---------- */
.legal {
  padding: calc(var(--nav-h) + clamp(52px, 7vw, 84px)) 0 clamp(72px, 8vw, 110px);
}

.legal__head { max-width: 780px; }

.legal__title {
  margin-top: 14px;
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal__meta {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.legal__grid {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: start;
}

/* 目录 */
.legal__toc {
  position: sticky;
  top: calc(var(--nav-h) + 26px);
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.legal__toc-title {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.legal__toc a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.legal__toc a:hover { color: var(--ink); }
.legal__toc a.is-active { color: var(--accent-deep); font-weight: 500; }

/* 正文 */
.legal__body { max-width: 720px; }

.legal__lead { font-size: 16.5px; line-height: 1.9; color: var(--ink-2); }
.legal__lead + .legal__lead { margin-top: 14px; }

.legal section {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--line-soft);
}

.legal h2 {
  display: flex;
  align-items: baseline;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.014em;
}
.legal__num {
  margin-right: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.legal h3 {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.legal p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.legal h2 + p, .legal h3 + p { margin-top: 14px; }
.legal b { color: var(--ink); font-weight: 600; }

.legal ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.legal li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}
.legal li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9ccd4;
}
.legal li ul { margin-top: 10px; gap: 8px; }
.legal li li::before { background: #d8dae0; }

.legal__em {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7f8fa;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}

/* 重点提示 */
.legal__note {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 82, 255, 0.06), rgba(0, 82, 255, 0.025));
  border: 1px solid rgba(0, 82, 255, 0.12);
}
.legal__note-title {
  display: flex;
  align-items: center;
  margin-top: 0 !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.legal__note p { color: var(--ink-2); }

/* 联系方式 */
.legal__contact { margin-top: 18px; }
.legal__contact > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.legal__contact > div:first-child { border-top: 1px solid var(--line-soft); }
.legal__contact dt { color: var(--ink-3); }
.legal__contact dd { color: var(--ink); }
.legal__contact a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(0, 64, 200, 0.24);
  padding-bottom: 1px;
}
.legal__contact a:hover { border-color: var(--accent-deep); }

.legal__end { margin-top: 44px; font-size: 13px; color: var(--ink-3); }

/* 导航当前项 */
.nav__links a.is-current { color: var(--ink); font-weight: 500; }

/* ---------- 页脚 ---------- */
.footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}
.footer__inner { display: flex; flex-direction: column; gap: 18px; }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.footer__brand .brand__logo { width: 24px; height: 24px; border-radius: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { font-size: 13.5px; color: var(--ink-2); transition: color 0.25s; }
.footer__links a:hover { color: var(--ink); }
.footer__legal, .footer__note { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 300;
  transform: translate(-50%, 16px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   响应式
   ========================================================= */

/* 折叠导航（<= 900px） */
@media (max-width: 900px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .mobile-menu.is-open { display: block; }

  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .card__text { max-width: none; }
  .card--wide .card__text { flex: 0 1 auto; }

  .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { margin-top: 44px; }
}

/* 平板 */
@media (max-width: 860px) {
  .hero__stage { flex-direction: column; align-items: center; gap: 28px; }
  .float-card { margin-top: 0; width: min(360px, 100%); animation: none; }
  .connect { grid-template-columns: 1fr; }
  .health { gap: 20px; }
  .skeleton--side { display: none; }
  .webapp__grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton--tall { grid-column: span 2; }
}

/* 手机 */
@media (max-width: 640px) {
  :root { --nav-h: 52px; }
  body { font-size: 16px; }

  .container, .nav__inner { width: calc(100% - 40px); }
  .section { padding: 72px 0; }

  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero__lead { font-size: 15.5px; }
  .br-desk { display: none; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; min-width: 140px; }

  .section__title { letter-spacing: -0.018em; }
  .section__lead { font-size: 15px; }

  .card { border-radius: 20px; gap: 22px; }
  .card--wide { gap: 22px; }
  .card__text p { font-size: 14px; }

  .battery-viz__legend { gap: 28px; }
  .battery-viz__legend b { font-size: 15.5px; }

  .health { gap: 20px; }
  .health__ring { width: 92px; height: 92px; }
  .health__ring b { font-size: 23px; }
  .health__ring small { font-size: 8.5px; }
  .health__rows > div { font-size: 12px; padding: 9px 0; }

  .alert-row { padding: 11px 12px; font-size: 13px; }
  .alert-row__icon { width: 28px; height: 28px; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 16px 0; }

  .stores { grid-template-columns: 1fr; }
  .store { padding: 16px; }

  .app-badge { gap: 13px; margin-bottom: 28px; }
  .app-badge img { width: 62px; height: 62px; }
  .app-badge__text b { font-size: 18px; }
  .app-badge .tag { display: none; }

  .company { flex-direction: column; align-items: flex-start; gap: 16px; }
  .company__link { font-size: 13.5px; }

  .webapp__body { padding: 14px; min-height: 240px; }
  .webapp__grid { grid-template-columns: 1fr; }
  .skeleton--tall { grid-column: span 1; height: 84px; }
  .skeleton--card { height: 76px; }
  .webapp__addr { font-size: 10.5px; }

  .footer { padding: 44px 0 52px; }
  .footer__links { gap: 16px 20px; }
}

/* 超小屏 */
@media (max-width: 380px) {
  .hero__title { font-size: 34px; }
  .phone { width: 240px; }
  .phone__screen { height: 668px; }
}

/* 隐私政策页响应式 */
@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; gap: 26px; }
  .legal__toc {
    position: static;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .legal__toc nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .legal__toc a { padding: 3px 0; font-size: 12.5px; }
}

@media (max-width: 640px) {
  .legal { padding-top: calc(var(--nav-h) + 38px); }
  .legal section { margin-top: 34px; padding-top: 28px; }
  .legal h2 { font-size: 19px; }
  .legal h3 { margin-top: 22px; }
  .legal p { font-size: 15px; line-height: 1.85; }
  .legal li { font-size: 14.5px; }
  .legal__lead { font-size: 15.5px; }
  .legal__note { padding: 18px 18px; }
  .legal__contact > div { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  .nav, .footer, .legal__toc, .skip-link, .toast { display: none !important; }
  .legal { padding: 0; }
  .legal section { break-inside: avoid; }
}

/* 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .port__bar i, .battery-viz__track i, .cells__row i { width: var(--w); }
  .chart__line { stroke-dashoffset: 0; }
  .chart__area { opacity: 1; }
}
