/* ==========================================================================
   数邑科技 数工坊 — 页面区块样式（Hero / 产品 / 视频 / 交互演示 / 表单 / 响应式）
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + clamp(16px, 7vw, 26px)) 0 clamp(16px, 8vw, 26px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* 网格底纹 */
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 22%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 22%, #000 25%, transparent 78%);
  opacity: 0.75;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero__sub { font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--text-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-mute); font-size: 0.87rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--sync); box-shadow: 0 0 10px var(--sync); }

/* Hero 演示补充说明条（醒目提示 → B 站系列视频） */
.hero__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand) 14%, transparent), transparent 72%),
    var(--overlay);
  box-shadow: 0 16px 36px -24px color-mix(in srgb, var(--brand) 60%, transparent);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.hero__note__icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 0 16px color-mix(in srgb, var(--brand) 65%, transparent);
}
.hero__note__icon svg { width: 20px; height: 20px; }
.hero__note b { color: var(--text); font-weight: 700; }
.hero__note__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  margin: 0 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  color: var(--brand);
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.hero__note__link:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}

/* Hero 右侧控制台 */
.console {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 240px at 82% -10%, rgba(76, 125, 255, 0.28), transparent 68%);
  pointer-events: none;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--overlay);
}
.console__bar b { font-size: 0.8rem; font-weight: 600; color: var(--text-mute); margin-left: 6px; letter-spacing: 0.05em; }
.tl { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.tl--r { background: #ff5f57; }
.tl--y { background: #febc2e; }
.tl--g { background: #28c840; }
.console__body { padding: 18px; display: grid; gap: 14px; }

.console__tabs { display: flex; gap: 8px; }
.ctab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-mute);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.ctab[aria-selected="true"] { color: #fff; background: var(--grad-brand); border-color: transparent; }

.console__pane { border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); padding: 14px; }
.console__pane[hidden] { display: none; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--overlay); }
.kpi span { display: block; font-size: 0.7rem; color: var(--text-mute); letter-spacing: 0.04em; }
.kpi strong { font-family: var(--mono); font-size: 1.12rem; color: var(--sync); }
.kpi--b strong { color: var(--agent); }
.kpi--w strong { color: var(--warn); }

.spark { width: 100%; height: 62px; display: block; }
.spark path.fill { fill: url(#sparkFill) rgba(33, 224, 166, 0.18); opacity: 0.55; }
.spark path.line { fill: none; stroke: var(--sync); stroke-width: 2; stroke-linecap: round; }

.code-line { font-family: var(--mono); font-size: 0.8rem; line-height: 1.85; color: var(--text-soft); white-space: pre-wrap; word-break: break-all; }
.code-line .k { color: #7aa2ff; }
.code-line .s { color: #6ee7b7; }
.code-line .n { color: #ffb443; }
.code-line .c { color: #5b6784; }
.code-line .fn { color: #c4a2ff; }

.typing-caret::after {
  content: "";
  display: inline-block;
  width: 7px; height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--agent);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 2. 信任条 ---------- */
.trust { padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-soft); }
.trust__inner { display: flex; align-items: center; gap: clamp(18px, 4vw, 46px); flex-wrap: wrap; }
.trust__label { font-size: 0.82rem; color: var(--text-mute); letter-spacing: 0.06em; }
.trust__logos { display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; align-items: center; }
.logo-pill {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  padding: 7px 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  transition: color var(--dur), border-color var(--dur);
}
.logo-pill:hover { color: var(--text); border-style: solid; }

/* ---------- 3. 产品总览大卡 ---------- */
.product-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding: clamp(10px, 4vw, 22px);
}
.product-card--sync { grid-template-columns: 0.95fr 1.05fr; }
.product-card--sync .product-card__art { order: -1; }
.product-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.tag--agent { color: #04101f; background: linear-gradient(120deg, #5aa6ff, #8ec5ff); }
.tag--sync { color: #04170f; background: linear-gradient(120deg, #21e0a6, #7ef0c8); }
.product-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.product-card p { color: var(--text-soft); }
.product-card__list { margin: 18px 0 22px; }
.product-card__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(120% 110% at 12% 8%, rgba(90, 166, 255, 0.22), transparent 55%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
}
.art--sync {
  background:
    radial-gradient(120% 110% at 88% 12%, rgba(33, 224, 166, 0.22), transparent 55%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
}
.art__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
}
.art__inner { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; }

/* 聊天气泡艺术 */
.bubbles { display: grid; gap: 10px; width: 100%; }
.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  max-width: 82%;
  animation: floaty 5.5s var(--ease) infinite;
}
.bubble--user { margin-left: auto; background: var(--grad-brand); color: #fff; border-color: transparent; animation-delay: 0.6s; }
.bubble--ai code { font-family: var(--mono); font-size: 0.78rem; color: #9fe8cf; }
[data-theme="light"] .bubble--ai code { color: #0a7a5f; }
/* SQL 代码块：保留手动换行，但允许窄屏随气泡宽度自动折行，避免横向溢出 */
.bubble pre { white-space: pre-wrap; overflow-wrap: break-word; }
/* 口径说明：小字弱化，与 AI 气泡正文区分 */
.bubble__note { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--text-mute); }
/* 产品卡片内空间有限：略缩气泡内边距与间距，避免内容超出 4:3 画布 */
.art--chat .art__inner { padding: 5.5% 8%; }
.art--chat .bubbles { gap: 8px; }
.art--chat .bubble { padding: 8px 13px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* 同步节点艺术 */
.nodes { position: relative; width: 100%; height: 100%; }
.node-box {
  position: absolute;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-soft);
  white-space: nowrap;
}
.node-box b { display: block; color: var(--text); font-size: 0.72rem; letter-spacing: 0.05em; }
.node-box--src { left: 4%; top: 16%; }
.node-box--src2 { left: 4%; top: 58%; }
.node-box--dst { right: 4%; top: 37%; border-color: rgba(33, 224, 166, 0.5); color: var(--sync); }
.link-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.link-line path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 6 8; }
.link-line .flow { stroke: var(--sync); stroke-dasharray: 12 200; animation: dashmove 2.6s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -212; } }

/* ---------- 4. 能力网格 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-grid .card { padding: 24px; }

/* ---------- 5. 图文交替区块 ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}
.split--rev .split__art { order: -1; }
.split__body h2 { margin-bottom: 0.35em; }
.split__body .lead { color: var(--text-soft); }
.split__list { margin: 20px 0 26px; }
.split__art { position: relative; }

/* ---------- 6. DataStudio 交互演示 ---------- */
.chat-demo {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.chat-demo__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.85rem;
  color: var(--text-soft);
}
.chat-demo__bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--sync); }
.chat-demo__bar .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--sync); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }

.chat-demo__log {
  padding: 18px;
  display: grid;
  gap: 14px;
  min-height: 320px;
  max-height: 320px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, var(--overlay), transparent 30%),
    var(--code-bg);
}
.msg { display: flex; gap: 10px; align-items: flex-start; animation: msgIn 0.45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } }
.msg__avatar {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--overlay-strong);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.msg__body {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 14px;
  background: var(--surface);
  font-size: 0.89rem;
  color: var(--text-soft);
  max-width: 100%;
  overflow-x: auto;
}
.msg--user { flex-direction: row-reverse; }
.msg--user .msg__body { background: rgba(76, 125, 255, 0.14); border-color: rgba(76, 125, 255, 0.32); color: var(--text); }
.msg--user .msg__avatar { background: var(--grad-brand); color: #fff; border-color: transparent; }
.msg--ai .msg__avatar { background: rgba(33, 224, 166, 0.16); color: var(--sync); border-color: rgba(33, 224, 166, 0.34); }
.msg__body pre {
  margin: 8px 0 4px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text-soft);
  white-space: pre;
}
.msg__body table { border-collapse: collapse; font-size: 0.78rem; font-family: var(--mono); margin-top: 8px; min-width: 100%; }
.msg__body th, .msg__body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.msg__body th { background: var(--surface-2); color: var(--text); }
.msg__body .metric-tag { color: var(--agent); border-bottom: 1px dashed var(--agent); cursor: help; }

.chat-demo__suggests { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 0; }
.suggest {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--overlay);
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.suggest:hover { border-color: var(--agent); color: var(--agent); transform: translateY(-2px); }
.suggest.is-active { background: rgba(90, 166, 255, 0.16); border-color: var(--agent); color: var(--agent); }

.chat-demo__input { display: flex; gap: 10px; padding: 14px 16px 16px; align-items: center; }
.chat-demo__input input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
}
.chat-demo__input input::placeholder { color: var(--text-mute); }
.chat-demo__input input:focus { outline: none; border-color: var(--agent); box-shadow: 0 0 0 3px rgba(90, 166, 255, 0.16); }

/* ---------- 7. SyncDataRT 同步演示 ---------- */
.sync-demo {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.sync-demo__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.sync-demo__bar h4 { margin: 0; font-size: 0.94rem; }
.sync-demo__bar .job { font-family: var(--mono); font-size: 0.78rem; color: var(--text-mute); }
.sync-demo__bar .btn { margin-left: auto; }

.pipe { padding: 22px 18px; background: var(--code-bg); }
.pipe__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.endpoint {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  font-size: 0.85rem;
}
.endpoint b { display: block; font-family: var(--mono); font-size: 0.82rem; color: var(--text); margin-bottom: 4px; }
.endpoint span { color: var(--text-mute); font-size: 0.78rem; }
.endpoint--dst { border-color: rgba(33, 224, 166, 0.35); }

.pipe__track { position: relative; height: 46px; min-width: 120px; flex: 1; }
.pipe__wire {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: var(--line-strong);
}
.packets { position: absolute; inset: 0; overflow: hidden; }
.packet {
  position: absolute;
  top: 50%;
  width: 22px; height: 5px;
  margin-top: -2.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--sync));
  box-shadow: 0 0 12px var(--sync);
  opacity: 0;
  animation: travel 2.2s linear infinite;
}
.packet:nth-child(2) { animation-delay: 0.45s; }
.packet:nth-child(3) { animation-delay: 0.9s; }
.packet:nth-child(4) { animation-delay: 1.35s; }
.packet:nth-child(5) { animation-delay: 1.8s; }
@keyframes travel {
  0% { left: -24px; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.sync-demo.is-paused .packet { animation-play-state: paused; opacity: 0.2; }
.sync-demo.is-paused .bar__fill::after { animation-play-state: paused; }

.meter { display: grid; gap: 12px; padding: 4px 18px 18px; }
.meter__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gauge { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--overlay); padding: 11px 13px; }
.gauge span { font-size: 0.72rem; color: var(--text-mute); display: block; }
.gauge strong { font-family: var(--mono); font-size: 1.02rem; color: var(--text); }
.gauge--ok strong { color: var(--sync); }
.gauge--warn strong { color: var(--warn); }

.bar { height: 8px; border-radius: 999px; background: var(--overlay-strong); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad-sync); transition: width 0.4s linear; position: relative; }
.bar__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0 8px, transparent 8px 16px);
  animation: slide 0.9s linear infinite;
}
@keyframes slide { to { transform: translateX(-16px); } }
.progress-caption { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-mute); font-family: var(--mono); }

