/* ================================================================
 * 一麦生花 Brand Site V5 · 官网新板块
 *
 * 作用域：只在 .brand-home 页面内生效。pricing / login / report 不引入。
 *
 * 配色策略（2026-09-01 定）：
 *   整页浅色蓝白，与 app 内部一致，避免官网到工作台的视觉断裂。
 *   数据面板局部用深蓝渐变，直接复用 app.css 的 .geo-insight 语言：
 *   深蓝渐变实底 + 白字 + 关键数字暖黄 #FDE68A。
 *   深色面板全站只出现 2 处（Hero 信号面板 / 能力矩阵监测格），不泛滥。
 *
 * 形状规则沿用 V4：控件 10px · 卡片 18px · 大面板 22px。
 * ================================================================ */

.brand-home {
  /* 数据面板专用：同 geo-insight */
  --panel-grad: linear-gradient(135deg, #0039b3 0%, #0052ff 60%, #4a7dff 100%);
  --panel-line: rgba(255, 255, 255, 0.22);
  --panel-text: rgba(255, 255, 255, 0.78);
  --panel-accent: #fde68a;
}

/* ============================================================
 * 1. 通用排版
 * ============================================================ */

/* Hero 右侧视觉插画 */
.brand-hero-visual {
  position: relative;
}

.brand-hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--brand-radius-surface);
  box-shadow: 0 24px 60px rgba(0, 82, 255, 0.12);
}

/* 响应式：移动端隐藏插画 */
@media (max-width: 860px) {
  .brand-hero-visual {
    display: none;
  }
}

.dk-h2 {
  margin: 0;
  max-width: 22ch;
  color: var(--brand-black);
  font-size: var(--brand-type-section);
  font-weight: 640;
  letter-spacing: -0.048em;
  line-height: 1.06;
}

.dk-lead {
  max-width: 56ch;
  margin: 20px 0 0;
  color: #414753;
  font-size: var(--brand-type-body);
  line-height: 1.7;
}

/* 等宽数字：官网所有指标统一用，是"可测量"的视觉信号 */
.dk-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ============================================================
 * 2. Hero 信号面板（深蓝，同 geo-insight）
 * 不加窗口 chrome / 侧栏，读作数据图示而非伪装截图。
 * ============================================================ */

.hero-console {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 28px 28px;
  border-radius: var(--brand-radius-surface);
  background: var(--panel-grad);
  color: #fff;
  box-shadow: 0 28px 70px rgba(0, 57, 179, 0.28);
}

/* 右下角光晕，同 geo-insight::before 的做法 */
.hero-console::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -18% -46% auto;
  width: 340px;
  height: 340px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 70%);
}

.hero-console-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--panel-line);
}

.hero-console-title {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.hero-console-sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* 运行态指示点：真实语义状态 */
.hero-console-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.hero-console-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--panel-accent);
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.28);
}

/* 头部大数：暖黄，同 geo-insight 的 .accent */
.hero-console-metric {
  padding: 22px 0 20px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.hero-console-metric b {
  color: var(--panel-accent);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.hero-console-metric b em {
  font-size: 0.5em;
  font-style: normal;
  font-weight: 600;
}

.hero-console-metric i {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
}

.hero-console-metric small {
  margin-left: auto;
  max-width: 15ch;
  color: var(--panel-text);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: right;
}

/* 平台分行 */
.hero-console-rows { display: grid; gap: 2px; }

.hero-console-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-console-row > span {
  display: inline-flex;
  align-items: center;
  color: var(--panel-text);
  font-size: 12.5px;
}

.hero-console-bar {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.hero-console-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 40%);
  border-radius: 2px;
  background: #fff;
}

.hero-console-row b {
  color: #fff;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.hero-console-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-line);
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.5;
}

/* ============================================================
 * 3. 能力矩阵（Bento，4 项 4 格）
 * 监测格用深蓝，其余浅色，形成一处视觉锚点。
 * ============================================================ */

.cap-head { max-width: 62ch; margin-bottom: clamp(40px, 4.5vw, 64px); }

.cap-matrix {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  grid-template-areas:
    "core watch watch"
    "core create dist";
  gap: 16px;
}

.cap-cell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 260ms var(--brand-ease), transform 260ms var(--brand-ease), box-shadow 260ms var(--brand-ease);
}

