:root {
  /* 品牌色：平台蓝 #0385D3 为主（与主站/LOGO 呼应），其余靠中性灰；
     --orange 系列变量名保留仅为兼容历史引用，值已统一为蓝族 */
  --orange: #0385D3;
  --orange-light: #3AA0E6;
  --orange-deep: #0268A8;
  --orange-50: #EAF4FC;
  --blue: #0385D3;
  --green: #17A673;
  --amber: #E8A317;
  --red: #E24C4B;
  /* 中性色：浅灰蓝底 + 白卡片 */
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;
  --line: #EAEEF3;
  --line-2: #DFE5EC;
  --ink: #16181D;
  --ink-2: #5A6472;
  --ink-3: #98A2B3;
  --white: #fff;
  /* 圆角与阴影：卡片大圆角 + 极轻阴影（贴近参考图的现代 SaaS 观感） */
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-hover: 0 10px 28px rgba(16, 24, 40, .10);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.hidden { display: none !important; }

/* ================= 登录页（左品牌区 / 右登录卡） ================= */
.login-wrap { min-height: calc(100vh - 64px); margin: 32px auto; max-width: 1160px; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(16, 24, 40, .14); }
.login-brand-side {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 48px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #042C53 0%, #0A5390 46%, #0385D3 108%, #38A1E0 132%);
}
.login-brand-side::after {   /* 柔和光晕，呼应参考图的渐变背景 */
  content: ''; position: absolute; right: -140px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 200, 255, .30) 0%, rgba(120, 200, 255, 0) 68%);
}
.login-brand-side::before {
  content: ''; position: absolute; left: -90px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 70%);
}
.lbs-inner { width: 100%; max-width: 430px; position: relative; z-index: 1; }
.lbs-top { margin-bottom: 32px; }
.lbs-logo { height: 38px; width: auto; display: block; }
.lbs-title { font-size: 40px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.lbs-title span { display: block; font-size: 20px; font-weight: 500; opacity: .82; letter-spacing: 4px; margin-top: 6px; }
.lbs-desc { font-size: 15px; line-height: 1.9; opacity: .84; margin-bottom: 34px; }
.lbs-stats { list-style: none; display: flex; gap: 14px; }
.lbs-stats li {
  flex: 1; max-width: 168px; padding: 16px 18px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
}
.lbs-stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.lbs-stats span { font-size: 12.5px; opacity: .78; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: var(--surface); }
.login-card { width: 100%; max-width: 372px; }
.login-logo { height: 34px; width: auto; display: block; margin-bottom: 26px; }
.login-title { font-size: 25px; font-weight: 700; letter-spacing: .3px; }
.login-sub { color: var(--ink-2); font-size: 13.5px; margin: 8px 0 28px; }
.login-field { display: block; margin-bottom: 16px; }
.login-field-label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; }
.field {
  width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 0 14px; font-size: 14px; background: var(--surface-2); outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s; font-family: inherit;
}
.field::placeholder { color: #A9B1BD; }
.field:hover { border-color: #C9D2DD; }
.field:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 3px rgba(3, 133, 211, .12); }
.btn-primary { border: none; border-radius: var(--r-md); background: var(--orange); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s; font-family: inherit; }
.login-btn { width: 100%; height: 48px; margin-top: 8px; letter-spacing: 4px; box-shadow: 0 6px 16px rgba(3, 133, 211, .22); }
.login-btn:hover { background: var(--orange-deep); }
.login-btn:active { transform: translateY(1px); }
.login-err { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 18px; }
.login-tip { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
@media (max-width: 980px) {
  .login-wrap { grid-template-columns: 1fr; min-height: 100vh; margin: 0; max-width: none; border-radius: 0; box-shadow: none; }
  .login-brand-side { display: none; }
  .login-form-side { min-height: 100vh; }
}

/* ================= 框架：侧栏 + 顶栏 + 二级栏 ================= */
.admin { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: 232px; flex: none; background: #0B2A45; border-right: 1px solid #0B2A45;
  padding: 0 12px 20px; overflow-x: hidden; transition: width .2s ease;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #2C4A66; border-radius: 3px; }
.sidebar-brand { height: 60px; display: flex; align-items: center; padding: 0 8px; flex: none; }
.sidebar-logo { height: 26px; width: auto; display: block; }
.sidebar.collapsed .sidebar-brand { justify-content: center; padding: 0; }
.sidebar.collapsed .sidebar-logo { height: 30px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-group { font-size: 11.5px; color: rgba(255, 255, 255, .40); padding: 16px 12px 6px; font-weight: 600; letter-spacing: .6px; white-space: nowrap; }
.sidebar.collapsed .menu-group { visibility: hidden; height: 10px; padding: 0; }
.menu-item {
  position: relative; display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px;
  border-radius: var(--r-md); color: #B8C7DA; cursor: pointer; font-size: 14px;
  white-space: nowrap; transition: background .15s, color .15s; user-select: none;
}
.menu-item svg { flex: none; color: #6E88A6; transition: color .15s; }
.menu-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.menu-item:hover svg { color: #D6E6F5; }
.menu-item.active { background: var(--orange); color: #fff; font-weight: 600; }
.menu-item.active svg { color: #fff; }
.menu-item.active::before {
  content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: #fff;
}
.sidebar.collapsed { width: 72px; padding: 0 10px 20px; }
.sidebar.collapsed .menu-item { justify-content: center; padding: 0; gap: 0; }
.sidebar.collapsed .mi-txt { display: none; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; flex: none; position: sticky; top: 0; z-index: 60;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.collapse-btn {
  width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all .15s; flex: none;
}
.collapse-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-50); }
.collapse-btn svg { display: block; }
.crumb { font-size: 14px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); flex: none; }
.site-switch { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.top-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--orange-50); color: var(--orange);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.top-right .user { color: var(--ink); font-weight: 600; }
.btn-ghost {
  border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); padding: 7px 14px;
  cursor: pointer; font-size: 13px; color: var(--ink-2); transition: all .15s; font-family: inherit;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-50); }

/* 二级栏目：下划线 Tab */
.subnav {
  background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 4px; padding: 0 24px; overflow-x: auto; flex: none;
}
.subnav-btn {
  position: relative; border: none; background: none; padding: 13px 14px 12px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: color .15s;
}
.subnav-btn:hover { color: var(--ink); }
.subnav-btn.active { color: var(--orange); font-weight: 600; }
.subnav-btn.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--orange);
}

/* 页面标题 + 筛选同行 */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 16px; }
.page-head .page-title { margin-bottom: 0; }
.filterbar-inline { margin-bottom: 0; }
/* 分类页头紧凑化（仅本模块） */
.page-head.cls-head { margin-bottom: 8px; gap: 10px; }
.page-head.cls-head .filterbar { gap: 8px; margin-bottom: 0; }
.page-head.cls-head .page-title { font-size: 16px; }
/* 页头控件降一档高度（36 → 30），仅分类页生效 */
.page-head.cls-head .filter-input,
.page-head.cls-head .filter-select,
.page-head.cls-head .filter-search { height: 30px; font-size: 12.5px; }
.page-head.cls-head .filter-input { width: 160px; }
.page-head.cls-head .filter-search { padding: 0 14px; }
.page-head.cls-head .seg-btn { padding: 3px 12px; font-size: 12.5px; }
/* 分类页：标题 + 已选厂家徽标（明确当前在操作谁的分类） */
.cls-title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cls-factory-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 4px 0 12px;
  background: #EAF4FC; color: var(--orange, #0385D3);
  border: 1px solid var(--orange, #0385D3); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  max-width: 420px; white-space: nowrap;
}
.cls-factory-badge { overflow: hidden; text-overflow: ellipsis; }
.cls-factory-exit {
  flex: none; height: 20px; padding: 0 8px; margin-right: 2px;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--orange, #0385D3); color: #fff;
  font-size: 11.5px; line-height: 1;
}
.cls-factory-exit:hover { opacity: .85; }
/* 复制成功提示（分类管理复制按钮） */
.copy-flash-tip {
  position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%);
  z-index: 9999; padding: 9px 18px; border-radius: 8px;
  background: #0B2A45; color: #fff; font-size: 13px;
  box-shadow: 0 6px 18px rgba(11,42,69,.28);
  animation: copyTipIn .18s ease-out;
  pointer-events: none;
}
@keyframes copyTipIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.content { padding: 24px 26px 44px; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; letter-spacing: .2px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-card); }
/* 分类卡片面板：独立收紧内边距与圆角（不动全局 .panel，避免影响其他模块排版） */
.panel.cls-panel { padding: 10px 12px; border-radius: 12px; }