.term {
  margin: 0;
  padding: 14px 18px 16px;
  background: var(--code-bg);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.9;
  color: var(--text-soft);
  height: 148px;
  overflow: hidden;
}
/* 终端日志行不换行，超宽时省略，避免窄屏下撑宽父容器 */
.term > div { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.term .t { color: var(--text-mute); }
.term .ok { color: var(--sync); }
.term .info { color: var(--agent); }
.term .warn { color: var(--warn); }

/* ---------- 8. 视频演示 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.video-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  display: flex;
  flex-direction: column;
  width: 100%;
}
.video-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-card__thumb .bg {
  position: absolute;
  inset: 0;
  background-size: 34px 34px;
  transition: transform 0.6s var(--ease);
}
.video-card:hover .video-card__thumb .bg { transform: scale(1.06); }
.bg--agent {
  background-image:
    radial-gradient(90% 80% at 20% 10%, rgba(90, 166, 255, 0.4), transparent 60%),
    linear-gradient(2px, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  background-color: #0a1225;
}
.bg--sync {
  background-image:
    radial-gradient(90% 80% at 80% 12%, rgba(33, 224, 166, 0.4), transparent 60%),
    linear-gradient(2px, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  background-color: #06170f;
}
.bg--mix {
  background-image:
    radial-gradient(70% 90% at 15% 15%, rgba(90, 166, 255, 0.35), transparent 60%),
    radial-gradient(70% 90% at 90% 85%, rgba(139, 92, 246, 0.35), transparent 60%),
    linear-gradient(2px, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px;
  background-color: #0b0a1f;
}
.video-card__waves {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  opacity: 0.75;
}
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(8, 12, 24, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur);
}
.video-card:hover .play-btn { transform: scale(1.12); background: rgba(76, 125, 255, 0.85); }
.play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.play-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }

.video-card__dur {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 9px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  background: rgba(4, 7, 16, 0.78);
  border: 1px solid var(--line);
  color: #fff;
}
.video-card__badge {
  position: absolute;
  left: 10px; top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(4, 7, 16, 0.7);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.video-card__body { padding: 15px 17px 18px; display: grid; gap: 5px; }
.video-card__title { display: block; font-size: 0.97rem; font-weight: 700; color: var(--text); }
.video-card__desc { display: block; font-size: 0.84rem; color: var(--text-mute); }

/* 内嵌播放器 */
.embed-player { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); }
.embed-player__bar { display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 0.88rem; }
.embed-player__bar .chip { margin-left: auto; }
.embed-player .video-frame { border-radius: 0; border: 0; }

