/* 风格 L · 浅色版：把详情页那套（浅灰蓝底 + 白卡片 + 1px 浅边框 + 蓝色渐变按钮）搬到首页/工作台/下单页 */

:root {
  --bg: #f0f2f8;
  --bg-2: #e9ecf5;
  --panel: #ffffff;
  --nest: #f7f8fb;
  --nest-2: #f3f4f6;
  --line: #f3f4f6;
  --text: #111827;
  --muted: #4b5563;
  --faint: #9ca3af;
  --violet: #2d5cff;
  --blue: #2d5cff;
  --cyan: #2d5cff;
  --mint: #0f9d58;
  --grad-brand: linear-gradient(95deg, #2d5cff 5%, #1d4ed8 95%);
  --grad-btn: linear-gradient(95deg, #3b74ff, #2d5cff);
  --grad-icon: linear-gradient(145deg, #4f8cff, #2d5cff);
  --ok: #0f9d58;
  --bad: #d92d20;
  --r: 24px;
  --r-sm: 14px;
  --r-xs: 10px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s20: 80px;
  --f12: 12px; --f14: 14px; --f15: 15px; --f16: 16px; --f18: 18px; --f22: 22px; --f26: 26px; --f32: 32px; --f40: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--f15)/1.75 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s4); }
main { padding-bottom: var(--s16); }

/* ---------- 顶部导航 ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header .nav { display: flex; align-items: center; gap: var(--s6); min-height: 64px; }
header .logo { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--text); flex: 0 0 auto; }
header b { font-size: var(--f18); font-weight: 700; }
.mark {
  width: 34px; height: 34px; border-radius: var(--r-xs); object-fit: contain; display: block; flex: 0 0 34px;
}
nav.menu { display: flex; gap: var(--s2); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav.menu::-webkit-scrollbar { display: none; }
nav.menu a {
  white-space: nowrap; padding: var(--s2) var(--s3); border-radius: 999px;
  font-size: var(--f14); color: var(--muted); text-decoration: none;
}
nav.menu a:hover { color: var(--text); background: var(--nest); }
header a.pill-cta {
  flex: 0 0 auto; text-decoration: none; white-space: nowrap;
  padding: 10px var(--s6); border-radius: 999px;
  background: var(--grad-btn); color: #fff; font-size: var(--f14); font-weight: 700;
}

/* ---------- 面板 ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--s8);
}
.panel + .panel { margin-top: var(--s6); }
.panel-act { margin-top: var(--s16); }
.nest { background: var(--nest); border: 1px solid transparent; border-radius: var(--r-sm); }

/* ---------- 首屏两栏 ---------- */
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: var(--s6); padding: var(--s8) 0 var(--s6); }
.hero-solo { padding: var(--s8) 0 var(--s6); }
.hero-brand { text-align: center; padding-bottom: var(--s6); border-bottom: 1px solid var(--line); margin-bottom: var(--s6); }
.hero-brand .mark { width: 64px; height: 64px; margin: 0 auto var(--s4); }
.hero .badge { display: block; font-size: var(--f12); color: var(--cyan); letter-spacing: .1em; margin-bottom: var(--s3); }
.hero h1 {
  font-size: var(--f40); font-weight: 700; line-height: 1.25; margin: 0 0 var(--s3);
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: var(--f16); color: var(--muted); margin: 0 auto; max-width: 30em; }