.cap-cell:hover {
  border-color: #b7c8e6;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 37, 80, 0.09);
}

.cap-cell h3 {
  margin: 0;
  color: var(--brand-black);
  font-size: var(--brand-type-card);
  font-weight: 620;
  letter-spacing: -0.02em;
}

.cap-cell p {
  margin: 0;
  color: #4d5563;
  font-size: 14px;
  line-height: 1.72;
}

.cap-cell-label {
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* 左大格：基建，淡蓝渐变 */
.cap-core {
  grid-area: core;
  padding: 34px 32px;
  background: linear-gradient(168deg, #f2f6ff 0%, #fff 46%);
}

.cap-core h3 { font-size: 22px; }

/* 知识库三层堆叠 */
.cap-stack { margin-top: auto; display: grid; gap: 7px; }

.cap-stack div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #4d5563;
  font-size: 12.5px;
}

.cap-stack div span {
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cap-stack div b {
  margin-left: auto;
  color: var(--brand-black);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
}

/* 右上宽格：监测归因，深蓝面板（全站第二处深色） */
.cap-watch {
  grid-area: watch;
  border-color: transparent;
  background: var(--panel-grad);
  color: #fff;
}

.cap-watch::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -14% -52% auto;
  width: 300px;
  height: 300px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 70%);
}

.cap-watch:hover {
  border-color: transparent;
  box-shadow: 0 20px 48px rgba(0, 57, 179, 0.26);
}

.cap-watch .cap-cell-label { color: var(--panel-accent); }
.cap-watch h3 { color: #fff; }
.cap-watch p { color: var(--panel-text); }

/* 走势条：白色，峰值暖黄 */
.cap-spark {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 54px;
}

.cap-spark i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.34);
  height: var(--h, 40%);
}

.cap-spark i.is-peak { background: var(--panel-accent); }

/* 右下两格 */
.cap-create { grid-area: create; }
.cap-dist { grid-area: dist; background: linear-gradient(172deg, #f6f8fd 0%, #fff 52%); }

.cap-figure {
  margin-top: auto;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cap-figure small {
  display: block;
  margin-top: 8px;
  color: #737d8d;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ============================================================
 * 4. 对话式创作（核心亮点，浅色）
 * ============================================================ */

.create-section { background: var(--brand-cool); }

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.create-copy h2 { max-width: 18ch; }

.create-points {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.create-points li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #cfd7e3;
}

.create-points li:last-child { border-bottom: 1px solid #cfd7e3; }

.create-points span {
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.create-points strong {
  display: block;
  color: var(--brand-black);
  font-size: 15px;
  font-weight: 620;
}

.create-points p {
  margin: 5px 0 0;
  color: #4d5563;
  font-size: 13.5px;
  line-height: 1.68;
}

/* 对话演示面板 */
.create-stage {
  padding: 24px;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-surface);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 37, 80, 0.1);
}

.create-thread { display: grid; gap: 12px; }

/* 用户提问：品牌蓝实底 */
.create-ask {
  justify-self: end;
  max-width: 86%;
  padding: 13px 16px;
  border-radius: 14px 14px 4px 14px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.62;
}

/* AI 回执 */
.create-reply {
  max-width: 92%;
  padding: 15px 17px;
  border: 1px solid var(--brand-line);
  border-radius: 14px 14px 14px 4px;
  background: var(--brand-cool);
}

.create-reply-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #737d8d;
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.create-reply-line img { width: 16px; height: 16px; }

.create-reply p {
  margin: 11px 0 0;
  color: #3c4350;
  font-size: 13.5px;
  line-height: 1.68;
}

/* Agent 执行步骤，逐条点亮 */
.create-steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
}

.create-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #dde4ef;
  color: #97a0af;
  font-size: 12.5px;
  transition: color 320ms ease;
}

.create-steps li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
}

.create-steps li.is-done { color: #5c6675; }
.create-steps li.is-active { color: var(--brand-blue); font-weight: 600; }

.create-steps li b {
  margin-left: auto;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
}

/* 产出物 */
.create-out {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--brand-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.create-out div {
  padding: 13px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-cool);
}

.create-out span {
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.create-out strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-black);
  font-size: 13px;
  font-weight: 620;
}

.create-out small {
  display: block;
  margin-top: 3px;
  color: #737d8d;
  font-size: 11.5px;
}

/* ============================================================
 * 5. 闭环流程（横向 4 段 + 进度线）
 * ============================================================ */

.loop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 4.5vw, 60px);
}