/* ---------- 9. 架构分层 ---------- */
.arch { display: grid; gap: 14px; }
.arch__layer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.arch__layer:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateX(5px); }
.arch__name { font-weight: 700; font-size: 0.93rem; }
.arch__name span { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text-mute); font-family: var(--mono); }
.arch__items { display: flex; gap: 10px; flex-wrap: wrap; }
.arch__item {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--overlay);
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: all var(--dur) var(--ease);
}
.arch__item:hover { color: var(--text); background: var(--overlay-strong); }
.arch__item--hl { border-color: rgba(90, 166, 255, 0.4); color: var(--agent); }
.arch__item--hl2 { border-color: rgba(33, 224, 166, 0.4); color: var(--sync); }

/* ===== 工作原理架构图优化（SyncDataRT 页面） ===== */
.arch--flow {
  display: grid;
  gap: 0;
  position: relative;
}

/* 层级卡片：增强层次感与悬停反馈 */
.arch--flow .arch__layer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--overlay), transparent 40%),
    var(--surface);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.arch--flow .arch__layer:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  transform: translateX(6px);
  box-shadow: 0 12px 32px -20px color-mix(in srgb, var(--brand) 70%, transparent);
}

/* 各层级左侧强调色条 */
.arch--flow .arch__layer::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--line-strong);
  transition: background var(--dur);
}
.arch--flow .arch__layer--src::before { background: var(--brand); }
.arch--flow .arch__layer--parser::before { background: var(--agent); }
.arch--flow .arch__layer--replay::before { background: var(--warn); }
.arch--flow .arch__layer--target::before { background: var(--sync); }