/* ---------- 一级列表：手机上一行一个，图标 + 名字/钩子 + 价格 ---------- */
#cards, .list-1 { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.agent-row {
  display: flex; align-items: center; gap: var(--s4);
  width: 100%; text-align: left;
  background: var(--nest); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: var(--s4) var(--s6); color: inherit; cursor: pointer;
}
.agent-row:hover { background: var(--nest-2); }
.agent-row .ar-icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--r-xs);
  background: var(--grad-icon); display: flex; align-items: center; justify-content: center;
  font-size: var(--f26);
}
.agent-row .ar-mid { flex: 1; min-width: 0; }
.agent-row .ar-name { display: block; font-size: var(--f18); font-weight: 700; line-height: 1.4; }
.agent-row .ar-hook {
  font-size: var(--f14); color: var(--muted); line-height: 1.6; margin: var(--s1) 0 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.agent-row .ar-foot { flex: 0 0 auto; display: flex; align-items: center; gap: var(--s3); }
.agent-row .ar-price { font-size: var(--f22); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.agent-row .ar-price small { font-size: var(--f12); font-weight: 400; color: var(--faint); }
.agent-row .ar-go { color: var(--faint); font-size: var(--f26); line-height: 1; }
@media (min-width: 900px) {
  #cards, .list-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.old { font-size: var(--f12); color: var(--faint); text-decoration: line-through; margin-left: var(--s2); }

/* ---------- 右侧行动面板 ---------- */
.panel-act h2 { font-size: var(--f26); font-weight: 700; margin: 0 0 var(--s2); text-align: center; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel-act .psub { font-size: var(--f14); color: var(--muted); text-align: center; margin: 0; }
.hr { height: 1px; background: var(--line); margin: var(--s6) 0; }
.cta-wide {
  display: block; width: 100%; text-align: center; text-decoration: none;
  min-height: 48px; line-height: 48px; border-radius: var(--r-xs);
  background: var(--grad-btn); color: #fff; font-size: var(--f16); font-weight: 700;
}
.notice {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: #eef2ff; border: 1px solid rgba(45, 92, 255, .18);
  border-radius: var(--r-xs); padding: var(--s3) var(--s4);
  font-size: var(--f14); color: var(--muted); line-height: 1.7; margin-top: var(--s6);
}
.notice::before { content: "i"; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--cyan); color: #fff; font-weight: 700; font-size: var(--f12); text-align: center; line-height: 18px; }
.kv { font-size: var(--f14); color: var(--faint); text-align: center; margin-top: var(--s4); }

/* ---------- 通用区块 ---------- */
.sec { margin-top: var(--s16); }
.sec-title { font-size: var(--f26); font-weight: 700; line-height: 1.4; margin: 0 0 var(--s2); }
.sec-sub { font-size: var(--f15); color: var(--muted); margin: 0 0 var(--s8); }

/* ---------- 步骤 ---------- */
.steps2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.step { background: var(--nest); border-radius: var(--r-sm); padding: var(--s6); }
.step i {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-xs); margin-bottom: var(--s4);
  background: var(--grad-icon); color: #fff; font-style: normal; font-size: var(--f18); font-weight: 700;
}
.step b { display: block; font-size: var(--f16); font-weight: 700; margin-bottom: var(--s2); }
.step span { display: block; font-size: var(--f14); color: var(--muted); line-height: 1.7; }
.factline { font-size: var(--f12); color: var(--faint); margin-top: var(--s6); text-align: center; }

/* ---------- 表单 ---------- */
input, textarea, select {
  width: 100%; background: var(--nest); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: var(--s3) var(--s4); font-size: var(--f16); font-family: inherit; min-height: 48px;
}
textarea { min-height: 120px; resize: top; line-height: 1.7; }
.fld { display: block; margin-bottom: var(--s4); }
.fld > span { display: block; font-size: var(--f14); color: var(--muted); margin-bottom: var(--s2); }
.fblist { margin-top: var(--s3); }
.fblist p { font-size: var(--f14); color: var(--muted); line-height: 1.7; margin: 0 0 var(--s2); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); }
button {
  min-height: 48px; padding: 0 var(--s8); background: var(--grad-btn); color: #fff;
  border: 0; border-radius: var(--r-xs); font-size: var(--f16); font-weight: 700; font-family: inherit; cursor: pointer;
  white-space: nowrap; flex: 0 0 auto;
}
button:active { opacity: .85; }
button.ghost { background: var(--nest-2); color: var(--text); font-weight: 400; }
button.danger { background: rgba(217, 45, 32, .08); color: var(--bad); }
button:disabled { opacity: .45; cursor: default; }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }

/* ---------- 文字工具 ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s6); }
.card + .card { margin-top: var(--s3); }
.card > h2 { font-size: var(--f18); font-weight: 700; margin: 0 0 var(--s2); }
.card.slim { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-sm) }
.card.slim button { min-height: 36px; padding: 0 var(--s4); font-size: var(--f14); font-weight: 400; background: transparent; border: 1px solid var(--line); color: var(--muted) }
h3 { font-size: var(--f16); font-weight: 700; margin: var(--s6) 0 var(--s2); }
p { margin: 0 0 var(--s2); }
p.sub { font-size: var(--f14); color: var(--muted); margin: 0 0 var(--s4); }
.thin { font-size: var(--f12); color: var(--faint); line-height: 1.7; }
.tag { font-size: var(--f12); color: var(--muted); }
.err { font-size: var(--f14); color: var(--bad); min-height: 22px; margin-top: var(--s2); }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ---------- 表格 / 状态 ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.grid > div { background: var(--nest); border-radius: var(--r-sm); padding: var(--s4); }
.grid > div b { display: block; font-size: var(--f22); font-weight: 700; line-height: 1.2; margin-top: var(--s1); font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: var(--f14); }
th, td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: var(--f12); font-weight: 400; color: var(--faint); }
.pill { display: inline-block; padding: 2px var(--s2); border-radius: 999px; font-size: var(--f12); border: 1px solid var(--line); color: var(--muted); }
.pill.on { color: var(--ok); border-color: rgba(15, 157, 88, .35); }
.pill.off { color: var(--bad); border-color: rgba(217, 45, 32, .35); }
.code {
  font-family: ui-monospace, Consolas, monospace; font-size: var(--f22); letter-spacing: 2px; text-align: center;
  background: #eef2ff; border: 1px solid rgba(45, 92, 255, .25);
  border-radius: var(--r-xs); padding: var(--s6);
  /* 一按就整段选中，长按复制不会带上多余空格 */
  -webkit-user-select: all; user-select: all; word-break: break-all;
}

