/* ============================================================
   宏图图文快印 · AI+ERP 增收系统 —— 演示原型共享样式
   纯手写 CSS，零外部依赖，离线可用
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --sidebar-w: 220px;
  --bg: #f4f5fa;
  --border: #e9ebf3;
  --text: #1f2937;
  --muted: #9aa0b4;
  --muted-2: #6b7280;
  --green: #0ea472;
  --orange: #d97706;
  --red: #e11d48;
  --blue: #2563eb;
  --purple: #7c3aed;
}

html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd3e0; border-radius: 8px; }

/* ============ 布局骨架 ============ */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: linear-gradient(180deg, #26235c 0%, #1b1846 60%, #161338 100%);
  display: flex; flex-direction: column; z-index: 100;
  box-shadow: 2px 0 14px rgba(20, 16, 60, .18);
}
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.content { padding: 24px 28px 48px; max-width: 1280px; width: 100%; }

/* ============ 侧边栏 ============ */
.logo { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--grad); color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(124, 58, 237, .45);
}
.logo-name { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.logo-sub { color: #8f8cc0; font-size: 11px; margin-top: 1px; }
.menu { flex: 1; padding: 8px 12px; overflow-y: auto; }
.menu-label { color: #6d6a9e; font-size: 11px; padding: 10px 10px 6px; letter-spacing: 2px; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  color: #b9b7dd; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; margin-bottom: 2px; transition: all .15s;
}
.menu-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu-item.active {
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .4);
}
.menu-ico { width: 20px; text-align: center; font-size: 15px; flex: none; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-foot .menu-item { margin-bottom: 0; }
.ver { color: #5f5c8e; font-size: 11px; text-align: center; padding: 8px 0 4px; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 60px;
}
.topbar-left { display: flex; align-items: baseline; gap: 14px; }
.page-title { font-size: 17px; font-weight: 700; }
.topbar-date { color: var(--muted); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.demo-badge {
  background: #efe7fd; color: var(--purple); font-size: 12px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; border: 1px solid #ddd0fb;
}
.icon-btn {
  position: relative; border: 1px solid var(--border); background: #fff;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 15px;
}
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  background: var(--red); border-radius: 50%; border: 1.5px solid #fff;
}
.user-chip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.user-name { font-size: 13px; color: var(--muted-2); }

/* ============ 页头 ============ */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.page-head h2 { font-size: 20px; font-weight: 700; }
.page-head .sub { color: var(--muted-2); font-size: 13px; margin-top: 4px; }

/* ============ 卡片与栅格 ============ */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g23 { grid-template-columns: 2fr 1fr; }
.g32 { grid-template-columns: 1fr 2fr; }
.card {
  background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: 0 1px 3px rgba(30, 27, 75, .05), 0 6px 16px rgba(30, 27, 75, .05);
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-title { font-size: 15px; font-weight: 700; }
.card-title small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 8px; }
.card-more { font-size: 12px; color: var(--primary); cursor: pointer; }
a.card { display: block; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(79, 70, 229, .14); }

/* ============ 统计卡 ============ */
.stat { display: flex; gap: 14px; align-items: flex-start; }
.stat-ico {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.si-indigo { background: #eceefe; } .si-green { background: #e3f6ee; }
.si-orange { background: #fdeeda; } .si-red { background: #fde4ea; }
.stat-label { font-size: 13px; color: var(--muted-2); }
.stat-num { font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: .5px; }
.stat-sub { font-size: 12px; color: var(--muted); }
.trend-up { color: var(--green); font-weight: 600; }
.trend-down { color: var(--red); font-weight: 600; }

/* ============ 北极星增收卡 ============ */
.north {
  position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(115deg, #4338ca 0%, #6d28d9 55%, #9333ea 100%);
  color: #fff; padding: 26px 30px;
  box-shadow: 0 12px 30px rgba(99, 102, 241, .35);
}
.north::before, .north::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.north::before { width: 260px; height: 260px; right: -60px; top: -100px; }
.north::after { width: 160px; height: 160px; right: 140px; bottom: -90px; }
.north-tag {
  display: inline-block; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 3px 12px; border-radius: 999px; font-size: 12px; margin-bottom: 10px;
}
.north-main { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.north-num { font-size: 46px; font-weight: 800; line-height: 1.1; }
.north-num small { font-size: 18px; font-weight: 600; }
.north-desc { opacity: .92; font-size: 14px; margin-top: 6px; }
.north-side { text-align: right; position: relative; }
.north-side .big { font-size: 22px; font-weight: 800; }
.north-btn {
  display: inline-block; margin-top: 10px; background: #fff; color: var(--primary);
  font-weight: 700; padding: 9px 20px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18); border: none; cursor: pointer;
}

/* ============ 徽标 ============ */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.b-green { background: #e3f6ee; color: #0a8f63; }
.b-orange { background: #fdeeda; color: #b45309; }
.b-red { background: #fde4ea; color: #d61f4f; }
.b-blue { background: #e3ecfd; color: #2563eb; }
.b-purple { background: #efe7fd; color: #7c3aed; }
.b-gray { background: #eef0f5; color: #6b7280; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; background: #fff; color: var(--text);
  font-family: inherit; transition: all .15s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(99, 102, 241, .32); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { border-color: var(--border); color: var(--muted-2); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-green { background: #07c160; color: #fff; box-shadow: 0 4px 12px rgba(7, 193, 96, .3); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 7px; }
.btn-ghost { background: transparent; color: var(--primary); padding: 5px 8px; }
.btn:disabled { opacity: .55; cursor: default; }

/* ============ 筛选标签 ============ */
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.tab { padding: 6px 16px; border-radius: 999px; color: var(--muted-2); cursor: pointer; font-size: 13px; user-select: none; }
.tab:hover { color: var(--primary); }
.tab.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ============ 表格 ============ */
.table { width: 100%; border-collapse: collapse; }
.table th {
  font-size: 12px; color: var(--muted-2); font-weight: 600; text-align: left;
  padding: 10px 12px; background: #f8f9fd; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.table tbody tr:hover td { background: #f7f8ff; }
.table tr.link { cursor: pointer; }
.table tr.danger td { background: #fff5f6; }
.table tr.danger:hover td { background: #ffecef; }
.table .num { font-weight: 700; }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
.input:focus, .select:focus, textarea.input:focus { outline: 2px solid rgba(99, 102, 241, .22); border-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.radio-row { display: flex; gap: 18px; align-items: center; }
.radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; }

/* ============ 竖向柱状图 ============ */
.chart { display: flex; align-items: flex-end; gap: 16px; height: 230px; padding-top: 8px; }
.cb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.cb .val { font-size: 12px; color: var(--muted-2); }
.cb .bar {
  width: 62%; max-width: 46px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #a5b4fc, #6366f1);
  transition: height .4s;
}
.cb .lbl { font-size: 12px; color: var(--muted); }
.cb.today .bar { background: linear-gradient(180deg, #c4b5fd, #7c3aed); box-shadow: 0 4px 10px rgba(124, 58, 237, .35); }
.cb.today .lbl { color: var(--primary); font-weight: 700; }
.cb.today .val { color: var(--primary); font-weight: 700; }

/* ============ 横向条形图 ============ */
.hrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hlabel { width: 84px; font-size: 13px; color: var(--muted-2); flex: none; }
.htrack { flex: 1; height: 16px; background: #eef0f6; border-radius: 999px; overflow: hidden; }
.hfill { height: 100%; border-radius: 999px; }
.hval { width: 130px; text-align: right; font-size: 13px; flex: none; }

/* ============ 流程步骤 ============ */
.flow { display: flex; align-items: stretch; gap: 10px; }
.fstep {
  flex: 1; background: #f7f8ff; border: 1px dashed #c3c8f2; border-radius: 12px;
  padding: 14px; text-align: center;
}
.fstep .fno {
  width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 6px;
}
.fstep b { display: block; color: var(--primary); margin-bottom: 2px; }
.fstep span { font-size: 12px; color: var(--muted-2); }
.farrow { align-self: center; color: #b3b9ef; font-size: 20px; font-weight: 700; }

/* ============ 模板库缩略图 ============ */
.tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tpl { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .15s; background: #fff; }
.tpl:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79, 70, 229, .14); border-color: #c3c8f2; }
.tpl-thumb {
  height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 4px;
}
.tpl-thumb .tt { font-size: 19px; font-weight: 800; letter-spacing: 2px; }
.tpl-thumb .ts { font-size: 11px; opacity: .85; }
.tpl-body { padding: 10px 12px; }
.tpl-name { font-weight: 600; font-size: 13px; }
.tpl-spec { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ============ 唤醒雷达 ============ */
.wk { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; background: #fff; }
.wk:hover { border-color: #c3c8f2; box-shadow: 0 4px 14px rgba(79, 70, 229, .08); }
.wk-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wk-ava {
  width: 44px; height: 44px; border-radius: 12px; flex: none; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700;
}
.wk-name { font-weight: 700; font-size: 15px; }
.wk-meta { font-size: 12px; color: var(--muted); }
.wk-tags { margin-left: auto; display: flex; gap: 6px; }
.wk-reason {
  background: #fff8ec; border: 1px solid #fbe3ae; color: #92400e;
  border-radius: 9px; padding: 8px 12px; font-size: 13px; margin: 12px 0 10px;
}
.wk-script {
  background: #f6f7ff; border-left: 3px solid var(--primary);
  border-radius: 0 9px 9px 0; padding: 10px 12px; font-size: 13px; color: #3f4460;
}
.wk-script .tag { color: var(--primary); font-weight: 600; font-size: 12px; display: block; margin-bottom: 3px; }
.wk-draft { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.draft-thumb {
  width: 120px; height: 72px; border-radius: 9px; color: #fff; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; gap: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.draft-thumb b { font-size: 14px; }
.wk-draft-info { font-size: 12px; color: var(--muted-2); }
.wk-actions { display: flex; gap: 10px; margin-top: 14px; align-items: center; }

/* ============ 营销日历 ============ */
.cal-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.cal-item:last-child { border-bottom: none; }
.cal-date {
  width: 50px; height: 50px; border-radius: 11px; background: #f2f3fe; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary);
}
.cal-date b { font-size: 17px; line-height: 1.1; }
.cal-date span { font-size: 10px; color: var(--muted-2); }
.cal-info { flex: 1; }
.cal-info .t { font-weight: 600; font-size: 13px; }
.cal-info .d { font-size: 12px; color: var(--muted); }
.cal-count { font-size: 11px; }

/* ============ 进度条 ============ */
.prog { height: 8px; background: #eef0f6; border-radius: 999px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(139, 92, 246, .35), transparent 60%),
    radial-gradient(500px 380px at 10% 85%, rgba(59, 130, 246, .28), transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%);
  padding: 24px;
}
.login-card {
  width: 420px; max-width: 100%; background: #fff; border-radius: 20px;
  padding: 40px 38px 30px; box-shadow: 0 24px 60px rgba(10, 8, 40, .45);
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.login-logo .logo-mark { width: 48px; height: 48px; font-size: 24px; border-radius: 13px; }
.login-title { font-size: 20px; font-weight: 800; }
.login-slogan { color: var(--muted-2); font-size: 13px; margin: 4px 0 26px; }
.login-btn { width: 100%; padding: 12px; font-size: 15px; font-weight: 700; margin-top: 6px; }
.login-tip {
  margin-top: 16px; background: #f6f7ff; border: 1px dashed #c3c8f2; color: var(--primary);
  font-size: 12px; border-radius: 9px; padding: 9px 12px; text-align: center;
}
.login-feats { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.login-feats div { text-align: center; font-size: 12px; color: var(--muted-2); }
.login-feats b { display: block; font-size: 16px; margin-bottom: 2px; }

/* ============ 手机端预览 ============ */
.phones { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-col h3 { font-size: 15px; }
.phone-col .desc { font-size: 12px; color: var(--muted-2); max-width: 320px; text-align: center; }
.phone {
  width: 330px; background: #14121f; border-radius: 42px; padding: 12px;
  box-shadow: 0 24px 50px rgba(17, 15, 40, .35);
}
.phone-screen { background: #ededf0; border-radius: 32px; overflow: hidden; height: 640px; display: flex; flex-direction: column; }
.p-status { display: flex; justify-content: space-between; padding: 8px 20px 4px; font-size: 11px; color: #333; }
.p-head { background: #07c160; color: #fff; text-align: center; padding: 10px; font-weight: 600; font-size: 14px; }
.p-head.dark { background: #fff; color: #1f2937; border-bottom: 1px solid #eee; }
.p-body { flex: 1; overflow-y: auto; padding: 12px; }
.p-time { text-align: center; font-size: 11px; color: #999; margin: 6px 0 10px; }
.msg-card { background: #fff; border-radius: 12px; padding: 12px 13px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.msg-title { font-weight: 700; font-size: 14px; }
.msg-sub { font-size: 11px; color: #999; margin-bottom: 8px; }
.msg-line { font-size: 12.5px; color: #333; padding: 5px 0; border-bottom: 1px solid #f3f3f3; display: flex; justify-content: space-between; gap: 8px; }
.msg-line:last-of-type { border-bottom: none; }
.msg-line .r { color: #999; font-size: 11.5px; flex: none; }
.msg-num { font-size: 22px; font-weight: 800; color: #07c160; }
.msg-btns { display: flex; border-top: 1px solid #f0f0f0; margin-top: 10px; padding-top: 9px; }
.msg-btns span { flex: 1; text-align: center; color: #576b95; font-size: 13px; cursor: pointer; }
.msg-btns span + span { border-left: 1px solid #f0f0f0; }
.msg-btns span.strong { color: #07c160; font-weight: 700; }
.upload-box {
  border: 2px dashed #c9cdd6; border-radius: 12px; padding: 22px 12px; text-align: center;
  color: #8a90a6; background: #fafbfc; font-size: 13px; margin-bottom: 12px; cursor: pointer;
}
.upload-box b { display: block; font-size: 24px; margin-bottom: 4px; color: #b6bbcb; }
.file-row { display: flex; align-items: center; gap: 8px; background: #f7f8fa; border-radius: 9px; padding: 9px 11px; font-size: 12.5px; margin-bottom: 12px; }
.file-row .fz { color: #999; font-size: 11px; margin-left: auto; }
.opt-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 2px; border-bottom: 1px solid #f3f3f3; color: #333; }
.opt-row .v { color: #07c160; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px 4px; }
.price-row .p { font-size: 24px; font-weight: 800; color: #f50; }
.pay-btn { background: #07c160; color: #fff; text-align: center; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 8px; }
.pay-note { text-align: center; font-size: 11px; color: #999; margin-top: 8px; }

/* ============ 检查项列表 ============ */
.check-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.check-item:last-child { border-bottom: none; }
.check-ico { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; font-weight: 700; }
.ck-ok { background: var(--green); } .ck-err { background: var(--red); } .ck-warn { background: var(--orange); }
.check-item .fix { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ============ 工具类 ============ */
.muted { color: var(--muted); } .small { font-size: 12px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-lg { margin-top: 24px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.todo-item:last-child { border-bottom: none; }
.todo-item .cnt { margin-left: auto; }
.quick-ico { font-size: 26px; }
.quick-name { font-weight: 700; margin-top: 8px; }
.quick-desc { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.empty-tip { text-align: center; color: var(--muted); padding: 24px 0; font-size: 13px; display: none; }
/* ============================================================
   移动端适配
   ============================================================ */

/* ---- 汉堡菜单按钮（桌面隐藏，移动端显示） ---- */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 18px;
  align-items: center; justify-content: center; flex: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---- 表格滚动容器 ---- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- 侧边栏遮罩层 ---- */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45); z-index: 99;
}
.sidebar-overlay.show { display: block; }

/* ---- 平板与手机（<=768px） ---- */
@media (max-width: 768px) {
  /* 显示汉堡菜单 */
  .menu-toggle { display: flex; }

  /* 侧边栏变为抽屉式 */
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }

  /* 主内容区全宽 */
  .main { margin-left: 0; }

  /* 内容区内边距缩小 */
  .content { padding: 14px 12px 40px; }

  /* 顶栏适配 */
  .topbar { padding: 0 12px; height: 54px; }
  .topbar-left { gap: 8px; }
  .page-title { font-size: 15px; }
  .topbar-date { display: none; }
  .topbar-right { gap: 8px; }
  .user-name { display: none; }
  .demo-badge { display: none; }

  /* 页头堆叠 */
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head h2 { font-size: 17px; }

  /* 栅格：g2/g4 变两列，g3/g23/g32 变单列 */
  .grid.g2, .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .grid.g3, .grid.g23, .grid.g32 { grid-template-columns: 1fr; }

  /* 卡片内边距缩小 */
  .card { padding: 14px; border-radius: 12px; }

  /* 北极星指标卡 */
  .north { padding: 18px 16px; border-radius: 14px; }
  .north-num { font-size: 34px; }
  .north-main { flex-direction: column; align-items: flex-start; }
  .north-side { text-align: left; }

  /* 统计卡数字缩小 */
  .stat-num { font-size: 22px; }
  .stat-ico { width: 38px; height: 38px; font-size: 17px; }

  /* 表单栅格变单列 */
  .form-grid { grid-template-columns: 1fr; }

  /* 筛选标签换行 */
  .tabs { flex-wrap: wrap; border-radius: 12px; }

  /* 流程步骤纵向排列 */
  .flow { flex-direction: column; gap: 8px; }
  .farrow { transform: rotate(90deg); }

  /* 模板库变两列 */
  .tpls { grid-template-columns: repeat(2, 1fr); }

  /* 唤醒雷达卡片 */
  .wk-head { flex-wrap: wrap; }
  .wk-tags { margin-left: 0; width: 100%; margin-top: 6px; }
  .wk-draft { flex-direction: column; align-items: flex-start; }
  .draft-thumb { width: 100%; height: 80px; }
  .wk-actions { flex-wrap: wrap; }

  /* 横向条形图标签缩短 */
  .hlabel { width: 60px; font-size: 12px; }
  .hval { width: 80px; font-size: 12px; }

  /* 柱状图间距缩小 */
  .chart { gap: 8px; height: 180px; }
  .cb .bar { width: 70%; }

  /* 手机端预览页：两个手机纵向排列 */
  .phones { flex-direction: column; gap: 24px; align-items: center; }
  .phone { width: 300px; }

  /* 登录页 */
  .login-card { width: 100%; padding: 28px 22px 24px; border-radius: 16px; }
  .login-feats { flex-wrap: wrap; gap: 12px; justify-content: center; }

  /* 单选行堆叠 */
  .radio-row { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* 待办项换行 */
  .todo-item { flex-wrap: wrap; gap: 8px; }
  .todo-item .cnt { margin-left: 0; }

  /* 营销日历项换行 */
  .cal-item { flex-wrap: wrap; }
  .cal-count { margin-left: 62px; }

  /* 取消粘性定位（新建订单页计价栏） */
  .card[style*="sticky"] { position: static !important; top: auto !important; }
}

/* ---- 小屏手机（<=480px） ---- */
@media (max-width: 480px) {
  /* 所有栅格变单列 */
  .grid.g2, .grid.g3, .grid.g4,
  .grid.g23, .grid.g32 { grid-template-columns: 1fr; }

  /* 模板库变单列 */
  .tpls { grid-template-columns: 1fr; }

  /* 手机预览缩小 */
  .phone { width: 280px; }
  .phone-screen { height: 560px; }

  /* 统计数字进一步缩小 */
  .stat { gap: 10px; }
  .stat-num { font-size: 20px; }

  /* 内容区内边距最小化 */
  .content { padding: 10px 8px 32px; }

  /* 北极星数字 */
  .north-num { font-size: 28px; }
  .north-num small { font-size: 15px; }

  /* 卡片内边距 */
  .card { padding: 12px; }

  /* 页头字号 */
  .page-head h2 { font-size: 16px; }
  .page-head .sub { font-size: 12px; }

  /* 按钮缩小 */
  .btn { padding: 7px 14px; font-size: 13px; }

  /* 柱状图最紧凑 */
  .chart { gap: 4px; height: 160px; }
  .cb .bar { width: 80%; }
  .cb .val { font-size: 10px; }
  .cb .lbl { font-size: 10px; }

  /* 顶栏按钮和头像缩小 */
  .icon-btn { width: 32px; height: 32px; font-size: 14px; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }

  /* 营销日历日期块缩小 */
  .cal-date { width: 42px; height: 42px; }
  .cal-date b { font-size: 15px; }
}