/* 连接器：垂直流线 + 标签 */
.arch__connector {
  position: relative;
  height: 34px;
  display: grid;
  place-items: center;
}
.arch__connector__line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--line-strong), transparent);
}
.arch__connector__dot {
  position: relative;
  z-index: 1;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 70%, transparent);
}
.arch__connector__label {
  position: absolute;
  left: calc(50% + 18px);
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--text-mute);
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* 架构项微调 */
.arch--flow .arch__item {
  padding: 7px 13px;
  font-size: 0.84rem;
  border-radius: 9px;
}
.arch--flow .arch__item--hl2 {
  background: rgba(33, 224, 166, 0.08);
  box-shadow: inset 0 0 0 1px rgba(33, 224, 166, 0.18);
}

/* ===== 日志解析器层级：首项独占一行，其余项按内容宽度均布 ===== */
.arch--flow .arch__layer--parser .arch__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.arch--flow .arch__layer--parser .arch__items .arch__item:first-child {
  flex: 1 0 100%; /* 占满整行 */
}
.arch--flow .arch__layer--parser .arch__items .arch__item:not(:first-child) {
  max-width: 100%; /* 内容自适应宽度，短文本不再被拉宽 */
}

/* 窄屏适配：连接器简化 */
@media (max-width: 640px) {
  .arch--flow .arch__layer { grid-template-columns: 1fr; gap: 10px; }
  .arch__connector { height: 26px; }
  .arch__connector__label { left: auto; right: 0; }
  /* 窄屏下芯片左对齐换行，避免 space-between 换行后空隙过大 */
  .arch--flow .arch__layer--parser .arch__items {
    justify-content: flex-start;
  }
}

/* ---------- 10. Tabs ---------- */
.tabs__nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; justify-content: center; }
.tab-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--text); border-color: var(--line-strong); }
.tab-btn[aria-selected="true"] { background: var(--grad-brand); border-color: transparent; color: #fff; }
.tab-panel { display: none; animation: fadeIn 0.45s var(--ease); }
.tab-panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3vw, 40px);
}
.panel-card h3 { margin-bottom: 0.4em; }
.kv { display: grid; gap: 12px; }
.kv__item { border-left: 2px solid var(--brand); padding-left: 14px; }
.kv__item b { display: block; font-size: 0.85rem; color: var(--text-mute); font-weight: 600; }
.kv__item span { font-size: 1.06rem; font-family: var(--mono); color: var(--text); }

