:root {
  --brand: #0e7c6b;
  --brand-dark: #0a6355;
  --brand-soft: #e8f5f1;
  --ink: #1d2b2a;
  --ink-2: #4a5b59;
  --ink-3: #83928f;
  --line: #e2eae7;
  --bg: #f4f8f6;
  --card: #ffffff;
  --warn: #b7791f;
  --warn-soft: #fdf4e3;
  --info: #2563a8;
  --info-soft: #eaf2fc;
  --ok: #177a52;
  --ok-soft: #e6f5ee;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --shadow: 0 2px 10px rgba(22, 60, 52, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }
code {
  background: #eef3f1;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
  color: var(--brand-dark);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.brand-sub { font-size: 12px; color: var(--ink-3); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-demo { background: var(--warn-soft); color: var(--warn); border-color: #f3dfb6; }
.badge-live { background: var(--brand-soft); color: var(--brand-dark); border-color: #c4e5dc; }
.badge-off { background: #f0f2f2; color: var(--ink-3); border-color: var(--line); }
.badge-on { background: var(--ok-soft); color: var(--ok); border-color: #bfe6d3; }
.badge-error { background: var(--danger-soft); color: var(--danger); border-color: #f4c9c4; }

/* 押金申请 / 押金退款页的就近填写区 */
.reviewer-field {
  margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #f6faf8;
}
.reviewer-field .field { max-width: 400px; }
.reviewer-field .field-note {
  display: block; margin-top: 8px; font-size: 11px;
  color: var(--ink-3); line-height: 1.6;
}
.req { color: var(--danger); font-weight: 600; font-size: 11px; }

.demo-banner {
  margin: 16px 28px 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--warn-soft);
  border: 1px solid #f3dfb6;
  color: #8a5b12;
  font-size: 13px;
}
.demo-banner.hidden { display: none; }
/* 演示模式开关入口：默认隐藏，仅网址带 ?demo=1 时由脚本移除 hidden */
#demoModeRow.hidden { display: none; }
/* 模块深链栏：默认隐藏（渲染逻辑保留，需要时移除 hidden 类即可恢复显示） */
#accountLinkPanel.hidden { display: none; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; flex: none; }
.panel-note { font-size: 12px; color: var(--ink-3); margin-left: auto; text-align: right; }
.settings { margin: 16px 28px 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.field > .field-note { font-size: 11px; font-weight: 400; color: var(--ink-3); line-height: 1.5; }
input[type="text"], input[type="password"], textarea, .select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, .select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 124, 107, .1);
  background: #fff;
}
textarea { resize: vertical; }
.form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }
.hint { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.hint.error { color: var(--danger); }
.hint.ok { color: var(--ok); }
.hint.warn { color: var(--warn); }
.setup-tip {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f6faf8;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}
.setup-tip b { color: var(--ink); }

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover:not(:disabled) { background: #f3f8f6; border-color: #cbdcd6; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { color: var(--danger); border-color: #eec9c4; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: #e3aaa3; }
.btn-ghost { background: #fff; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.select { width: auto; min-width: 168px; padding: 6px 9px; font-size: 13px; margin-left: auto; }

.help { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.help summary { cursor: pointer; color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.help-body { font-size: 13px; color: var(--ink-2); padding: 10px 2px 2px; }
.help-body h3 { font-size: 13px; margin: 14px 0 6px; color: var(--ink); }
.help-body ol, .help-body ul { margin: 0; padding-left: 20px; }
.help-body li { margin-bottom: 5px; }
.help-body p { margin: 6px 0; }
.help-body strong { color: var(--danger); }
.domain-table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0 14px;
  font-size: 12px;
}
.domain-table th, .domain-table td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
}
.domain-table th { background: #f6faf8; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.domain-table code { white-space: nowrap; }

.workspace {
  display: grid;
  grid-template-columns: minmax(380px, 43%) 1fr;
  gap: 16px;
  padding: 16px 28px 32px;
  align-items: start;
}
.col { min-width: 0; }

.code-row { display: flex; gap: 8px; }
.code-input {
  flex: 1;
  min-width: 0;
  font-size: 20px;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding: 10px 12px;
}

.result-empty {
  margin-top: 14px;
  padding: 26px 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  background: #fbfdfc;
}
.result-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.result-top {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px;
  background: #f8fbfa;
  border-bottom: 1px solid var(--line);
}
.result-code {
  font-size: 19px; font-weight: 700; letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.muted { background: #f0f2f2; color: var(--ink-3); }
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.kv { padding: 9px 14px; border-bottom: 1px solid #f0f4f2; min-width: 0; }
.kv:nth-child(odd) { border-right: 1px solid #f0f4f2; }
.kv .k { display: block; font-size: 11px; color: var(--ink-3); }
.kv .v { font-size: 13px; color: var(--ink); word-break: break-all; }
.kv .v.strong { font-weight: 600; }
.result-note {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-2);
  background: #fbfdfc;
}
.result-note.alert { background: var(--warn-soft); color: #8a5b12; }

.list { margin-top: 8px; max-height: 430px; overflow-y: auto; }
.list-empty { padding: 24px 12px; text-align: center; color: var(--ink-3); font-size: 13px; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.list-row:hover { border-color: var(--brand); background: #f8fcfa; }
.list-row .col-code {
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  font-variant-numeric: tabular-nums; flex: none;
}
.list-row .col-main { min-width: 0; flex: 1; }
.list-row .line-1 { font-size: 13px; color: var(--ink); }
.list-row .line-2 { font-size: 12px; color: var(--ink-3); }
.list-row .col-status { flex: none; text-align: right; }

.logs { max-height: 190px; overflow-y: auto; font-size: 12px; }
.log-empty { color: var(--ink-3); }
.log-row {
  display: flex; gap: 10px; padding: 6px 0;
  border-bottom: 1px dashed #eef2f0;
}
.log-row .t { color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.log-row .m { color: var(--ink-2); word-break: break-all; }
.log-row.bad .m { color: var(--danger); }
.log-row.good .m { color: var(--ok); }

/* 统一登录门：全屏遮罩，输入一个口令自动识别员工/管理员身份 */
.login-gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, #0d5f53 0%, #123f38 55%, #0b2e29 100%);
}
.login-gate.hidden { display: none; }
.login-card {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 16px; padding: 34px 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  text-align: center;
}
.login-logo {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 14px; background: var(--brand); color: #fff;
  font-size: 26px; font-weight: 700; line-height: 52px;
}
.login-title { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.login-sub { margin: 0 0 24px; font-size: 12px; color: var(--ink-2); }
.login-label {
  display: block; text-align: left; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.login-input {
  width: 100%; box-sizing: border-box; padding: 11px 12px;
  border: 1px solid var(--line, #cfd8d5); border-radius: 8px;
  font-size: 14px; outline: none;
}
.login-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 124, 107, .12); }
.login-check {
  display: flex; align-items: center; gap: 7px;
  margin: 12px 0 0; font-size: 12px; color: var(--ink-2);
  text-align: left; cursor: pointer;
}
.login-error {
  min-height: 18px; margin: 10px 0 0; font-size: 12px;
  color: var(--danger); text-align: left;
}
.login-btn { width: 100%; margin-top: 10px; padding: 11px; font-size: 15px; }
.login-foot { margin: 18px 0 0; font-size: 11px; line-height: 1.7; color: var(--ink-2); text-align: center; }

.mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 40, 36, .38);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.mask.hidden { display: none; }
.dialog {
  width: 100%; max-width: 430px;
  background: #fff; border-radius: 12px; padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.dialog h3 { margin: 0 0 10px; font-size: 16px; }
.dialog p { margin: 0; color: var(--ink-2); font-size: 13px; white-space: pre-line; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 60; padding: 10px 18px; border-radius: 8px;
  background: #223b36; color: #fff; font-size: 13px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .2);
  max-width: 80vw; text-align: center;
}
.toast.hidden { display: none; }

/* 退款逐笔结果：换行展示，避免长串订单号挤成一行 */
/* 待退款列表：逐笔核对、单独退款、待沟通暂缓 */
.refund-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 14px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 13px; font-weight: 600;
}
.hold-reason-field { flex: 1 1 320px; }
.refund-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.refund-row {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; background: #fff;
}
.refund-row.is-held { border-color: #f3dfb6; background: #fffdf7; }
.rf-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rf-code { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.rf-amount { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--brand-dark); }
.rf-meta { margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.rf-hold {
  margin-top: 8px; padding: 7px 10px; border-radius: 6px;
  background: var(--warn-soft); color: #8a5b12; font-size: 12px;
}
.rf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rf-done { font-size: 12px; color: var(--ok); font-weight: 600; }
.rf-hold-tip { font-size: 12px; color: var(--ink-3); }

/* 休假设置：日期清单按行展示，等宽对齐 */
#holidayList { max-height: 220px; }
.holiday-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.holiday-row:last-child { border-bottom: none; }
.holiday-row .h-date {
  flex: none; font-variant-numeric: tabular-nums;
  color: var(--ink-2); font-weight: 600; min-width: 96px;
}
.holiday-row .h-city {
  flex: none; min-width: 72px; text-align: center;
  padding: 2px 8px; border-radius: 10px;
  background: #fdece5; color: #b4501f; font-size: 12px;
}
.holiday-row .h-note { flex: 1; color: var(--ink-3); word-break: break-all; }
.holiday-row .h-lock { flex: none; color: var(--ink-3); font-size: 12px; }
.holiday-row .holiday-del { flex: none; }

@media (max-width: 1080px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .list { max-height: 340px; }
}
@media (max-width: 680px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .topbar-right { flex-wrap: wrap; }
  .brand-sub { display: none; }
  .settings, .demo-banner { margin-left: 16px; margin-right: 16px; }
  .workspace { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .kv:nth-child(odd) { border-right: none; }
  .panel-note { display: none; }
}

/* ================= 电脑端控制台：左侧导航 + 独立模块页 ================= */
.console { display: flex; align-items: stretch; min-height: calc(100vh - 68px); }
.sidebar {
  width: 232px; flex: none; background: var(--card);
  border-right: 1px solid var(--line);
  padding: 18px 12px 20px;
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
}
.sidebar-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--ink-3); padding: 0 10px 10px; text-transform: uppercase;
}
.nav-group { margin-bottom: 16px; }
.nav-group-title {
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  padding: 4px 10px 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; margin: 2px 0; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 13px;
  border: 1px solid transparent;
}
.nav-item:hover { background: var(--bg); color: var(--ink); }
.nav-item.active {
  background: var(--brand-soft); color: var(--brand-dark);
  border-color: #c4e5dc; font-weight: 600;
}
.nav-item.locked { color: var(--ink-3); }
.nav-icon { width: 18px; text-align: center; font-size: 14px; flex: none; }
.nav-name { flex: 1; min-width: 0; }
.nav-lock {
  font-size: 10px; color: var(--warn); background: var(--warn-soft);
  border: 1px solid #f3dfb6; border-radius: 999px; padding: 0 6px; white-space: nowrap;
}
.nav-footer {
  font-size: 11px; color: var(--ink-3); line-height: 1.6;
  border-top: 1px solid var(--line); padding: 12px 10px 0; word-break: break-all;
}
.console-main {
  flex: 1; min-width: 0; padding: 16px 28px 40px;
  /* 2K / 4K 屏上表格会拉到两米宽，眼睛要横扫；给内容一个上限，居中阅读 */
  max-width: 1680px;
}
.console-main .demo-banner { margin: 0 0 16px; }
.console-main .settings { margin: 0 0 16px; }
.console-main .workspace { padding: 0; }
/* 本地 file:// 打开时提醒「这个地址不能收藏」：用信息蓝，不做成警告色 */
.local-file-banner {
  background: var(--info-soft); border-color: #cfe0f5; color: #1f4e85;
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin: 0 0 16px;
}
.page-head h1 { margin: 0; font-size: 20px; font-weight: 700; }
.page-head p { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.page-actions { display: flex; align-items: center; gap: 8px; flex: none; }
kbd {
  display: inline-block; min-width: 18px; padding: 1px 5px; text-align: center;
  border: 1px solid #cfd8d5; border-bottom-width: 2px; border-radius: 4px;
  background: #fff; font-family: inherit; font-size: 11px; color: var(--ink-2);
}

.stat-grid {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px;
}
.stat-label { font-size: 12px; color: var(--ink-3); }
.stat-value { font-size: 20px; font-weight: 700; margin: 4px 0 2px; color: var(--ink); }
.stat-card.good .stat-value { color: var(--ok); }
.stat-card.warn .stat-value { color: var(--warn); }
.stat-note { font-size: 11px; color: var(--ink-3); line-height: 1.5; }

.feature-list { display: flex; flex-direction: column; }
.feature-row {
  display: grid; grid-template-columns: 160px 1fr 190px; gap: 10px;
  padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.feature-row:last-child { border-bottom: none; }
.f-name { font-weight: 600; color: var(--ink); }
.f-desc, .f-state { color: var(--ink-3); font-size: 12px; }
.quick-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.quick-link {
  display: block; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; background: #fff;
}
.quick-link:hover { border-color: var(--brand); background: #f8fcfa; }
.quick-link b { display: block; font-size: 13px; color: var(--ink); }
.quick-link span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }

.table-wrap { overflow-x: auto; margin-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td {
  border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top;
}
.data-table thead th { background: #f6faf8; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.data-table tbody th { background: #fafcfb; width: 130px; white-space: nowrap; }
.data-table h3 { font-size: 13px; margin: 16px 0 8px; color: var(--ink); }
.data-table h3:first-child { margin-top: 0; }
.muted { color: var(--ink-3); font-size: 11px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.slot-chip {
  padding: 6px 10px; border-radius: 8px; font-size: 12px;
  border: 1px solid var(--line); background: #fff; font-variant-numeric: tabular-nums;
}
.slot-chip.free { background: var(--ok-soft); color: var(--ok); border-color: #bfe6d3; }
.slot-chip.taken { background: var(--warn-soft); color: var(--warn); border-color: #f3dfb6; }
.slot-chip.holiday { background: var(--danger-soft); color: var(--danger); border-color: #f4c9c4; }
.steps { font-size: 13px; color: var(--ink-2); padding-left: 20px; margin: 6px 0 14px; }
.steps li { margin-bottom: 8px; line-height: 1.7; }
.link-list { display: flex; flex-direction: column; gap: 6px; }
.link-row { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.link-row span { min-width: 90px; }
.site-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.site-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #c4e5dc;
}
.help-body { font-size: 13px; color: var(--ink-2); }
.help-body h3 { font-size: 13px; margin: 18px 0 6px; color: var(--ink); }
.help-body ol, .help-body ul { margin: 0; padding-left: 20px; }
.help-body li { margin-bottom: 5px; }
.help-body p { margin: 6px 0; }
.help-body table { margin: 8px 0 14px; }

@media (max-width: 1080px) {
  .console-main { padding: 16px 18px 32px; }
  .sidebar { width: 196px; }
  .feature-row { grid-template-columns: 130px 1fr; }
  .feature-row .f-state { grid-column: 2; }
}
@media (max-width: 680px) {
  .console { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--line); padding: 10px 12px;
  }
  .sidebar-title, .nav-footer, .nav-group-title { display: none; }
  #navList { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-group { display: contents; margin: 0; }
  .nav-item { padding: 6px 9px; font-size: 12px; }
  .nav-icon, .nav-lock { display: none; }
  .console-main { padding: 14px 16px 30px; }
  .console-main .demo-banner, .console-main .settings { margin: 0 0 12px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row .f-state { grid-column: 1; }
}

/* ================= 打印：只出内容，不出导航与按钮 =================
   仓库偶尔要打一张纸给打包的人看：侧栏、顶栏、按钮、「演示模式」横幅都不该占纸。
   表格必须完整换行，不能被裁成「一行显示一半」。 */
@media print {
  html, body { background: #fff; }
  .topbar, .sidebar, .demo-banner, .page-actions, .toast,
  .nav-footer, .panel-head .btn, .form-row .btn, .btn { display: none !important; }
  .console { display: block; min-height: 0; }
  .console-main { max-width: none; padding: 0; }
  .panel {
    box-shadow: none; border: 1px solid #ccc; border-radius: 0;
    page-break-inside: auto; margin: 0 0 10px;
  }
  .panel-head { margin-bottom: 8px; }
  .table-wrap { overflow: visible !important; max-height: none !important; }
  table { width: 100%; font-size: 11px; }
  thead { display: table-header-group; }
  tr, td, th { page-break-inside: avoid; }
  a[href]:after { content: ""; }
}

/* ================= 网络自检结果 =================
   一块等宽小字面板：先说结论（正常 / 网络不通 / 被策略拦），再列两路探测的原始结果。
   工作人员看不懂控制台，所以把判断写成人话，且允许一键复制给技术同事。 */
.net-check {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fafbfc;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.net-check.hidden { display: none; }
.net-check .nc-ok { color: var(--ok); }
.net-check .nc-bad { color: var(--danger); }

/* 刚生成的优惠码：一串码本身要能点、要能一眼认出来，所以用等宽 + 可点态 */
.copy-chip {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fdf8ef;
  border: 1px solid #f2e3c6;
  color: #7a5310;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: all;
}
.copy-chip:hover { border-color: #d8b878; background: #fbf1de; }

/* 账号与权限：模块/检测点勾选网格 */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px 12px;
  padding: 8px 2px 4px;
}
.check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #e6e9ef;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
}
.check-grid label:hover { border-color: #a9cfc6; background: #f7fcfa; }
.check-grid input[type=checkbox] { margin-top: 2px; accent-color: #0E7C6B; flex: none; }
.check-grid .cg-name { font-weight: 600; color: #233; }
.check-grid .cg-hint { display: block; color: #7a8794; font-size: 12px; font-weight: 400; }
.check-grid .cg-sel { background: #eef8f4; border-color: #0E7C6B; }
.check-grid input:checked + .cg-name { color: #0E7C6B; }
.acct-actions button { padding: 3px 9px; font-size: 12px; margin-right: 5px; }
.acct-disabled { opacity: 0.5; }
.cfg-day { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cfg-day:last-child { border-bottom: 0; }
.cfg-day-title { width: 40px; flex: none; font-size: 13px; color: var(--ink-2); padding-top: 3px; }
.cfg-day-slots { display: flex; flex-wrap: wrap; gap: 5px; }
.slot-check { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; cursor: pointer; background: var(--bg); }
.slot-check.on { background: var(--ok-soft); border-color: #a9cfc6; color: #0E7C6B; }
.slot-check input { width: 13px; height: 13px; }
/* 自定义时段：输入 + 已加标签 */
.cfg-custom-row { align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.cfg-custom-list { display: flex; flex-wrap: wrap; gap: 5px; }
.cfg-custom-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px 3px 9px;
  border: 1px solid var(--brand-soft); border-radius: 6px; font-size: 12px; color: var(--brand-dark);
  background: var(--brand-soft); }
.cfg-custom-tag button { border: 0; background: transparent; color: var(--brand-dark); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 2px; }
.cfg-custom-tag button:hover { color: #b00020; }
.pill-mod { display:inline-block; padding:1px 7px; border-radius:10px; background:#eef8f4; color:#0E7C6B; font-size:12px; margin:1px 3px 1px 0; }

/* ===== 客服名片（分地区接入） ===== */
.cfg-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.cs-staff-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin: 6px 0 8px; }
.btn-mini { padding: 3px 10px; font-size: 12px; }
.cs-contacts { display: flex; flex-direction: column; gap: 12px; }
.cs-card { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: var(--bg); }
.cs-card-head { display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: var(--brand-dark); margin-bottom: 9px; }
.cs-remove { border: 0; background: transparent; color: #b00020; font-size: 17px; line-height: 1;
  cursor: pointer; padding: 0 3px; }
.cs-remove:hover { color: #7a0015; }
.cs-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.cs-fields .cs-wide { grid-column: 1 / -1; }
.cs-fields .input { width: 100%; padding: 6px 9px; font-size: 13px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; box-sizing: border-box; }
.cs-fields .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.cfg-actions { display: flex; gap: 8px; margin: 14px 0 4px; }
.cs-tip { margin-top: 8px; line-height: 1.6; }
@media (max-width: 640px) { .cs-fields { grid-template-columns: 1fr; } }