/* ---------- 顾客工作台 ---------- */
.msg { border-radius: var(--r-sm); padding: var(--s4); margin-bottom: var(--s3); white-space: pre-wrap; word-break: break-word; font-size: var(--f15); }
.msg.me { background: rgba(45, 92, 255, .08); margin-left: var(--s8); }
.msg.ai { background: var(--nest); }

/* 打字机光标：竖线 ▏，打字过程中闪烁 */
.tw-text { white-space: pre-wrap; }
.tw-cursor { display: inline-block; color: var(--cyan, #38bdf8); font-family: monospace; animation: tw-blink 1s step-end infinite; vertical-align: baseline; margin-left: 1px; }
@keyframes tw-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* 报告正文：模型给的是 Markdown，渲染成能看的排版，不摊井号竖线 */
.msg.md { white-space: normal; margin-right: 0; padding: var(--s4) var(--s4) var(--s3); }
.msg.md > :first-child { margin-top: 0; }
.msg.md > :last-child { margin-bottom: 0; }
.msg.md p { margin: 0 0 var(--s3); }
.msg.md h3, .msg.md h4, .msg.md h5 { margin: var(--s6) 0 var(--s2); line-height: 1.5; font-weight: 700; }
.msg.md h3 { font-size: var(--f18); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.msg.md h4 { font-size: var(--f16); }
.msg.md h5 { font-size: var(--f15); color: var(--muted); }
.msg.md ul, .msg.md ol { margin: 0 0 var(--s3); padding-left: 1.4em; }
.msg.md li { margin-bottom: var(--s1); }
.msg.md hr { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }
.msg.md code { background: var(--nest-2); padding: 1px 5px; border-radius: 6px; font-size: var(--f14); }
.msg.md table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s3); font-size: var(--f14); display: block; overflow-x: auto; }
.msg.md th, .msg.md td { border: 1px solid var(--line); padding: var(--s2) var(--s3); text-align: left; vertical-align: top; }
.msg.md th { background: var(--nest-2); font-weight: 700; white-space: nowrap; }
.copybtn { width: 100%; margin-top: var(--s2); padding: 10px 14px; background: var(--nest); border: 1px solid var(--line); border-radius: var(--r-xs); color: var(--muted); font-size: var(--f14); }
.copyfallback { width: 100%; min-height: 120px; margin-top: var(--s2); background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-xs); padding: var(--s3); font-size: var(--f14); }

/* 工作台：三段式——顶上一条、中间消息自己滚、底下输入永远贴着发送 */
#quota { flex: 1; min-width: 0; font-size: var(--f12); color: var(--muted) }
#quota .pill { margin-right: var(--s2) }
.work { padding: var(--s4) var(--s4) var(--s6); }
#msgs { min-height: 180px; max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding: var(--s2) 0; }
/* 记录多了不许把上面那排按钮顶出屏幕：列表自己滚，「返回」「换别的」一直在原地 */
#histList { max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.dock { display: flex; align-items: flex-end; gap: var(--s2); margin-top: var(--s3) }
.dock textarea { flex: 1; min-width: 0; height: 88px; min-height: 88px; resize: none; line-height: 1.6 }
.dock #send { flex: 0 0 88px; height: 88px; padding: 0 }
.dock-sub { margin-top: var(--s2); gap: var(--s2) }
.dock-sub #files { flex: 1 1 100%; order: -1; font-size: var(--f12); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.dock-sub .ghost { min-height: 38px; padding: 0 var(--s4); font-size: var(--f14) }
.dock-sub #engine { flex: 1 1 100%; order: -1; font-size: var(--f12); color: var(--faint) }
/* 进门后先选一件事：手机上一列一个，不挤 */
.pick-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 900px) { .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick { display: flex; align-items: center; gap: var(--s4); width: 100%; min-width: 0; text-align: left; white-space: normal; background: var(--nest); border: 1px solid transparent; border-radius: var(--r-sm); padding: var(--s4) var(--s6); color: inherit; font-weight: 400; }
.pick:hover { background: var(--nest-2); }
.pick .ar-icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--r-xs); background: var(--grad-icon); display: flex; align-items: center; justify-content: center; font-size: var(--f26); }
.pick .pt { flex: 1; min-width: 0; }
.pick .pt b { display: block; font-size: var(--f18); font-weight: 700; line-height: 1.4; }
.pick .pt small { display: block; font-size: var(--f14); color: var(--muted); line-height: 1.6; margin-top: var(--s1) }
.pick .pgo { flex: 0 0 auto; color: var(--faint); font-size: var(--f26); }
.work-hd { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.work-hd .ar-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: var(--r-xs); background: var(--grad-icon); display: flex; align-items: center; justify-content: center; font-size: var(--f18); }
.work-hd b { flex: 1; min-width: 0; font-size: var(--f18); font-weight: 700; }
.work-hd .ghost { flex: 0 0 auto; min-height: 36px; padding: 0 var(--s4); font-size: var(--f14); }