/* ---------- 11. 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  right: 12px; top: 4px;
  font-family: var(--mono);
  font-size: 3.1rem;
  font-weight: 700;
  color: var(--overlay-strong);
  line-height: 1;
}
.step h4 { position: relative; }
.step p { position: relative; color: var(--text-soft); font-size: 0.9rem; margin: 0; }

/* ---------- 12. 版本与定价 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan { display: grid; gap: 14px; }
.plan--hot { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--shadow-glow); }
.plan__price { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; }
.plan__price small { font-size: 0.85rem; color: var(--text-mute); font-weight: 500; }
.plan__name { display: flex; align-items: center; gap: 10px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 24px; margin: 0; font-size: 0.9rem; color: var(--text-soft); }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.55em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--sync);
  border-bottom: 2px solid var(--sync);
  transform: rotate(-45deg);
}

/* ---------- 13. 客户评价 / 时间线 ---------- */
.quote { display: grid; gap: 16px; }
.quote__text { font-size: 1.02rem; line-height: 1.85; color: var(--text); margin: 0; }
.quote__text::before { content: "“"; color: var(--brand); font-size: 1.6em; line-height: 0; vertical-align: -0.28em; margin-right: 2px; }
.quote__text::after { content: "”"; color: var(--brand); font-size: 1.6em; line-height: 0; vertical-align: -0.34em; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: var(--grad-brand);
  flex: none;
}
.avatar--2 { background: linear-gradient(135deg, #21e0a6, #0e9c78); }
.avatar--3 { background: linear-gradient(135deg, #ffb443, #ff6b6b); }
.quote__who div span { display: block; font-size: 0.82rem; color: var(--text-mute); }
.quote__who div b { font-size: 0.94rem; }

.timeline { position: relative; display: grid; gap: 22px; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--brand), var(--sync), transparent);
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
}
.tl-item time { font-family: var(--mono); font-size: 0.8rem; color: var(--brand); }
.tl-item h4 { margin: 2px 0 4px; font-size: 1rem; }
.tl-item p { margin: 0; color: var(--text-soft); font-size: 0.9rem; }

/* ---------- 14. CTA + 表单 ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(76, 125, 255, 0.32), transparent 58%),
    radial-gradient(110% 150% at 92% 100%, rgba(33, 224, 166, 0.24), transparent 55%),
    var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { color: var(--text-soft); max-width: 42em; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* CTA 美化变体：渐变描边 + 柔光装饰（仅 contact 页使用） */
.cta-band--rich { border-color: transparent; isolation: isolate; }
.cta-band--rich::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(76,125,255,.65), rgba(33,224,166,.5) 55%, rgba(139,92,246,.65));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
.cta-band--rich .cta-band__deco { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.cta-band--rich .cta-band__deco::before {
  content: "";
  position: absolute;
  top: -45%; left: -8%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,166,255,.42), transparent 62%);
  filter: blur(14px);
  animation: ctaFloat 9s var(--ease, ease-in-out) infinite alternate;
}
.cta-band--rich .cta-band__deco::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -85px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(33,224,166,.36), transparent 62%);
  filter: blur(16px);
  animation: ctaFloat 11s var(--ease, ease-in-out) infinite alternate-reverse;
}
@keyframes ctaFloat { from { transform: translateY(-10px) } to { transform: translateY(14px) } }
@media (prefers-reduced-motion: reduce) { .cta-band--rich .cta-band__deco::before, .cta-band--rich .cta-band__deco::after { animation: none; } }
.cta-band--rich .cta-band__content { display: grid; gap: 10px; align-content: center; }
.cta-band--rich h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; }
.cta-band--rich p { margin: 0; }
.cta-band--rich .cta-band__actions { flex-direction: column; align-items: stretch; justify-content: center; }
@media (max-width: 900px) {
  .cta-band--rich .cta-band__actions { flex-direction: row; align-items: center; }
  .cta-band--rich .cta-band__actions .btn { flex: 1 1 auto; justify-content: center; }
}

.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 15px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.field label .req { color: --danger; }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.93rem;
  width: 100%;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 108px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(76, 125, 255, 0.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__err { font-size: 0.78rem; color: var(--danger); min-height: 1em; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form__status { font-size: 0.88rem; color: var(--sync); min-height: 1.3em; }

.contact__info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item__icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--overlay-strong);
  border: 1px solid var(--line);
  color: var(--brand);
}
.info-item__icon svg { width: 20px; height: 20px; }
.info-item b { display: block; font-size: 0.95rem; }
.info-item span { color: var(--text-mute); font-size: 0.89rem; }

/* ---------- 15. 子页 Hero ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(48px, 7vw, 84px)) 0 clamp(38px, 5vw, 60px); position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 220px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(60% 60% at 50% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 20%, #000, transparent 75%);
}
.page-hero--agent::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(760px 380px at 18% 8%, rgba(90, 166, 255, 0.22), transparent 62%);
}
.page-hero--sync::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(760px 380px at 82% 8%, rgba(33, 224, 166, 0.2), transparent 62%);
}
/* 收紧 jump-bar 与 Hero 内容之间的空白：保留 --nav-h 以避让吸顶快捷条，仅缩小额外间距 */
.page-hero--sync { padding-top: calc(var(--nav-h) + clamp(12px, 2vw, 24px)); }
/* 资源子页（视频演示/技术架构/联系我们）：收紧 Hero 顶部空白，仅保留 --nav-h 以避让固定导航 */
.page-hero--tight { padding-top: calc(var(--nav-h) + clamp(12px, 2vw, 24px)); }

.page-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
/* Hero 指标卡组：值（b）在上用品牌渐变突出，说明（span）在下，悬停微亮浮起 */
.page-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.page-hero__stats > div {
  position: relative;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(130% 100% at 50% -36%, rgba(90, 166, 255, 0.14), transparent 72%),
    linear-gradient(180deg, var(--overlay), transparent 62%),
    var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.page-hero__stats > div:hover {
  border-color: rgba(90, 166, 255, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -22px rgba(90, 166, 255, 0.65);
}
.page-hero__stats b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero__stats span { display: block; margin-top: 3px; font-size: 0.79rem; line-height: 1.5; color: var(--text-mute); }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.83rem; color: var(--text-mute); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: 0.5; }

/* 指标条（性能对比） */
.benchmarks { display: grid; gap: 16px; }
.bench { display: grid; gap: 8px; }
.bench__head { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-soft); }
.bench__head b { font-family: var(--mono); color: var(--text); }
.bench__bar { height: 10px; border-radius: 999px; background: var(--overlay-strong); overflow: hidden; }
.bench__val { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad-brand); transition: width 1.1s var(--ease); }
.bench--sync .bench__val { background: var(--grad-sync); }

/* 支持的数据源 */
.source-clouds { display: flex; flex-wrap: wrap; gap: 10px; }
.source-clouds .chip { font-family: var(--mono); }