/* 表格（轻量化：弱边框、浅分割线、行悬停浅底） */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #f4f6f8; }
.table th { color: var(--ink-2); font-weight: 600; background: var(--surface-2); white-space: nowrap; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr td { transition: background .12s; }
.table tbody tr:hover td { background: #FAFBFD; }

/* 分页 */
.pager { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.pager button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 14px; cursor: pointer; transition: all .15s; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }

/* 分页（新版：左下总数 + 中间页码省略） */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.pager-total { font-size: 13px; color: var(--ink-2); flex: none; }
.pager-mid { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; flex: 1; }
.pg-btn, .pg-num { height: 34px; min-width: 34px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 13px; color: var(--ink); cursor: pointer; transition: all .15s; font-family: inherit; }
.pg-num { padding: 0 10px; }
.pg-btn:disabled, .pg-num:disabled { opacity: .4; cursor: not-allowed; }
.pg-btn:hover:not(:disabled), .pg-num:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.pg-num.active { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.pg-ellipsis { color: var(--ink-3); padding: 0 2px; user-select: none; }

/* 询价顶部 Tab（未读/已同意/已拒绝） */
.inquire-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { height: 36px; padding: 0 18px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: all .15s; font-family: inherit; white-space: nowrap; }
.tab-btn:hover { border-color: #cfe0f5; color: #2b7fd4; }
.tab-btn.active { background: #2b7fd4; border-color: #2b7fd4; color: #fff; font-weight: 600; }

/* 三点更多操作按钮 + 下拉菜单（仅 UI） */
.ops-more { position: relative; }
.more-btn { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-2); transition: all .15s; }
.more-btn:hover { border-color: var(--orange); color: var(--orange); }
.inq-menu { position: fixed; display: none; min-width: 132px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,24,33,.14); padding: 5px; z-index: 1100; }
.inq-menu.open { display: block; }
.inq-menu-item { display: block; width: 100%; text-align: left; border: none; background: none; padding: 9px 12px; border-radius: 7px; font-size: 13px; color: var(--ink); cursor: pointer; font-family: inherit; }
.inq-menu-item:hover { background: #f6f8fa; color: var(--orange); }

/* 统计卡（首页看板，轻量卡片风格） */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.home-title { font-size: 26px; font-weight: 700; letter-spacing: .2px; }
.home-sub { color: var(--ink-3); font-size: 13px; margin-top: 7px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
  box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 16px; transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card .n { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.3px; }
.card .t { color: var(--ink-3); font-size: 13px; margin-top: 3px; }

/* 圆形图标容器（统计卡 / 快捷入口共用） */
.chip { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.chip svg { display: block; }
.chip-orange { background: #fff2e8; color: var(--orange); }
.chip-green  { background: #e9f7ef; color: #22a05c; }
.chip-amber  { background: #fff5e6; color: #d9720a; }
.chip-blue   { background: #eaf2fc; color: #2b7fd4; }
.chip-red    { background: #fdeeed; color: #d4553f; }

/* ================= 首页看板 ================= */
.content { padding: 24px 26px 44px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.home-title { font-size: 27px; font-weight: 700; letter-spacing: .2px; }
.home-sub { color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.home-actions { display: flex; gap: 10px; }
.home-btn { height: 38px; padding: 0 18px; display: inline-flex; align-items: center; font-size: 13.5px; }
.btn-primary.btn-sm { background: var(--orange); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 2px;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--line-2); }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-label { font-size: 13px; color: var(--ink-2); }
.card .n { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.card .t { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }

/* 圆形图标容器 */
.chip { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.chip svg { display: block; }
.chip-orange { background: var(--orange-50); color: var(--orange); }
.chip-green  { background: #E9F7EF; color: var(--green); }
.chip-amber  { background: #FFF5E6; color: var(--amber); }
.chip-blue   { background: #EAF4FC; color: var(--blue); }
.chip-red    { background: #FDEEEE; color: var(--red); }

/* 首页两栏：常用功能 + 待办提醒 */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
@media (max-width: 1180px) { .home-grid { grid-template-columns: 1fr; } }
.home-panel { padding: 20px 22px 22px; }
.home-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.home-panel-title { font-size: 15.5px; font-weight: 700; }
.home-panel-sub { font-size: 12.5px; color: var(--ink-3); }
.home-sec-title { font-size: 15px; font-weight: 700; margin: 36px 0 14px; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 12px; }
.quick-card {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  cursor: pointer; display: flex; align-items: center; gap: 13px; transition: all .16s;
}
.quick-card:hover { background: #fff; border-color: #BBDDF5; box-shadow: var(--shadow-card); }
.quick-card .chip { width: 40px; height: 40px; }
.quick-info { flex: 1; min-width: 0; }
.quick-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.quick-name { font-weight: 600; font-size: 14px; }
.quick-count { font-size: 12.5px; color: var(--orange); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quick-desc { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.quick-arrow, .inline-icon { color: #C6CCD6; flex: none; }
.inline-icon { display: flex; align-items: center; }
.inline-icon svg { display: block; }

/* 待办与提醒 */
.todo-list { display: flex; flex-direction: column; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.todo-item:last-child { border-bottom: none; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.todo-orange { background: var(--orange); }
.todo-blue { background: var(--blue); }
.todo-amber { background: var(--amber); }
.todo-red { background: var(--red); }
.todo-gray { background: #A9B1BD; }
.todo-text { flex: 1; font-size: 13.5px; color: var(--ink); }
.todo-num { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.todo-go { font-size: 12.5px; color: var(--ink-3); cursor: pointer; padding: 3px 10px; border-radius: 999px; transition: all .15s; }
.todo-go:hover { background: var(--orange-50); color: var(--orange); }

.empty { color: var(--ink-2); font-size: 14px; padding: 30px; text-align: center; }

/* 状态徽章（柔和圆角胶囊） */
.badge { display: inline-block; padding: 2.5px 11px; border-radius: 999px; font-size: 12px; line-height: 1.7; font-weight: 500; }
.badge.on { background: #e9f7ef; color: #22a05c; }
.badge.off { background: #fdeeed; color: #d4553f; }
.badge.pending { background: #fff5e6; color: #d9720a; }
.badge.done { background: #e9f7ef; color: #22a05c; }
.badge.rejected { background: #fdeeed; color: #d4553f; }
/* 订单状态色板（对齐原版：default/primary/secondary/danger/success/warning） */
.badge.default { background: #f3f4f6; color: #5b6472; }
.badge.primary { background: #eaf2fc; color: #2b7fd4; }
.badge.secondary { background: #eceefb; color: #4a5bd6; }
.badge.warn { background: #fff5e6; color: #b96a08; }

/* 筛选栏 */
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.filterbar .filter-label { font-size: 13px; color: var(--ink-2); margin-right: -6px; }
.filter-select, .filter-input { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 13px; background: #fff; outline: none; transition: border-color .15s; }
.filter-select:focus, .filter-input:focus { border-color: var(--orange); }
.filter-input { width: 200px; }
.filter-reset { height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.filter-reset:hover { border-color: var(--orange); color: var(--orange); }
.filter-search { height: 36px; border: 1px solid var(--orange); background: var(--orange); border-radius: 8px; padding: 0 18px; cursor: pointer; font-size: 13px; color: #fff; font-family: inherit; }
.filter-search:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.filter-hint { font-size: 12px; color: #d4553f; align-self: center; }

/* 商品信息单元（图文） */
.cell-goods { display: flex; align-items: center; gap: 10px; }
.cell-goods-img { width: 46px; height: 46px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; flex: none; }
.cell-goods-info { min-width: 0; }
.cell-goods-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.cell-goods-item { color: var(--ink-2); font-size: 12px; margin-top: 2px; }

/* ===== 询价详情 / 回复弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(20,24,33,.45); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-mask.open { display: flex; }
.modal-box { width: 460px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.modal-close { border: none; background: none; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-loading, .modal-err { padding: 24px; text-align: center; color: var(--ink-2); }
.modal-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; }
.info-label { flex: none; width: 96px; color: var(--ink-3); text-align: right; padding-top: 1px; }
.info-value { flex: 1; min-width: 0; color: var(--ink); word-break: break-word; }
.field-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.reply-input { width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; resize: vertical; outline: none; transition: border-color .15s; }
.reply-input:focus { border-color: var(--orange); }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal-hint { margin-right: auto; font-size: 12px; color: var(--ink-3); }
.btn-link { border: none; background: none; color: var(--orange); cursor: pointer; font-size: 13px; padding: 0; }
.btn-link:hover { text-decoration: underline; }
.btn-primary { border: none; background: var(--orange); color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-primary:disabled, .btn-danger:disabled, .btn-ghost:disabled { opacity: .6; cursor: not-allowed; }
.btn-danger { border: 1px solid #f0c0c0; background: #fff; color: #d4453b; padding: 8px 18px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-danger:hover { background: #fdeeee; }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 8px 18px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ===== 免费入驻管理 ===== */
.fm-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fm-tools .inquire-tabs { margin-bottom: 0; }
.fm-colbtn { cursor: pointer; font-family: inherit; white-space: nowrap; height: 36px; padding: 0 14px; }
.fm-bar { margin-bottom: 0; }
.col-menu { position: fixed; z-index: 1100; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 32px rgba(20,24,33,.12); padding: 10px 8px; min-width: 168px; display: none; max-height: 60vh; overflow-y: auto; }
.col-menu.open { display: block; }
.col-menu-title { font-size: 12px; color: var(--ink-3); padding: 2px 10px 8px; }
.col-menu-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 13px; color: var(--ink);
  border-radius: 8px; cursor: pointer; user-select: none; }
.col-menu-item:hover { background: #f6f8fa; }
.col-menu-item input[type='checkbox'] { width: 15px; height: 15px; accent-color: #2b7fd4; cursor: pointer; flex: none; }
.cell-factory { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-avatar { width: 42px; height: 42px; border-radius: 50%; background: #f0f3f7; color: #7b8794; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; flex: none; }
.cell-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cell-factory-info { min-width: 0; }
.cell-factory-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.cell-factory-id { color: var(--ink-3); font-size: 12px; margin-top: 2px; word-break: break-all; max-width: 190px; }
.cell-sub { color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.muted { color: var(--ink-3); font-size: 12.5px; }

/* ---- 采购商列表（老后台 /manage/user 复刻）---- */
/* 操作列三点按钮：与老后台一致的轻量方块，点击弹出下拉菜单 */
.btn-more { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 7px; font-size: 15px; line-height: 1; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-more:hover { border-color: var(--orange); color: var(--orange); background: #fff8f2; }
/* 下拉菜单里的危险项（注销） */
.inq-menu-item.danger { color: #d4453b; }
.inq-menu-item.danger:hover { background: #fdeeee; color: #d4453b; }
/* 营业执照列：固定尺寸缩略图 + 上传时间，避免行高被大图撑开 */
.cer-cell { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.cer-cell img { width: 84px; height: 60px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px;
  background: #f7f8fa; cursor: zoom-in; display: block; transition: border-color .15s; }
.cer-cell img:hover { border-color: var(--orange); }
/* 历史执照图在 CDN 上已失效时的占位（可点击重试） */
.cer-missing { display: inline-block; padding: 4px 9px; border: 1px dashed #e3c9a0; background: #fff8ef;
  color: #b96a08; border-radius: 6px; font-size: 12px; cursor: pointer; word-break: break-all; }
.cer-missing:hover { border-color: var(--orange); background: #fff3e6; }
/* 营业执照大图预览 */
.cer-big-wrap { text-align: center; }
.cer-big-wrap img { max-width: 100%; max-height: 66vh; object-fit: contain; border-radius: 8px; display: inline-block; }
/* 弹窗里的“字段: 值”行（修改密码弹窗用） */
.modal-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.modal-val { color: var(--ink); font-weight: 600; word-break: break-all; }

/* ================= 分类管理（老后台 /manage/class 复刻）================= */
/* 页头右侧按钮区 */
.page-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* “计算分类”橙 / “创建分类”蓝 —— 对齐老后台两个主按钮 */
.btn-calc { border: 1px solid #e8a33d; background: #f5a623; color: #fff; padding: 6px 16px;
  border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-calc:hover { background: #dd9012; border-color: #dd9012; }
.btn-create-cls { border: 1px solid #2b7fd4; background: #2b7fd4; color: #fff; padding: 6px 16px;
  border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-create-cls:hover { background: #2470bd; border-color: #2470bd; }
/* 搜索框（中/英切换用） */
.cls-search { min-width: 200px; }
/* 中文/英文 分段切换按钮 */
.seg { display: inline-flex; background: #eef0f3; border-radius: 8px; padding: 2px; flex: none; }
.seg-btn { border: none; background: none; padding: 5px 16px; border-radius: 6px; font-size: 13px;
  color: var(--ink-2); cursor: pointer; font-family: inherit; white-space: nowrap; }
.seg-btn.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20,24,33,.12); }
/* 查看厂家分类 */
.factory-picker { display: flex; align-items: center; gap: 8px; }
.fac-picker-wrap { position: relative; display: flex; align-items: center; }
.fac-input { min-width: 190px; cursor: pointer; padding-right: 26px; }
.fac-clear { position: absolute; right: 6px; border: none; background: none; color: var(--ink-3);
  font-size: 15px; cursor: pointer; padding: 0 4px; line-height: 1; }
.fac-clear:hover { color: #d4553f; }
/* 厂家下拉浮窗：加宽以容纳长厂名 */
.fac-menu { min-width: 260px; max-height: 320px; overflow-y: auto; }
.fac-menu .inq-menu-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fac-menu .inq-menu-item.active { background: #fff5e6; color: var(--orange); font-weight: 600; }
.fac-menu-tip { padding: 10px 12px; font-size: 12.5px; color: var(--ink-3); }
.fac-menu-split { height: 1px; background: var(--line); margin: 4px 6px; }
/* 分类树表 */
.cls-table td { vertical-align: middle; }
.cls-row-top { background: #fafbfc; }
.cls-row-top .cls-name { font-weight: 600; color: var(--ink); }
.cls-indent { width: 34px; color: var(--ink-3); }
.cls-name-en { color: var(--ink-2); }
.cls-count { color: var(--orange); font-weight: 600; }
.cls-sort { color: var(--ink-3); }
.cls-ops { white-space: nowrap; }
.btn-link { border: none; background: none; color: #2b7fd4; font-size: 12.5px; cursor: pointer;
  padding: 2px 5px; font-family: inherit; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: #d4553f; }

/* ============ 分类卡片网格（复刻老后台布局 · 精致化）============ */
/* 每个一级分类一张卡片：卡片头(【排序】名称 + 徽章) + 卡片体(多列二级分类) */
/* 卡片网格：横向两列并排（一级卡片左右并列），纵向滚动更短 */
.cls-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 1080px) { .cls-cards { grid-template-columns: 1fr; } }
.cls-card { border: 1px solid #e9edf2; border-radius: 10px; background: #fff; overflow: hidden;
  box-shadow: var(--shadow-card); transition: box-shadow .15s, border-color .15s; }
.cls-card:hover { border-color: #dfe4eb; box-shadow: var(--shadow-card-hover); }
.cls-card-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px 8px;
  border-bottom: 1px solid #f3f5f8; }
.cls-card-title { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.cls-sort-tag { color: #b6bdc7; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .2px; flex: none; }
.cls-card-name { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.cls-card-total { font-size: 11.5px; color: var(--orange-deep); font-weight: 600; background: #fff3ea;
  padding: 1.5px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; flex: none; }
.cls-card-sub { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.cls-card-ops { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.cls-card:hover .cls-card-ops { opacity: 1; }
/* 小号文字操作按钮 */
.cls-mini-op { border: none; background: none; color: #2b7fd4; font-size: 11.5px; cursor: pointer;
  padding: 2px 6px; border-radius: 4px; font-family: inherit; white-space: nowrap; }
.cls-mini-op:hover { background: #eaf2fc; }
.cls-mini-op.danger { color: #d4553f; }
.cls-mini-op.danger:hover { background: #fdeeee; }
/* 卡片体：浅灰底，二级分类多列排布（对齐老后台灰底框） */
.cls-card-body { background: #fafbfd; border-top: 1px solid #f3f5f8; padding: 6px 10px 9px; }
.cls-card-empty { padding: 14px 0; color: var(--ink-3); font-size: 12.5px; text-align: center; }
/* 两列并排后每列变窄 → 二级用 2 列；行距拉开，保证上下呼吸感 */
.cls-sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 16px; }
@media (max-width: 640px) { .cls-sub-grid { grid-template-columns: 1fr; } }
/* 单个二级分类条目：名称居左、数量右对齐（tabular-nums 纵向成列） */
.cls-sub-item { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 6px;
  cursor: pointer; min-width: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink);
  border: 1px solid transparent; transition: background .12s, box-shadow .12s; }
.cls-sub-item:hover { background: #fff; box-shadow: 0 1px 5px rgba(31, 41, 55, .09); }
.cls-sub-item:hover .cls-sub-ops { opacity: 1; }
.cls-sub-item.zero { color: var(--ink-3); }
.cls-sub-sort { color: #b6bdc7; font-size: 11px; flex: none; font-variant-numeric: tabular-nums; }
.cls-sub-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cls-sub-num { color: var(--ink-2); font-size: 11.5px; flex: none; margin-left: auto;
  font-variant-numeric: tabular-nums; }
.cls-sub-item.zero .cls-sub-num { color: #c3cad3; }
/* 二级条目悬浮操作（数量左侧，悬浮才显现） */
.cls-sub-ops { margin-left: 2px; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; flex: none; }
.cls-sub-ops .cls-mini-op { padding: 0 4px; font-size: 11px; }
/* 创建/编辑分类弹窗表单行 */
.cls-form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cls-form-row label { width: 68px; flex: none; font-size: 13.5px; color: var(--ink-2); }
.cls-form-row .filter-input { flex: 1; min-width: 0; }
.btn-translate { border: 1px solid #e8a33d; background: #fff8ef; color: #b96a08; padding: 6px 12px;
  border-radius: 7px; font-size: 12.5px; cursor: pointer; font-family: inherit; white-space: nowrap; flex: none; }
.btn-translate:hover { background: #f5a623; color: #fff; border-color: #f5a623; }
/* 计算中的提示条 */
.calc-tip { margin-top: 12px; padding: 10px 14px; background: #fff8ef; border: 1px solid #f0dcb8;
  border-radius: 8px; color: #b96a08; font-size: 13px; text-align: center; }
.btn-danger-sm { border: 1px solid #f0c0c0; background: #fff; color: #d4453b; padding: 5px 12px; border-radius: 7px;
  font-size: 12.5px; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-danger-sm:hover { background: #fdeeee; }
.btn-primary-sm { border: 1px solid #2b7fd4; background: #2b7fd4; color: #fff; padding: 5px 12px; border-radius: 7px;
  font-size: 12.5px; cursor: pointer; font-family: inherit; transition: all .15s; }
.btn-primary-sm:hover { background: #2470bd; border-color: #2470bd; }
/* 列表操作列小按钮（启用/停用/改密/删除）：在 btn-*-sm 基色之上收紧尺寸 */
.ops { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm { font-size: 12px; padding: 4px 10px; border-radius: 6px; font-family: inherit; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; white-space: nowrap; }
.btn-warn-sm { border-color: #f0b27a; background: #fff; color: #c95200; }
.btn-warn-sm:hover { background: #fff3ea; }
.btn-ghost-sm { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-ghost-sm:hover { border-color: #2b7fd4; color: #2b7fd4; }

/* ================= 厂家列表（老后台 /manage/member 复刻）================= */
/* 页头：主标题 + 弱化副标题（对齐老站「厂家管理 / 可开通在线交易…」） */
.member-head { margin-bottom: 10px; }
.member-title-box .page-sub { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
/* 工具行：搜索框 + 字段下拉 + Tab + 右侧（导出/创建/选项选择） */
.member-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.member-kw { width: 210px; }
.member-field { width: 92px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 6px; font-family: inherit; font-size: 13px; color: var(--ink); }
.member-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.member-export, .member-create { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.member-export { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.member-export:hover { border-color: var(--orange); color: var(--orange); }
.member-create { border: none; background: var(--orange); color: #fff; font-weight: 600; }
.member-create:hover { background: var(--orange-dark, #d4560a); }
/* 操作列：蓝色胶囊按钮（对齐老站「操作」蓝块） */
.member-op-btn { width: auto; padding: 0 13px; border-radius: 15px; background: #2b7fd4; border-color: #2b7fd4; color: #fff; font-size: 13px; height: 26px; }
.member-op-btn:hover { background: #2470bd; border-color: #2470bd; color: #fff; }
/* 厂家名称蓝色链接（点击弹操作菜单） */
.cell-link { color: #2b7fd4; text-decoration: none; cursor: pointer; }
.cell-link:hover { text-decoration: underline; }
/* 已过期红字 */
.cell-expired { color: #d4453b; font-weight: 600; }
/* 空数据提示 */
.empty-tip { padding: 42px 0; text-align: center; color: var(--ink-3); font-size: 13px; }
/* 创建厂家弹窗表单 */
#memberCreateModal .field-label { display: block; margin: 10px 0 4px; font-size: 13px; color: var(--ink-2); }
#memberCreateModal .mc-input { width: 100%; box-sizing: border-box; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 14px; font-family: inherit; color: var(--ink); }
#memberCreateModal .mc-input:focus { outline: none; border-color: var(--orange); }
#memberCreateModal .modal-err { color: #d4453b; font-size: 12.5px; min-height: 18px; margin-top: 8px; }
/* 工具行右对齐（选项选择贴右）；页头工具区不换行 */
.member-bar { flex-wrap: nowrap; }
.member-bar .fm-tools { margin-left: auto; flex-wrap: nowrap; }
.member-tools { flex-wrap: nowrap; }
/* 元信息列（剩余天数/登录信息/时间/登录错误）单行不折行，避免日期被截断 */
.member-panel td .cell-time > div,
.member-panel td .cell-login > div { white-space: nowrap; }
/* 厂家名单行省略 */
.member-panel .cell-factory-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.member-panel .cell-factory { min-width: 220px; }
/* 按钮文字不换行（导出Excel / 创建厂家） */
.member-export, .member-create, .fm-colbtn { white-space: nowrap; }
/* 表格单元格默认单行（厂家信息列除外，ID 允许折行） */
.member-panel td { white-space: nowrap; }
.member-panel td .cell-factory { white-space: normal; }
.member-panel td .cell-factory-id { white-space: normal; word-break: break-all; }

/* ===== 厂家列表工具行：单行等高底部对齐 ===== */
/* 工具行内所有控件统一 36px 高、垂直居中对齐（搜索框/字段/搜索按钮/Tab/右侧按钮组） */
.member-bar { align-items: center; flex-wrap: nowrap; gap: 8px; }
.member-bar .inquire-tabs { margin-bottom: 0; flex-wrap: nowrap; }
/* 右侧三按钮（导出Excel/创建厂家/选项选择）一行排齐，与左侧控件同高 */
.member-tools { flex-wrap: nowrap; gap: 8px; margin-left: auto; }
.member-export, .member-create { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
/* 导出下拉菜单加宽容纳长文案 */
.member-export-menu { min-width: 196px; }
.member-export-menu .inq-menu-item { white-space: nowrap; }
/* 厂家操作菜单：15 项，宽度固定 + 内部滚动，避免超出视口 */
#memberMenu { min-width: 168px; }
#memberMenu .inq-menu-item { white-space: nowrap; padding: 7px 12px; }
#memberMenu .inq-menu-item.pending { color: #97a0ad; }
#memberMenu .inq-menu-item.pending:hover { background: #f6f8fa; color: #97a0ad; }

/* ===== 订单管理（老后台 /manage/order 复刻） ===== */
.order-head { margin-bottom: 10px; }
.order-bar { margin-bottom: 8px; }
.order-kw { width: 320px; }
.order-tools { margin-left: auto; }
.order-tabs { margin-bottom: 10px; }
.order-tabs .tab-btn { display: inline-flex; align-items: center; gap: 6px; }
.order-tabs .tab-count {
  display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 10px;
  background: #eef0f3; color: #6b7480; font-size: 12px; line-height: 18px; text-align: center;
}
.order-tabs .tab-btn.active .tab-count { background: #dbe9fb; color: #2b7fd4; }
.order-panel .table-wrap { overflow-x: auto; }
.order-table td { vertical-align: top; }
.order-table td .cell-time { line-height: 1.7; }
/* 来源列三行圆点 */
.ord-src { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink); }
.ord-dot-line { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ord-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.ord-dot-gray { background: #9aa3ae; }
.ord-dot-blue { background: #2b7fd4; }
.ord-dot-green { background: #22a05c; }
/* 购买商品缩略图（最多 3 张，超出显示 +N） */
.ord-goods { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ord-goods img, .ord-goods-ph {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
  object-fit: cover; background: #f6f7f9; cursor: pointer;
}
.ord-goods-ph { display: flex; align-items: center; justify-content: center; color: #b6bcc4; font-size: 12px; }
.ord-goods-more { font-size: 12px; color: #8b939d; }
.ord-trade-top { display: flex; gap: 14px; color: var(--ink); }
.ord-trade-top span { white-space: nowrap; }
/* 状态/售后/操作：徽标 + ▾ */
.ord-status { display: flex; align-items: center; gap: 4px; }
.ord-caret {
  border: none; background: none; cursor: pointer; color: #9aa3ae; font-size: 11px;
  padding: 0 2px; line-height: 1; font-family: inherit;
}
.ord-caret:hover { color: var(--orange); }
/* 下拉菜单 */
#orderMenu { min-width: 128px; }
.inq-menu-empty { padding: 9px 12px; font-size: 13px; color: #a6adb6; }
/* 购买商品弹窗 */
.ord-goods-list { display: flex; flex-direction: column; gap: 18px; max-height: 60vh; overflow-y: auto; }
.ord-goods-row { display: flex; gap: 15px; align-items: flex-start; }
.ord-goods-row img, .ord-goods-row .ord-goods-ph { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; background: #f6f7f9; }
.ord-goods-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ord-goods-line { display: flex; gap: 18px; font-size: 13px; color: var(--ink); flex-wrap: wrap; }
.ord-goods-line span { white-space: nowrap; }
.ord-goods-name { font-size: 12px; color: #6b7480; line-height: 1.6; word-break: break-all; }

/* ===== 玩具巴巴栏目（基础设置 / 关键词排名 / 网站关键词管理 / 广告位） ===== */
.tb-head { margin-bottom: 10px; }
.tb-panel { padding: 16px 18px; }
.tb-form { display: flex; flex-direction: column; gap: 14px; }
.tb-row { display: grid; gap: 14px; }
.tb-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tb-row-2, .tb-row-3 { grid-template-columns: 1fr; } }
.tb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tb-label { font-size: 12px; color: #6b7480; }
.tb-input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #f7f8fa; font-size: 13px; color: var(--ink); font-family: inherit;
}
.tb-input:focus { outline: none; border-color: var(--orange); background: #fff; }
.tb-textarea { height: 72px; padding: 9px 12px; resize: vertical; line-height: 1.6; }
.tb-switch-row { display: flex; align-items: center; }
.tb-switch {
  display: inline-flex; align-items: center; gap: 8px; border: none; background: none;
  cursor: pointer; font-size: 13px; color: var(--ink); padding: 0; font-family: inherit;
}
.tb-switch-dot {
  width: 38px; height: 22px; border-radius: 999px; background: #d7dbe0; position: relative;
  transition: background .15s ease;
}
.tb-switch-dot::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: left .15s ease;
}
.tb-switch.on .tb-switch-dot { background: var(--orange); }
.tb-switch.on .tb-switch-dot::after { left: 18px; }
.tb-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tb-seg-btn {
  height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #f7f8fa; color: #4b5563; font-size: 13px; cursor: pointer; font-family: inherit;
}
.tb-seg-btn:hover { border-color: var(--orange); color: var(--orange); }
.tb-seg-btn.active { background: #eaf2fc; border-color: #2b7fd4; color: #2b7fd4; font-weight: 600; }
.tb-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.tb-row-actions { display: flex; align-items: center; gap: 6px; }
.btn-icon-danger {
  width: 28px; height: 28px; border: none; border-radius: 6px; background: transparent;
  cursor: pointer; font-size: 14px; line-height: 1; color: #9aa3ae; font-family: inherit;
}
.btn-icon-danger:hover { background: #fdeeee; color: #d4453b; }
.btn-icon-plain {
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  cursor: pointer; font-size: 14px; line-height: 1; color: #5b6472; font-family: inherit;
}
.btn-icon-plain:hover { border-color: var(--orange); color: var(--orange); }
.filter-inline-label { font-size: 13px; color: #4b5563; min-width: 84px; }
.tb-ad-type { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tb-ad-type.home { background: #eaf2fc; color: #2b7fd4; }
.tb-ad-type.kw { background: #e9f7ef; color: #22a05c; }
.tb-ad-img { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; background: #f6f7f9; }
.tb-ad-img.ph { display: flex; align-items: center; justify-content: center; color: #b6bcc4; font-size: 12px; }
.tb-ad-table td { vertical-align: middle; }

/* ===== 内部人员管理（栏目授权） ===== */
.dev-perm { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chip-tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef4fd;
  color: #2b7fd4; font-size: 12px; line-height: 18px; white-space: nowrap;
}
.dev-perm-all { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: 13px; color: var(--ink); }
.dev-router-tree {
  max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: #fbfcfd;
}
.dev-router-tree.disabled { opacity: .5; }
.dev-router-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); padding: 3px 2px; cursor: pointer; }
.dev-router-item span { color: #4b5563; }
.modal-err { min-height: 18px; color: #d4553f; font-size: 12px; margin-top: 6px; }

/* ===== PC 官网栏目 ===== */
.pc-tabs { display: inline-flex; gap: 6px; }
.pc-tab {
  height: 36px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px;
  background: #f3f4f6; color: #4b5563; font-size: 13px; cursor: pointer; font-family: inherit;
}
.pc-tab:hover { color: var(--orange); }
.pc-tab.active { background: #2b7fd4; border-color: #2b7fd4; color: #fff; font-weight: 500; }
.pc-class-panel { padding: 16px 18px; }
.pc-class-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
@media (max-width: 1100px) { .pc-class-grid { grid-template-columns: 1fr; } }
.pc-class-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  background: #f6f7f9; border: 1px solid transparent;
}
.pc-class-card:has(input:checked) { background: #fff6ec; border-color: #ffd9b8; }
.pc-class-line { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.pc-class-name { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-class-sort { width: 76px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-family: inherit; }
.pc-class-sort:disabled { background: #eceef1; color: #a6adb6; }
.pc-img-cell { display: flex; align-items: center; }
.pc-img-cell img, .pc-img-ph {
  border-radius: 6px; border: 1px solid var(--line); object-fit: cover; background: #f6f7f9;
  height: 40px; display: flex; align-items: center; justify-content: center; color: #b6bcc4; font-size: 12px;
}
.pc-editor {
  min-height: 260px; max-height: 46vh; overflow-y: auto; margin-top: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; line-height: 1.7; color: var(--ink);
}
.pc-editor:focus { outline: none; border-color: var(--orange); }
.modal-back { border: none; background: none; font-size: 18px; cursor: pointer; color: #5b6472; margin-right: 6px; }
.modal-back:hover { color: var(--orange); }
/* 窄屏允许换行兜底 */
@media (max-width: 1240px) { .member-bar { flex-wrap: wrap; } .member-tools { margin-left: 0; } }
