:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6fb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; }

html, body, #app { height: 100%; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
}
.login-brand {
  position: relative;
  padding: 64px 72px;
  color: #fff;
  background: radial-gradient(1200px 600px at 10% 10%, #3b82f6 0%, #1e40af 45%, #0f1e46 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.05), 0 0 0 140px rgba(255, 255, 255, 0.04);
}
.login-logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }
.login-logo .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center; font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.login-hero h1 { font-size: 38px; line-height: 1.35; margin: 0 0 18px; font-weight: 600; }
.login-hero p { margin: 0; color: rgba(255, 255, 255, 0.72); line-height: 1.9; font-size: 14px; max-width: 460px; }
.login-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 520px; }
.login-points div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}
.login-points span { display: block; font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 360px; }
.login-box h2 { font-size: 24px; margin: 0 0 6px; }
.login-box .sub { color: var(--text-sub); margin: 0 0 28px; font-size: 13px; }
.login-box .el-input__wrapper { border-radius: 8px; }
.login-tip {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.8;
}
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-box {
  min-width: 108px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #eef4ff, #dbeafe);
  color: #1e40af; font-weight: 600; letter-spacing: 1px;
  display: grid; place-items: center; cursor: pointer; user-select: none;
  border: 1px solid #c7d7fe; font-size: 14px;
}

