/* 官网首页专用样式（LP-11～LP-33、LP-60）。只在 / 与 /en/ 引用；通用组件仍在 site.css。
 * 2026-10 改版：大气留白 + 圆角柔和。通用组件（按钮 / 卡片 / 区块 / 渠道墙）的圆角与阴影已统一进 site.css，
 * 这里只放首页独有的 Hero、产品窗、平台运行数据、定价摘要、FAQ 与底部深色 CTA。 */

/* ---------- 首页级 token：沿用 tokens-site.css 的圆角与阴影 ---------- */
body.home {
  --h-r-sm: var(--r-sm);
  --h-r-md: var(--r-md);
  --h-r-lg: 20px;
  --h-r-xl: 28px;
  --h-shadow-card: var(--shadow-md);
  --h-shadow-float: var(--shadow-xl);
  --h-shadow-hover: var(--shadow-lg);
}

/* ---------- Hero：居中标题 + 宽幅产品窗 ---------- */
.hero--home {
  min-height: 0;
  display: block;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  overflow: visible;
}
.hero--home .hero-scene {
  inset: -20% 0 auto;
  height: 120%;
  background:
    radial-gradient(42% 52% at 50% 18%, rgba(var(--signal-rgb), 0.16), transparent 70%),
    radial-gradient(28% 36% at 12% 60%, rgba(var(--signal-rgb), 0.08), transparent 70%),
    radial-gradient(28% 36% at 88% 56%, rgba(var(--signal-rgb), 0.08), transparent 70%);
}
.hero--home .hero-veil {
  background: linear-gradient(180deg, transparent 0%, transparent 70%, var(--paper) 100%);
}
.hero--home .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.75rem, 5vw, 4.25rem); }