.wxtip {
  background: rgba(255, 196, 87, .12); border: 1px solid rgba(255, 196, 87, .32); color: #ffd591;
  border-radius: var(--r-sm); padding: var(--s4); font-size: var(--f14); line-height: 1.7; margin-top: var(--s6);
}

/* ---------- FAQ ---------- */
details.faq { background: var(--nest); border-radius: var(--r-sm); padding: var(--s4) var(--s6); margin-bottom: var(--s3); }
details.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  font-size: var(--f16); font-weight: 700;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--cyan); font-weight: 400; font-size: var(--f18); }
details.faq[open] summary::after { content: "−"; }
details.faq p { font-size: var(--f14); color: var(--muted); margin: var(--s3) 0 0; }

/* ---------- 推广条 ---------- */
.earn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s8);
  margin-top: var(--s16);
}
.earn b { display: block; font-size: var(--f22); font-weight: 700; }
.earn b span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.earn > div > span { font-size: var(--f14); color: var(--muted); }
.earn button.ghost { background: var(--nest-2); color: var(--text); }

/* ---------- 吸底栏 ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2, #e5e7eb);
}
.bar .l { flex: 1; min-width: 0; }
.bar .l b { font-size: var(--f26); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar button { min-width: 45%; }

/* ---------- 付款码 ---------- */
.qr { display: block; width: 100%; max-width: 280px; margin: var(--s4) auto; background: #fff; border-radius: var(--r-sm); padding: var(--s2); cursor: zoom-in; }
.tapme { text-align: center; font-size: var(--f12); color: var(--muted); }
.qrwrap { text-align: center; }
.viewer { position: fixed; inset: 0; z-index: 99; padding: var(--s6); background: rgba(10, 11, 17, .95); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.viewer img { max-width: 92vw; max-height: 70vh; background: #fff; padding: var(--s3); border-radius: var(--r-sm); }
.viewer p { color: var(--text); font-size: var(--f14); line-height: 1.8; text-align: center; margin: var(--s4) 0 0; }
.viewer p b, .viewer a { color: var(--cyan); }
.viewer .cls { margin-top: var(--s6); background: var(--nest-2); color: var(--text); }
.amt { display: inline-block; font-size: var(--f32); font-weight: 700; margin-bottom: var(--s2); font-variant-numeric: tabular-nums; }
ol.steps { padding-left: var(--s8); margin: 0; }
ol.steps > li { margin-bottom: var(--s6); padding-left: var(--s1); }

/* ---------- 付款屏：金额最大、码居中、订单号压成一行小字 ---------- */
#payBox { padding: var(--s8) var(--s6); }
#payBox > h2 { font-size: var(--f22); text-align: center; margin-bottom: var(--s1) }
#payBox > .sub { text-align: center; margin: 0 0 var(--s6) }
.pay-amt { text-align: center; margin-bottom: var(--s2) }
.pay-amt small { display: block; font-size: var(--f12); color: var(--faint); font-weight: 400; margin-bottom: var(--s1) }
.pay-amt b { font-size: var(--f40); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums }
.pay-qr { background: var(--nest); border-radius: var(--r-sm); padding: var(--s6) var(--s4); margin: var(--s4) 0 }
.pay-how { font-size: var(--f14); color: var(--muted); line-height: 1.8; text-align: center; margin: 0 }
.pay-how b { color: var(--text) }
.order-row { display: flex; align-items: center; justify-content: center; gap: var(--s3); font-size: var(--f12); color: var(--faint) }
.order-row b { font-family: ui-monospace, Consolas, monospace; font-size: var(--f14); letter-spacing: 1px; color: var(--muted); -webkit-user-select: all; user-select: all; word-break: break-all; }
.order-row button { min-height: 34px; padding: 0 var(--s4); font-size: var(--f12); font-weight: 400 }

.agent-edit { border-left: 2px solid var(--violet); }
.plan-edit + .plan-edit { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }

/* ---------- 四栏页脚 ---------- */
footer.beian { border-top: 1px solid var(--line); background: var(--bg-2); padding: var(--s16) 0 var(--s8); margin-top: var(--s16); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s8); }
.foot-brand b { display: block; font-size: var(--f18); margin: var(--s3) 0 var(--s1); }
.foot-brand span { font-size: var(--f14); color: var(--faint); }
.foot-col h5 { font-size: var(--f14); font-weight: 700; margin: 0 0 var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.foot-col a, .foot-col p { display: block; font-size: var(--f14); color: var(--muted); text-decoration: none; margin: 0 0 var(--s3); }
.foot-col a:hover { color: var(--text); }
.foot-bot { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--line); font-size: var(--f12); color: var(--faint); line-height: 2; }
.foot-bot a { color: var(--faint); }
.foot-brand .mark { margin-bottom: var(--s2); }
.foot-qr {
  display: block; width: 168px; height: auto; margin-top: var(--s2); padding: var(--s1);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xs);
}

/* ---------- 响应式 ---------- */
/* 进了工作台就收起营销页脚，一屏只剩「在办的事 + 输入」 */
body.working footer.beian { display: none; }
body.working main { padding-bottom: var(--s8); }

/* 工作台输入区吸底：机器打字只动上面的消息区，这一整块钉在屏幕下沿不跟着跑 */
body.working .dockbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
body.working .dockbar-in {
  max-width: 560px; margin: 0 auto;
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
}
body.working .dockbar .dock { margin-top: 0 }
/* 输入条钉底后不再写死预留 210px（历史记录那页底下会空出一大块），只留一点余量 */
body.working #work { padding-bottom: var(--s4); }
/* 消息区高度由 JS 按屏幕量：吃满输入条以上，这里只把旧的 56vh 上限放开 */
body.working #msgs { min-height: 200px; max-height: none; }

/* 底下这块收成一行：话筒/加号两个小图标 + 一行高输入框（提示就在框里）+ 小号发送按钮 */
body.working .dock { gap: var(--s1); align-items: center }
body.working .dock .dock-btn { flex: 0 0 auto; min-width: 32px; height: 38px; min-height: 38px; padding: 0 5px; font-size: 16px; line-height: 1; border-radius: var(--r-xs) }
body.working .dock textarea { height: 38px; min-height: 38px; line-height: 20px; padding-top: 9px; padding-bottom: 9px; min-width: 80px; resize: vertical; max-height: 40vh }
body.working .dock #send { height: 38px; flex-basis: 52px; padding: 0; font-size: var(--f14) }
body.working .dock-sub { margin-top: var(--s1) }
body.working .dock-sub .ghost { min-height: 30px; padding: 0 var(--s3); font-size: var(--f12) }
body.working .dock-sub #files, body.working .dock-sub #engine { flex: 1 1 auto; order: 0 }
body.working .dock-sub #files:empty, body.working .dock-sub #engine:empty { display: none }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s6); }
  .hero h1 { font-size: var(--f32); }
  .panel { padding: var(--s6) var(--s4); }
  .steps2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
  .sec { margin-top: var(--s12); }
  /* 顾客说聊天这一栏太窄：手机上把工作台和气泡的左右留白各收一档，正文宽出约 40px，报告里的表格才摆得开 */
  body.working .work { padding-left: var(--s2); padding-right: var(--s2); }
  body.working .msg { padding: var(--s3); }
  body.working .msg.md { padding: var(--s3) var(--s3) var(--s2); }
  body.working .msg.me { margin-left: var(--s4); }
  /* 手机上顶上那排链接原来是整个收起来的，结果「我的」在手机上根本找不到。
     现在只放行这一颗（别的项还是收着），后台 .adm 那排照旧全给；人已经在「我的」这一页时不重复挂。 */
  nav.menu { display: flex; flex: 0 0 auto; min-width: 0; overflow: visible }
  nav.menu a { display: none }
  nav.menu a[href="/me"] { display: inline-block }
  nav.menu a.here { display: none }
  header .nav { gap: var(--s3); }
  header a.pill-cta { margin-left: auto; }
  /* 359 及以下这一行本来就塞到边了，多这一颗会顶出去：先压紧留白（品牌图块和名字都不动）。后台那一行是自己换行的，不跟着改。 */
  @media (max-width: 359px) {
    body:not(.adm) header .nav { gap: var(--s2) }
    body:not(.adm) header a.pill-cta { padding: 10px var(--s4) }
  }
  /* 320 这类小屏再省一格：收掉那个 34px 的品牌图块，「浩铎AI超市」那几个字留着 */
  @media (max-width: 339px) {
    body:not(.adm) header .logo .mark { display: none }
    body:not(.adm) header .logo { gap: 0 }
  }
}

