/* =========================================================
   wx work · 设计规范（官网 / 用户中心 / 工作台 / 后台 共用）
   风格：白底、薄荷绿渐变、黑色主按钮、圆角卡片
   ========================================================= */

:root {
  --ink: #0b1513;
  --text: #1f2a28;
  --muted: #64716e;
  --faint: #94a3a0;
  --line: #e5ebe9;
  --line-strong: #d3dcd9;
  --bg: #ffffff;
  --bg-soft: #f6f8f8;
  --bg-mute: #eef3f2;
  --card: #ffffff;

  --brand: #0d9488;
  --brand-600: #0f766e;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;

  --cta: #111614;
  --cta-hover: #2a3330;

  /* 判级颜色 */
  --s1: #e5484d;      /* 紧急 */
  --s1-bg: #fdecec;
  --wait: #d97706;    /* 待回应 */
  --wait-bg: #fef3e2;
  --confirm: #7c3aed; /* 待确认 */
  --confirm-bg: #f1ebfe;
  --s3: #2563eb;      /* 咨询 */
  --s3-bg: #e9f0fe;
  --s5: #0d9488;      /* 约定 */
  --s5-bg: #e6f7f5;
  --s2: #475569;      /* 待办 */
  --s2-bg: #eef1f5;
  --s4: #64748b;      /* 资料 */
  --s0: #94a3b8;      /* 无需处理 */
  --ok: #16a34a;
  --ok-bg: #e8f6ed;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 21, .06);
  --shadow: 0 4px 16px rgba(15, 23, 21, .06), 0 1px 3px rgba(15, 23, 21, .05);
  --shadow-lg: 0 24px 60px rgba(15, 23, 21, .12), 0 6px 18px rgba(15, 23, 21, .06);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--bg-soft); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg-mute); }
.btn-danger { color: var(--s1); border-color: #f3c4c5; }
.btn-danger:hover { background: var(--s1-bg); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-rect { border-radius: var(--radius-sm); }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.form-error { color: var(--s1); font-size: 13px; min-height: 20px; }
.form-ok { color: var(--ok); font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }

/* ---------- 卡片 / 标签 / 徽章 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; margin: 0; }
.card-body { padding: 16px 20px; }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--bg-mute); color: var(--muted); white-space: nowrap; }
.tag-s1 { background: var(--s1-bg); color: var(--s1); }
.tag-wait { background: var(--wait-bg); color: var(--wait); }
.tag-confirm { background: var(--confirm-bg); color: var(--confirm); }
.tag-s3 { background: var(--s3-bg); color: var(--s3); }
.tag-s5 { background: var(--s5-bg); color: var(--s5); }
.tag-s2 { background: var(--s2-bg); color: var(--s2); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-money { background: #fff4e5; color: #b45309; }

.pill-status {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--cta); color: #fff; font-size: 13px; white-space: nowrap;
}
.pill-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.pill-status.is-off .dot { background: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, .25); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table td.wrap { white-space: normal; min-width: 220px; }
.table tr:hover td { background: #fafcfb; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(11, 21, 19, .4); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; }
.modal h3 { font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--cta); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }

/* =========================================================
   官网
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(10px); background: rgba(255, 255, 255, .78); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 700; font-size: 19px; letter-spacing: -.2px; text-decoration: none !important; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #14b8a6, #0f766e); display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 4px 10px rgba(13, 148, 136, .3); }
.logo small { font-weight: 500; color: var(--muted); font-size: 13px; }
.site-nav { display: flex; gap: 22px; flex: 1; }
.site-nav a { color: var(--text); font-size: 14px; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 18% -10%, #c9f7ea 0%, rgba(201, 247, 234, 0) 60%), radial-gradient(700px 380px at 92% 0%, #d8f3ff 0%, rgba(216, 243, 255, 0) 60%), linear-gradient(180deg, #f2fbf8 0%, #ffffff 70%); }
.hero .inner { max-width: 1180px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.hero h1 { font-size: 54px; letter-spacing: -1px; margin-bottom: 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #0f766e, #14b8a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 12px; font-size: 13px; color: var(--faint); }

.section { max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 34px; letter-spacing: -.5px; }
.section-title p { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 auto; }
.band { background: var(--bg-soft); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature { padding: 24px; }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 20px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

.route { padding: 28px; position: relative; }
.route h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.route ul { padding-left: 18px; color: var(--muted); font-size: 14px; margin: 12px 0 18px; }
.route li { margin-bottom: 6px; }
.route .cost { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }

.steps { counter-reset: s; }
.step { padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cta); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 16px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.cta-band { text-align: center; padding: 64px 24px; background: radial-gradient(600px 260px at 50% 0%, #c9f7ea 0%, rgba(201, 247, 234, 0) 70%), var(--bg-soft); }
.cta-band h2 { font-size: 30px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer .inner { max-width: 1180px; margin: 0 auto; padding: 40px 24px 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h4 { font-size: 14px; margin-bottom: 10px; }
.site-footer a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.site-footer .legal { max-width: 1180px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer .legal a { display: inline; color: var(--faint); margin: 0; font-size: 12px; }

/* 产品预览窗口（官网首页） */
.preview { max-width: 1080px; margin: 48px auto 0; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.preview-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.preview-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8e6; }
.preview-bar span { margin-left: 10px; font-size: 12px; color: var(--faint); }

/* 价格卡片 */
.price { padding: 28px; display: flex; flex-direction: column; }
.price.is-featured { border-color: var(--ink); box-shadow: var(--shadow); }
.price .amount { font-size: 34px; font-weight: 700; color: var(--ink); margin: 10px 0 2px; }
.price .amount small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price ul { padding-left: 18px; color: var(--muted); font-size: 14px; flex: 1; }

/* 文档页 */
.doc-layout { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.doc-nav { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.doc-nav h5 { font-size: 12px; color: var(--faint); margin: 18px 0 6px; font-weight: 600; letter-spacing: .5px; }
.doc-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); }
.doc-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.doc-nav a.is-active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.doc-body { max-width: 760px; }
.doc-body h1 { font-size: 30px; }
.doc-body h2 { font-size: 21px; margin-top: 32px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--bg-soft); font-weight: 600; }
.doc-body code { font-family: var(--mono); background: var(--bg-mute); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-50); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 14px; margin: 16px 0; }
.callout.warn { border-left-color: var(--wait); background: var(--wait-bg); }

