:root {
  --bg: #eef1f5;
  --panel: #ffffff;
  --line: #d7dbe0;
  --ink: #1f2328;
  --muted: #6b7280;
  --accent: #1f6feb;
  --accent-dark: #1a5fd0;
  --accent-soft: #e8f0fe;
  --ok: #16a34a;
  --warn: #b45309;
  --danger: #dc2626;
  --head-bg: #f5f6f8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  max-width: 100%;
}

body {
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
  overflow: auto;
  overflow-x: hidden;
}

.app-shell {
  display: none;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ---------- 顶栏 ---------- */
.topbar {
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #20304a;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.brand { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.dataset-info { font-size: 12px; color: #cbd5e1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: #f0f3f7; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-sm { padding: 3px 9px; font-size: 12px; }

/* ---------- 布局 ---------- */
.layout {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  flex: 0 0 320px;
  width: 320px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--head-bg);
}
.tab {
  flex: 1;
  padding: 9px 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
  background: #fff;
}
.main-tabs .tab { flex: none; min-width: 120px; }

.tab-panel {
  flex: 1;
  overflow: auto;
  padding: 12px;
  min-height: 0;
}

/* ---------- 输入 ---------- */
.input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.input:focus { outline: none; border-color: var(--accent); }
.input-sm { width: 70px; display: inline-block; }
select.input { width: 100%; }

/* ---------- 变量列表 ---------- */
.var-list { display: flex; flex-direction: column; gap: 8px; }
.var-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
.var-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.var-name { font-weight: 700; }
.var-label { color: var(--muted); font-size: 12px; }
.badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  color: #fff;
}
.badge.num { background: #2563eb; }
.badge.cat { background: #7c3aed; }
.var-meta { color: var(--muted); font-size: 11.5px; margin: 3px 0; }
.vl { font-size: 11px; color: #065f46; background: #ecfdf5; border-radius: 4px; padding: 3px 6px; margin: 3px 0; }
.measure-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.measure-label { color: var(--muted); font-size: 12px; }
.measure-select { flex: 1; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }

/* ---------- 清洗建议 ---------- */
.cleaning-panel { display: flex; flex-direction: column; gap: 8px; }
.clean-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}
.clean-warn { border-color: #f59e0b; background: #fffbeb; }
.clean-title { font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.clean-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid #eef0f3;
}
.clean-row:first-of-type { border-top: none; }
.clean-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 数据表 ---------- */
.hint { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.data-table-wrap { overflow: auto; }
.data-table { border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td {
  border: 1px solid var(--line);
  padding: 3px 8px;
  min-width: 70px;
  white-space: nowrap;
}
.data-table th { background: var(--head-bg); position: sticky; top: 0; }
.data-table td.idx { background: var(--head-bg); color: var(--muted); text-align: right; }
.data-table td[contenteditable] { cursor: text; }
.data-table td[contenteditable]:hover { background: #fef9c3; }
.data-table td[contenteditable]:focus { background: #fef9c3; outline: 1px solid var(--accent); }

/* ---------- 转换面板 ---------- */
.tf-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.tf-section h4 { margin: 0 0 8px; font-size: 13px; }
.tf-section .input, .tf-section select.input { margin-bottom: 6px; }
.tf-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.tf-note { color: var(--muted); font-size: 11.5px; margin: 3px 0; }
.tf-suggest-box { border: 1px dashed var(--accent); border-radius: 6px; padding: 8px; background: var(--accent-soft); }
.tf-suggest-box textarea { min-height: 36px; font-size: 12px; }
.scale-json {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  white-space: pre;
}
.check-group { display: flex; flex-direction: column; gap: 2px; max-height: 160px; overflow: auto; }
.check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; cursor: pointer; }

.mv-row { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.mv-val { flex: 1; font-size: 12.5px; }
.mv-cnt { color: var(--muted); font-size: 11.5px; width: 46px; text-align: right; }
.mv-map { flex: 1.2; }

.dim-row { border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin-bottom: 8px; background: #fafbfc; }
.dim-name { margin-bottom: 4px; }
.dim-item-row { display: flex; align-items: center; gap: 14px; }
.rev-tag { color: var(--warn); font-size: 11.5px; }

/* ---------- 分析菜单与参数 ---------- */
.analyze-layout { display: flex; gap: 0; height: 100%; }
.menu-col {
  flex: 0 0 260px;
  border-right: 1px solid var(--line);
  overflow: auto;
  padding-right: 12px;
}
.menu-cat {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  margin: 10px 0 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
}
.menu-item:hover { background: var(--accent-soft); }
.menu-item input { margin-top: 3px; }
.mi-body { display: flex; flex-direction: column; }
.mi-name { font-weight: 600; font-size: 13px; }
.mi-desc { color: var(--muted); font-size: 11.5px; }

.param-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 12px;
  overflow: auto;
}
.param-panel { flex: 1; overflow: auto; }
.param-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.pf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pf-title { font-weight: 700; font-size: 13.5px; }
.pf-field { margin-bottom: 10px; }
.pf-label { font-weight: 600; font-size: 12.5px; margin-bottom: 3px; }
.req { color: var(--danger); }
.pf-help { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.pf-note { color: var(--muted); font-size: 12px; }
.pf-select { width: auto; min-width: 220px; }
.pf-ms-group { max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px; }

.fm-editor { border: 1px dashed var(--line); border-radius: 6px; padding: 8px; }
.fm-factor { border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin-bottom: 8px; background: #fafbfc; }
.fm-name { margin-bottom: 6px; max-width: 260px; }
.fm-items { max-height: 150px; overflow: auto; }

.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.upload-empty,
.start-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  text-align: center;
}
.start-panel {
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.upload-main {
  min-width: 150px;
  min-height: 36px;
  font-weight: 700;
}
.hidden-advanced { display: none; }

.run-bar { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.run-status { color: var(--muted); font-size: 12.5px; }

/* ---------- 语言切换按钮 ---------- */
.btn-lang {
  min-width: 52px;
  font-weight: 700;
  color: var(--accent);
  border-color: rgba(31,111,235,.35);
  background: #fff;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-ctas { display: flex; align-items: center; gap: 8px; }
.landing-nav .nav-ctas .btn { white-space: nowrap; }

/* 首页品牌小字开关（品牌行内两项） */
.landing-brand + .nav-right { margin-left: auto; }

/* ---------- 营销 CTA 与流程 ---------- */
.hero-service-badge {
  margin-top: 16px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6feb, #7c3aed);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 0 30px;
}
.workflow-step {
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  background: #fff;
  padding: 16px 14px;
  box-shadow: 0 8px 22px rgba(32,48,74,.06);
}
.workflow-step .ws-t { font-weight: 700; font-size: 14px; color: #20304a; margin-bottom: 6px; }
.workflow-step .ws-d { font-size: 12.5px; color: #5f6b7a; line-height: 1.6; }
.cta-band {
  background: linear-gradient(135deg, #1f2a44 0%, #20304a 55%, #1f6feb 135%);
  color: #fff;
  border-radius: 14px;
  padding: 34px 26px;
  margin: 6px 0 30px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 8px; font-size: 24px; }
.cta-band p { margin: 0 auto 18px; max-width: 640px; color: #d7e1f0; line-height: 1.7; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }
.cta-band .btn { min-width: 150px; }
.cta-band .btn-primary { background: #fff; color: #20304a; border-color: #fff; }
.cta-band .btn-primary:hover { background: #eef4ff; }
.cta-band .btn:not(.btn-primary) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.landing-footer {
  border-top: 1px solid rgba(32,48,74,.1);
  padding: 22px 0 30px;
  text-align: center;
}
.landing-footer p { color: #64748b; font-size: 12.5px; margin: 6px 0 0; }
.landing-footer .copy { font-size: 11.5px; }

/* ---------- 竖屏讲解视频（9:16） ---------- */
.video-layout {
  display: flex;
  justify-content: center;
  padding: 4px 0 10px;
}
.video-frame.portrait {
  width: min(360px, 100%);
  border: 1px solid #dfe5ec;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(32,48,74,.12);
}
.portrait-player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: #10192a;
  object-fit: cover;
}
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.7;
  background: linear-gradient(160deg, #10192a 0%, #1b2942 100%);
}
.video-caption {
  margin-top: 8px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- 官网 / 登录入口 ---------- */
.landing-page {
  display: flex;
  flex-direction: column;   /* app.js 会内联 display:flex，方向必须锁定为纵向 */
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 46%, #ffffff 100%);
  color: #152033;
}
.landing-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(32, 48, 74, .12);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.landing-brand {
  font-size: 16px;
  font-weight: 800;
  color: #20304a;
}
.landing-nav-actions {
  display: flex;
  gap: 18px;
}
.landing-nav-actions a {
  color: #4b5563;
  text-decoration: none;
  font-size: 13px;
}
.landing-nav-actions a:hover { color: var(--accent); }
.landing-main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.landing-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3.2vw, 40px) 0 clamp(16px, 2.4vw, 26px);
}
.hero-copy {
  max-width: 690px;
}
.eyebrow {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(31, 111, 235, .25);
  border-radius: 999px;
  color: #1f6feb;
  background: #eef5ff;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.1vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}
.hero-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.auth-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 22px 50px rgba(32, 48, 74, .14);
}
.auth-box h2 { margin: 0 0 8px; font-size: 22px; }
.auth-box .input { margin-top: 8px; }
.auth-actions { display: flex; gap: 8px; margin-top: 12px; }
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.captcha-display {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px dashed rgba(31, 111, 235, .45);
  border-radius: 6px;
  background: #eef5ff;
  color: #1b3a6b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 8px;
  text-indent: 8px;
  cursor: pointer;
  user-select: none;
}
.captcha-refresh { flex: 0 0 auto; }

/* ---------- 首页讲解视频 ---------- */
.video-band { padding: 4px 0 26px; }
.video-frame {
  border: 1px solid #dfe5ec;
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(32, 48, 74, .08);
}
.video-player {
  display: block;
  width: 100%;
  max-height: 340px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #10192a;
  object-fit: cover;
}
.video-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.7;
}
.video-note code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef2ff;
  color: #3730a3;
}
.feature-band {
  padding: 10px 0 26px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 26px;
}
.section-head p {
  margin: 0;
  color: #64748b;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  min-height: 128px;
  padding: 18px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.feature-card p {
  margin: 0;
  color: #5f6b7a;
  line-height: 1.65;
}
/* 竖屏视频（左）+ 服务流程（右）：桌面左右并排 */
.demo-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 34px;
  align-items: start;
  padding: 6px 0 10px;
}
.demo-row .video-band,
.demo-row .workflow-band {
  margin: 0;
}
.workflow-band {
  display: block;
  padding: 0;
}
.workflow-band .section-head {
  display: block;
  margin-bottom: 14px;
}
.workflow-band .section-head .how-sub {
  margin: 10px 0 0;
  color: #5f6b7a;
  line-height: 1.7;
}
.workflow-band .workflow-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
}

/* 引流页：隐藏 Hero 引导按钮与代做标识，聚焦信任背书 */
#btnHeroStart,
.landing-hero a[data-i18n="hero_cta_secondary"],
.hero-service-badge {
  display: none;
}

/* ---- 信任背书（量化成果 + 行业覆盖） ---- */
.proof-band {
  padding: 30px 0 26px;
  border-top: 1px solid #eef2f8;
  border-bottom: 1px solid #eef2f8;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 26px;
}
.stat {
  text-align: center;
  padding: 16px 10px;
  border-radius: 12px;
  background: #f5f8ff;
}
.stat-v {
  font-size: 34px;
  font-weight: 800;
  color: #0d4bb8;
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.stat-l {
  font-size: 13px;
  color: #5f6b7a;
}
.industry-head {
  font-size: 13px;
  font-weight: 600;
  color: #12294a;
  margin-bottom: 12px;
}
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.industry-chip {
  border: 1px solid #d3e0f2;
  background: #fff;
  color: #1e4ba0;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
}

/* ---- 企业级简洁风：白底 + 专业蓝 ---- */
.section-head h2 { color: #12294a; }
.btn-primary {
  background: #0d4bb8;
  border-color: #0d4bb8;
}
.btn-primary:hover { background: #0a3f9c; }

@media (max-width: 920px) {
  .demo-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
  }
  .hero-copy { max-width: none; }
  .hero-copy h1 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .workflow-band { grid-template-columns: 1fr; }
  .workflow-band .workflow-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .nav-right { flex-wrap: wrap; }
  .section-head { display: block; }
  .section-head h2 { margin-bottom: 4px; }
  .video-player { max-height: 300px; }
}

/* ---------- 手机（375 / 390 / 430 宽）单列适配 ---------- */
@media (max-width: 720px) {
  .landing-nav {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
  }
  .landing-nav-actions { gap: 14px; flex-wrap: wrap; }
  .landing-brand { font-size: 15px; }
}

@media (max-width: 480px) {
  .landing-main { width: calc(100% - 24px); }
  .landing-nav { padding: 10px 12px; }
  .landing-nav-actions a { font-size: 12.5px; }
  .landing-hero { padding: 14px 0 16px; gap: 14px; }
  .hero-copy h1 { font-size: 25px; line-height: 1.2; }
  .hero-copy p { font-size: 14.5px; line-height: 1.68; }
  .eyebrow { margin-bottom: 10px; font-size: 12px; }
  .hero-actions { margin-top: 16px; gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .auth-box { padding: 14px; }
  .auth-box h2 { font-size: 19px; }
  .auth-actions { flex-direction: column; gap: 8px; }
  .auth-actions .btn { width: 100%; }
  .captcha-row { flex-wrap: wrap; }
  .captcha-display { letter-spacing: 6px; text-indent: 6px; font-size: 20px; min-width: 0; }
  .captcha-refresh { flex: 0 0 auto; }
  .video-band { padding: 4px 0 18px; }
  .video-frame { padding: 8px; }
  .video-player { max-height: 200px; }
  .feature-band { padding: 8px 0 20px; }
  .feature-card { min-height: 0; padding: 14px; }
  .workflow-band { gap: 8px; padding: 10px 0 22px; }
  .workflow-step { padding: 11px 10px; }
  .section-head { margin-bottom: 10px; }
  .section-head h2 { font-size: 21px; }
  .section-head p { font-size: 13px; }
}

/* ---------- 引导建议 ---------- */
.guide-panel { max-width: 980px; }
.guide-hero {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  margin: -12px -12px 12px;
}
.guide-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.guide-hero p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}
.guide-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.guide-section h3 { margin: 0 0 8px; font-size: 14px; }
.guide-item {
  border-top: 1px solid #eef0f3;
  padding: 8px 0;
}
.guide-item:first-of-type { border-top: none; padding-top: 0; }
.guide-item-title { font-weight: 700; margin-bottom: 4px; }
.guide-item p { color: var(--muted); line-height: 1.55; margin: 0 0 5px; }
.guide-item code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11.5px;
}
.guide-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.guide-tags span {
  padding: 2px 7px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11.5px;
}
.guide-required {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  padding: 6px 8px;
  margin: 6px 0;
  line-height: 1.55;
  font-size: 12px;
}
.guide-question {
  border-top: 1px solid #eef0f3;
  padding: 8px 0;
  line-height: 1.55;
}
.guide-question:first-of-type { border-top: none; padding-top: 0; }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
}

/* ---------- 日志 ---------- */
.log-frame { width: 100%; height: 100%; border: none; background: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1f2328;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: 70%;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
.toast.warn { background: var(--warn); }

/* ==================== 支付 / 订单 / 管理端 ==================== */
.pay-shell { flex-direction: column; }
.pay-topbar { flex: 0 0 auto; }
.pay-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
  box-sizing: border-box;
  overflow-y: auto;
}
.pay-panel { display: block; padding-top: 24px; }
.pay-panel h2 {
  color: #12294a;
  font-size: 22px;
  margin: 0 0 6px;
}
.pay-panel .hint { color: var(--muted); margin: 0 0 18px; }

/* 价格方案卡片 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(18, 41, 74, .04);
}
.plan-card .plan-name {
  font-weight: 700;
  font-size: 15px;
  color: #12294a;
  margin-bottom: 8px;
}
.plan-card .plan-price {
  font-size: 28px;
  font-weight: 800;
  color: #0d4bb8;
  margin-bottom: 8px;
}
.plan-card .plan-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 38px;
}
.plan-card .btn { width: 100%; }
.demo-note {
  margin: 6px 0 18px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}

/* 订单列表 */
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.order-no { font-weight: 700; color: #12294a; letter-spacing: .3px; }
.order-status {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.st-paying { background: #fff7ed; color: #c2410c; }
.st-paid { background: #eff6ff; color: #1d4ed8; }
.st-delivered { background: #ecfdf5; color: #047857; }
.order-meta { color: var(--muted); font-size: 13px; margin: 6px 0; }
.order-foot { margin-top: 6px; }

/* 管理端：价格方案表单与列表 */
.plan-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 18px;
}
.plan-form-row { display: flex; gap: 10px; }
.plan-form-row .input { flex: 1 1 auto; }
.plan-form-row .input.sm { flex: 0 1 140px; }
.plan-form .chk {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px;
}
.plan-form-actions { display: flex; gap: 10px; }
.plan-admin-list { display: flex; flex-direction: column; gap: 8px; }
.plan-admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.plan-admin-row .p-name { flex: 1 1 auto; font-weight: 600; color: #12294a; }
.plan-admin-row .p-price { flex: 0 0 90px; color: #0d4bb8; font-weight: 700; }
.plan-admin-row .p-on { flex: 0 0 28px; text-align: center; color: var(--muted); }
.btn.danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.btn.danger:hover { background: #fee2e2; }
.empty { color: var(--muted); padding: 12px; }

@media (max-width: 700px) {
  .plan-form-row { flex-direction: column; gap: 8px; }
  .pay-topbar .top-actions { flex-wrap: wrap; }
}