/* ---------- 二级弹层：钩子 + 适合谁 + 功能 + 买法 ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.sheet-mask { position: absolute; inset: 0; background: rgba(8, 9, 14, .72); }
.sheet-box {
  position: relative; width: 100%; max-height: 82vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  padding: var(--s6) var(--s4) calc(var(--s6) + env(safe-area-inset-bottom));
}
.sheet-hd { display: flex; align-items: center; gap: var(--s3); }
.sheet-hd .ar-icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: var(--r-xs); background: var(--grad-icon); display: flex; align-items: center; justify-content: center; font-size: var(--f16); }
.sheet-hd b { flex: 1; min-width: 0; font-size: var(--f14); font-weight: 400; color: var(--muted); }
.sheet-hd button { min-height: 36px; padding: 0 var(--s4); font-size: var(--f14); font-weight: 400; }
#sheetSub { font-size: var(--f22); font-weight: 700; line-height: 1.5; margin: var(--s4) 0 var(--s3); }
#sheetWho { font-size: var(--f14); color: var(--muted); margin: 0 0 var(--s4); }
#sheetList { display: grid; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; font-size: var(--f14); color: var(--muted); }
#sheetList li { padding-left: var(--s6); position: relative; }
#sheetList li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
#sheetDesc { font-size: var(--f14); color: var(--muted); margin: 0 0 var(--s4); }
#sheetNote { font-size: var(--f12); color: var(--faint); margin: 0 0 var(--s2); }
#sheetWho:empty, #sheetList:empty, #sheetDesc:empty, #sheetNote:empty { display: none; }
.sheet-buy { font-size: var(--f16); font-weight: 700; margin: 0 0 var(--s4); }
.opt {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--nest); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: var(--s4); margin-bottom: var(--s3);
}
.opt:first-child { background: #eef2ff; border-color: rgba(45, 92, 255, .35); }
.opt .ol { flex: 1; min-width: 0; }
.opt .ol b { display: block; font-size: var(--f16); font-weight: 700; }
.opt .osub { font-size: var(--f12); color: var(--muted); margin: var(--s1) 0 0; line-height: 1.6; }
.opt .or { flex: 0 0 auto; text-align: right; }
.opt .op { display: block; font-size: var(--f22); font-weight: 700; font-variant-numeric: tabular-nums; }
.opt .or .old { display: block; margin-left: 0; }
.opt button { min-height: 38px; padding: 0 var(--s4); font-size: var(--f14); margin-top: var(--s2); }

/* ---------- 首屏广告轮播 ---------- */
.ads { position: relative; margin-top: var(--s6); border-radius: var(--r); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); touch-action: pan-y; }
.ads-track { position: relative; height: 168px; }
.ad {
  position: absolute; inset: 0; display: block; text-decoration: none; color: inherit;
  padding: var(--s6); border-radius: var(--r);
  background-color: var(--nest); background-size: cover; background-position: center;
  transform: translateX(100%); pointer-events: none; will-change: transform;
  transition: transform .46s cubic-bezier(.22, .72, .28, 1);
}
.ad::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--r);
  background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(124, 92, 252, .14) 55%, transparent);
}
.ad > * { position: relative; }
.ad.on { transform: translateX(0); pointer-events: auto; }
.ad .atag {
  display: inline-block; font-size: var(--f12); color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, .35); border-radius: 999px; padding: 2px 10px; margin-bottom: var(--s3);
}
.ad b { display: block; font-size: var(--f18); font-weight: 700; line-height: 1.45; letter-spacing: -.2px; }
.ad p { font-size: var(--f12); color: var(--muted); line-height: 1.7; margin: var(--s2) 0 0; }
/* 带图的轮播页：左边压暗放字，右边露出店面 */
.ad.ph { background-repeat: no-repeat; background-position: right center; }
.ad.ph::before {
  background: linear-gradient(90deg, rgba(4, 10, 22, .88) 0%, rgba(4, 10, 22, .72) 48%, rgba(4, 10, 22, .18) 100%);
}
.ad.ph b { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.ad.ph p { color: rgba(226, 238, 255, .86); }
.ad.ph .atag { color: #a8e6ff; border-color: rgba(168, 230, 255, .45); background: rgba(4, 10, 22, .35); }
.ads-dots { position: absolute; right: var(--s4); bottom: var(--s3); display: flex; gap: 6px; }
.ads-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line); cursor: pointer; }
.ads-dots i.on { background: var(--cyan); width: 18px; }
@media (min-width: 900px) {
  .ads { margin-top: var(--s8); }
  .ads-track { height: 300px; }
  .ad b { font-size: var(--f22); }
  .ad p { font-size: var(--f14); }
}