/* 顶部锚点快捷条 */
.jump-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.jump-bar__inner { display: flex; gap: 4px; overflow-x: auto; padding: 9px 0; scrollbar-width: none; }
.jump-bar__inner::-webkit-scrollbar { display: none; }
.jump-bar a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-mute);
  white-space: nowrap;
  transition: all var(--dur);
}
.jump-bar a:hover, .jump-bar a.is-active { color: var(--text); background: var(--overlay-strong); }

/* 悬浮回到顶部 */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all var(--dur) var(--ease);
  z-index: 80;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 19px; height: 19px; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 22px 26px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur) var(--ease);
  }
  .nav.is-open .nav__menu { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 13px 14px; border-radius: 12px; font-size: 1rem; }
  .nav__burger { display: grid; }
  .nav__actions .btn--desktop { display: none; }

  .hero__grid, .split, .panel-card, .cta-band, .contact, .page-hero__grid, .plans,
  /* minmax(0, 1fr)：防止不可换行内容（如终端日志）把列宽撑破容器 */
  .product-card, .product-card--sync { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split__art, .product-card--sync .product-card__art { order: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch__layer { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .feature-grid, .video-grid, .video-grid--3, .steps, .grid--2, .grid--3, .kpi-row,
  .meter__row, .form__row, .pipe__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .pipe__track { height: 34px; }
  .hero__cta .btn { flex: 1; }
  .stat { padding: 20px 14px; }
  .page-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page-hero__stats > div { padding: 12px 13px; }
  .section-head { text-align: left; }
  /* 聊天气泡艺术：窄屏放弃 4:3 定高比，改为随内容自适应，避免气泡底部被裁切 */
  .art--chat { aspect-ratio: auto; }
  .art--chat .art__inner { position: relative; inset: auto; padding: 22px 16px; }
  .art--chat .bubble { max-width: 92%; }
}

/* ---------- 17. 数工坊 DataStudio：IDE 窗口模拟 + AI 工具调用 ---------- */
.page-hero--ide::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 380px at 82% 6%, rgba(76, 125, 255, 0.24), transparent 62%),
    radial-gradient(680px 360px at 10% 92%, rgba(139, 92, 246, 0.18), transparent 60%);
}
/* 收紧 jump-bar 与 Hero 内容之间的空白：保留 --nav-h 以避让吸顶快捷条，仅缩小额外间距 */
.page-hero--ide { padding-top: calc(var(--nav-h) + clamp(12px, 2vw, 24px)); }

.ide-window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  font-size: 0.82rem;
}
.ide-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.ide-titlebar b { font-size: 0.76rem; font-weight: 600; color: var(--text-mute); margin-left: 6px; letter-spacing: 0.04em; }
.ide-titlebar__right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* 变体：ide-window 内直接放真实界面截图（页面内等比缩放，点击看 1:1 原图） */
.ide-shot { margin: 0; }
.ide-shot__link { display: block; position: relative; cursor: zoom-in; }
.ide-shot__link:focus-visible { outline: 2px solid var(--agent); outline-offset: -2px; }
.ide-shot__img { display: block; width: 100%; height: auto; background: var(--code-bg); }
.ide-shot__cap {
  padding: 10px 14px; text-align: center;
  font-size: 0.76rem; color: var(--text-mute);
  background: var(--surface-2); border-top: 1px solid var(--line);
}
.ide-shot__hint {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: rgba(3, 5, 12, 0.62);
  color: #fff; font-size: 0.72rem; white-space: nowrap;
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur), transform var(--dur);
}
.ide-shot__hint svg { width: 13px; height: 13px; flex: none; }
.ide-shot__link:hover .ide-shot__hint,
.ide-shot__link:focus-visible .ide-shot__hint { opacity: 1; transform: none; }

/* 截图灯箱：默认按原始像素 1:1 展示，超出部分可滚动查看 */
.modal--image .modal__panel { width: min(1680px, 100%); }
.img-stage {
  display: flex; overflow: auto;
  max-height: calc(100vh - 230px);
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.img-stage img { display: block; margin: auto; }
.img-stage img.is-fit { width: 100%; height: auto; }
.img-stage img.is-actual { flex: none; width: auto; height: auto; max-width: none; }
.img-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.img-toolbar__btns { margin-left: auto; display: flex; gap: 8px; }

.ide-tabs { display: flex; align-items: center; gap: 2px; padding: 0 8px; background: var(--overlay); border-bottom: 1px solid var(--line); overflow-x: auto; }
.ide-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 0.76rem; color: var(--text-mute);
  border-right: 1px solid var(--line); white-space: nowrap;
}
.ide-tab.is-active { color: var(--text); background: var(--surface); }
.ide-tab .dot-ai { width: 7px; height: 7px; border-radius: 50%; background: var(--agent); box-shadow: 0 0 8px var(--agent); }