/* =========================================================
   应用外壳（工作台 / 用户中心 / 后台）
   ========================================================= */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--bg-soft); }
.side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-top { padding: 18px 18px 10px; }
.side-nav { padding: 6px 10px; flex: 1; overflow-y: auto; }
.side-nav .group { font-size: 12px; color: var(--faint); padding: 14px 10px 6px; font-weight: 600; }
.side-nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--text); font-size: 14px; text-decoration: none; }
.side-nav a:hover { background: var(--bg-soft); }
.side-nav a.is-active { background: var(--bg-mute); color: var(--ink); font-weight: 600; }
.side-nav a .ico { width: 18px; text-align: center; opacity: .8; }
.side-nav a .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--s1); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 600; }
.side-foot { border-top: 1px solid var(--line); padding: 14px 16px; }
.credit-box { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.credit-box .num { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.user-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #99f6e4, #5eead4); color: #0f766e; display: grid; place-items: center; font-weight: 700; flex: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(246, 248, 248, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 18px; margin: 0; }
.topbar .spacer { flex: 1; }
.content { padding: 24px 28px 48px; }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; font: inherit; color: inherit; }
.kpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.kpi.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kpi .label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .label i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.kpi .value { font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 4px; }

.wb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.queue-item { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 14px; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--line); }
.queue-item:last-child { border-bottom: 0; }
.queue-item .bar { border-radius: 0 4px 4px 0; background: var(--s2); }
.queue-item.lv-s1 .bar { background: var(--s1); }
.queue-item.lv-wait .bar { background: var(--wait); }
.queue-item.lv-confirm .bar { background: var(--confirm); }
.queue-item.lv-s3 .bar { background: var(--s3); }
.queue-item.lv-s5 .bar { background: var(--s5); }
.queue-item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.queue-item .meta b { color: var(--ink); font-weight: 600; }
.queue-item .text { color: var(--ink); font-size: 14px; }
.queue-item .why { font-size: 12px; color: var(--faint); margin-top: 4px; }
.queue-item .acts { display: flex; gap: 6px; align-items: flex-start; }

.radar-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.radar-item:last-child { border-bottom: 0; }
.radar-item .wait { margin-left: auto; color: var(--s1); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.bubble-list { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.bubble.is-ours { align-self: flex-end; background: var(--brand-50); border-color: var(--brand-100); }
.bubble .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.bubble .lv { font-size: 12px; margin-top: 6px; }

/* ---------- 账号页（登录/注册） ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(700px 360px at 20% 0%, #c9f7ea 0%, rgba(201, 247, 234, 0) 60%), linear-gradient(180deg, #f2fbf8 0%, #ffffff 70%); }
.auth-card { width: 100%; max-width: 420px; padding: 32px; }
.auth-card h1 { font-size: 24px; margin: 18px 0 6px; }
.auth-card .switch-link { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }

/* =========================================================
   手机适配
   ========================================================= */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header .inner { gap: 12px; padding: 0 16px; }
  .site-actions .hide-sm { display: none; }
  .hero .inner { padding: 48px 16px 28px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 48px 16px; }
  .section-title h2 { font-size: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .site-footer .inner { grid-template-columns: 1fr 1fr; padding: 32px 16px 20px; }
  .site-footer .legal { padding: 16px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 48px; gap: 16px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .doc-nav h5 { width: 100%; margin: 8px 0 2px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; padding: 6px 10px 10px; }
  .side-nav .group { display: none; }
  .side-nav a { flex: none; }
  .side-foot { display: none; }
  .topbar { padding: 0 16px; }
  .content { padding: 16px 16px 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue-item { grid-template-columns: 4px minmax(0, 1fr); }
  .queue-item .acts { grid-column: 2; }
  .bubble { max-width: 92%; }
  .preview-body { grid-template-columns: minmax(0, 1fr) !important; }
  .preview-side { display: none; }
  .preview .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* 手机：老板在手机上看看板、处理事项 */
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi .value { font-size: 22px; }
  .topbar { height: 52px; gap: 8px; }
  .topbar h1 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pill-status { max-width: 46vw; overflow: hidden; }
  .pill-status #srcText { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .input-row { flex-direction: column; align-items: stretch; }
  .input-row .field { width: 100%; }
  .card-head { flex-wrap: wrap; gap: 6px; }
  .table th, .table td { padding: 9px 10px; }
  .modal { width: calc(100vw - 24px) !important; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px !important; }
  .modal-actions { flex-wrap: wrap; }
  .callout { font-size: 13px; }
}