/* ---------- 管理后台 ---------- */
.adm main { padding: var(--s6) var(--s4) var(--s16); }
.adm nav.menu { display: flex; }
.adm #loginBox { max-width: 430px; margin: var(--s12) auto 0; }
.adm .card { padding: var(--s6) var(--s8); }
.adm .card[id] { scroll-margin-top: 88px; }
.adm .card + .card { margin-top: var(--s4); }
.adm .card > h2 { font-size: var(--f22); }
.adm input, .adm select { min-height: 40px; padding: var(--s2) var(--s3); font-size: var(--f14); }
.adm th, .adm td { padding: var(--s2) var(--s2); }
.adm .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm .tbl table { min-width: 720px; }
.adm .tbl td, .adm .tbl th { white-space: nowrap; }
.adm button.tb { min-height: 32px; padding: 0 var(--s3); font-size: var(--f12); font-weight: 400; background: var(--nest-2); color: var(--text); border-radius: 8px; }
.adm button.tb.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.adm button.tb.danger { background: rgba(255, 122, 107, .14); color: var(--bad); }
.adm button.big { min-height: 40px; padding: 0 var(--s6); font-size: var(--f14); }
.adm .ad-edit { background: var(--nest); border-radius: var(--r-sm); padding: var(--s4); margin-bottom: var(--s3); }
header .nav button.tb { flex: 0 0 auto; }

.kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.kpi .k { background: var(--nest); border: 1px solid transparent; border-radius: var(--r-sm); padding: var(--s4); }
.kpi .k span { display: block; font-size: var(--f12); color: var(--faint); }
.kpi .k b { display: block; font-size: var(--f26); font-weight: 700; line-height: 1.35; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .k small { display: block; font-size: var(--f12); color: var(--muted); }
.kpi .k.hot { background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .3); }
.kpi .k.hot b { color: var(--cyan); }
.todo { font-size: var(--f14); color: var(--muted); margin: var(--s4) 0 0; }
.todo b { color: var(--bad) }
.dash-2 { display: grid; grid-template-columns: 1fr; gap: var(--s6); margin-top: var(--s2); }
.dash-2 h3 { font-size: var(--f16); margin: 0 0 var(--s3); }
.bl { display: flex; align-items: center; gap: var(--s3); font-size: var(--f14); margin-bottom: var(--s2); }
.bl i { flex: 0 0 110px; font-style: normal; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl .bt { flex: 1; min-width: 0; height: 6px; border-radius: 999px; background: var(--nest-2); overflow: hidden; }
.bl .bt b { display: block; height: 100%; background: var(--grad-btn); }
.bl em { flex: 0 0 auto; font-style: normal; font-size: var(--f12); color: var(--faint); font-variant-numeric: tabular-nums; }
.stock-list { display: grid; gap: var(--s2); font-size: var(--f14); color: var(--muted); }
.stock-list b { color: var(--text); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash-2 { grid-template-columns: 1.2fr .8fr; gap: var(--s8); }
}
@media (max-width: 900px) {
  .adm .card { padding: var(--s4); }
  .adm header .nav { flex-wrap: wrap; padding-bottom: var(--s2); }
  .adm nav.menu { flex: 1 1 100%; order: 3; }
  .adm nav.menu a { display: inline-block }
  .kpi .k b { font-size: var(--f22); }
  .bl i { flex: 0 0 84px; }
}

/* 智能体生成的效果图（家具产品效果图那条开始用）：只加规则，不动已有排版 */
.msg.md .shot { margin: 0 0 var(--s4); }
.msg.md .shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--nest); border: 1px solid var(--line); border-radius: var(--r-sm); }

/* ---------- 我的记录 ---------- */
.hist-item { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: var(--s2); overflow: hidden; cursor: pointer; }
.hist-hd { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); font-size: var(--f14); background: var(--nest); }
.hist-hd b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-hd time { flex-shrink: 0; color: var(--muted); font-size: var(--f12); }
.hist-hd .harrow { flex-shrink: 0; color: var(--muted); transition: transform .2s; font-size: var(--f12); }
.hist-item.open .harrow { transform: rotate(90deg); }
.hist-body { display: none; padding: var(--s4); font-size: var(--f14); line-height: 1.7; border-top: 1px solid var(--line); }
.hist-item.open .hist-body { display: block; }
.hist-body .md { white-space: normal; }
.hist-body .md h3,.hist-body .md h4 { font-size: var(--f15); font-weight: 700; margin: var(--s3) 0 var(--s1); }
.hist-body .md p { margin: 0 0 var(--s2); }
.hist-empty { text-align: center; color: var(--muted); font-size: var(--f14); padding: var(--s8) 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 智能体生成的效果图（家具效果图那条起）：只加规则，不动已有排版 */
.msg.md .shot { margin: 0 0 var(--s4); }
.msg.md .shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--nest); border: 1px solid var(--line); border-radius: var(--r-sm); }

