:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e5e7eb;
  --line-soft: #eef1f6;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --primary: #f2761d;
  --primary-600: #cf5a0c;
  --blue-50: #fff5ec;
  --blue-100: #ffe9d8;
  --blue-200: #ffe0c7;
  --green: #10b981;
  --green-50: #ecfdf5;
  --green-600: #059669;
  --amber: #f59e0b;
  --amber-50: #fffbeb;
  --red: #ef4444;
  --red-50: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .85; }

/* ============ 应用外壳 ============ */
.app-layout { display: flex; min-height: 100vh; background: var(--bg); }

.app-sidebar {
  flex: 0 0 248px; width: 248px; height: 100vh; position: sticky; top: 0;
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, #ffc08a, #f2761d 55%, #ef6c14);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 6px 14px -6px rgba(242, 118, 29, .85);
}
.brand-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.brand-sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }

.nav-scroll { flex: 1; overflow-y: auto; padding: 10px 10px 24px; }
.nav-scroll::-webkit-scrollbar { width: 6px; }
.nav-scroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 6px; }

.nav-group {}
.nav-item, .nav-sub-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  color: var(--ink-2); font-size: 13.5px; line-height: 1.3;
  user-select: none;
}
.nav-item:hover, .nav-sub-item:hover { background: #f8fafc; }
.nav-item.active { background: var(--blue-50); color: var(--primary); font-weight: 600; }
.nav-item .caret {
  margin-left: auto; color: var(--muted-2); transition: transform .2s; font-size: 11px;
}
.nav-item.open .caret { transform: rotate(90deg); }
.nav-sub { padding: 2px 0 4px 12px; }
.nav-sub-item { padding: 7px 12px; font-size: 13px; color: var(--muted); }
.nav-sub-item.active { background: var(--blue-50); color: var(--primary); font-weight: 600; }
.nav-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; flex: none;
}
.nav-sub-item.active .nav-dot { background: var(--primary); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 28px; position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.app-topbar h1 { margin: 0 0 4px; font-size: 20px; color: var(--ink); font-weight: 600; }
.app-topbar p { margin: 0; font-size: 13px; color: var(--muted); }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.topbar-user .who { font-size: 13px; color: var(--ink-2); }

.app-content { padding: 22px 28px 48px; }

/* ============ 通用元件 ============ */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.card-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.card-body { padding: 18px 20px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px; font-size: 12px; line-height: 18px;
  border: 1px solid transparent; white-space: nowrap;
}
.tag-green { background: var(--green-50); color: var(--green-600); border-color: #a7f3d0; }
.tag-blue { background: var(--blue-50); color: var(--primary); border-color: var(--blue-200); }
.tag-amber { background: var(--amber-50); color: #b45309; border-color: #fde68a; }
.tag-red { background: var(--red-50); color: #b91c1c; border-color: #fecaca; }
.tag-gray { background: #f1f5f9; color: var(--muted); border-color: #e2e8f0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13.5px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber:hover { background: #d97706; border-color: #d97706; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--blue-50); border-color: transparent; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 12px; }
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted-2); font-size: 13px; padding: 34px 0; gap: 10px;
}
.empty-ico { opacity: .5; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-weight: 500; color: var(--muted); background: #fafbfd;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
table.tbl td {
  padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2);
}
table.tbl tr:last-child td { border-bottom: none; }

/* ============ 登录 / 注册 ============ */
.auth-page {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background: #f3f7f4;
}
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; left: -120px; top: 40px; background: #fde68a; }
.blob-2 { width: 460px; height: 460px; right: -100px; top: -60px; background: #ffe0c7; }
.blob-3 { width: 620px; height: 620px; left: 30%; bottom: -260px; background: #d9f99d; }

.auth-head {
  position: relative; z-index: 2; width: 100%; max-width: 1080px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 32px;
}
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-logo { width: 46px; height: 46px; border-radius: 12px; font-size: 17px; }
.auth-brand-name { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; color: #0f172a; }
.ver-badge {
  font-size: 11px; font-weight: 600; color: #0f172a; background: #fff;
  border: 1px solid #cbd5e1; border-radius: 999px; padding: 2px 8px;
}
.service-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: #ffc39a; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(249, 115, 22, .8);
}
.auth-card {
  position: relative; z-index: 2; width: 420px; max-width: calc(100% - 32px);
  background: #fff; border-radius: 18px; padding: 34px 32px 28px;
  box-shadow: 0 24px 60px -30px rgba(15, 23, 42, .35), 0 2px 8px rgba(15, 23, 42, .04);
  margin-bottom: 40px;
}
.auth-card.wide { width: 460px; }
.auth-title { font-size: 26px; font-weight: 700; text-align: center; color: #0f172a; margin: 4px 0 6px; }
.auth-sub { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field-label { font-size: 13px; color: var(--ink-2); margin-bottom: 7px; display: block; }
.field-label .req { color: #ef4444; margin-right: 3px; }
.field-label .opt { color: var(--muted-2); font-weight: 400; }
.input-wrap {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border: 1px solid #dfe5ee; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, .12); }
.input-wrap.err { border-color: #f87171; }
.input-wrap input {
  flex: 1; min-width: 0; border: none; outline: none; font-size: 14px; color: var(--ink);
  background: transparent; height: 100%;
}
.input-wrap input::placeholder { color: #b6c0cf; }
.input-ico { color: #9aa7ba; display: flex; flex: none; }
.code-btn {
  flex: none; height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px;
  border: 1px solid #dfe5ee; background: #fff; color: var(--ink-2); cursor: pointer;
}
.code-btn:disabled { color: #b6c0cf; cursor: not-allowed; }
.err-text { color: #ef4444; font-size: 12px; margin-top: 6px; }

.pwd-meter { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pwd-bar { height: 4px; flex: 1; border-radius: 3px; background: #eef1f6; }
.pwd-bar.on-1 { background: #f59e0b; }
.pwd-bar.on-2 { background: #f68a32; }
.pwd-bar.on-3 { background: #10b981; }
.pwd-level { font-size: 12px; color: var(--muted); width: 20px; }

.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 4px 0 16px; }
.agree-row input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }

.btn-submit {
  width: 100%; height: 46px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.btn-submit:hover { background: var(--primary-600); }
.btn-submit:disabled { background: #ffd5b5; cursor: not-allowed; }

.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; display: flex; gap: 14px; justify-content: center; }

/* 忘记密码：人工重置说明 */
.pwd-help {
  background: #fff8f3; border: 1px solid #ffe0c9; border-radius: 10px;
  padding: 16px 18px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2);
  margin: 4px 0 20px;
}
.pwd-help p { margin: 0 0 4px; }
.pwd-help b { color: var(--ink); }
.pwd-help .muted { color: var(--muted); }

/* 协议正文 */
.legal-page { min-height: 100vh; background: #f5f7fb; padding: 32px 16px 60px; }
.legal-wrap { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 40px 44px; }
.legal-wrap h1 { font-size: 24px; margin: 0 0 6px; }
.legal-wrap h2 { font-size: 17px; margin: 28px 0 10px; color: var(--ink); }
.legal-wrap p { color: var(--ink-2); line-height: 1.85; margin: 8px 0; font-size: 14px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; max-width: 860px; margin: 0 auto 16px; }

/* ============ 仪表盘 ============ */
.plan-strip {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, #f0fdfa, #fff5ec 60%, #f8fafc);
  border: 1px solid #cfe9e3; margin-bottom: 18px;
}
.plan-strip .ps-item { display: flex; flex-direction: column; gap: 4px; }
.plan-strip .ps-label { font-size: 12px; color: var(--muted); }
.plan-strip .ps-value { font-size: 18px; font-weight: 700; color: var(--ink); }
.plan-strip .ps-note { font-size: 12px; color: var(--muted); }
.plan-strip .spacer { flex: 1; }

.setup-card { border-color: #bbf7d0; background: linear-gradient(150deg, #f0fdf4, #fff 55%); margin-bottom: 16px; }
.setup-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 20px 4px; }
.setup-title { font-size: 18px; font-weight: 700; color: var(--ink); margin: 8px 0 6px; }
.setup-desc { font-size: 13px; color: var(--muted); margin: 0; }
.setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px 20px 20px; }
.setup-step {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff;
}
.setup-step.doing { border-color: #ffc39a; box-shadow: 0 0 0 3px rgba(251, 139, 60, .08); }
.step-top { display: flex; align-items: center; gap: 8px; }
.step-no {
  width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none;
}
.step-no.doing { background: var(--primary); color: #fff; }
.step-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.step-text { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 8px 0 10px; }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 6px; border: 1px solid #dfe5ee;
  color: var(--ink-2); background: #fff; cursor: pointer;
}
.chip.solid { background: var(--primary); border-color: var(--primary); color: #fff; }

.notice-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.notice {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 9px;
  background: var(--amber-50); border: 1px solid #fde68a; color: #92400e; font-size: 13px;
}

.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.stat-ico { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--ink); margin: 10px 0 4px; line-height: 1; }
.stat-note { font-size: 12px; color: var(--muted-2); }

.row-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-bottom: 18px; }
.row-split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }

.chart-empty { height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted-2); font-size: 13px; }

.quota-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.quota-num { font-size: 22px; font-weight: 700; color: var(--ink); }
.quota-row { display: flex; gap: 22px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.quota-row .k { font-size: 12px; color: var(--muted); }
.quota-row .v { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 3px; }

.plat-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 10px;
}
.plat-logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  background: #f1f5f9; color: var(--ink-2); font-weight: 600;
}
.plat-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.plat-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.push-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.push-status .box { border: 1px solid var(--line); border-radius: 9px; padding: 12px; text-align: center; }
.push-status .n { font-size: 18px; font-weight: 700; }
.push-status .k { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 建设中占位 */
.wip { padding: 40px; text-align: center; }
.wip h2 { margin: 12px 0 8px; font-size: 18px; }
.wip p { color: var(--muted); font-size: 13.5px; line-height: 1.8; max-width: 620px; margin: 0 auto; }
.wip-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }

/* ============ 通用组件（第 2 批起） ============ */
.tbl-wrap { width: 100%; overflow-x: auto; }
table.tbl .row-click { cursor: pointer; }
table.tbl .row-click:hover td { background: #f8fafc; }
.tbl-empty { padding: 46px 20px; text-align: center; color: var(--muted-2); font-size: 13px; }

/* 抽屉 */
.dw-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .38); z-index: 900;
  display: flex; justify-content: flex-end; animation: fadeIn .16s ease; }
.dw { background: #fff; height: 100%; display: flex; flex-direction: column;
  box-shadow: -8px 0 32px rgba(15, 23, 42, .16); animation: slideIn .2s ease; max-width: 96vw; }
.dw-head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft); flex: 0 0 auto; }
.dw-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.dw-x { border: none; background: none; font-size: 22px; line-height: 1; color: var(--muted-2); cursor: pointer; padding: 0 4px; }
.dw-x:hover { color: var(--ink); }
.dw-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 20px; }
.dw-foot { flex: 0 0 auto; padding: 12px 20px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: flex-end; gap: 8px; background: #fcfdff; }

/* 弹窗 */
.md { background: #fff; border-radius: 14px; margin: auto; max-width: 94vw;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .22); animation: popIn .18s ease; }
.md-body { padding: 18px 20px; max-height: 68vh; overflow-y: auto; }
.md-foot { padding: 12px 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideIn { from { transform: translateX(40px); opacity: .6 } to { transform: none; opacity: 1 } }
@keyframes popIn { from { transform: scale(.96); opacity: 0 } to { transform: none; opacity: 1 } }

/* 开关 */
.sw { width: 40px; height: 22px; border-radius: 999px; border: none; background: #cbd5e1;
  position: relative; cursor: pointer; padding: 0; transition: background .18s; flex: 0 0 auto; }
.sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .18s; }
.sw.on { background: var(--primary); }
.sw.on i { left: 20px; }
.sw.dis { opacity: .45; cursor: not-allowed; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 6px; justify-content: flex-end; padding: 12px 16px; }
.pager .pg { min-width: 30px; height: 30px; border: 1px solid var(--line); background: #fff;
  border-radius: 7px; color: var(--ink-2); cursor: pointer; font-size: 13px; padding: 0 8px; }
.pager .pg:hover:not(:disabled):not(.gap) { border-color: var(--blue-200); color: var(--primary); }
.pager .pg.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .pg.gap { border: none; background: none; cursor: default; color: var(--muted-2); }
.pager .pg:disabled { opacity: .45; cursor: not-allowed; }

/* 分段标签 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); padding: 0 16px; flex-wrap: wrap; }
.tabs .tab { padding: 12px 14px; font-size: 13.5px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 6px; }
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }
.tab-badge { background: var(--line-soft); color: var(--muted); font-size: 11px;
  padding: 1px 6px; border-radius: 999px; font-weight: 400; }
.tabs .tab.on .tab-badge { background: var(--blue-50); color: var(--primary); }

/* 字段网格 */
.fld-grid { display: grid; gap: 14px 18px; }
.fld-k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.fld-v { font-size: 13.5px; color: var(--ink); word-break: break-all; }

/* 工具条 / 筛选 */
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft); }
.bar .grow { flex: 1 1 auto; }
.sel, .inp { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px;
  font-size: 13px; color: var(--ink); background: #fff; outline: none; font-family: inherit; }
.sel:focus, .inp:focus { border-color: var(--blue-200); box-shadow: 0 0 0 3px rgba(249,115,22,.07); }
.inp::placeholder { color: var(--muted-2); }
textarea.inp { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.inp-sm { height: 30px; font-size: 12.5px; }

/* 表单 */
.form { padding: 18px 20px; }
.form-row { margin-bottom: 16px; }
.form-row > label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.form-row > label .req { color: var(--red); }
.form-row .hint { font-size: 12px; color: var(--muted-2); margin-top: 5px; line-height: 1.6; }
.form-row .inp, .form-row .sel { width: 100%; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* 流程步骤条 */
.flow { display: flex; align-items: flex-start; gap: 0; padding: 4px 0; }
.flow .fi { flex: 1 1 0; position: relative; text-align: center; padding: 0 6px; }
.flow .fi .dot { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
  background: #eef1f6; color: var(--muted); position: relative; z-index: 2; }
.flow .fi .lbl { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.flow .fi.done .dot { background: var(--green); color: #fff; }
.flow .fi.done .lbl { color: var(--ink-2); }
.flow .fi.cur .dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.flow .fi.cur .lbl { color: var(--primary); font-weight: 500; }
.flow .fi:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: 50%; width: 100%;
  height: 2px; background: #eef1f6; z-index: 1; }
.flow .fi.done:not(:last-child)::after { background: #a7f3d0; }

/* 平台头卡 */
.phead { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.phead .plogo { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 17px; font-weight: 700; flex: 0 0 auto; }
.phead .pname { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.phead .pdesc { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* 提示块 */
.tip { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 12.5px;
  line-height: 1.75; background: var(--blue-50); color: #a8430b; }
.tip.warn { background: var(--amber-50); color: #92400e; }
.tip.gray { background: #f8fafc; color: var(--muted); border: 1px solid var(--line-soft); }
.tip b { font-weight: 600; }

/* 轻提示 */
.toast-box { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2000;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #0f172a; color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 9px;
  box-shadow: 0 8px 24px rgba(15,23,42,.2); opacity: 0; transform: translateY(-8px); transition: all .24s; }
.toast.in { opacity: 1; transform: none; }
.toast.ok { background: #059669; }
.toast.err { background: #dc2626; }

/* 代码块 */
.code { background: #0f172a; color: #cbd5e1; font-family: Consolas, Monaco, monospace; font-size: 12.5px;
  line-height: 1.9; padding: 14px 16px; border-radius: 10px; overflow-x: auto; white-space: pre; }
.code .k { color: #ffcdab; }
.code .s { color: #86efac; }

/* ================= 公共端页面 ================= */
.pub-page { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.pub-top { height: 64px; display: flex; align-items: center; justify-content: space-between;
           padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line);
           position: sticky; top: 0; z-index: 10; }
.pub-brand { display: flex; align-items: center; gap: 10px; }
.pub-top-right { display: flex; align-items: center; gap: 14px; }
.pub-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.pub-link:hover { color: var(--primary); }
.pub-main { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 28px 20px 40px; }
.pub-main.wide { max-width: 1180px; }
.pub-head { margin-bottom: 18px; }
.pub-head h1 { font-size: 22px; margin: 0 0 6px; }
.pub-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.pub-foot { margin-top: auto; padding: 22px 24px; border-top: 1px solid var(--line);
            display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); }

/* 官网 */
.hero { padding: 60px 24px 40px; text-align: center; background: linear-gradient(180deg, #fff5ec, #f5f7fb); }
.hero h1 { font-size: 34px; margin: 0 0 12px; }
.hero p { max-width: 660px; margin: 0 auto; color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.hero-btns { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.pub-sec { max-width: 1100px; margin: 0 auto; padding: 34px 24px; }
.pub-sec h2 { font-size: 19px; margin: 0 0 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feat h3 { font-size: 14px; margin: 8px 0 6px; }
.feat p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.feat-no { width: 24px; height: 24px; border-radius: 7px; background: var(--blue-50); color: var(--primary);
           font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.plan-card.hot { border-color: var(--primary); box-shadow: 0 8px 24px -12px rgba(249, 115, 22, .35); }
.plan-name { font-size: 13px; color: var(--muted); }
.plan-price { margin: 8px 0 2px; }
.plan-price b { font-size: 26px; }
.plan-price span { font-size: 12px; color: var(--muted); }
.plan-quota { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }

/* 公共端补充组件 */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lnk { border: none; background: none; color: var(--primary); font-size: 12.5px; cursor: pointer; padding: 0 8px 0 0; }
.lnk:hover { text-decoration: underline; }
.lnk-red { color: var(--red); }
.res-ico { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto; display: flex;
           align-items: center; justify-content: center; font-size: 26px;
           background: var(--blue-50); color: var(--primary); }
.res-ico.ok { background: var(--green-50); color: var(--green-600); }
.res-ico.bad { background: var(--red-50); color: var(--red); }
.sub-item { display: flex; align-items: center; justify-content: space-between; gap: 12px;
            padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
       border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; }
.opt.on { border-color: var(--primary); background: var(--blue-50); }
.opt input { margin-top: 3px; }
.opt b { font-size: 13px; }
.opt p { margin: 2px 0 0; }
.code-block { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px;
              font-size: 12px; line-height: 1.8; overflow: auto; white-space: pre-wrap; margin: 8px 0 0; }
.pay-qr { height: 150px; border: 1px dashed var(--line); border-radius: 10px; display: flex;
          align-items: center; justify-content: center; color: var(--muted-2); font-size: 13px; background: #fafbfd; }
.follow-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.follow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex: 0 0 8px; }
.cfg-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cfg-k { font-size: 13px; font-weight: 600; }
.cfg-v { margin-left: auto; font-size: 13px; color: var(--ink-2); background: var(--line-soft); padding: 4px 10px; border-radius: 6px; }
.try-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.wx-preview { background: #f0f2f5; border: 1px solid var(--line); border-radius: 10px;
              padding: 14px; font-size: 13px; line-height: 1.9; white-space: pre-wrap; margin: 0; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-split, .row-split-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-sidebar { display: none; }
  .app-content { padding: 16px; }
  .setup-steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 同步状态小标（手机端 / 电脑端共用） ---------- */
#dlk-sync-dot {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 9998;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.3;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #166534;
  background: rgba(220, 252, 231, .92);
  border: 1px solid rgba(22, 163, 74, .35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(4px);
}
#dlk-sync-dot[data-mode="local"] {
  color: #92400e;
  background: rgba(254, 243, 199, .94);
  border-color: rgba(217, 119, 6, .35);
}
@media (max-width: 640px) {
  #dlk-sync-dot { bottom: calc(78px + env(safe-area-inset-bottom)); left: 8px; font-size: 10px; padding: 4px 8px; }
}
@media print { #dlk-sync-dot { display: none; } }

#dlk-sync-dot.mini {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  font-size: 0; display: flex; align-items: center; justify-content: center;
  opacity: .8;
}
#dlk-sync-dot.mini::before { content: "⟳"; font-size: 15px; line-height: 1; }

/* 列比较多的明细表：允许横向滚动，别把文字压成一列一列 */
.tbl-wrap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap-scroll .tbl { min-width: 1500px; }
.tbl-wrap-scroll .tbl th, .tbl-wrap-scroll .tbl td { white-space: nowrap; }

/* 配置行：说明文字换行显示；开关不要套灰底 */
.cfg-k small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.6; }
.cfg-v:has(.sw) { background: none; padding: 0; }

/* ---------- 推送目标 · 平台公众号绑定 ---------- */
.wx-av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: #07c160; color: #fff; font-size: 13px; font-weight: 600;
}
.bind-steps {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 4px 0 14px; font-size: 13px; color: var(--muted-2);
}
.bind-steps span.on { color: var(--primary); font-weight: 600; }
.bind-steps span.done { color: #16a34a; }
.bind-steps i { font-style: normal; color: var(--line); }
.bind-hint {
  font-size: 12.5px; line-height: 1.75; color: #4e5969;
  background: #f0f7ff; border-radius: 8px; padding: 9px 12px; text-align: left;
}
.bind-hint b { color: #1677ff; }
.bind-ok { font-size: 16px; font-weight: 600; color: #16a34a; padding-top: 6px; }
.bind-wx {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 14px; padding: 12px; border-radius: 10px; background: #f7f8fa; text-align: left;
}
.qr { display: block; margin: 14px auto 0; border: 8px solid #fff; box-shadow: 0 0 0 1px var(--line-soft); border-radius: 6px; }
.msg-prev {
  margin: 8px 0 0; padding: 12px 14px; border-radius: 8px;
  background: #f7f8fa; border: 1px solid var(--line-soft);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  line-height: 1.85; color: #1d2129; white-space: pre-wrap; word-break: break-all;
}
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 6px; }
.kv-grid .kv { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; background: #f7f8fa; border-radius: 8px; }
.kv-grid .kv > span { color: var(--muted); font-size: 12.5px; flex: none; width: 76px; }
.kv-grid .kv > b { font-weight: 500; font-size: 13px; word-break: break-all; }
.c-blue { color: #1677ff; }
@media (max-width: 720px) {
  .kv-grid { grid-template-columns: 1fr; }
  .msg-prev { font-size: 11px; padding: 10px; }
}

/* 消息预览：撑满整行，别挤成半截 */
.tip > div { flex: 1 1 auto; min-width: 0; }
.tip pre.msg-prev { width: 100%; box-sizing: border-box; }

/* 步骤条：用样式画序号，避免带圈数字在不同字体下错位 */
.bind-steps .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; margin-right: 5px;
  background: #e5e7eb; color: #6b7280; font-size: 11px; font-weight: 600;
}
.bind-steps span.on .n { background: var(--primary); color: #fff; }
.bind-steps span.done .n { background: #16a34a; color: #fff; }
.bind-steps span { display: inline-flex; align-items: center; }
@media (max-width: 720px) {
  .tabs .tab { padding: 10px 9px; font-size: 12.5px; }
  .bind-steps { font-size: 12px; gap: 5px; }
}

/* ============ 推送配置：来源树 + 目标分组（对齐竞品「新增推送配置」弹窗） ============ */
.tag-purple { background: #f5f3ff; color: #6d28d9; border-color: #ffe0c7; }

.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-opt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: .15s; }
.mp-opt b { display: block; font-size: 13px; margin-bottom: 3px; }
.mp-opt span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.mp-opt:hover { border-color: var(--blue-200); }
.mp-opt.on { border-color: var(--primary); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(249, 115, 22, .08); }
.mp-opt.on b { color: var(--primary-600); }

.cfg-flow {
  display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: #fff;
}
.cfg-col { padding: 12px 14px; min-width: 0; }
.cfg-col-h { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.cfg-col-d { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; margin-bottom: 9px; }
.cfg-num {
  font-weight: 500; font-size: 11px; color: var(--primary); background: var(--blue-50);
  border: 1px solid var(--blue-200); border-radius: 20px; padding: 1px 7px;
}
.cfg-tree { max-height: 236px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 9px; padding: 6px; }
.tree-node + .tree-node { margin-top: 4px; }
.tree-plat {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px;
  background: #f8fafc; cursor: pointer; font-size: 12.5px;
}
.tree-plat:hover { background: #f1f5f9; }
.tree-plat b { font-weight: 600; }
.tree-acc {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 26px;
  border-radius: 7px; cursor: pointer; font-size: 12.5px; color: var(--ink-2);
}
.tree-acc:hover { background: var(--blue-50); }
.cfg-tree input[type="checkbox"] { flex: none; margin: 0; }

.cfg-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: #fafbfd; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
}
.cfg-arrow span { font-size: 11px; color: var(--muted-2); }
.cfg-arrow b {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}

.tgt-group + .tgt-group { margin-top: 8px; }
.tgt-head {
  font-size: 12px; font-weight: 600; padding: 6px 8px; border-radius: 7px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px;
}
.tgt-head.g-blue { background: var(--blue-50); color: var(--primary-600); }
.tgt-head.g-green { background: var(--green-50); color: var(--green-600); }
.tgt-head.g-amber { background: var(--amber-50); color: #b45309; }
.tgt-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px;
  border-radius: 7px; cursor: pointer; font-size: 12.5px;
}
.tgt-item:hover { background: #f8fafc; }
.tgt-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cfg-order { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; background: #fafbfd; }
.cfg-order .cfg-col-h { margin-bottom: 4px; }
.ord-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.ord-n {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); flex: none;
}
.ord-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 推送配置弹窗：三种模式 / 四栏（来源 · 条件 · 目标） */
.mode-pick.mode-pick-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfg-flow.cfg-flow-4 { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 198px) 32px minmax(0, 1.15fr); }
.cfg-col-narrow { padding: 12px 9px; }
.cfg-col-narrow .cfg-col-h { font-size: 12px; white-space: nowrap; gap: 5px; }
.cfg-col-narrow .cfg-col-d { font-size: 11px; }
.cfg-flow-4 .cfg-arrow span { font-size: 10px; letter-spacing: -.2px; }
.cfg-flow .cfg-tree { height: 336px; max-height: 48vh; }
.cfg-flow-4 .cfg-tree { height: 336px; }
.cfg-flow-4 .tgt-item .tiny { font-size: 10.5px; }

/* 平台接入：账号状态提示条 / 选择本地推账号表格 */
.pl-tip-bar { margin: 14px 16px 0; }
.pl-tip-1 {
  font-size: 12.5px; color: var(--muted); background: #f8fafc;
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px;
}
.pl-tip-2 {
  font-size: 12.5px; color: #b45309; background: var(--amber-50);
  border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; line-height: 1.6;
}
.pk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pk-table th {
  background: #f8fafc; text-align: left; font-weight: 600; font-size: 12px; color: var(--muted);
  padding: 9px 10px; border-bottom: 1px solid var(--line);
}
.pk-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.pk-table input[type="checkbox"] { margin: 0; }
.inp-sm { height: 30px !important; font-size: 12.5px; padding: 0 8px !important; }
.sel-sm { height: 30px !important; font-size: 12.5px; padding: 0 6px !important; }

/* ============ API 对接文档 ============ */
.api-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.api-hd-t { font-size: 17px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.api-hd-d { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 6px; max-width: 900px; }
.api-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.api-spec { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.api-spec-k { font-size: 12px; color: var(--muted); }
.api-spec-v { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 6px;
  font-family: Consolas, Monaco, monospace; letter-spacing: -.2px; }
.api-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.api-step { display: flex; gap: 12px; background: #f8fafc; border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 14px 16px; }
.api-step-n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.api-step-t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.api-step-d { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 5px; }
.api-sub { font-size: 13px; font-weight: 600; color: var(--ink); margin: 20px 0 10px;
  display: flex; align-items: center; gap: 8px; }
.api-sub::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); }
.code-hd { display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.code-copy { color: var(--primary); font-size: 12px; }
@media (max-width: 900px) {
  .api-specs { grid-template-columns: 1fr 1fr; }
  .api-steps { grid-template-columns: 1fr; }
}

/* ============ 自定义内容 / 公开详情字段 ============ */
@media (min-width: 901px) { .tbl-detail { min-width: 880px; } }
.tbl-detail td { vertical-align: top; }
.cell-clamp { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cell-clamp2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.msg-head-txt { display: inline-block; max-width: 170px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }
.chip-xs { padding: 0 6px; height: 20px; line-height: 18px; font-size: 11.5px; margin: 0 4px 4px 0; }
.fld-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fld-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 12.5px; cursor: pointer; background: #fff; }
.fld-item:hover { border-color: var(--blue-200); background: var(--blue-50); }
.fld-item.dis { background: #f8fafc; color: var(--muted); cursor: not-allowed; }
.msg-split { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.mc-prev { background: #f7f8fa; border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; }
.mc-prev-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mc-prev-av { width: 28px; height: 28px; border-radius: 6px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; }
.mc-prev-body { background: #fff; border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 12px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); word-break: break-all; }
.mc-b { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .msg-split { grid-template-columns: 1fr; }
  .fld-grid-3 { grid-template-columns: 1fr 1fr; }
}

/* 自定义内容：标签行（手机端改成纯文字） */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-row .chip { flex: none; }
.chip-row-txt { display: none; }

/* 总后台：数据来源提示条（区分真实数据 / 示例数据） */
.data-note {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  font-size: 13px; line-height: 1.6; margin-bottom: 14px;
  border: 1px solid transparent;
}
.data-note .dn-tag {
  flex: none; font-size: 11.5px; font-weight: 600; padding: 2px 9px;
  border-radius: 20px; white-space: nowrap;
}
.data-note .dn-txt { flex: 1; min-width: 0; }

.data-note.is-live { background: #f0fdf6; border-color: #b7f0cd; color: #116b46; }
.data-note.is-live .dn-tag { background: #10b981; color: #fff; }

.data-note.is-mix { background: #fffaeb; border-color: #ffe08a; color: #8a5900; }
.data-note.is-mix .dn-tag { background: #f59e0b; color: #fff; }

.data-note.is-demo { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.data-note.is-demo .dn-tag { background: #f2761d; color: #fff; }

@media (max-width: 640px) {
  .data-note { align-items: flex-start; font-size: 12.5px; padding: 9px 11px; }
  .data-note .dn-tag { margin-top: 1px; }
}