.ide-body { display: grid; grid-template-columns: 186px minmax(0, 1fr) 312px; }
.ide-pane { min-width: 0; }
.ide-pane__head { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-mute); padding: 2px 6px 8px; letter-spacing: 0.04em; }

.ide-side { border-right: 1px solid var(--line); background: var(--bg-soft); padding: 10px 8px; }
.ide-tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ide-tree li {
  display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 6px;
  color: var(--text-soft); font-family: var(--mono); font-size: 0.72rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ide-tree li:hover { background: var(--overlay); }
.ide-tree .i { width: 12px; text-align: center; opacity: 0.82; flex: none; }
.ide-tree .lv2 { padding-left: 18px; }
.ide-tree .lv3 { padding-left: 30px; }
.ide-tree .lv4 { padding-left: 42px; }
.ide-tree .is-db { color: var(--text); }
.ide-tree .is-key { color: var(--warn); }
.ide-tree .is-col { color: var(--text-mute); }

.ide-editor { background: var(--code-bg); display: flex; flex-direction: column; min-height: 360px; }
.ide-editor__bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--overlay); flex-wrap: wrap; }
.ide-select {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-soft);
  font-size: 0.72rem; font-family: var(--mono); white-space: nowrap;
}
.ide-select .caret { color: var(--text-mute); }
.ide-run { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ide-run .btn-run { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--overlay-strong); border: 1px solid var(--line); color: var(--sync); }
.ide-run .btn-run svg { width: 13px; height: 13px; }
.ide-conn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--sync); }
.ide-conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--sync); box-shadow: 0 0 8px var(--sync); }

.ide-code { flex: 1; padding: 12px 14px; overflow: auto; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; font-family: var(--mono); font-size: 0.76rem; line-height: 1.9; }
.ide-code .gutter { color: var(--text-mute); text-align: right; user-select: none; opacity: 0.55; white-space: pre; }
.ide-code .gutter .g-run { color: var(--sync); }
.ide-code .src { white-space: pre; color: var(--text-soft); }
.ide-code .kw { color: #7aa2ff; }
.ide-code .ty { color: #c4a2ff; font-style: italic; }
.ide-code .st { color: #6ee7b7; }
.ide-code .nu { color: #ffb443; }
.ide-code .cm { color: #5b6784; }
.ide-code .fn { color: #8ec5ff; }

.ide-console { border-top: 1px solid var(--line); background: var(--bg-soft); }
.ide-console__bar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: 0.72rem; color: var(--text-mute); border-bottom: 1px solid var(--line); }
.ide-console__body { padding: 8px 12px; font-family: var(--mono); font-size: 0.72rem; color: var(--text-soft); min-height: 44px; }
.ide-console__body .ok { color: var(--sync); }

.ide-assistant { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 360px; }
.ide-assistant__head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ide-assistant__head b { font-size: 0.8rem; }
.ide-assistant__head .ide-select { margin-left: auto; }
.ide-assistant__body { flex: 1; padding: 12px; display: grid; gap: 10px; align-content: start; overflow: auto; }

.tool-call { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--overlay); }
.tool-call__icon { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: rgba(90, 166, 255, 0.14); color: var(--agent); border: 1px solid rgba(90, 166, 255, 0.3); }
.tool-call__icon svg { width: 14px; height: 14px; }
.tool-call__icon--src { background: rgba(33, 224, 166, 0.14); color: var(--sync); border-color: rgba(33, 224, 166, 0.3); }
.tool-call__icon--mcp { background: rgba(255, 180, 67, 0.14); color: var(--warn); border-color: rgba(255, 180, 67, 0.3); }
.tool-call__main { min-width: 0; }
.tool-call__name { font-family: var(--mono); font-size: 0.76rem; color: var(--text); }
.tool-call__desc { font-size: 0.7rem; color: var(--text-mute); }
.tool-call__ok { margin-left: auto; color: var(--sync); font-size: 0.72rem; }
.ai-note { font-size: 0.74rem; color: var(--text-soft); }
.ai-note .ok { color: var(--sync); }

.ide-assistant__input { border-top: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; }
.ide-assistant__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ide-assistant__box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 8px 10px; }
.ide-assistant__box span { color: var(--text-mute); font-size: 0.78rem; }
.ide-assistant__box .send { margin-left: auto; color: var(--agent); }

.ai-summary { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ai-summary__head { padding: 7px 10px; background: var(--surface-2); font-size: 0.74rem; color: var(--text); border-bottom: 1px solid var(--line); }
.ai-summary table { width: 100%; border-collapse: collapse; font-size: 0.66rem; font-family: var(--mono); }
.ai-summary th, .ai-summary td { padding: 5px 8px; text-align: left; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.ai-summary th { background: var(--overlay); color: var(--text-mute); font-weight: 600; }
.ai-summary tr:last-child td { border-bottom: 0; }
.ai-summary .op-new { color: var(--sync); }
.ai-summary .op-upd { color: var(--warn); }

@media (max-width: 1080px) {
  .ide-body { grid-template-columns: 152px minmax(0, 1fr) 264px; }
}
@media (max-width: 900px) {
  .ide-body { grid-template-columns: 1fr; }
  .ide-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 210px; overflow: auto; }
  .ide-assistant { border-left: 0; border-top: 1px solid var(--line); }
  .ide-editor { min-height: 260px; }
}
.cta-band--actions-right {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.cta-band--actions-right .cta-band__actions {
  justify-content: flex-end;
}
.cta-band--actions-right h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .cta-band--actions-right {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-band--actions-right .cta-band__actions {
    justify-content: flex-start;
  }
  .cta-band--actions-right h2 {
    white-space: normal;
    overflow: visible;
  }
}

/* ==========================================================================
   账号模块：登录/注册页、导航登录态、下载按钮、轻提示
   ========================================================================== */

/* ---------- 顶部导航登录态用户菜单 ---------- */
.user-menu { position: relative; display: inline-flex; }
.user-menu__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--overlay);
  color: var(--text-soft); font-size: 0.82rem; transition: border-color var(--dur) var(--ease);
}
.user-menu__btn:hover { border-color: var(--brand); }
.user-menu__avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 0.78rem; font-weight: 700;
}
.user-menu__name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 190px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); box-shadow: var(--shadow-2); padding: 8px;
}
.user-menu__info { padding: 6px 10px; font-size: 0.78rem; color: var(--text-mute); }
.user-menu__logout {
  width: 100%; text-align: left; cursor: pointer; margin-top: 4px;
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--overlay); color: var(--danger); font-size: 0.82rem;
}
.user-menu__logout:hover { background: rgba(255, 92, 114, 0.12); border-color: rgba(255, 92, 114, 0.4); }