.hh-copy {
  display: flex; flex-direction: column; align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  text-align: center;
}
.hero--home .hero-title {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
.hero--home .hero-title span { display: inline; color: inherit; white-space: nowrap; }
.hero--home .hero-title em { font-style: normal; color: var(--signal); white-space: nowrap; }
html[lang="en-US"] .hero--home .hero-title {
  max-width: 17em;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
html[lang="en-US"] .hero--home .hero-title span,
html[lang="en-US"] .hero--home .hero-title em { white-space: normal; }
html[lang="en-US"] .hero--home .hero-cta .btn,
html[lang="en-US"] .hh-facts li { min-width: 0; white-space: normal; }
.hero--home .hero-desc {
  margin: 1.4rem 0 0;
  max-width: 40em;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero--home .hero-cta {
  justify-content: center;
  gap: 0.85rem;
  margin: 2.1rem 0 0;
}
.hero--home .hero-cta .btn {
  min-height: 3.3rem;
  padding: 0.75rem 1.6rem;
  font-size: 1.02rem;
  border-radius: 14px;
}
.hero--home .hero-cta .btn.primary {
  box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--ink) 55%, transparent);
}
.hero--home .hero-cta .btn.primary:hover {
  box-shadow: 0 20px 36px -14px color-mix(in srgb, var(--ink) 65%, transparent);
}
html[data-theme="dark"] .hero--home .hero-cta .btn.primary { box-shadow: none; }

/* 新版提示：胶囊 */
.h-news {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  margin: 0 0 1.6rem;
  padding: 0.3rem 0.95rem 0.3rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: var(--h-shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.h-news:hover { border-color: var(--brand-line); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.h-news b {
  display: inline-grid; place-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--signal); color: #07090c;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  white-space: nowrap;
}
.h-news span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-news i { font-style: normal; color: var(--signal); transition: transform 0.2s ease; }
.h-news:hover i { transform: translateX(3px); }

/* 首月免费：一行事实，用竖线分隔 */
.hh-facts {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.35rem 0;
  margin: 1.6rem 0 0; padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}
.hh-facts li { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0 0.9rem; position: relative; white-space: nowrap; }
.hh-facts li + li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 0.9rem; transform: translateY(-50%);
  background: var(--line);
}
.hh-facts b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hh-facts .is-key {
  color: var(--signal); font-weight: 700;
}
.hh-facts .is-key::before { content: "✓"; font-weight: 700; margin-right: 0.15rem; }
.hh-facts .is-link a { color: var(--ink); font-weight: 600; }
.hh-facts .is-link a:hover { color: var(--signal); text-decoration: none; }

/* 产品窗：宽幅、圆角、柔和阴影，底部有光晕 */
.hh-stage {
  position: relative;
  width: min(100%, 1120px);
  margin: 0 auto;
}
.hh-glow {
  position: absolute; inset: 8% 2% -10%;
  border-radius: 50%;
  background: radial-gradient(50% 60% at 50% 60%, rgba(var(--signal-rgb), 0.22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.h-demo { position: relative; z-index: 1; margin: 0; }
.h-demo-ui {
  border-radius: var(--h-r-lg);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: var(--h-shadow-float);
  background: var(--panel);
}
.h-demo-ui .ui-bar {
  padding: 12px 18px;
  background: color-mix(in srgb, var(--bg) 60%, var(--panel));
}
.h-demo-ui .ui-dots i { width: 10px; height: 10px; }
.h-demo-ui .ui-dots i:nth-child(1) { background: #ff5f57; }
.h-demo-ui .ui-dots i:nth-child(2) { background: #febc2e; }
.h-demo-ui .ui-dots i:nth-child(3) { background: #28c840; }
.h-demo-ui .ui-tab { max-width: 22rem; margin: 0 auto; }
.h-demo-tag {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  color: var(--signal);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
}
.h-demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19.5rem;
}
.h-demo-main { min-width: 0; display: flex; flex-direction: column; }
.h-demo-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.h-demo-avatar {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.h-demo-avatar img { width: 24px; height: 24px; display: block; }
.h-demo-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h-demo-who b { font-size: 0.9rem; font-weight: 650; color: var(--ink); }
.h-demo-who span { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-demo-who i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(var(--signal-rgb), 0.18); }
.h-demo-chat {
  flex: 1;
  min-height: 22rem;
  padding: 1.35rem 1.35rem 1.1rem;
  gap: 0.85rem;
  background: var(--panel);
}
.h-demo-chat .bubble { font-size: 0.92rem; line-height: 1.65; padding: 11px 15px; border-radius: 16px; max-width: 78%; }
.h-demo-chat .bubble.ask { border-bottom-right-radius: 6px; }
.h-demo-chat .bubble.ans { border-bottom-left-radius: 6px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.h-demo-foot { padding: 12px 1.35rem; background: var(--panel); border-top: 1px solid var(--line); }
.h-demo-foot .fake-input { color: var(--soft); padding: 9px 14px; }
.h-demo-foot .ui-send { width: 30px; height: 30px; background: var(--signal); color: #07090c; font-weight: 700; }
.h-ai { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 86%; }
.h-ai .bubble { max-width: 100%; }
.h-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0; padding-left: 4px;
  font-size: var(--fs-xs);
}
.h-proof .cite { margin-top: 0; }
.h-conf, .h-queue {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
}
.h-conf::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.h-conf.is-high { color: var(--signal); border-color: var(--brand-line); }
.h-conf.is-low { color: #b45309; border-color: rgba(180, 83, 9, 0.35); }
.h-queue { color: var(--ink-2); }
html[data-theme="dark"] .h-conf.is-low { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }

/* 右侧「回答依据」栏：后台视角，卡片跟对应的那条回答同时出现（data-step="N"） */
.h-demo-side {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, var(--panel));
}
.h-side-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  margin: 0 0 0.2rem;
  font-size: 0.86rem; font-weight: 650; color: var(--ink);
}
.h-side-title span { font-size: 0.7rem; font-weight: 500; color: var(--muted); }
.h-source {
  padding: 0.8rem 0.9rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--h-r-md);
  background: var(--panel);
  box-shadow: var(--h-shadow-card);
  font-size: 0.76rem;
}
.h-source p { margin: 0; }
.h-source-k {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.04em;
  color: var(--signal);
}
.h-source-k i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.h-source-t { margin-top: 0.35rem !important; font-size: 0.82rem; font-weight: 650; color: var(--ink); line-height: 1.4; }
.h-source-q {
  margin-top: 0.3rem !important;
  color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h-source-m { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.6rem !important; }
.h-source-m span {
  display: inline-flex; align-items: center;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem; font-weight: 600;
  background: var(--bg);
}
.h-source-m .is-good { color: var(--signal); border-color: var(--brand-line); background: var(--brand-soft); }
.h-source-m .is-warn { color: #b45309; border-color: rgba(180, 83, 9, 0.35); background: rgba(180, 83, 9, 0.08); }
html[data-theme="dark"] .h-source-m .is-warn { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.1); }
.h-source.is-handoff { border-color: rgba(180, 83, 9, 0.3); }
.h-source.is-handoff .h-source-k { color: #b45309; }
html[data-theme="dark"] .h-source.is-handoff { border-color: rgba(251, 191, 36, 0.3); }
html[data-theme="dark"] .h-source.is-handoff .h-source-k { color: #fbbf24; }

/* 逐条显现：静态 HTML 是全文，JS 只负责显隐，关掉 JS 也能看完整对话 */
.h-js .h-demo [data-step] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.h-js .h-demo [data-step].is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .h-js .h-demo [data-step] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 通用区块 ---------- */
.h-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.h-head-row .head { margin-bottom: 0; }
.h-anchor { scroll-margin-top: 5rem; }

/* 三支柱 */
.h-pillars .offer h3 { font-size: 1.3rem; }

/* 卡片网格（客户经营） */
.h-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.h-card {
  display: flex; flex-direction: column;
  padding: 1.7rem 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--h-r-lg);
  background: var(--panel);
  box-shadow: var(--h-shadow-card);
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.h-card:hover { text-decoration: none; color: inherit; border-color: var(--brand-line); transform: translateY(-3px); box-shadow: var(--h-shadow-hover); }
.h-card-ico {
  width: 40px; height: 40px; margin-bottom: 1rem;
  display: grid; place-items: center;
  color: var(--signal);
  border-radius: 12px;
  background: var(--brand-soft);
}
.h-card-ico svg { width: 20px; height: 20px; }
.h-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.h-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.h-card .more { margin-top: auto; padding-top: 1rem; color: var(--ink); font-size: 0.86rem; font-weight: 600; }
a.h-card:hover .more { color: var(--signal); }
.h-sub-gap { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* 回答依据示意 */
.h-trace .ui-body { display: grid; gap: var(--sp-4); padding: var(--sp-5); }
.h-trace-q {
  margin: 0; padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--h-r-sm);
  font-size: var(--fs-sm); color: var(--ink);
}
.h-trace-label {
  margin: 0 0 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
}
.h-trace-refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h-trace-refs li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--h-r-sm);
  font-size: var(--fs-sm);
}
.h-trace-refs li b { font-family: var(--font-mono); color: var(--signal); font-weight: 700; }
.h-trace-refs li .grow { flex: 1; min-width: 0; }
.h-trace-refs li em { font-style: normal; font-size: var(--fs-xs); color: var(--signal); }
.h-trace-refs li.is-off { color: var(--muted); }
.h-trace-refs li.is-off b, .h-trace-refs li.is-off em { color: var(--muted); }
.h-trace-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  margin: 0;
}
.h-trace-meta div { padding: 9px 12px; background: var(--bg); border-radius: var(--h-r-sm); }
.h-trace-meta dt { font-size: var(--fs-xs); color: var(--muted); }
.h-trace-meta dd { margin: 2px 0 0; font-weight: 700; font-size: var(--fs-sm); }
.h-trace-meta dd.is-good { color: var(--signal); }

/* 开放生态 */
.h-dev > * { min-width: 0; }
.h-dev { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.h-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 0.75rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--h-r-sm);
  background: var(--panel);
}
.h-tab {
  flex: 1 1 auto;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: 600 0.85rem/1.2 var(--font);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.h-tab:hover { color: var(--ink); }
.h-tab[aria-selected="true"] { color: var(--ink); background: var(--bg); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .h-tab[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.h-tab:focus-visible { outline: none; box-shadow: var(--focus); }
body.home .h-panel .code {
  min-height: 15rem;
  border-radius: var(--h-r-md);
  font-size: 0.8rem; line-height: 1.75;
  box-shadow: var(--h-shadow-float);
}
.h-dev .copy h3 { margin: 0 0 var(--sp-3); font-size: 1.3rem; }
.h-panel-note { margin: 0.7rem 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* 定价摘要 */
.h-price {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.h-price > div {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--h-r-lg);
  background: var(--panel);
  box-shadow: var(--h-shadow-card);
}
.h-price .is-hot {
  border-color: var(--brand-line);
  background: linear-gradient(180deg, var(--brand-soft), transparent 70%) var(--panel);
}
.h-price p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }
.h-price .h-price-name { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; color: var(--signal); }
.h-price strong { display: block; margin: 0.4rem 0 0.5rem; font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.h-price--tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .h-price--tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .h-price--tiers { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.h-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.h-faq details {
  border: 1px solid var(--line);
  border-radius: var(--h-r-md);
  background: var(--panel);
  box-shadow: var(--h-shadow-card);
  transition: border-color 0.2s ease;
}
.h-faq details[open] { border-color: var(--brand-line); }
.h-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 600; font-size: 1rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--h-r-md);
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: "";
  flex: none;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b37c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 55% no-repeat;
  transition: transform 0.25s ease;
}
html[data-theme="dark"] .h-faq summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ee6a6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq summary:focus-visible { outline: none; box-shadow: var(--focus); }
.h-faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.94rem; line-height: 1.75; }
.h-faq details > div p { margin: 0; }

/* 底部 CTA：炭黑圆角大卡 + 绿色光晕 */
body.home .cta.h-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.6rem, 5vw, 3.6rem);
  border: 0;
  border-radius: var(--h-r-xl);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(var(--signal-rgb), 0.28), transparent 60%),
    radial-gradient(40% 80% at 0% 100%, rgba(var(--signal-rgb), 0.14), transparent 60%),
    var(--ink);
  color: var(--paper);
  box-shadow: var(--h-shadow-float);
}
body.home .cta.h-cta::before { display: none; }
.h-cta h2 { margin-bottom: 0.6rem; color: inherit; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.015em; }
.h-cta .lead { margin: 0; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.h-cta .btn-row { margin: 0; flex: none; }
body.home .h-cta .btn.primary { background: var(--signal); color: #07090c; box-shadow: none; }
body.home .h-cta .btn.primary:hover { background: color-mix(in srgb, var(--signal) 85%, #fff); color: #07090c; }
body.home .h-cta .btn.line {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 30%, transparent);
}
body.home .h-cta .btn.line:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); border-color: color-mix(in srgb, var(--paper) 60%, transparent); color: var(--paper); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .h-demo-body { grid-template-columns: minmax(0, 1fr) 16.5rem; }
  .h-dev { grid-template-columns: 1fr; gap: var(--sp-8); }
}
@media (max-width: 860px) {
  .h-demo-body { grid-template-columns: 1fr; }
  .h-demo-side { display: none; }
  .h-grid, .h-price { grid-template-columns: 1fr; }
  .h-faq { grid-template-columns: 1fr; }
  body.home .cta.h-cta { flex-direction: column; align-items: flex-start; }
  .h-head-row { flex-direction: column; align-items: flex-start; }
  .h-trace-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero--home { padding-top: 2.5rem; }
  .hh-copy { align-items: stretch; text-align: left; }
  .hero--home .hero-cta { justify-content: flex-start; }
  .hero--home .hero-cta .btn { flex: 1 1 auto; }
  .hh-facts { justify-content: flex-start; gap: 0.5rem 1.1rem; margin-top: 1.4rem; }
  .hh-facts li { padding: 0; }
  .hh-facts li + li::before { display: none; }
  .hh-facts .is-link { flex-basis: 100%; }
  .h-news { align-self: flex-start; }
  .h-news span { font-size: 0.76rem; white-space: normal; }
  /* 手机端压缩篇幅：卡片改成图标在左的紧凑行，整张卡可点，所以收起「了解 →」 */
  .h-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 0.9rem; padding: 1.1rem 1rem; }
  .h-card-ico { grid-row: span 2; margin: 0; }
  .h-card h3 { margin-bottom: 0.25rem; }
  .h-card p { font-size: 0.86rem; }
  .h-card .more { display: none; }
  .h-pillars .offer { padding: 1.3rem 1.1rem; }
  .h-pillars .offer-ico { display: none; }
  .h-pillars .offer p { margin-bottom: 0.7rem; }
  .h-demo-chat [data-step]:nth-child(3), .h-demo-chat [data-step]:nth-child(4) { display: none; }
  .plat-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plat-home a { padding: 0.85rem 0.7rem; }
  .plat-home b { font-size: 0.82rem; overflow-wrap: anywhere; }
  .h-demo-chat { min-height: 0; padding: 1rem; }
  .h-demo-chat .bubble { max-width: 90%; }
  .h-demo-ui { border-radius: 16px; }
  .h-demo-ui .ui-bar { padding: 10px 14px; }
  .h-demo-head { padding: 0.75rem 1rem; }
  .h-demo-foot { padding: 10px 1rem; }
  .h-demo-who span { font-size: 0.7rem; }
  body.home .h-panel .code { font-size: 0.72rem; }
  body.home .cta.h-cta { border-radius: var(--h-r-lg); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 平台运行数据（LP-60） ----------
 * 数据来自 /api/public/stats；接口失败或关闭时整块保持 hidden。
 * 趋势图是单序列柱图，今天（未过完）用实色，其余用浅一档。 */
.h-live[hidden] { display: none; }
.h-live .head { margin-bottom: 0; }
.h-live .kicker { display: inline-flex; align-items: center; gap: 0.5rem; }
.h-live-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
}
.h-live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--signal);
  opacity: 0;
  animation: hLivePulse 2.4s ease-out infinite;
}
@keyframes hLivePulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.h-live-stamp {
  flex: none; margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.h-live-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}
.h-kpi {
  min-width: 0;
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--h-r-lg);
  background: var(--panel);
  box-shadow: var(--h-shadow-card);
}
.h-kpi dt {
  margin-bottom: 0.7rem;
  color: var(--ink-2);
  font-size: 0.86rem;
}
.h-kpi dd { margin: 0; }
.h-kpi b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.h-kpi b small {
  margin-left: 0.2em;
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}
.h-kpi dd > span {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.h-kpi em { font-style: normal; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.h-kpi .is-up { color: var(--signal); }

.h-live-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--h-r-lg);
  background: var(--panel);
  box-shadow: var(--h-shadow-card);
  overflow: hidden;
}
.h-live-body.is-solo { grid-template-columns: 1fr; }
.h-trend {
  position: relative;
  margin: 0;
  min-width: 0;
  padding: 1.3rem 1.4rem 1.1rem;
  border-right: 1px solid var(--line);
}
.h-live-body.is-solo .h-trend { border-right: 0; }
.h-trend figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.h-trend figcaption strong { font-size: 0.94rem; }
.h-trend figcaption span { color: var(--muted); font-size: 0.8rem; }
.h-trend-plot { position: relative; height: 150px; }
.h-trend-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.h-trend-plot .grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.h-trend-plot .bar { fill: rgba(var(--signal-rgb), 0.42); pointer-events: none; }
.h-trend-plot .bar.is-today { fill: var(--signal); }
.h-trend-plot .hit { fill: transparent; cursor: default; }
.h-trend-plot .hit:hover + .bar, .h-trend-plot .bar.is-hover { fill: var(--signal); }
.h-trend-plot text { fill: var(--muted); font-family: var(--font); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.h-trend-tip {
  position: absolute; top: 0; z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-size: 0.75rem; line-height: 1.4; white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  box-shadow: var(--shadow-md);
}
.h-trend-tip[hidden] { display: none; }
.h-trend-tip b { font-variant-numeric: tabular-nums; }

.h-live-quality { margin: 0; display: grid; grid-auto-rows: 1fr; }
.h-live-quality[hidden] { display: none; }
.h-q {
  display: flex; flex-direction: column; justify-content: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.h-q:last-child { border-bottom: 0; }
.h-q[hidden] { display: none; }
.h-q dt { color: var(--ink-2); font-size: 0.84rem; }
.h-q dd { margin: 0.3rem 0 0; display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.h-q b {
  font-size: 1.6rem; font-weight: 700; line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.h-q b small { margin-left: 0.15em; font-size: 0.55em; color: var(--ink-2); font-weight: 600; }
.h-q dd span { color: var(--muted); font-size: 0.78rem; line-height: 1.5; flex: 1 1 12rem; }
.h-q-meter {
  flex: 0 0 100%;
  height: 5px; margin-top: 0.15rem;
  border-radius: var(--r-pill);
  background: rgba(var(--signal-rgb), 0.16);
  overflow: hidden;
}
.h-q-meter i { display: block; height: 100%; background: var(--signal); transform-origin: left; border-radius: var(--r-pill); }

.h-live-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.7;
}
.h-live-note b { color: var(--ink-2); font-weight: 600; }

@media (max-width: 1080px) {
  .h-live-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-live-body { grid-template-columns: 1fr; }
  .h-trend { border-right: 0; border-bottom: 1px solid var(--line); }
  .h-live-quality { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
  .h-q { border-bottom: 0; border-right: 1px solid var(--line); }
  .h-q:last-child { border-right: 0; }
}
@media (max-width: 860px) {
  .h-live-quality { grid-template-columns: 1fr; }
  .h-q { border-right: 0; border-bottom: 1px solid var(--line); }
  .h-q:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .h-live-kpis { gap: 0.75rem; }
  .h-kpi { padding: 1.1rem 1rem; }
  .h-kpi b { font-size: 1.65rem; }
  .h-kpi dd > span { font-size: 0.74rem; }
  .h-trend { padding: 1rem 1rem 0.85rem; }
  .h-trend-plot { height: 120px; }
  .h-q { padding: 0.85rem 1rem; }
  .h-q dd span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .h-live-dot::after { animation: none; }
}