/* 结果里的链接（台账导出那张 Excel）：要看得出是能点的，复制走的那一份是完整网址 */
.msg.md a { color: var(--cyan); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.msg.md .shot a { display: block; }

/* 生成图摊开看：长图能上下滚，× 钉在右上角，滑到哪都关得掉 */
.z-mask { position: fixed; inset: 0; z-index: 60; background: rgba(11, 11, 15, .92); display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: max(16px, env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.z-mask > div { margin: auto; min-width: 0; }
.z-mask img { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; background: #fff; border-radius: var(--r-sm); }
.z-mask p { margin: 16px 0 0; font-size: var(--f14); line-height: 24px; color: #d1d5db; }
.z-mask .z-close { margin: 14px auto 0; display: block; width: 120px; height: 40px; border: 0; border-radius: 999px; background: #f3f4f6; color: #111827; font: inherit; font-size: var(--f14); font-weight: 600; cursor: pointer; }
.z-x { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 61; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 22px; line-height: 1; font-family: inherit; cursor: pointer; }

/* 这台手机上买过的卡密：挂在首页最上面，点一下直接进门，不用翻聊天记录找客服
   小屏上这条不能长高（320 宽竖着排三条胶囊会吃掉半屏），所以做成一行横滑：名字截断、高度恒定 */
.mycard { position: relative; margin: 0 0 var(--s6); padding: 10px 44px 10px var(--s4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); }
.mycard > b { display: block; margin: 0 0 var(--s1); font-size: var(--f14); font-weight: 600; color: var(--muted) }
.mycard .mc-tip { font-weight: 400; font-size: var(--f12); color: var(--faint) }
.mycard > span { display: flex; gap: var(--s2); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mycard > span::-webkit-scrollbar { display: none; }
.mc-c { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px var(--s3); border: 1px solid var(--line); border-radius: 999px; background: var(--nest); font: inherit; cursor: pointer; white-space: nowrap; }
.mc-c b { font-size: var(--f15); font-weight: 700; letter-spacing: .04em; color: var(--blue); font-family: ui-monospace, Menlo, Consolas, monospace }
.mc-c i { font-style: normal; font-size: var(--f12); color: var(--faint); max-width: 100px; overflow: hidden; text-overflow: ellipsis }
.mc-c:hover, .mc-c:active { background: var(--nest-2) }
.mc-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--faint); font-size: var(--f14); line-height: 1; font-family: inherit; cursor: pointer }
.mc-x:hover { background: var(--nest-2); color: var(--muted) }
.mycard .mc-short { display: none }
/* 320 那一档：标题换短的一句，给右上角的 ✕ 让出地方（压留白会让字和 ✕ 挤在一起） */
@media (max-width: 359px) {
  .mycard .mc-long { display: none }
  .mycard .mc-short { display: inline }
}

/* ---------- 首页按行业分行 + 先存着 ---------- */
.rows { display: flex; gap: var(--s2); margin: calc(-1 * var(--s6)) 0 var(--s4); overflow-x: auto; scrollbar-width: none; }
.rows::-webkit-scrollbar { display: none; }
.row-c { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px var(--s4); border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font: inherit; font-size: var(--f14); cursor: pointer; white-space: nowrap; }
/* 阻尼：按下去 90 毫秒到位，松手用 320 毫秒带一点回弹慢慢浮回来（一键就过去=手感很廉价） */
.row-c { transition: transform .32s cubic-bezier(.28,1.4,.5,1), background-color .24s ease, color .24s ease, border-color .24s ease; }
.row-c:active { transform: scale(.93); transition-duration: .09s; }
.row-c:hover { background: var(--nest); }
.row-c i { font-style: normal; font-size: var(--f12); opacity: .55; }
.row-c.on { background: var(--grad-btn); border-color: transparent; color: #fff; font-weight: 600; }
.row-c.on i { opacity: .8; }
/* 回访条里存过的条目：名字得有分量，不然看着像灰掉不能点 */
#savedBar .mc-c i { max-width: 168px; font-size: var(--f14); color: var(--text) }
/* 换一行看：列表沉一下再落定，不给"啪"地跳过去的感觉 */
#cards.swap { animation: shelf-in .34s cubic-bezier(.22,.61,.36,1) both; }
@keyframes shelf-in { from { opacity: .3; transform: translateY(10px) } to { opacity: 1; transform: none } }
.mc-c { transition: transform .32s cubic-bezier(.28,1.4,.5,1), background-color .24s ease; }
.mc-c:active { transform: scale(.95); transition-duration: .09s; }