/* ---------- 轻提示 toast ---------- */
.dp-toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 16px);
  z-index: 999; padding: 10px 20px; border-radius: 999px; font-size: 0.86rem;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  box-shadow: var(--shadow-2); opacity: 0; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: min(86vw, 520px);
}
.dp-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.dp-toast--ok { border-color: rgba(33, 224, 166, 0.5); color: var(--sync); }
.dp-toast--err { border-color: rgba(255, 92, 114, 0.5); color: var(--danger); }

/* ---------- 登录/注册页 ---------- */
.account-section { display: grid; place-items: center; min-height: calc(100vh - var(--nav-h) - 120px); padding-top: calc(var(--nav-h) + 30px); }
.account-wrap { width: 100%; max-width: 460px; padding-inline: 18px; }
.account-card { padding: clamp(22px, 5vw, 34px); }
.account-title { font-size: 1.35rem; margin-bottom: 14px; text-align: center; }

.account-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px;
  padding: 5px; border-radius: 12px; background: var(--overlay); border: 1px solid var(--line);
}
.account-tabs:has([data-reg-channel]) { grid-template-columns: repeat(2, 1fr); }
.account-tab {
  padding: 8px 4px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
  color: var(--text-mute); font-size: 0.88rem; font-weight: 600; transition: all var(--dur) var(--ease);
}
.account-tab.is-active { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 18px -8px var(--brand); }

/* hidden 属性统一生效：避免下面各组件的 display 规则覆盖 [hidden] 导致同时显示 */
[hidden] { display: none !important; }

.account-form { display: grid; gap: 14px; }
.account-field { display: grid; gap: 6px; }
.account-field__label { font-size: 0.8rem; color: var(--text-soft); font-weight: 600; }
.account-input {
  width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 0.92rem;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.account-input::placeholder { color: var(--text-mute); }
.account-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(76, 125, 255, 0.2); }

.account-code-row { display: flex; gap: 8px; }
.account-code-row .account-input { flex: 1; min-width: 0; }
.account-code-btn { flex: none; white-space: nowrap; }
.account-code-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.account-msg { min-height: 1.2em; font-size: 0.82rem; margin: -4px 0; }
.account-msg.is-err { color: var(--danger); }
.account-msg.is-ok { color: var(--sync); }

.account-submit { width: 100%; justify-content: center; margin-top: 4px; }
.account-note { font-size: 0.76rem; color: var(--text-mute); text-align: center; margin: 0; }
.account-switch { text-align: center; font-size: 0.85rem; color: var(--text-soft); margin: 18px 0 0; }
.account-switch a { color: var(--agent); font-weight: 600; }
.account-switch a:hover { text-decoration: underline; }

/* 微信扫码区 */
.account-wechat { position: relative; display: grid; place-items: center; min-height: 300px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; overflow: hidden; }
.account-wechat__ph { display: grid; place-items: center; gap: 10px; color: var(--text-mute); font-size: 0.85rem; padding: 24px; text-align: center; }
.account-wechat__frame { width: 100%; height: 340px; border: 0; background: #fff; }
.account-wechat__mask {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 5;
  background: rgba(5, 7, 15, 0.72); color: var(--text); font-size: 0.88rem; backdrop-filter: blur(2px);
}

/* 下载按钮图标微调 */
.js-download svg { width: 16px; height: 16px; flex: none; }