/* ---------- 布局 ---------- */
.layout { display: flex; height: 100%; }
.sidebar {
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  flex-shrink: 0;
}
.sidebar.collapsed { width: 64px; }
.sidebar-brand {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.sidebar-brand .name { font-weight: 600; font-size: 15px; }
.sidebar-brand .name small { display: block; font-size: 10px; color: var(--text-sub); font-weight: 400; letter-spacing: 1px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 10px 8px 20px; }
.menu-group { padding: 6px 0; }
.menu-group-title {
  font-size: 11px; color: #9ca3af; padding: 8px 12px 6px; letter-spacing: 1px;
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  color: #374151; font-size: 13.5px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden;
}
.menu-item:hover { background: #f3f6fc; color: var(--brand); }
.menu-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.menu-item .el-icon { font-size: 16px; flex-shrink: 0; }
.sidebar-foot {
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden;
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.header {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 20px; flex-shrink: 0;
}
.header .toggle { cursor: pointer; color: #4b5563; font-size: 18px; display: flex; }
.breadcrumb { flex: 1; font-size: 13px; color: var(--text-sub); display: flex; align-items: center; gap: 6px; }
.breadcrumb b { color: var(--text-main); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 16px; }
.tenant-tag {
  background: #f3f6fc; color: #4b5563; border-radius: 20px;
  padding: 4px 12px; font-size: 12px; border: 1px solid #e6ecf7;
}
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; }
.header-user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.header-user .u-name { font-size: 13px; }
.header-user .u-role { font-size: 11px; color: var(--text-sub); }

.content { flex: 1; overflow-y: auto; padding: 18px 20px 32px; }

/* ---------- 通用页面 ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.page-head h2 { margin: 0; font-size: 19px; font-weight: 600; }
.page-head .desc { margin: 6px 0 0; color: var(--text-sub); font-size: 12.5px; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.panel.tight { padding: 0; overflow: hidden; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f1f3f7;
}
.panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.panel-head .hint { font-size: 12px; color: var(--text-sub); }
.panel-body { padding: 16px; }

.filter-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; }
.filter-form .el-form-item { margin-bottom: 0; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card .label { color: var(--text-sub); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.stat-card .value { font-size: 25px; font-weight: 650; margin-top: 10px; letter-spacing: -0.4px; }
.stat-card .foot { font-size: 11.5px; color: #9ca3af; margin-top: 8px; }
.stat-card .icon {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 17px; background: var(--brand-soft); color: var(--brand);
}
.stat-card.green .icon { background: #ecfdf5; color: #059669; }
.stat-card.orange .icon { background: #fff7ed; color: #d97706; }
.stat-card.purple .icon { background: #f5f3ff; color: #7c3aed; }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.chart-wrap { height: 220px; display: flex; align-items: flex-end; gap: 10px; padding: 10px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 8px 8px 4px 4px; transition: height 0.4s ease; min-height: 4px; position: relative; }
.chart-bar:hover { filter: brightness(1.06); }
.chart-bar .tip {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--text-sub); white-space: nowrap; opacity: 0; transition: 0.2s;
}
.chart-col:hover .tip { opacity: 1; }
.chart-x { font-size: 11px; color: #9ca3af; }

.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut::after {
  content: ""; position: absolute; inset: 24px; background: #fff; border-radius: 50%;
}
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; }
.donut-center b { font-size: 20px; display: block; }
.donut-center span { font-size: 11px; color: var(--text-sub); }
.legend { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; flex: 1; min-width: 130px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 7px; }
.legend .row { display: flex; justify-content: space-between; color: #4b5563; }

.notice-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eef1f6; }
.notice-item:last-child { border-bottom: 0; }
.notice-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex-shrink: 0; }
.notice-item .t { font-size: 13px; margin-bottom: 3px; }
.notice-item .c { font-size: 12px; color: var(--text-sub); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 详情页 ---------- */
.detail-hero {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.detail-hero .top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-hero h2 { margin: 0; font-size: 20px; }
.detail-hero .meta { display: flex; gap: 18px; margin-top: 10px; color: var(--text-sub); font-size: 12.5px; flex-wrap: wrap; }
.detail-hero .meta b { color: var(--text-main); font-weight: 600; }
.detail-hero .metrics { display: flex; gap: 26px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #eef1f6; flex-wrap: wrap; }
.detail-hero .metric span { display: block; font-size: 11.5px; color: var(--text-sub); margin-bottom: 4px; }
.detail-hero .metric b { font-size: 17px; }

.price-preview {
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border: 1px solid #dbeafe; border-radius: 10px; padding: 14px 16px;
  height: fit-content; position: sticky; top: 10px;
}
.price-preview .k { font-size: 12px; color: var(--text-sub); }
.price-preview .v { font-size: 26px; font-weight: 650; color: var(--brand-dark); margin: 6px 0; }
.price-preview .s { font-size: 12px; color: var(--text-sub); }

.form-tip { font-size: 12px; color: var(--text-sub); line-height: 1.7; margin-top: 6px; }

/* 新增产品配置弹窗：供货商与产品筛选之间的分隔 */
.add-config-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; color: var(--text-sub); font-size: 12.5px; }
.add-config-divider::before, .add-config-divider::after { content: ''; flex: 1; height: 1px; background: #ebeef5; }
.add-config-dialog .filter-form { gap: 10px 12px; }
.add-config-dialog .filter-actions { margin-left: 0; }
.section-title { font-size: 13px; font-weight: 600; margin: 6px 0 14px; padding-left: 9px; border-left: 3px solid var(--brand); }

.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #f0f2f7; }
.switch-row:last-child { border-bottom: 0; }
.switch-row .k { font-size: 13px; }
.switch-row .d { font-size: 11.5px; color: var(--text-sub); margin-top: 3px; }

.table-empty { padding: 30px; text-align: center; color: #9ca3af; font-size: 13px; }

.amount-plus { color: #059669; font-weight: 600; }
.amount-minus { color: #dc2626; font-weight: 600; }

/* Element Plus 微调 */
.el-button { border-radius: 8px; }
.el-input__wrapper, .el-select__wrapper, .el-textarea__inner { border-radius: 8px; }
.el-card { border-radius: var(--radius); }
.el-table th.el-table__cell { background: #fafbfd !important; color: #4b5563; font-weight: 600; }
.el-table .cell { font-size: 12.5px; }
.el-tabs__item { font-size: 13.5px; }
.el-dialog { border-radius: 14px; }
.el-drawer__body { padding-top: 8px; }
.el-tag { border-radius: 6px; }
.el-pagination { justify-content: flex-end; margin-top: 14px; }
.el-form-item__label { font-size: 12.5px; color: #4b5563; }

.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--text-sub); }
.small { font-size: 12px; }
.clickable { cursor: pointer; }
.clickable:hover { color: var(--brand); }
.text-danger { color: #dc2626; }
.text-success { color: #059669; }
.text-warning { color: #d97706; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat-grid.two { grid-template-columns: repeat(2, 1fr); }
.stat-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.menu-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; width: 100%; }
.menu-check-grid .el-checkbox { margin-right: 0; }

/* ---------- 选品中心 ---------- */
.catalog-layout { display: grid; grid-template-columns: 218px 1fr; gap: 14px; align-items: start; }
.catalog-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px 0; position: sticky; top: 0;
}
.side-block { padding: 10px 14px; border-bottom: 1px dashed #f0f2f7; }
.side-block:last-child { border-bottom: 0; }
.side-title { font-size: 11px; color: #9ca3af; letter-spacing: 1px; margin-bottom: 8px; }
.side-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 7px; font-size: 13px; color: #374151; cursor: pointer;
}
.side-item:hover { background: #f5f8ff; color: var(--brand); }
.side-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-item b { font-size: 11px; color: #9ca3af; font-weight: 500; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 3px 9px; border-radius: 20px; background: #f3f6fc; color: #4b5563;
  font-size: 12px; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.chip:hover { color: var(--brand); }
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: #c7d7fe; font-weight: 600; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.price-range span { color: #9ca3af; }
.price-range .el-button { grid-column: 1 / -1; }

.catalog-main { min-width: 0; }

/* 选品中心：三大类入口 */
.cat-entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.cat-entry {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  color: #fff; cursor: pointer; transition: 0.18s ease; box-shadow: 0 10px 24px -18px rgba(16, 24, 40, 0.6);
}
.cat-entry:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(16, 24, 40, 0.45); }
.cat-entry.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37, 99, 235, 0.35); }
.cat-entry.all { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.cat-entry .ce-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.cat-entry .ce-name { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.cat-entry .ce-sub { font-size: 11.5px; opacity: 0.88; margin-top: 2px; }

/* 商品卡片：顶部大类色带与标签 */
.sku-card { position: relative; overflow: hidden; }
.sku-band { height: 4px; margin: -14px -14px 0; }
.type-tag { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; border: 1px solid; margin-right: 6px; line-height: 17px; }

@media (max-width: 1200px) {
  .cat-entries { grid-template-columns: repeat(2, 1fr); }
}
.catalog-toolbar {
  display: flex; gap: 10px; align-items: center; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px 14px; flex-wrap: wrap;
}
.catalog-toolbar .hint { font-size: 12px; color: var(--text-sub); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: 12px; }
.sku-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 9px;
  transition: 0.18s ease;
}
.sku-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(16, 24, 40, 0.28); border-color: #c7d7fe; }
.sku-card.is-configured { border-color: #bbf7d0; background: linear-gradient(180deg, #f7fdf9, #fff 40%); }
.sku-head { display: flex; gap: 10px; align-items: flex-start; }
.sku-logo { width: 38px; height: 38px; border-radius: 10px; color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; flex-shrink: 0; }
.sku-title { flex: 1; min-width: 0; }
.sku-title .n { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sku-title .c { font-size: 11.5px; color: var(--text-sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sku-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--text-sub); }
.sku-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sku-price { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0 3px; border-top: 1px dashed #f0f2f7; gap: 8px; flex-wrap: wrap; }
.sku-price .now { font-size: 22px; font-weight: 650; color: var(--brand-dark); letter-spacing: -0.5px; display: flex; align-items: baseline; }
.sku-price .now small { font-size: 13px; margin-right: 2px; }
.sku-price .sub { display: flex; gap: 8px; align-items: center; font-size: 11.5px; }
.sku-price .discount { background: #fff7ed; color: #c2410c; border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.sku-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sku-foot .ops { display: flex; gap: 6px; align-items: center; }
.link { color: var(--brand); cursor: pointer; }
.link:hover { text-decoration: underline; }
.delta { font-size: 11px; padding: 1px 5px; border-radius: 4px; margin-left: 4px; font-weight: 600; }
.delta.up { background: #fff1f2; color: #e11d48; }
.delta.down { background: #ecfdf5; color: #059669; }
.text-up { color: #e11d48; font-weight: 600; }
.text-down { color: #059669; font-weight: 600; }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }

/* ---------- 工作台待办 ---------- */
.todo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.todo-card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid #cbd5e1;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 13px 16px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: 0.18s ease;
}
.todo-card:hover { transform: translateY(-1px); border-color: #c7d7fe; border-left-color: var(--brand); }
.todo-card .tc-label { font-size: 12px; color: var(--text-sub); }
.todo-card .tc-value { font-size: 22px; font-weight: 650; margin-top: 6px; }
.todo-card .tc-value span { font-size: 11px; color: #9ca3af; margin-left: 3px; font-weight: 400; }
.todo-card .tc-link { font-size: 11.5px; color: var(--brand); white-space: nowrap; }
.todo-card.blue { border-left-color: #3b82f6; }
.todo-card.red { border-left-color: #ef4444; }
.todo-card.orange { border-left-color: #f59e0b; }
.todo-card.gray { border-left-color: #94a3b8; }

/* ---------- 客服浮岛 ---------- */
.service-dock { position: fixed; right: 10px; bottom: 64px; display: flex; flex-direction: column; gap: 6px; z-index: 1500; opacity: .72; transition: opacity .18s ease; }
.service-dock:hover { opacity: 1; }
.dock-item {
  width: 42px; height: 42px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; cursor: pointer; color: #4b5563; font-size: 10px; transition: 0.16s ease;
}
.dock-item .el-icon { font-size: 15px; }
.dock-item:hover { color: var(--brand); border-color: #c7d7fe; transform: translateY(-1px); }
.dock-pop .t { font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.dock-pop .c { font-size: 12.5px; color: #374151; line-height: 1.9; }
.dock-pop .c.muted { color: var(--text-sub); font-size: 11.5px; }

/* ---------- 帮助中心 / 登录补充 ---------- */
.login-footer { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #9ca3af; }
.doc-body { font-size: 13px; line-height: 1.9; color: #374151; max-height: 52vh; overflow: auto; }
.doc-body p { margin: 0 0 10px; }
.mini-stats { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.mini {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; box-shadow: var(--shadow); display: flex; gap: 10px;
  align-items: baseline; font-size: 12px; color: var(--text-sub);
}
.mini b { font-size: 17px; color: var(--text-main); }
.mini.ok b { color: #059669; }
.mini.bad b { color: #dc2626; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #f1f3f7; }
.refund-tip {
  display: flex; justify-content: space-between; background: #f8fafc; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px; color: var(--text-sub);
}
.refund-tip b { color: var(--text-main); }

.help-hero {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #1e40af, #3b82f6); color: #fff;
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.help-hero h3 { margin: 0 0 8px; font-size: 20px; }
.help-hero p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.82); font-size: 13px; }
.hero-actions { display: flex; gap: 8px; }
.hero-metrics { display: flex; gap: 26px; align-items: center; }
.hero-metrics b { display: block; font-size: 22px; }
.hero-metrics span { font-size: 11.5px; color: rgba(255, 255, 255, 0.78); }
.help-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 12px;
}
.step .idx {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.step .txt b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.step .txt span { font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.faq-a { font-size: 12.5px; color: #4b5563; line-height: 1.9; }
.help-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: #4b5563; line-height: 2; }
.help-list code { background: #f3f6fc; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.role-line {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 0;
  border-bottom: 1px dashed #f0f2f7; font-size: 12.5px; color: #4b5563; line-height: 1.7;
}
.role-line:last-child { border-bottom: 0; }

/* 日结页快捷统计日期 */
.daily-quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }

@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-side { position: static; }
  .todo-row, .help-steps { grid-template-columns: repeat(2, 1fr); }
}

/* 上游接口日志 */
.up-log-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid #f0f2f5; }
.up-log-detail { padding: 0 4px; }
.up-log-row { margin-bottom: 16px; }
.up-log-row > label { display: block; font-size: 12.5px; color: #909399; margin-bottom: 6px; }
.up-log-row > div { font-size: 13px; color: #303133; word-break: break-all; }
.up-log-row pre { margin: 0; padding: 10px 12px; background: #f7f8fa; border: 1px solid #ebeef5; border-radius: 4px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; }