.loop-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #cfd7e3;
}

/* 进度线：由 JS 设 --loop-progress */
.loop-rail::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: calc(var(--loop-progress, 0.25) * 100%);
  background: var(--brand-blue);
  transition: width 620ms var(--brand-ease);
}

.loop-step {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--brand-line);
  transition: background 300ms ease;
}

.loop-step:last-child { border-right: 0; }
.loop-step.is-active { background: #f3f7ff; }

.loop-step-verb {
  display: block;
  color: #97a0af;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  transition: color 300ms ease;
}

.loop-step.is-active .loop-step-verb { color: var(--brand-blue); }

.loop-step h3 {
  margin: 14px 0 0;
  color: var(--brand-black);
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.loop-step p {
  margin: 10px 0 0;
  color: #4d5563;
  font-size: 13.5px;
  line-height: 1.68;
}

/* ============================================================
 * 6. 渠道规模（大数 + 渠道分层）
 * ============================================================ */

.dist-section { background: var(--brand-cool); }

.dist-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.dist-figure {
  color: var(--brand-black);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(62px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.dist-figure span { color: var(--brand-blue); }

.dist-figure-note {
  max-width: 34ch;
  margin: 20px 0 0;
  color: #414753;
  font-size: 15.5px;
  line-height: 1.7;
}

.dist-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dist-tier {
  padding: 24px 24px 26px;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  background: #fff;
}

.dist-tier:first-child {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, #f2f6ff 0%, #fff 48%);
}

.dist-tier h3 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--brand-black);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.dist-tier h3 b {
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
}

.dist-tier p {
  margin: 10px 0 0;
  color: #4d5563;
  font-size: 13.5px;
  line-height: 1.7;
}

.dist-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dist-chips span {
  padding: 6px 11px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-cool);
  color: #55606f;
  font-size: 12px;
}

/* ============================================================
 * 7. 响应式
 * ============================================================ */

@media (max-width: 1100px) {
  .cap-matrix {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "core core"
      "watch watch"
      "create dist";
  }
  /* core 转成横向后限制堆叠宽度，否则三条被拉得过长 */
  .cap-stack { max-width: 460px; }
  .create-grid { grid-template-columns: 1fr; }
  .dist-grid { grid-template-columns: 1fr; }
  .loop-rail { grid-template-columns: 1fr 1fr; }
  .loop-step:nth-child(2) { border-right: 0; }
  .loop-step:nth-child(-n + 2) { border-bottom: 1px solid var(--brand-line); }
}

@media (max-width: 840px) {
  .hero-console { padding: 22px 20px 24px; }
  .hero-console-row { grid-template-columns: 78px minmax(0, 1fr) 46px; gap: 10px; }
  .loop-head { flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (max-width: 640px) {
  .cap-matrix {
    grid-template-columns: 1fr;
    grid-template-areas: "core" "watch" "create" "dist";
  }
  .cap-cell { padding: 24px 20px; }
  .cap-core { padding: 26px 20px; }
  .cap-core h3 { font-size: 20px; }
  .cap-stack { max-width: none; }
  .create-stage { padding: 18px 16px; }
  .create-out { grid-template-columns: 1fr; }
  .dist-tiers { grid-template-columns: 1fr; }
  .dist-tier:first-child { grid-column: auto; }
  .loop-rail { grid-template-columns: 1fr; }
  .loop-step { border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .loop-step:last-child { border-bottom: 0; }
  .hero-console-metric small { display: none; }
}

/* ============================================================
 * 8. Reduced motion
 * 循环动效塌成静态终态，不是简单关掉。
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-console-bar i,
  .loop-rail::after,
  .cap-cell,
  .create-steps li { transition: none; }
  .create-steps li { color: #5c6675; }
  .loop-rail::after { width: 100%; }
}
