/* 视觉工作台 · PC 工作站
   视觉沿用小程序：浅灰底 #f5f5f7、白卡片、14px 圆角、系统字体 */

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --sub: #8e8e93;
  --line: #e8e8ed;
  --line-strong: #d8d8de;
  --accent: #007aff;
  --accent-soft: #eaf4ff;
  --ok: #34c759;
  --warn: #ff9500;
  --danger: #ff3b30;
  --radius: 14px;
  --side-w: 216px;
  --side-rail: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ============ 登录 ============ */
.login {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, var(--bg) 60%);
}

.login-card {
  width: 380px;
  background: var(--card);
  border-radius: 20px;
  padding: 32px 32px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.login-logo { display: block; margin: 0 auto 12px; border-radius: 14px; object-fit: cover; }
.brand-mark {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.login-card h1 {
  margin: 14px 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.login-card .sub {
  margin: 0 0 22px;
  color: var(--sub);
  font-size: 13px;
}

.qr-box {
  width: 196px;
  height: 196px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-img { width: 180px; height: 180px; display: block; }

.qr-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sub);
  font-size: 13px;
  padding: 0 12px;
  text-align: center;
}

.qr-spin {
  width: 14px; height: 14px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.qr-tip { color: var(--sub); font-size: 12px; margin: 12px 0 0; line-height: 1.6; }
.qr-expire { color: var(--sub); font-size: 12px; margin: 6px 0 0; }
.qr-expire b { color: var(--accent); font-variant-numeric: tabular-nums; margin: 0 2px; }

.input, .select, .search {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.input:focus, .select:focus, .search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}
.input.area { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }

.btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0071e3; }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: #fafafa; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
/* 预览弹层「编辑信息」条：款号/品牌/年份/季节/类目一行排开 */
.pv-editbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8f9fc;
}
.pv-editbar label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--sub, #86868b); white-space: nowrap;
}
.pv-editbar input, .pv-editbar select {
  height: 32px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: inherit;
  font-size: 13px; outline: none;
}
.pv-editbar input { width: 150px; }
.pv-editbar input:focus, .pv-editbar select:focus { border-color: var(--accent); }
.pv-editbar .btn { height: 32px; padding: 0 16px; font-size: 13px; border-radius: 8px; }
.pv-e-msg { font-size: 12px; color: #e24b4a; }
.pv-e-msg:empty::before { content: ''; }
/* 自动上传「一键上传」确认键：绿色，醒目区分于普通上传 */
.up-auto-go { background: #16a34a; color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(22,163,74,.28); animation: pop-in .18s ease-out; }
.up-auto-go:hover { background: #15803d; }
@keyframes pop-in { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.err { color: var(--danger); font-size: 12px; min-height: 18px; margin: 10px 0 0; }
.foot { color: var(--sub); font-size: 11px; margin: 10px 0 0; }

/* ============ 主框架 ============ */
.app {
  display: flex;
  height: 100%;
  min-height: 100vh;
}

/* 折叠侧栏：默认只显示图标窄条，鼠标悬停整条展开浮出文字（不挤压主内容） */
.side {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--side-rail);
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 12px 16px;
  overflow: hidden;
  transition: width .18s ease, box-shadow .18s ease;
  z-index: 60;
}
.side:hover {
  width: var(--side-w);
  box-shadow: 12px 0 32px rgba(16, 24, 40, .12);
}
.nav-txt {
  opacity: 0;
  transition: opacity .12s ease;
  white-space: nowrap;
}
.side:hover .nav-txt { opacity: 1; }

.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 2px 18px; }
.brand-ic {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--accent, #3b6cf6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand-ic img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.brand-ic svg { display: block; }
.brand-txt { min-width: 0; }
.side-name { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.side-sub { display: block; color: var(--sub); font-size: 11px; margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 9px;
  border-radius: 9px;
  color: #3a3a3c;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  transition: background .12s;
  white-space: nowrap;
}
.nav-item:hover { background: #f5f5f7; }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-item .ic { width: 18px; flex: 0 0 18px; display: flex; opacity: .85; }
.nav-item .ic svg { display: block; }

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 9px; padding: 0 4px 8px; }
.avatar {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar-row { display: flex; align-items: center; gap: 14px; }
.pf-avatar { width: 56px; height: 56px; flex: 0 0 56px; font-size: 22px; cursor: pointer; }
.who-txt { min-width: 0; }
.who-txt b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-txt em { display: block; font-style: normal; color: var(--sub); font-size: 11px; }
.link {
  background: none; border: 0; color: var(--sub); font-size: 12px;
  cursor: pointer; padding: 4px; font-family: inherit;
}
.link:hover { color: var(--danger); }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--side-rail);
  padding: 24px 28px 40px;
  overflow-y: auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.topbar h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.page-sub { margin: 4px 0 0; color: var(--sub); font-size: 13px; }

/* ============ 看板 ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--line);
}
.stat-label { color: var(--sub); font-size: 12px; }
.stat-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.stat-value small { font-size: 13px; font-weight: 400; color: var(--sub); margin-left: 4px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-hint { color: var(--sub); font-size: 12px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--sub);
  padding: 10px 18px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f2f2f5;
  font-size: 13px;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafafa; }
.mono { font-family: "SF Mono", Consolas, monospace; font-size: 12px; }
.muted { color: var(--sub); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: #f2f2f7;
  color: #48484a;
}
.tag-ok { background: #e8f8ec; color: #1d7a35; }
.tag-warn { background: #fff4e5; color: #a35a00; }
.tag-danger { background: #ffecea; color: #b3261e; }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

/* ============ 图库 ============ */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.search { width: 200px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  cursor: pointer;
  color: #3a3a3c;
  transition: all .12s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* 自定义上新时间段：内联日期输入 */
.fresh-dates { display: inline-flex; align-items: center; gap: 6px; }
.fresh-dates input[type=date] {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: #fff;
  color: #3a3a3c;
  font-family: inherit;
}
.fresh-dates input[type=date]:focus { outline: none; border-color: var(--accent); }
.select { width: auto; min-width: 108px; }
.count { margin-left: auto; color: var(--sub); font-size: 13px; }

/* 图库页顶栏合并：标题/副标题并入工具条左侧，EN/刷新/头像等按钮停靠右侧 */
body.on-gallery .topbar { display: none; }
.fb-title { display: flex; align-items: baseline; gap: 8px; margin-right: 6px; min-width: 0; }
.fb-title h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.fb-title .page-sub { margin: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 筛选面板：分组行（标签 + 胶囊），结构化替代原先散乱的一坨 */
.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 16px;
  margin-bottom: 16px;
}
.fp-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid #f2f2f5;
}
.fp-row:last-child { border-bottom: 0; }
.fp-label {
  padding-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
}
/* 一行式筛选面板：全部筛选项横向排在一排（放不下自动换行） */
.fp-inline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 2px 26px;
  padding: 4px 16px;
}
.fp-inline .fp-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 0;
}
.fp-inline .fp-label { padding-top: 0; white-space: nowrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}
.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f2f2f5;
  overflow: hidden;
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card-cover .noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #c7c7cc; font-size: 12px;
}
.badge {
  position: absolute;
  left: 8px; bottom: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
/* 管理员删款按钮：图库 / 设计图库卡片右上角 */
.card-del {
  position: absolute;
  right: 6px; top: 6px;
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.72;
  backdrop-filter: blur(4px);
  transition: background 0.15s, opacity 0.15s, transform 0.15s;
}
.card-del:hover { background: var(--danger); opacity: 1; transform: scale(1.08); }
.card-del:active { transform: scale(0.96); }

.card-body { padding: 10px 12px 12px; }
.card-no { font-weight: 600; font-size: 13px; letter-spacing: 0.01em; }
.card-linked { color: var(--sub); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { color: var(--sub); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-date { color: var(--sub); font-size: 10px; margin-top: 3px; opacity: 0.75; white-space: nowrap; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  color: var(--sub);
  font-size: 13px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--sub);
  padding: 60px 0;
  font-size: 13px;
}

/* ============ 下单表单 ============ */
.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 24px 24px;
  max-width: 880px;
}
.form-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f5;
  align-items: start;
}
.form-row:last-of-type { border-bottom: 0; }
.form-row > label {
  padding-top: 9px;
  font-size: 13px;
  color: #3a3a3c;
}
.form-row > label b { color: var(--danger); font-weight: 400; }
.hint { color: var(--sub); font-size: 12px; margin: 6px 0 0; }
.hint b { color: var(--text); }

.checks { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  background: #fff;
}
.check input { margin: 0; accent-color: var(--accent); }
.check.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  font-size: 13px;
  cursor: pointer;
}
.inline-check input { accent-color: var(--accent); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
}
.form-msg { font-size: 13px; color: var(--sub); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }

/* ============ 上传页 ============ */
.up-style-box { position: relative; }
.up-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}
.up-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.up-suggest-item:hover { background: var(--accent-soft); }
.up-suggest-item img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; background: #f0f0f2; }
.up-suggest-item b { font-size: 14px; }
.up-suggest-item .muted { color: var(--sub); font-size: 12px; }
.up-suggest-item.dim { opacity: .55; }
.up-design-chip { margin-left: 8px; font-size: 11px; padding: 1px 8px; vertical-align: middle; }
.up-empty { padding: 10px 12px; color: var(--sub); font-size: 13px; }

.up-picked {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border: 1px solid #cfe6ff;
  border-radius: 10px;
}
.up-picked img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; background: #fff; }
.up-picked .up-no { font-size: 16px; font-weight: 600; }
.up-picked .up-meta { color: var(--sub); font-size: 12px; }

/* 上传页建档信息：品牌（可手输带候选）/ 年份 / 季节 / 类目 */
.up-metabar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.up-metabar .up-m-plat { width: 150px; }
.up-metabar .up-m-year { width: 96px; }
.up-metabar .up-m-season { width: 88px; }
.up-metabar .up-m-cat { width: 110px; }
.up-metabar .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.up-picked .up-clear { margin-left: auto; }

.up-drop {
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  background: #fafafc;
  transition: border-color 0.15s, background 0.15s;
}
.up-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.up-drop-main { margin: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 10px; }

.up-list { list-style: none; margin: 10px 0 0; padding: 0; }
.up-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fff;
  font-size: 13px;
}
.up-item .up-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item .up-size { color: var(--sub); font-size: 12px; white-space: nowrap; }
.up-item .up-state { font-size: 12px; white-space: nowrap; color: var(--sub); }
.up-item.done .up-state { color: var(--ok); }
.up-item.fail .up-state { color: var(--danger); }
.up-item .up-bar {
  position: relative;
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: #ececf1;
  overflow: hidden;
  flex: none;
}
.up-item .up-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.2s;
}
.up-item.done .up-bar i { background: var(--ok); }
.up-del {
  border: 0;
  background: none;
  color: var(--sub);
  cursor: pointer;
  font-size: 15px;
  padding: 2px 6px;
}
.up-del:hover { color: var(--danger); }

/* ============ 上传：按类型独立卡片 ============ */
.up-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.up-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.up-card.over { border-color: var(--accent); background: var(--accent-soft); }
.up-card.has { border-color: var(--accent); }
.up-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.up-card-head b { font-size: 14px; }

/* 已入库图片的预览小图条 */
.up-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.up-thumb-link { display: block; line-height: 0; }
.up-thumb {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line, #e5e5ea);
  background: #f2f2f7; cursor: zoom-in;
}
span.up-thumb {
  display: flex; align-items: center; justify-content: center;
  color: var(--sub, #8e8e93); font-size: 22px;
}
span.up-thumb.more { font-size: 14px; cursor: default; }
.up-badge {
  font-size: 12px;
  color: var(--sub);
  background: #f2f2f7;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.up-card-body {
  border: 2px dashed var(--line-strong);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  color: var(--sub);
  font-size: 12px;
  background: #fafafc;
  transition: border-color 0.15s, background 0.15s;
}
.up-card-body:hover { border-color: var(--accent); color: var(--accent); }
.up-card-body .up-card-plus { display: block; font-size: 20px; line-height: 1.2; }
.up-card .up-list { margin: 0; }
.up-card .up-item { padding: 6px 0; }
.up-card-act { display: flex; gap: 8px; justify-content: flex-end; }
.up-card-act .btn { padding: 6px 14px; font-size: 13px; }

/* 上传页：宽屏排版（不受下单表单 880px 限制），四个类型卡一排 */
#view-upload .form { max-width: 1680px; padding: 8px 28px 28px; }
#view-upload .up-cards { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1360px) {
  #view-upload .up-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
#view-upload .up-card-body { padding: 24px 12px; }

/* 自动上传：＋追加款号按钮 */
.up-auto-add { min-width: 52px; padding: 0 16px; font-size: 20px; font-weight: 500; line-height: 1; }
.up-auto-list-row { display: block; }
.ual-head { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.ual-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--accent, #3b6cf6);
  background: var(--accent-soft, rgba(59,108,246,.06));
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.ual-main { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ual-no { font-size: 14.5px; letter-spacing: .2px; }
.ual-folder { font-size: 12px; color: var(--sub, #86868b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.ual-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ual-chip {
  font-size: 11.5px; color: var(--text);
  background: #fff; border: 1px solid var(--line, #e5e5ea);
  border-radius: 99px; padding: 1px 8px; white-space: nowrap;
}
.ual-n { font-size: 12px; color: var(--sub, #86868b); white-space: nowrap; }
.ual-rm {
  border: 0; background: transparent; color: var(--sub, #86868b);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.ual-rm:hover { color: #e5484d; background: rgba(229, 72, 77, .08); }

/* ============ 款式预览：编辑图片模式 ============ */
.pv-slide { position: relative; }
.pv-detail-item { position: relative; }
#pvEdit.on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.pv-type .pv-up {
  margin-left: 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  padding: 1px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.pv-type .pv-up:hover { background: var(--accent); color: #fff; }
.pv-del {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.pv-del:hover { background: var(--danger); }

/* ============ 图片预览 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  padding: 40px;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
/* 长图放大：改为按宽度铺满、整页纵向滚动浏览 */
.lightbox.long {
  overflow-y: auto;
  align-items: flex-start;
}
.lightbox.long img {
  max-height: none;
  width: min(760px, 100%);
  height: auto;
}

/* ============ 登录弹层与右上角用户区 ============ */
.login { z-index: 200; }

.login-card { position: relative; }

.login-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 0;
  background: #f2f2f7;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--sub);
  cursor: pointer;
}
.login-close:hover { background: #e5e5ea; color: var(--text); }

.who-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.who-chip b { font-size: 13px; font-weight: 500; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.avatar-sm { width: 24px; height: 24px; flex: 0 0 24px; font-size: 11px; }

.side-login { padding: 4px 0; text-align: left; }
.side-login .link { font-size: 13px; color: var(--accent); }
.side-login .link:hover { color: var(--accent); opacity: .8; }

/* ============ 款式预览弹层 ============ */
.preview {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 32px;
}
.preview-panel {
  width: min(1400px, 100%);
  height: min(92vh, 980px);
  background: var(--card);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

/* 左侧缩略图预览栏 + 右侧内容区 */
.preview-main {
  flex: 1;
  display: flex;
  min-height: 0;
}
/* 左侧栏：图片类型列表 + 缩略图预览条（与右侧卖点栏等宽） */
.pv-side {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  background: var(--soft, #f7f8fa);
}
.pv-side.hidden { display: none; }
.pv-side .pv-types {
  flex: 0 1 auto;
  max-height: 44%;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pv-side .pv-type {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 9px;
  font-size: 12px;
  border-radius: 8px;
}
.pv-side .pv-type .pv-up { align-self: stretch; margin-top: 2px; }
.pv-type-sep {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--sub, #6b7280);
  padding: 6px 2px 0;
}
.pv-thumbs {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-content: start;
  scrollbar-width: thin;
}
.pv-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #eceef2;
  border: 2px solid transparent;
  cursor: pointer;
}
.pv-thumb.on { border-color: var(--accent, #3b6cf6); }
.pv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pv-thumb.vthumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--sub, #6b7280);
}
/* 编辑模式：hover 浮出 删除/重新上传 图标；拖拽排序状态 */
.pv-thumb.editable { position: relative; }
.pv-thumb-ovr {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 3px 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  opacity: 0;
  transition: opacity .12s;
}
.pv-thumb.editable:hover .pv-thumb-ovr { opacity: 1; }
/* 编辑悬浮按钮：统一素色小方块，白描边图标，不再花花绿绿 */
.pv-t-del, .pv-t-rep, .pv-t-mov {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: #fff;
  background: rgba(30, 36, 48, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pv-t-del:hover, .pv-t-rep:hover, .pv-t-mov:hover { background: rgba(30, 36, 48, .88); }
/* 「移动到…」分组弹出菜单 */
.pv-move-menu {
  z-index: 3000;
  min-width: 150px;
  max-width: 240px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line, #e2e5ea);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  padding: 6px;
}
.pv-mm-head {
  font-size: 12px;
  color: var(--sub, #6b7280);
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--line, #e2e5ea);
  margin-bottom: 4px;
}
.pv-mm-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--ink, #1f2430);
}
.pv-mm-item:hover { background: var(--soft, #f2f4f7); }
.pv-mm-item.empty { color: var(--sub, #9aa1ad); }
.pv-thumb.dragging { opacity: .45; }
.pv-thumb.drop { border-color: var(--accent, #3b6cf6); box-shadow: 0 0 0 2px rgba(59,108,246,.35); }
.pv-thumb.pv-add {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--sub, #6b7280);
  background: transparent;
  border: 2px dashed #c4cad3;
  box-sizing: border-box;
}
.pv-thumb.pv-add:hover { border-color: var(--accent, #3b6cf6); color: var(--accent, #3b6cf6); }
.pv-dl {
  flex-shrink: 0;
  width: 100%;
  padding: 9px 6px;
  border: 0;
  border-radius: 8px;
  background: var(--accent, #3b6cf6);
  color: #fff;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.pv-dl:hover { filter: brightness(1.08); }
.pv-dl:disabled { opacity: .6; cursor: default; }
.pv-dl.hidden { display: none; }
@media (max-width: 1080px) {
  .pv-side { width: 190px; }
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.preview-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.preview-title b { font-size: 17px; letter-spacing: 0.01em; }
.preview-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.pv-viewer {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  padding: 0;
}

/* 中间预览区顶部：类型分页 chips（主图类一排、详情类一排） */
.pv-chiprows {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px 0;
}
.pv-chiprows.hidden { display: none; }
.pv-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pv-chiprow.hidden { display: none; }
.pv-chipbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line, #e3e6ee);
  background: #fff;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--ink, #2a3040);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pv-chip-cnt {
  font-style: normal;
  font-size: 11px;
  line-height: 16px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--soft, #f0f2f6);
  color: var(--sub, #6b7280);
  font-variant-numeric: tabular-nums;
}
.pv-chipbtn:hover { border-color: var(--accent, #3b6cf6); color: var(--accent, #3b6cf6); }
.pv-chipbtn.on {
  background: var(--accent, #3b6cf6);
  border-color: var(--accent, #3b6cf6);
  color: #fff;
}
.pv-chipbtn.on .pv-chip-cnt { background: rgba(255, 255, 255, .25); color: #fff; }
.pv-chipbtn.dim {
  opacity: .5;
  cursor: default;
}
.pv-chipbtn.dim:hover { border-color: var(--line, #e3e6ee); color: var(--ink, #2a3040); }

/* 中间预览区底部：「附加文件」栏（白底/透明/SKU/长图） */
.pv-extra {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--line, #e3e6ee);
  background: var(--soft, #f7f8fa);
}
.pv-extra.hidden { display: none; }
.pv-extra-label {
  font-size: 12px;
  color: var(--sub, #6b7280);
  margin-right: 4px;
}
.pv-extra .pv-chipbtn.on { background: var(--accent, #3b6cf6); }

/* 中间预览区主体（图片舞台）：chips 与附加文件栏之间 */
.pv-stage-wrap {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
}
/* 单类型页：轮播撑满主区域 */
.pv-stage.pv-single { padding-bottom: 0; }
.pv-stage.pv-single .pv-swiper-wrap {
  flex: 1;
  height: auto;
  min-height: 0;
}
.pv-stage {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .12);
}
.pv-stage video {
  max-width: 100%;
  max-height: 100%;
}

/* 详情类分组：纵向无缝堆叠，往下滚着看（长图/平铺详情/模特详情） */
.pv-stage.pv-scroll {
  position: relative;
  align-self: stretch;
  height: 100%;
  max-height: 100%;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .08);
}
.pv-stage.pv-scroll img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
}
.pv-stage.pv-scroll img + img {
  border-top: 1px solid #f0f1f5;
}
.pv-stage.pv-scroll video {
  display: block;
  width: 100%;
  max-height: none;
}
.pv-stage.pv-scroll::-webkit-scrollbar {
  width: 8px;
}
.pv-stage.pv-scroll::-webkit-scrollbar-thumb {
  background: #d4d7de;
  border-radius: 999px;
}
.pv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 20, 27, .45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.pv-nav:hover { background: rgba(17, 20, 27, .65); }
.pv-nav.prev { left: 14px; }
.pv-nav.next { right: 14px; }
.pv-pos {
  position: absolute;
  right: 16px;
  bottom: 12px;
  background: rgba(17, 20, 27, .6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* 右侧信息栏：款号 + 卖点数据（可复制）+ 打包下载（可折叠，手柄在右缘） */
.pv-info {
  width: 240px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: width .22s ease;
  overflow: hidden;
}
.pv-info-inner {
  flex: 1;
  min-width: 0;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.pv-info.collapsed .pv-info-inner { display: none; }
.pv-info.collapsed { width: 26px; }
.pv-info-fold {
  width: 26px;
  flex-shrink: 0;
  border: none;
  border-left: 1px solid var(--line);
  background: var(--soft, #eef0f5);
  color: var(--sub, #666);
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pv-info-fold:hover { background: #e7eaef; color: var(--ink, #333); }
.pv-info-fold-arr {
  font-size: 16px;
  line-height: 1;
  transition: transform .22s ease;
}
.pv-info.collapsed .pv-info-fold-arr { transform: rotate(180deg); }
.pv-info-fold-txt {
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  font-size: 11.5px;
  white-space: nowrap;
}
.pv-points { display: flex; flex-direction: column; gap: 12px; }
.pv-points.hidden { display: none; }
.pv-points-tip,
.pv-points-empty {
  font-size: 12.5px;
  color: var(--sub, #6b7280);
  padding: 10px 2px;
}
.pv-point-sec {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.pv-point-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--soft, #f7f8fa);
  border-bottom: 1px solid var(--line);
}
.pv-point-head b { font-size: 13px; }
.pv-point-copy {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--accent, #3b6cf6);
  flex-shrink: 0;
}
.pv-point-copy:hover { border-color: var(--accent, #3b6cf6); }
.pv-point-text {
  padding: 10px 12px;
  font-size: 12.8px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text, #1f2329);
  user-select: text;
}
.pv-size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pv-size-table th,
.pv-size-table td {
  border: 1px solid var(--line);
  padding: 5px 6px;
  text-align: center;
  white-space: nowrap;
  user-select: text;
}
.pv-size-table th {
  background: var(--soft, #f7f8fa);
  font-weight: 600;
  color: var(--sub, #6b7280);
}
.pv-size-table td:first-child,
.pv-size-table th:first-child {
  text-align: left;
  font-weight: 600;
}
.pv-info-head b {
  font-size: 19px;
  letter-spacing: .01em;
  display: block;
}
.pv-info-head span {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
}

/* ===== 预览右侧新增业务单元：上半库存信息、下半工厂订单信息（可折叠，向左展开） ===== */
.pv-biz {
  width: 340px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: width .22s ease;
  overflow: hidden;
  background: var(--soft, #f7f8fa);
}
/* 折叠 / 展开手柄（细条） */
.pv-biz-fold {
  width: 26px;
  flex-shrink: 0;
  border: none;
  border-right: 1px solid var(--line);
  background: var(--soft, #eef0f5);
  color: var(--sub, #666);
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pv-biz-fold:hover { background: #e7eaef; color: var(--ink, #333); }
.pv-biz-fold-arr {
  font-size: 16px;
  line-height: 1;
  transition: transform .22s ease;
}
.pv-biz.collapsed .pv-biz-fold-arr { transform: rotate(180deg); }
.pv-biz-fold-txt {
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  font-size: 11.5px;
  white-space: nowrap;
}
.pv-biz-inner {
  flex: 1;
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}
.pv-biz.collapsed .pv-biz-inner { display: none; }
.pv-biz.collapsed { width: 26px; }
.pv-biz-sec {
  flex: 1;
  min-height: 180px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pv-biz-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pv-biz-sec-head b { font-size: 14px; }
.pv-biz-tag {
  font-size: 11px;
  color: var(--sub);
  background: var(--soft, #eef0f5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.pv-biz-tag-live {
  color: #16794c;
  background: #e8f7ef;
  border-color: #bfe8d2;
}
.pv-biz-sec-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.pv-biz-empty {
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sub);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
}
@media (max-width: 1080px) {
  .pv-biz { width: 260px; }
  .pv-biz.collapsed { width: 26px; }
}

/* 库存栏内容：合计 + 按款号分组的 SKU 明细表 */
.pv-stock-sum {
  font-size: 12.5px;
  color: var(--ink, #2a3040);
  background: var(--soft, #eef4ff);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.pv-stock-sum b { color: var(--accent, #3b6cf6); font-size: 15px; }
.pv-stock-no {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink, #2a3040);
  margin: 10px 0 4px;
}
.pv-stock-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.pv-stock-t th, .pv-stock-t td {
  padding: 4px 5px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.pv-stock-t td.pv-q, .pv-stock-t td.pv-pt { white-space: nowrap; }
.pv-stock-t th { color: var(--sub, #9095a3); font-weight: 500; }
.pv-stock-t td.pv-q { font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-sku-code {
  display: block;
  font-size: 10.5px;
  color: var(--sub, #9095a3);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}

.pv-types {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pv-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13.5px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease;
}
.pv-type span { min-width: 0; }
.pv-type b {
  font-variant-numeric: tabular-nums;
  color: var(--sub, #6b7280);
  font-weight: 600;
}
.pv-type:hover { border-color: var(--accent, #3b6cf6); }
.pv-type.on {
  border-color: var(--accent, #3b6cf6);
  background: #f0f4ff;
}
.pv-type.on b { color: var(--accent, #3b6cf6); }
.pv-type.dim {
  opacity: .45;
  cursor: default;
}
.pv-type.dim:hover { border-color: var(--line); }
.pv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.pv-item {
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f5;
  aspect-ratio: 1;
  cursor: zoom-in;
  position: relative;
}
.pv-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pv-item video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #111;
  display: block;
}
/* 长图：独占整行，按原始比例完整展示 */
.pv-item.pv-long {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  max-width: 720px;
  justify-self: center;
  background: #fff;
}
.pv-item.pv-long img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.pv-empty {
  text-align: center;
  color: var(--sub);
  padding: 70px 0;
  font-size: 13px;
}
.pv-count { color: var(--sub); font-size: 12px; margin: 4px 0 14px; }

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row > label { padding-top: 0; }
}

/* ===== 设计图库卡片底部 ===== */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 12px;
}
.d-tag {
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.d-ok { background: #e8f8ec; color: #1d7a35; }
.d-warn { background: #fff4e5; color: #a35a00; }
.d-over { background: #ffecea; color: #b3261e; }
.d-dim { background: var(--soft, #f0f1f5); color: var(--sub, #6b7280); }
.d-by {
  font-size: 12px;
  color: var(--sub, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 看板：超期标记与进度条 ===== */
.overdue {
  color: #b3261e !important;
  font-weight: 600;
}
.overdue .tag { margin-left: 6px; font-weight: 400; }
.prog {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prog-bar {
  flex: 1;
  min-width: 60px;
  max-width: 160px;
  height: 8px;
  border-radius: 999px;
  background: #eceef2;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}
.p-flat { background: var(--accent, #3b6cf6); }
.p-model { background: #1d7a35; }
.p-video { background: #a35a00; }
.prog-num {
  font-size: 12px;
  color: var(--sub, #6b7280);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ===== 新建设计款弹层 ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 20, 27, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}
.modal.hidden { display: none; }
.modal-card {
  position: relative;
  width: 560px;
  max-width: 100%;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
  padding: 20px 22px 18px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-head b { font-size: 16px; }
.modal-card .form-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.modal-card .form-row > label { color: var(--sub); font-size: 13px; padding-top: 9px; }
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f3f7;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  line-height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 20, 27, .6);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

/* ===== 页面内轻提示 ===== */
.pc-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -12px);
  background: rgba(17, 20, 27, .88);
  color: #fff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all .22s ease;
  z-index: 80;
}
.pc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 图库批量下载 ===== */
.batch-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, .18);
  z-index: 50;
  white-space: nowrap;
}
.batch-bar.hidden { display: none; }
.batch-tlabel { font-size: 13px; color: var(--sub, #7a7f8c); white-space: nowrap; }
.batch-types { gap: 4px; }
.batch-types .chip-sm {
  padding: 3px 10px;
  font-size: 12px;
}
/* 类型多了允许换行，别把操作条撑出屏幕 */
.batch-bar { flex-wrap: wrap; max-width: min(94vw, 1100px); justify-content: center; row-gap: 6px; }
.batch-info {
  font-size: 13px;
  color: var(--text, #1f2430);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.pick {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1.5px solid #c9ccd4;
  color: #fff;
  font-size: 13px;
  line-height: 19px;
  text-align: center;
  box-sizing: border-box;
  z-index: 3;
  transition: all .15s ease;
}
.pick.on {
  background: var(--accent, #3b6cf6);
  border-color: var(--accent, #3b6cf6);
}
.card.sel {
  outline: 2px solid var(--accent, #3b6cf6);
  outline-offset: -2px;
}
.card.picking .card-cover img { transition: filter .15s ease; }
.card.picking:hover .card-cover img { filter: brightness(.96); }

/* ===== 预览改版：主图轮播 + 详情页分区（对齐手机端排版） ===== */
.pv-stage.pv-flow {
  display: flex;
  flex-direction: column;
  /* 覆盖 .pv-stage 的 center 居中：滚动容器里居中会让溢出内容跑到顶部外拉不回来 */
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
  box-sizing: border-box;
}
.pv-stage.pv-flow::-webkit-scrollbar { width: 8px; }
.pv-stage.pv-flow::-webkit-scrollbar-thumb { background: #d4d7de; border-radius: 999px; }
.pv-swiper-wrap {
  position: relative;
  flex: none;
  height: 64%;
  min-height: 340px;
  display: flex;
}
.pv-swiper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .08);
}
.pv-swiper::-webkit-scrollbar { height: 8px; }
.pv-swiper::-webkit-scrollbar-thumb { background: #d4d7de; border-radius: 999px; }
.pv-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.pv-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 6px;
}
.pv-slide video { max-width: 100%; max-height: 100%; }

.pv-detail-sec {
  flex: none;
  display: flex;
  flex-direction: column;
}
.pv-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pv-detail-head b { font-size: 14px; }
.pv-detail-hint { color: var(--sub, #7a8194); font-size: 12px; }
.pv-pills { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.pv-pill {
  border: 1px solid var(--line, #e3e6ee);
  background: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink, #2a3040);
}
.pv-pill:hover { border-color: var(--accent, #3b6cf6); }
.pv-pill.on {
  background: var(--accent, #3b6cf6);
  border-color: var(--accent, #3b6cf6);
  color: #fff;
}
.pv-detail-body {
  flex: none;
  min-height: 40vh; /* 图片未加载完时也保持可滚高度，避免点详情胶囊跳不过去 */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .08);
}
.pv-detail-body img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.pv-detail-body img + img { border-top: none; }
.pv-detail-body::-webkit-scrollbar { width: 8px; }
.pv-detail-body::-webkit-scrollbar-thumb { background: #d4d7de; border-radius: 999px; }

/* 主图轮播左右箭头 */
.pv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(16, 24, 40, .18);
  color: #2a3040;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .15s, color .15s;
  padding-bottom: 3px;
}
.pv-arrow:hover { background: var(--accent, #3b6cf6); color: #fff; }
.pv-arrow:disabled { opacity: .3; cursor: default; }
.pv-arrow:disabled:hover { background: rgba(255, 255, 255, .92); color: #2a3040; }
.pv-arrow-l { left: 12px; }
.pv-arrow-r { right: 12px; }

/* 排序箭头：编辑模式在翻页箭头上方，小一号，带「排序」提示 */
.pv-sort {
  width: 30px;
  height: 30px;
  font-size: 18px;
  padding-bottom: 2px;
  top: calc(50% - 56px);
}
.pv-sort:disabled { opacity: .25; }

/* 返回顶部按钮：跟随整列滚动出现 */
.pv-top {
  position: absolute;
  right: 16px;
  bottom: 52px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 20, 27, .6);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 3;
}
.pv-top:hover { background: rgba(17, 20, 27, .8); }
.pv-top.show { opacity: 1; pointer-events: auto; }

/* 主图分组胶囊：主图与详情页之间，下拉时常驻顶部 */
.pv-caps {
  position: sticky;
  top: 0;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  background: #eef0f5;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .10);
  overflow-x: auto;
  scrollbar-width: none;
}
.pv-caps::-webkit-scrollbar { display: none; }
.pv-cap {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 7px 8px;
  font-size: 13px;
  color: #5a6274;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.pv-cap:hover { color: #2a3040; }
.pv-cap.on {
  background: #fff;
  color: #17141f;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .14);
}

/* ===== 登录弹窗页签：扫码 / 访客登录 / 访客注册 ===== */
.login-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 4px 0 14px;
  background: var(--soft, #f5f6f8);
  border-radius: 999px;
  padding: 4px;
}
.ltab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 7px 0;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--sub, #6b7280);
  transition: background .15s, color .15s;
}
.ltab.on { background: #fff; color: var(--ink, #2a3040); font-weight: 600; box-shadow: 0 1px 4px rgba(20,30,60,.10); }

.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.login-form .input { width: 100%; box-sizing: border-box; }

/* ===== 账号管理（管理员） ===== */
.ac-invite {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 0 10px;
}
.ac-code {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent, #3b6cf6);
  background: var(--soft, #f5f6f8);
  border: 1px dashed var(--line, #e3e6ee);
  border-radius: 10px;
  padding: 8px 18px;
  user-select: all;
}
.ac-usage { font-size: 13px; color: var(--sub, #6b7280); font-variant-numeric: tabular-nums; }
.ac-plats { display: flex; gap: 4px 14px; flex-wrap: wrap; }
.ac-plats .inline-check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.ac-none-tip { display: block; font-size: 12px; margin-top: 4px; }
.ac-st { font-size: 12.5px; white-space: nowrap; }
.ac-st.on { color: #16a34a; }
.ac-st.off { color: #dc2626; }
.ac-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-ops .btn { padding: 4px 10px; font-size: 12.5px; }
/* 账号管理表头吸顶：表格自身作为纵向滚动容器，滚动时表头钉在容器顶部（浮窗效果）。
   全局 .table-wrap 只有 overflow-x:auto（无高度限制不产生纵向滚动），这里给账号表补上
   overflow:auto + max-height，让 sticky 有明确的纵向滚动祖先可参照，表头才能吸顶。 */
#view-accounts .table-wrap { max-height: calc(100vh - 200px); overflow: auto; }
#view-accounts #acMTable thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fafafa;
  box-shadow: inset 0 -1px 0 var(--line, #e3e6ee);
}
/* 账号管理·成员表：岗位下拉（部门 / 角色） */
.ac-sel { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card, #fff); color: inherit; font-size: 12.5px; max-width: 118px; }
.ac-sel:disabled { opacity: .6; cursor: not-allowed; }
.ac-remark { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card, #fff); color: inherit; font-size: 12.5px; width: 118px; }
.ac-remark::placeholder { color: var(--muted, #999); font-size: 11.5px; }
.ac-del { color: #dc2626 !important; }
.ac-name { font-weight: 600; }
/* 下载权限编辑器 */
.ac-dl { min-width: 260px; }
.ac-dl-head { display: flex; align-items: center; gap: 12px; }
.ac-dl-allow { font-weight: 600; color: var(--accent, #1f6feb); }
.btn-link { background: none; border: 0; padding: 2px 0; color: var(--accent, #1f6feb); cursor: pointer; font-size: 12.5px; }
.btn-link:hover { text-decoration: underline; }
.ac-dl-groups { margin-top: 8px; padding: 10px 12px; background: rgba(127,127,127,.06); border-radius: 8px; }
.ac-dl-tools { display: flex; gap: 14px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(127,127,127,.16); }
.ac-dl-dim { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; }
.ac-dl-dim-label { flex: 0 0 40px; font-size: 12.5px; color: var(--sub, #6b7280); padding-top: 2px; }
.ac-dl-chips { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ac-dl-chips .inline-check, .ac-dl-dim .inline-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; cursor: pointer; }

/* ===== AI素材库 ===== */
.ai-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ai-style-input { width: 240px; }
.ai-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1000px) { .ai-layout { grid-template-columns: 1fr; } }
.ai-styles { padding-bottom: 8px; }
.ai-style-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 72vh;
  overflow-y: auto;
  padding: 4px;
}
.ai-style-card {
  border: 1px solid var(--line, #e3e6ee);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: border-color .12s, box-shadow .12s;
}
.ai-style-card:hover { border-color: var(--accent, #3b6cf6); }
.ai-style-card.on { border-color: var(--accent, #3b6cf6); box-shadow: 0 0 0 2px var(--accent-soft, rgba(59,108,246,.15)); }
/* 封面统一 2:3 竖版（模特图常规比例），超出部分居中裁切 */
.ai-style-card .ai-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 7px;
  background: #f3f4f6;
}
/* 「自定义」徽章 */
.ai-cbadge {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #7c3aed;
  background: #f1e9ff;
  border: 1px solid #ddc9ff;
  border-radius: 5px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: 1px;
}
/* 单张图备注 */
.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #fbfaff;
  border: 1px dashed #e3ddf7;
  font-size: 12px;
  line-height: 1.5;
  color: #5b5470;
  word-break: break-word;
}
.ai-note.empty { background: transparent; border-color: transparent; padding: 0; }
.ai-note-btn {
  flex: none;
  margin-left: auto;
  border: 0;
  background: none;
  color: #7c3aed;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0 2px;
}
.ai-note-btn:hover { text-decoration: underline; }
.ai-note.empty .ai-note-btn { margin-left: 0; color: #9aa1ac; }

/* 左侧纵向排布两个独立面板：款号素材 / 自定义图库 */
.ai-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
/* 自定义图库面板：紫色点缀以示区分 */
.ai-custom-panel { border-color: #ddc9ff; }
.ai-custom-panel .panel-head h3 { color: #7c3aed; }
.ai-cup-btn {
  flex: none;
  font-size: 12.5px;
  padding: 3px 10px;
  color: #7c3aed;
  border-color: #ddc9ff;
  background: #f8f4ff;
}
.ai-cup-btn:hover { background: #f1e9ff; }
.ai-custom-list { max-height: 40vh; }
.ai-empty-tip {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #9aa1ac;
  line-height: 1.6;
  padding: 4px 2px 10px;
}
/* 右侧未选中占位 */
.ai-files-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 320px;
  color: #9aa1ac;
  text-align: center;
  padding: 40px 20px;
}
.ai-files-empty b { font-size: 15px; color: #6b7280; }
.ai-files-empty span { font-size: 12.5px; }
/* 左侧列表上方的筛选行 */
.ai-ffilter {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
}
.ai-fsel {
  flex: 1;
  min-width: 0;
  padding: 4px 6px;
  font-size: 12px;
}
.ai-style-card .ai-style-no { font-weight: 600; font-size: 13.5px; }
.ai-style-card .muted { font-size: 12px; }
.ai-files-panel { min-height: 300px; }
.ai-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ai-file {
  border: 1px solid var(--line, #e3e6ee);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.ai-file img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f5f6f8;
  cursor: zoom-in;
}
.ai-file-ops {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 8px;
  border-top: 1px solid var(--line, #e3e6ee);
}
.ai-file-ops .btn { padding: 4px 10px; font-size: 12.5px; text-decoration: none; }

/* ===== 侧栏底部账号管理 ===== */
.side-foot .nav-item { width: 100%; }
.side-foot .nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }

/* AI模特参考素材：品牌/季节下拉、款式卡片标签、文件区操作 */
.ai-sel { width: 140px; }
.ai-sel-sm { width: 108px; }
.ai-tag {
  font-size: 11.5px;
  color: var(--sub, #6b7280);
  background: var(--soft, #f3f4f6);
  border-radius: 6px;
  padding: 1px 6px;
  align-self: flex-start;
}
.ai-files-ops { display: flex; gap: 8px; align-items: center; }

/* 款式卡：悬停出现「改品牌/季节」小按钮 */
.ai-style-card { position: relative; }
.ai-style-card:focus-visible { outline: 2px solid var(--accent, #3b6cf6); outline-offset: 1px; }
.ai-edit {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(16, 24, 40, .18);
  color: var(--sub, #6b7280);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, color .12s, background .12s;
}
.ai-style-card:hover .ai-edit,
.ai-style-card.on .ai-edit,
.ai-edit:focus-visible { opacity: 1; }
.ai-edit:hover { color: var(--accent, #3b6cf6); background: #fff; }
.ai-card-brand { font-size: 11.5px; color: var(--sub, #6b7280); }
.ai-card-brand b { color: var(--text, #111827); font-weight: 500; }

/* ===== 全局浮动提示（所有页面都看得到） ===== */
.toast-box {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  max-width: min(560px, 88vw);
  background: #1f2430;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  padding: 9px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .24);
  animation: toast-in .18s ease-out;
  word-break: break-word;
}
.toast.ok { background: #12855b; }
.toast.err { background: #c0392b; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ===== AI素材上传队列（右下角浮层，逐张进度） ===== */
.aiq {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 190;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line, #e3e6ee);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.aiq.hidden { display: none; }
.aiq-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
  border-bottom: 1px solid var(--line, #e3e6ee);
}
.aiq-head b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.aiq-sum { font-size: 12px; color: var(--sub, #6b7280); margin-left: auto; white-space: nowrap; }
.aiq-btn {
  border: 1px solid var(--line, #e3e6ee);
  background: #fff;
  color: var(--sub, #6b7280);
  border-radius: 7px;
  font-size: 12px;
  padding: 2px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.aiq-btn:hover { color: var(--accent, #3b6cf6); border-color: var(--accent, #3b6cf6); }
.aiq-x {
  border: 0;
  background: transparent;
  color: #9aa1ad;
  font-size: 17px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.aiq-x:hover { color: #4b5563; }
.aiq-body {
  max-height: 246px;
  overflow-y: auto;
  padding: 6px 12px 10px;
}
.aiq-target {
  padding: 6px 12px 0;
  font-size: 11.5px;
  color: var(--sub, #6b7280);
}
.aiq-target:empty { display: none; }
.aiq.collapsed .aiq-body { display: none; }
.aiq.collapsed .aiq-target { display: none; }
.aiq-item {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line, #eceef4);
}
.aiq-item:last-child { border-bottom: 0; }
.aiq-row { display: flex; gap: 9px; align-items: flex-start; }
.aiq-i { flex: 1; min-width: 0; }
.aiq-thumb {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f3f7;
  border: 1px solid var(--line, #e3e6ee);
}
.aiq-thumb-v {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa1ad;
  font-size: 15px;
  background: #eef1f6;
}
.aiq-row1 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
}
.aiq-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text, #111827);
}
.aiq-pct { font-variant-numeric: tabular-nums; color: var(--sub, #6b7280); font-size: 12px; }
.aiq-bar {
  height: 4px;
  border-radius: 3px;
  background: #eef0f5;
  margin: 5px 0 4px;
  overflow: hidden;
}
.aiq-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--accent, #3b6cf6);
  transition: width .18s linear;
}
.aiq-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #98a0ad;
}
.aiq-item[data-st="wait"] .aiq-pct { color: #b0b7c3; }
.aiq-item[data-st="ok"] .aiq-bar > i { background: #17a673; }
.aiq-item[data-st="ok"] .aiq-pct { color: #12855b; }
.aiq-item[data-st="ok"] .aiq-st { color: #12855b; }
.aiq-item[data-st="err"] .aiq-bar > i { background: #dc2626; }
.aiq-item[data-st="err"] .aiq-pct { color: #dc2626; }
.aiq-item[data-st="err"] .aiq-st { color: #dc2626; }
.aiq-retry { margin-right: 6px; }
.aiq-foot { padding: 0 12px 10px; display: flex; gap: 8px; }
.aiq-foot.hidden { display: none; }

/* 修改款式资料小弹层 */
.ai-edit-card .hint { margin-top: 2px; }
.ai-edit-card .form-actions { margin-top: 14px; }

/* 必填项没选时的闪烁提示（避免“点了没反应”的错觉） */
.flash { animation: field-flash .55s ease 2; }
@keyframes field-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); border-color: var(--line, #e3e6ee); }
  50% { box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); border-color: #dc2626; }
}

/* ============ 看板 · 科技风数据大屏（深色 / 浅色双主题） ============ */
.bd {
  /* 深色主题（默认） */
  --bd-fg: #d7e5ff;
  --bd-strong: #f2f9ff;
  --bd-sub: rgba(150, 190, 240, .62);
  --bd-ct: rgba(200, 222, 255, .78);
  --bd-border: rgba(92, 152, 255, .15);
  --bd-card-a: rgba(12, 20, 36, .82);
  --bd-card-b: rgba(7, 11, 20, .86);
  --bd-kpi-a: rgba(18, 30, 52, .92);
  --bd-kpi-b: rgba(8, 13, 24, .92);
  --bd-track: rgba(90, 150, 255, .10);
  --bd-grid-line: rgba(90, 160, 255, .07);
  --bd-dash: rgba(92, 152, 255, .14);
  --bd-emp: rgba(150, 185, 235, .5);
  --bd-halo: rgba(34, 211, 238, .10);
  --bd-soft: rgba(92, 152, 255, .12);
  --bd-ring-bg: rgba(120, 190, 255, .10);
  --bd-ord-a: rgba(16, 26, 45, .9);
  --bd-ord-b: rgba(8, 13, 24, .9);
  --bd-bg:
    radial-gradient(900px 420px at 8% -10%, rgba(34, 211, 238, .18), transparent 62%),
    radial-gradient(760px 380px at 96% -6%, rgba(168, 85, 247, .18), transparent 62%),
    radial-gradient(700px 420px at 50% 112%, rgba(59, 130, 246, .14), transparent 60%),
    linear-gradient(180deg, #070c16 0%, #04070e 100%);
  --bd-shadow: inset 0 0 80px rgba(24, 86, 170, .18), 0 14px 44px rgba(3, 8, 20, .35);

  --cy: #22d3ee; --pu: #a855f7; --gr: #34d399; --am: #fbbf24;
  position: relative;
  overflow: hidden;
  padding: 18px 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--bd-border);
  color: var(--bd-fg);
  font-variant-numeric: tabular-nums;
  background: var(--bd-bg);
  box-shadow: var(--bd-shadow);
}

/* 浅色主题：iOS 灰白体系 —— 分组灰底 / 纯白卡 / 极轻阴影 / 黑作强调色 */
.bd.light {
  --bd-fg: #3c4045;
  --bd-strong: #1d1d1f;
  --bd-sub: #86868b;
  --bd-ct: #1d1d1f;
  --bd-border: rgba(0, 0, 0, .055);
  --bd-card-a: #ffffff;
  --bd-card-b: #ffffff;
  --bd-kpi-a: #ffffff;
  --bd-kpi-b: #ffffff;
  --bd-track: #f0f0f3;
  --bd-grid-line: transparent;
  --bd-dash: rgba(0, 0, 0, .07);
  --bd-emp: #a1a1a6;
  --bd-halo: transparent;
  --bd-soft: #f5f5f7;
  --bd-ring-bg: #e8e8ed;
  --bd-ord-a: #fbfbfc;
  --bd-ord-b: #fbfbfc;
  --bd-bg:
    radial-gradient(1100px 460px at 50% -20%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #f6f7f9 0%, #eef0f3 100%);
  --bd-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 44px -22px rgba(0, 0, 0, .20);
  color: var(--bd-fg);
  border-radius: 22px;
  border-color: rgba(0, 0, 0, .05);
  padding: 22px 22px 16px;
}

/* 色系（浅色下压深，保证白底可读） */
.bd-cy { --tone: #22d3ee; }
.bd-pu { --tone: #a855f7; }
.bd-gr { --tone: #34d399; }
.bd-am { --tone: #fbbf24; }
.bd-flat { --tone: #22d3ee; }
.bd-model { --tone: #a855f7; }
.bd-video { --tone: #34d399; }
.bd.light .bd-cy, .bd.light .bd-flat { --tone: #1d1d1f; }
.bd.light .bd-pu, .bd.light .bd-model { --tone: #545458; }
.bd.light .bd-gr, .bd.light .bd-video { --tone: #8e8e93; }
.bd.light .bd-am { --tone: #3a3a3c; }

/* 网格底纹 + 扫描线 */
.bd-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--bd-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bd-grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 42%, transparent 88%);
  mask-image: radial-gradient(circle at 50% 0%, #000 42%, transparent 88%);
}
.bd-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bd-halo), transparent);
  animation: bdScan 7.5s linear infinite;
}
@keyframes bdScan {
  0% { transform: translateY(-170px); }
  100% { transform: translateY(1000px); }
}

/* 头部 */
.bd-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bd-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.bd-title {
  margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 3px; color: var(--bd-strong);
  text-shadow: 0 0 22px rgba(34, 211, 238, .45);
}
.bd.light .bd-title { text-shadow: 0 1px 0 #fff, 0 0 18px rgba(8, 145, 178, .18); }
.bd-title::after {
  content: ''; display: block; width: 54px; height: 2px; margin-top: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cy), rgba(34, 211, 238, 0));
}
.bd.light .bd-title::after { background: linear-gradient(90deg, #0891b2, rgba(8, 145, 178, 0)); }
.bd-sub { margin: 8px 0 0; font-size: 11.5px; letter-spacing: .6px; color: var(--bd-sub); }
.bd-live {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08);
  font-size: 11.5px; color: #9fe9f7; letter-spacing: .8px;
}
.bd.light .bd-live { color: #0e7490; border-color: rgba(8, 145, 178, .3); background: rgba(8, 145, 178, .07); }
.bd-live i { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: bdPulse 1.8s ease-in-out infinite; }
.bd.light .bd-live i { background: #0891b2; box-shadow: 0 0 8px rgba(8, 145, 178, .8); }
@keyframes bdPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.78); } }

/* 主题切换 */
.bd-theme {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--bd-border); background: var(--bd-track);
}
.bd-theme button {
  border: 0; background: none; cursor: pointer; padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: .6px; color: var(--bd-sub); transition: color .15s, background .15s;
}
.bd-theme button:hover { color: var(--bd-strong); }
.bd-theme button.on {
  color: #06121e; font-weight: 600;
  background: linear-gradient(120deg, #22d3ee, #3b82f6);
  box-shadow: 0 0 12px rgba(34, 211, 238, .35);
}
.bd.light .bd-theme button.on {
  color: #fff; background: linear-gradient(120deg, #0891b2, #2563eb);
  box-shadow: 0 2px 8px rgba(37, 99, 235, .28);
}

/* 指标卡 */
.bd-kpis { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.bd-kpi {
  position: relative; overflow: hidden; padding: 13px 14px 12px; border-radius: 12px;
  border: 1px solid var(--bd-border);
  background: linear-gradient(155deg, var(--bd-kpi-a), var(--bd-kpi-b));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}
.bd.light .bd-kpi { box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 18px rgba(15, 23, 42, .06); }
.bd-kpi::before,
.bd-kpi::after {
  content: ''; position: absolute; width: 13px; height: 13px; opacity: .85;
}
.bd-kpi::before { left: 0; top: 0; border-left: 2px solid var(--tone); border-top: 2px solid var(--tone); }
.bd-kpi::after { right: 0; bottom: 0; border-right: 2px solid var(--tone); border-bottom: 2px solid var(--tone); }
.bd-kpi-l { display: block; font-size: 11.5px; letter-spacing: 1.2px; color: var(--bd-sub); }
.bd-kpi-v { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.bd-kpi-v b {
  font-size: 32px; font-weight: 700; line-height: 1; color: var(--bd-strong); letter-spacing: .5px;
  text-shadow: 0 0 18px rgba(34, 211, 238, .35);
  text-shadow: 0 0 18px color-mix(in srgb, var(--tone) 55%, transparent);
}
.bd.light .bd-kpi-v b { text-shadow: 0 1px 0 #fff, 0 0 14px color-mix(in srgb, var(--tone) 28%, transparent); }
.bd-kpi-v small { font-size: 11.5px; color: var(--bd-sub); }
.bd-kpi-s { display: block; height: 3px; margin-top: 11px; border-radius: 3px; background: var(--bd-track); overflow: hidden; }
.bd-kpi-s i {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 25%, transparent), var(--tone));
  box-shadow: 0 0 12px var(--tone);
  transition: width .95s cubic-bezier(.22, .9, .28, 1);
}

/* 卡片布局 */
.bd-row { position: relative; display: grid; grid-template-columns: 1.1fr .95fr 1fr; gap: 14px; margin-top: 14px; }
.bd-row-2 { grid-template-columns: 1.45fr 1fr; }
.bd-card {
  position: relative; overflow: hidden; padding: 13px 14px 14px; border-radius: 14px;
  border: 1px solid var(--bd-border);
  background: linear-gradient(165deg, var(--bd-card-a), var(--bd-card-b));
}
.bd.light .bd-card { box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 22px rgba(15, 23, 42, .06); }
.bd-ct {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px;
  font-size: 12.5px; letter-spacing: 1.2px; color: var(--bd-ct);
}
.bd-ct span { position: relative; padding-left: 10px; }
.bd-ct span::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 12px; margin-top: -6px;
  border-radius: 2px; background: linear-gradient(180deg, #22d3ee, #3b82f6); box-shadow: 0 0 8px rgba(34, 211, 238, .7);
}
.bd.light .bd-ct span::before { background: linear-gradient(180deg, #0891b2, #2563eb); box-shadow: 0 0 6px rgba(8, 145, 178, .45); }
.bd-ct em { font-style: normal; font-size: 11px; letter-spacing: .4px; color: var(--bd-sub); }

/* 横向柱状图 */
.bd-bar { display: grid; grid-template-columns: 78px 1fr 44px; align-items: center; gap: 10px; padding: 8px 0; }
.bd-bar-l { font-size: 12.5px; color: var(--bd-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-bar-t {
  position: relative; height: 10px; border-radius: 6px; overflow: hidden;
  background: var(--bd-track);
  box-shadow: inset 0 1px 0 rgba(160, 200, 255, .06);
}
.bd-bar-t i {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 25%, transparent), var(--tone));
  box-shadow: 0 0 14px var(--tone);
  transition: width .95s cubic-bezier(.22, .9, .28, 1);
}
.bd-bar-n { text-align: right; font-size: 13.5px; font-weight: 600; color: var(--tone); }

/* 三环完成率 */
.bd-ring-box { display: flex; align-items: center; gap: 12px; }
.bd-ring-svg { flex: none; width: 150px; height: 150px; filter: drop-shadow(0 0 10px rgba(34, 211, 238, .16)); }
.bd.light .bd-ring-svg { filter: drop-shadow(0 2px 6px rgba(8, 145, 178, .14)); }
.bd-ring-bg { stroke: var(--bd-ring-bg); }
.bd-ring-rim { stroke: var(--bd-ring-bg); }
.bd-ring-fg { stroke: var(--tone, currentColor); }
.bd-ring-fg { transition: stroke-dashoffset 1.15s cubic-bezier(.22, .9, .28, 1); }
.bd-ring-num { fill: var(--bd-strong); font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.bd-ring-cap { fill: var(--bd-sub); font-size: 9px; letter-spacing: 1.6px; }
.bd-ring-lg { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.bd-lg { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 2px 8px; }
.bd-lg i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.bd-lg span { font-size: 12px; color: var(--bd-fg); }
.bd-lg b { font-size: 13.5px; font-weight: 600; color: var(--tone); }
.bd-lg em { grid-column: 2 / 4; font-style: normal; font-size: 10.5px; letter-spacing: .4px; color: var(--bd-sub); }

/* 排期目标 */
.bd-prow { display: grid; grid-template-columns: 66px 1fr; gap: 3px 10px; padding: 6px 0; }
.bd-plan-l { font-size: 12.5px; color: var(--bd-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-plan-t { height: 8px; border-radius: 5px; background: var(--bd-track); overflow: hidden; align-self: center; }
.bd-plan-t i {
  display: block; height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 22%, transparent), var(--tone));
  box-shadow: 0 0 12px var(--tone);
  transition: width .9s cubic-bezier(.22, .9, .28, 1);
}
.bd-plan-n { grid-column: 2; display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tone); }
.bd-plan-n u { text-decoration: none; font-size: 10.5px; font-weight: 400; color: var(--bd-sub); }
.bd-plan-n em { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--bd-sub); }

/* 需求单列表 */
.bd-list { display: flex; flex-direction: column; gap: 9px; max-height: 238px; overflow-y: auto; padding-right: 3px; }
.bd-list::-webkit-scrollbar { width: 5px; }
.bd-list::-webkit-scrollbar-thumb { background: var(--bd-soft); border-radius: 4px; }
.bd-ord {
  border: 1px solid var(--bd-border); border-radius: 11px; padding: 10px 12px;
  background: linear-gradient(140deg, var(--bd-ord-a), var(--bd-ord-b));
}
.bd.light .bd-ord { box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.bd-ord.over { border-color: rgba(248, 113, 113, .48); box-shadow: 0 0 20px rgba(248, 113, 113, .12); }
.bd.light .bd-ord.over { border-color: rgba(220, 38, 38, .4); box-shadow: 0 0 0 1px rgba(220, 38, 38, .06), 0 6px 18px rgba(220, 38, 38, .1); }
.bd-ord-h { display: flex; align-items: center; gap: 8px; }
.bd-ord-h b { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; font-weight: 600; letter-spacing: .3px; color: var(--bd-strong); }
.bd-dot { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: bdPulse 1.8s ease-in-out infinite; }
.bd.light .bd-dot { background: #0891b2; box-shadow: 0 0 8px rgba(8, 145, 178, .8); }
.bd-due { margin-left: auto; font-size: 11px; color: var(--bd-sub); }
.bd-ord.over .bd-due { color: #fca5a5; }
.bd.light .bd-ord.over .bd-due { color: #dc2626; }
.bd-ord-m { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 7px; }
.bd-chip {
  font-size: 11px; padding: 1px 9px; border-radius: 999px; font-weight: 600; color: #06121e;
  background: linear-gradient(120deg, #22d3ee, #3b82f6);
}
.bd-chip.ghost {
  font-weight: 500; color: #a8c6ff; border: 1px solid rgba(92, 152, 255, .22); background: var(--bd-soft);
}
.bd.light .bd-chip.ghost { color: #2b5ea8; border-color: rgba(40, 95, 180, .2); background: rgba(40, 95, 180, .07); }
.bd-ord-b { display: flex; gap: 14px; font-size: 11.5px; color: var(--bd-sub); }
.bd-ord-b b { color: var(--bd-strong); font-weight: 600; }

/* 一周节奏 */
.bd-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.bd-day {
  border: 1px solid var(--bd-border); border-radius: 10px; padding: 8px 6px 6px; text-align: center;
  background: var(--bd-soft);
}
.bd.light .bd-day { background: rgba(240, 247, 255, .7); }
.bd-day.on {
  border-color: rgba(34, 211, 238, .55);
  background: linear-gradient(180deg, rgba(34, 211, 238, .14), rgba(12, 20, 36, .7));
  box-shadow: 0 0 22px rgba(34, 211, 238, .18);
}
.bd.light .bd-day.on {
  border-color: rgba(8, 145, 178, .5);
  background: linear-gradient(180deg, rgba(8, 145, 178, .12), rgba(255, 255, 255, .96));
  box-shadow: 0 0 18px rgba(8, 145, 178, .14);
}
.bd-day.dim { opacity: .62; }
.bd-day-w { display: block; font-size: 10.5px; color: var(--bd-sub); }
.bd-day-d { display: block; margin-top: 1px; font-size: 11.5px; color: var(--bd-fg); }
.bd-day-b { display: flex; align-items: flex-end; justify-content: center; height: 54px; margin: 6px 0 4px; }
.bd-day-b i {
  display: block; width: 10px; border-radius: 4px;
  background: linear-gradient(180deg, #22d3ee, rgba(34, 211, 238, .12));
  box-shadow: 0 0 12px rgba(34, 211, 238, .5);
  transition: height .85s cubic-bezier(.22, .9, .28, 1);
}
.bd.light .bd-day-b i {
  background: linear-gradient(180deg, #0891b2, rgba(8, 145, 178, .14));
  box-shadow: 0 0 10px rgba(8, 145, 178, .35);
}
.bd-day-n { font-size: 12px; font-weight: 600; color: #a8c6ff; }
.bd.light .bd-day-n { color: #2b5ea8; }
.bd-day.on .bd-day-n { color: #22d3ee; }
.bd.light .bd-day.on .bd-day-n { color: #0891b2; }

.bd-empty { padding: 20px 0; text-align: center; font-size: 12px; color: var(--bd-emp); }
.bd-foot {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--bd-dash);
  font-size: 10.5px; letter-spacing: .6px; color: var(--bd-emp);
}

@media (max-width: 1240px) {
  .bd-row { grid-template-columns: 1fr 1fr; }
  .bd-row .bd-card:last-child { grid-column: 1 / -1; }
  .bd-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .bd-kpis { grid-template-columns: 1fr 1fr; }
  .bd-row { grid-template-columns: 1fr; }
  .bd-row .bd-card:last-child { grid-column: auto; }
  .bd-ring-box { justify-content: center; }
  .bd-week { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bd-scan { display: none; }
  .bd-dot, .bd-live i { animation: none; }
}

/* ---- 看板交互：可点击态 + 明细抽屉 ---- */
.bd-click { cursor: pointer; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.bd-kpi.bd-click:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent), 0 10px 26px rgba(0, 0, 0, .28); }
.bd.light .bd-kpi.bd-click:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent), 0 10px 24px rgba(15, 23, 42, .12); }
.bd-bar.bd-click:hover { background: var(--bd-soft); border-radius: 8px; box-shadow: none; }
.bd-prow.bd-click:hover { background: var(--bd-soft); border-radius: 8px; }
.bd-ord.bd-click:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-1px); }
.bd.light .bd-ord.bd-click:hover { border-color: rgba(8, 145, 178, .4); }
.bd-lg.bd-click:hover b { text-decoration: underline; }
.bd-lg.bd-click:hover span { color: var(--bd-strong); }
.bd-day.bd-click:hover { border-color: rgba(34, 211, 238, .45); }
.bd.light .bd-day.bd-click:hover { border-color: rgba(8, 145, 178, .4); }

.bd-dr-mask {
  position: absolute; inset: 0; z-index: 8; opacity: 0; pointer-events: none;
  background: rgba(3, 8, 18, .42); backdrop-filter: blur(2px);
  transition: opacity .22s ease;
}
.bd.light .bd-dr-mask { background: rgba(30, 70, 130, .14); }
.bd-dr-mask.on { opacity: 1; pointer-events: auto; }

.bd-dr {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 9;
  width: min(500px, 94%);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bd-card-a), var(--bd-card-b));
  border-left: 1px solid rgba(34, 211, 238, .35);
  box-shadow: -18px 0 48px rgba(0, 0, 0, .45);
  transform: translateX(102%); transition: transform .28s cubic-bezier(.22, .9, .28, 1);
}
.bd.light .bd-dr { border-left-color: rgba(8, 145, 178, .28); box-shadow: -18px 0 44px rgba(15, 23, 42, .16); }
.bd-dr.on { transform: none; }
.bd-dr-h { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--bd-dash); }
.bd-dr-t { flex: 1; min-width: 0; }
.bd-dr-t b { display: block; font-size: 15.5px; letter-spacing: .5px; color: var(--bd-strong); word-break: break-all; }
.bd-dr-t span { display: block; margin-top: 3px; font-size: 11.5px; letter-spacing: .3px; color: var(--bd-sub); }
.bd-dr-x {
  flex: none; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 12px; line-height: 1;
  border: 1px solid var(--bd-border); background: var(--bd-track); color: var(--bd-sub);
}
.bd-dr-x:hover { color: var(--bd-strong); border-color: rgba(34, 211, 238, .4); }
.bd-dr-b { flex: 1; overflow-y: auto; padding: 14px 16px 20px; }
.bd-dr-b::-webkit-scrollbar { width: 5px; }
.bd-dr-b::-webkit-scrollbar-thumb { background: var(--bd-soft); border-radius: 4px; }

.bd-dt-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-dt-m { border: 1px solid var(--bd-border); border-radius: 10px; padding: 9px 11px; background: var(--bd-soft); }
.bd-dt-m span { display: block; font-size: 10.5px; letter-spacing: .8px; color: var(--bd-sub); }
.bd-dt-m b { display: block; margin-top: 3px; font-size: 19px; letter-spacing: .3px; color: var(--tone); }
.bd-dt-m em { display: block; margin-top: 1px; font-style: normal; font-size: 10.5px; color: var(--bd-sub); }
.bd-dt-h {
  position: relative; margin: 16px 0 8px; padding-left: 9px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; color: var(--bd-sub);
}
.bd-dt-h::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 3px; height: 11px; border-radius: 2px;
  background: linear-gradient(180deg, #22d3ee, #3b82f6);
}
.bd-dt-note { margin-top: 10px; font-size: 11.5px; line-height: 1.65; color: var(--bd-sub); }
.bd-dt-kv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden;
  border: 1px solid var(--bd-border); border-radius: 10px; background: var(--bd-border);
}
.bd-dt-kv > div { padding: 8px 10px; background: var(--bd-card-a); }
.bd-dt-kv span { display: block; font-size: 10.5px; letter-spacing: .6px; color: var(--bd-sub); }
.bd-dt-kv b { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--bd-strong); word-break: break-all; }

.bd-dt-rows { display: flex; flex-direction: column; gap: 2px; }
.bd-dt-row {
  display: grid; grid-template-columns: minmax(58px, 1fr) 1.2fr auto; align-items: center; gap: 9px;
  width: 100%; padding: 7px 4px; border: 0; border-radius: 8px; background: none;
  font: inherit; text-align: left; color: var(--bd-fg); cursor: pointer;
}
.bd-dt-row:hover { background: var(--bd-soft); }
.bd-dt-row b { font-size: 12.5px; font-weight: 500; color: var(--bd-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-dt-row em { font-style: normal; font-size: 11.5px; color: var(--bd-sub); white-space: nowrap; }
.bd-dt-track { display: block; height: 7px; border-radius: 4px; background: var(--bd-track); overflow: hidden; }
.bd-dt-track i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 25%, transparent), var(--tone));
  box-shadow: 0 0 10px var(--tone);
}

.bd-dt-ords { display: flex; flex-direction: column; gap: 8px; }
.bd-dt-ord {
  display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 9px 11px;
  border: 1px solid var(--bd-border); border-radius: 10px; background: var(--bd-soft);
  font: inherit; text-align: left; color: var(--bd-fg); cursor: pointer;
}
.bd-dt-ord:hover { border-color: rgba(34, 211, 238, .45); }
.bd.light .bd-dt-ord:hover { border-color: rgba(8, 145, 178, .4); }
.bd-dt-ord.over { border-color: rgba(248, 113, 113, .45); }
.bd-dt-ord-t { display: flex; align-items: center; gap: 8px; }
.bd-dt-ord-t b { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 600; color: var(--bd-strong); }
.bd-dt-ord-t em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--bd-sub); }
.bd-dt-ord.over .bd-dt-ord-t em { color: #f87171; }
.bd.light .bd-dt-ord.over .bd-dt-ord-t em { color: #dc2626; }
.bd-dt-ord-s { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-dt-chip {
  font-style: normal; font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  color: #06121e; background: linear-gradient(120deg, #22d3ee, #3b82f6);
}
.bd-dt-muted { font-style: normal; font-size: 11px; color: var(--bd-sub); }

.bd-dt-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-dt-style {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 5px;
  border: 1px solid var(--bd-border); border-radius: 9px; background: var(--bd-soft); text-decoration: none;
  font-family: inherit; text-align: left; cursor: default;
}
.bd-dt-style.biz { cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.bd-dt-style.biz:hover { border-color: color-mix(in srgb, var(--tone, #22d3ee) 55%, transparent); background: var(--bd-card-a); }
.bd.light .bd-dt-style.biz:hover { background: #fff; }
.bd-dt-style img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--bd-track); }
.bd-dt-style .ph { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 6px; background: var(--bd-track); }
.bd-dt-style span { font-size: 11px; color: var(--bd-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-dt-style em { font-style: normal; font-size: 10px; color: var(--bd-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-dt-style.noimg { justify-content: center; align-items: center; gap: 2px; padding: 10px 4px; }

.bd-dt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bd-dt-tags span {
  font-size: 11px; padding: 1px 9px; border-radius: 999px;
  border: 1px solid rgba(92, 152, 255, .25); background: var(--bd-soft); color: var(--bd-fg);
}
.bd-dt-text {
  padding: 9px 11px; border: 1px dashed var(--bd-dash); border-radius: 9px;
  font-size: 12px; line-height: 1.7; color: var(--bd-fg); white-space: pre-wrap; word-break: break-word;
}
.bd-dt-loading, .bd-dt-empty { padding: 18px 0; text-align: center; font-size: 11.5px; color: var(--bd-emp); }

@media (max-width: 620px) {
  .bd-dr { width: 100%; }
  .bd-dt-styles { grid-template-columns: repeat(2, 1fr); }
  .bd-dt-mini { grid-template-columns: 1fr; }
}

/* ---- 浅色 · iOS 风收口（去网格/去描角/大圆角/轻阴影/黑作强调） ---- */
.bd.light .bd-grid, .bd.light .bd-scan { display: none; }
.bd.light .bd-kpi::before, .bd.light .bd-kpi::after { display: none; }

/* 头部 */
.bd.light .bd-title { font-size: 21px; letter-spacing: .1px; font-weight: 700; color: #1d1d1f; text-shadow: none; }
.bd.light .bd-title::after { width: 34px; height: 3px; margin-top: 10px; border-radius: 3px; background: #1d1d1f; opacity: .9; }
.bd.light .bd-sub { margin-top: 9px; font-size: 12px; letter-spacing: .1px; color: #86868b; }
.bd.light .bd-live { border: 0; padding: 5px 12px; letter-spacing: .1px; color: #5f6368; background: #ececed; }
.bd.light .bd-live i { width: 7px; height: 7px; background: #1d1d1f; box-shadow: none; }

/* 分段控件 */
.bd.light .bd-theme { padding: 3px; border: 0; border-radius: 11px; background: #ececee; }
.bd.light .bd-theme button { border-radius: 9px; padding: 4px 13px; letter-spacing: .1px; color: #6e6e73; }
.bd.light .bd-theme button.on {
  color: #1d1d1f; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .10), 0 3px 8px -2px rgba(0, 0, 0, .10);
}

/* 指标卡 */
.bd.light .bd-kpi {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .035), 0 10px 28px -16px rgba(0, 0, 0, .16);
}
.bd.light .bd-kpi-l { font-size: 12.5px; letter-spacing: .1px; color: #86868b; }
.bd.light .bd-kpi-v { margin-top: 8px; }
.bd.light .bd-kpi-v b { font-size: 36px; font-weight: 600; letter-spacing: -1px; color: #1d1d1f; text-shadow: none; }
.bd.light .bd-kpi-v small { font-size: 12px; letter-spacing: .1px; color: #a1a1a6; }
.bd.light .bd-kpi-s { height: 4px; margin-top: 14px; border-radius: 999px; background: #eff0f2; }
.bd.light .bd-kpi-s i { border-radius: 999px; background: linear-gradient(90deg, #9a9aa0, #1d1d1f); box-shadow: none; }

/* 卡片 */
.bd.light .bd-card {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 12px 32px -18px rgba(0, 0, 0, .16);
}
.bd.light .bd-ct { font-size: 14px; font-weight: 600; letter-spacing: .1px; color: #1d1d1f; margin-bottom: 14px; }
.bd.light .bd-ct span::before {
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: #1d1d1f; box-shadow: none;
}
.bd.light .bd-ct em { font-size: 11.5px; letter-spacing: .1px; color: #a1a1a6; }

/* 柱状图 */
.bd.light .bd-bar { padding: 9px 0; grid-template-columns: 86px 1fr 46px; }
.bd.light .bd-bar-l { font-size: 12.5px; letter-spacing: .1px; color: #3c4045; }
.bd.light .bd-bar-t { height: 9px; border-radius: 999px; background: #f0f0f3; box-shadow: none; }
.bd.light .bd-bar-t i { border-radius: 999px; box-shadow: none; }
.bd.light .bd-bar-n { font-size: 13.5px; font-weight: 600; letter-spacing: -.1px; color: #1d1d1f; }

/* 三环 */
.bd.light .bd-ring-svg { filter: none; }
.bd.light .bd-ring-num { font-size: 23px; font-weight: 600; letter-spacing: -.5px; fill: #1d1d1f; }
.bd.light .bd-ring-cap { font-size: 9px; letter-spacing: 1.4px; fill: #a1a1a6; }
.bd.light .bd-lg i { width: 8px; height: 8px; box-shadow: none; }
.bd.light .bd-lg span { letter-spacing: .1px; color: #3c4045; }
.bd.light .bd-lg b { font-weight: 600; letter-spacing: -.1px; color: #1d1d1f; }
.bd.light .bd-lg em { letter-spacing: .1px; color: #a1a1a6; }

/* 排期 */
.bd.light .bd-prow { padding: 8px 0; }
.bd.light .bd-plan-l { letter-spacing: .1px; color: #3c4045; }
.bd.light .bd-plan-t { height: 7px; border-radius: 999px; background: #f0f0f3; }
.bd.light .bd-plan-t i { border-radius: 999px; box-shadow: none; }
.bd.light .bd-plan-n { letter-spacing: .1px; color: #1d1d1f; }
.bd.light .bd-plan-n u, .bd.light .bd-plan-n em { color: #a1a1a6; }

/* 需求单 */
.bd.light .bd-list { gap: 10px; max-height: 244px; }
.bd.light .bd-ord { padding: 11px 13px; border-radius: 14px; box-shadow: none; }
.bd.light .bd-ord-h b { font-size: 13px; letter-spacing: -.1px; color: #1d1d1f; }
.bd.light .bd-dot { width: 7px; height: 7px; background: #1d1d1f; box-shadow: none; }
.bd.light .bd-due { font-size: 11.5px; letter-spacing: .1px; color: #a1a1a6; }
.bd.light .bd-ord.over { border-color: rgba(215, 0, 21, .22); background: #fff8f7; box-shadow: none; }
.bd.light .bd-ord.over .bd-due { color: #d70015; font-weight: 600; }
.bd.light .bd-chip { padding: 2px 9px; font-weight: 500; letter-spacing: .1px; color: #1d1d1f; background: #ececee; }
.bd.light .bd-chip.ghost { font-weight: 400; color: #6e6e73; border-color: transparent; background: #f4f4f6; }
.bd.light .bd-ord-b { gap: 16px; letter-spacing: .1px; color: #86868b; }
.bd.light .bd-ord-b b { font-weight: 600; color: #1d1d1f; }

/* 一周节奏：今天反白（黑底白字） */
.bd.light .bd-week { gap: 7px; }
.bd.light .bd-day { padding: 9px 6px 8px; border-radius: 14px; border-color: transparent; background: #f7f7f9; }
.bd.light .bd-day-w { font-size: 10.5px; letter-spacing: .1px; color: #a1a1a6; }
.bd.light .bd-day-d { font-size: 11.5px; letter-spacing: .1px; color: #3c4045; }
.bd.light .bd-day-b i { width: 9px; border-radius: 999px; background: #c7c7cc; box-shadow: none; }
.bd.light .bd-day-n { font-weight: 600; letter-spacing: -.1px; color: #1d1d1f; }
.bd.light .bd-day.dim { opacity: .45; }
.bd.light .bd-day.on {
  border-color: transparent; background: #1d1d1f;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .12);
}
.bd.light .bd-day.on .bd-day-w { color: rgba(255, 255, 255, .55); }
.bd.light .bd-day.on .bd-day-d { color: rgba(255, 255, 255, .85); }
.bd.light .bd-day.on .bd-day-b i { background: #ffffff; opacity: .9; box-shadow: none; }
.bd.light .bd-day.on .bd-day-n { color: #ffffff; }

.bd.light .bd-empty { color: #a1a1a6; }
.bd.light .bd-foot { letter-spacing: .1px; color: #a1a1a6; border-top-color: rgba(0, 0, 0, .06); }

/* 交互态：轻上浮，不用彩色描边 */
.bd.light .bd-kpi.bd-click:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, .09);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 34px -18px rgba(0, 0, 0, .26);
}
.bd.light .bd-bar.bd-click:hover, .bd.light .bd-prow.bd-click:hover { background: #f7f7f9; }
.bd.light .bd-ord.bd-click:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, .10);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .30);
}
.bd.light .bd-day.bd-click:hover { border-color: rgba(0, 0, 0, .10); }
.bd.light .bd-lg.bd-click:hover b { text-decoration: none; color: #000; }

/* 明细抽屉 */
.bd.light .bd-dr {
  border-left: 1px solid rgba(0, 0, 0, .07);
  box-shadow: -22px 0 54px -26px rgba(0, 0, 0, .30);
}
.bd.light .bd-dr-mask { background: rgba(0, 0, 0, .14); }
.bd.light .bd-dr-h { padding: 16px 18px 14px; border-bottom-color: rgba(0, 0, 0, .06); }
.bd.light .bd-dr-t b { font-size: 17px; letter-spacing: -.2px; color: #1d1d1f; }
.bd.light .bd-dr-t span { font-size: 12px; letter-spacing: .1px; color: #86868b; }
.bd.light .bd-dr-x {
  width: 28px; height: 28px; border: 0; border-radius: 999px;
  font-size: 13px; background: #f0f0f3; color: #6e6e73;
}
.bd.light .bd-dr-x:hover { background: #e6e6ea; color: #1d1d1f; }
.bd.light .bd-dr-b { padding: 16px 18px 24px; }
.bd.light .bd-dt-mini { gap: 10px; }
.bd.light .bd-dt-m { padding: 11px 13px; border-color: transparent; border-radius: 14px; background: #f7f7f9; }
.bd.light .bd-dt-m span { letter-spacing: .1px; color: #86868b; }
.bd.light .bd-dt-m b { font-size: 21px; font-weight: 600; letter-spacing: -.4px; color: #1d1d1f; }
.bd.light .bd-dt-m em { letter-spacing: .1px; color: #a1a1a6; }
.bd.light .bd-dt-h { padding-left: 0; font-size: 12px; letter-spacing: .1px; color: #86868b; }
.bd.light .bd-dt-h::before { display: none; }
.bd.light .bd-dt-kv { border-color: transparent; border-radius: 14px; background: rgba(0, 0, 0, .05); }
.bd.light .bd-dt-kv > div { padding: 10px 12px; background: #fff; }
.bd.light .bd-dt-kv span { letter-spacing: .1px; color: #86868b; }
.bd.light .bd-dt-kv b { font-weight: 600; color: #1d1d1f; }
.bd.light .bd-dt-row { border-radius: 10px; }
.bd.light .bd-dt-row b { color: #1d1d1f; }
.bd.light .bd-dt-row em { letter-spacing: .1px; color: #86868b; }
.bd.light .bd-dt-track { border-radius: 999px; background: #f0f0f3; }
.bd.light .bd-dt-track i { border-radius: 999px; box-shadow: none; }
.bd.light .bd-dt-ord { border-color: transparent; border-radius: 14px; background: #f7f7f9; }
.bd.light .bd-dt-ord:hover { border-color: rgba(0, 0, 0, .10); background: #f2f2f5; }
.bd.light .bd-dt-ord.over { border-color: rgba(215, 0, 21, .20); }
.bd.light .bd-dt-ord.over .bd-dt-ord-t em { color: #d70015; }
.bd.light .bd-dt-chip { font-weight: 500; letter-spacing: .1px; color: #fff; background: #1d1d1f; }
.bd.light .bd-dt-tags span { border-color: transparent; background: #f0f0f3; color: #3c4045; }
.bd.light .bd-dt-text { border-color: transparent; border-radius: 14px; background: #f7f7f9; color: #3c4045; }
.bd.light .bd-dt-style { border-color: transparent; border-radius: 12px; background: #f7f7f9; }
.bd.light .bd-dt-loading, .bd.light .bd-dt-empty { color: #a1a1a6; }

/* ================= 浅色 v3 · 苹果进阶（毛玻璃 / SF 数字 / 单色圆头柱） ================= */

/* 字体：优先系统 SF，Windows 走 Segoe UI Variable */
.bd.light {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --bd-glass: rgba(255, 255, 255, .58);
  --bd-glass-2: rgba(255, 255, 255, .72);
}

/* 背景柔光斑（给毛玻璃提供可模糊的层次） */
.bd.light .bd-grid {
  display: block;
  background-image: none;
  -webkit-mask-image: none;
  mask-image: none;
  background:
    radial-gradient(320px 320px at 9% 0%, rgba(146, 156, 172, .50), transparent 68%),
    radial-gradient(360px 360px at 90% 8%, rgba(198, 204, 214, .52), transparent 68%),
    radial-gradient(320px 320px at 64% 98%, rgba(168, 176, 190, .42), transparent 68%);
  filter: blur(48px) saturate(115%);
  opacity: .95;
}

/* 毛玻璃底 */
.bd.light .bd-kpi,
.bd.light .bd-card,
.bd.light .bd-ord,
.bd.light .bd-dr,
.bd.light .bd-theme,
.bd.light .bd-live,
.bd.light .bd-ord.over {
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
}
.bd.light .bd-kpi,
.bd.light .bd-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .50));
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 1px rgba(0, 0, 0, .03),
    0 16px 40px -22px rgba(0, 0, 0, .30);
}
.bd.light .bd-ord {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.bd.light .bd-ord.over {
  background: rgba(255, 248, 247, .62);
  border-color: rgba(215, 0, 21, .20);
}
.bd.light .bd-theme { background: rgba(255, 255, 255, .45); }
.bd.light .bd-theme button.on {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .10), 0 4px 10px -4px rgba(0, 0, 0, .14);
}
.bd.light .bd-live { background: rgba(255, 255, 255, .45); }
.bd.light .bd-dr {
  background: rgba(255, 255, 255, .80);
  border-left: 1px solid rgba(255, 255, 255, .85);
  box-shadow: -24px 0 60px -28px rgba(0, 0, 0, .32);
}

/* SF 风格数字：等宽数字 + 负字距 + 光学字号 */
.bd.light .bd-kpi-v b {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.bd.light .bd-kpi-v small { font-size: 12.5px; letter-spacing: .2px; color: #a1a1a6; }
.bd.light .bd-ring-num, .bd.light .bd-dt-m b, .bd.light .bd-bar-n, .bd.light .bd-plan-n, .bd.light .bd-day-n {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 单色系圆头渐变柱（iOS 图表观感） */
.bd.light .bd-bar-t { height: 10px; border-radius: 999px; background: #eff0f2; }
.bd.light .bd-bar-t i {
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 26%, #ffffff) 0%, var(--tone) 88%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.bd.light .bd-plan-t i {
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 24%, #ffffff) 0%, var(--tone) 88%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.bd.light .bd-kpi-s i {
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 22%, #ffffff) 0%, var(--tone) 90%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.bd.light .bd-dt-track i {
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 24%, #ffffff) 0%, var(--tone) 90%);
}
.bd.light .bd-day-b i {
  border-radius: 999px;
  background: linear-gradient(180deg, #3a3a3c 0%, #c7c7cc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.bd.light .bd-day.on .bd-day-b i { background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, .55) 100%); }
.bd.light .bd-lg i { box-shadow: none; }

/* ================= 浅色 v4 · 中性底 + iOS 系统色点睛 ================= */
.bd.light {
  --bd-bg:
    radial-gradient(1100px 460px at 50% -20%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #fbfbfd 0%, #f1f2f5 100%);
}

/* 数据色 = iOS 系统色（冷色族 + 一个语义绿/红） */
.bd.light .bd-cy, .bd.light .bd-flat { --tone: #0071e3; }
.bd.light .bd-pu, .bd.light .bd-model { --tone: #5e5ce6; }
.bd.light .bd-gr, .bd.light .bd-video { --tone: #30b0c7; }
.bd.light .bd-am { --tone: #8e8e93; }
/* 指标卡统一主蓝，避免四卡四色 */
.bd.light .bd-kpi { --tone: #0071e3; }

/* 玻璃透出冷调雾，不再一片死灰 */
.bd.light .bd-grid {
  background:
    radial-gradient(340px 340px at 8% -2%, rgba(0, 113, 227, .16), transparent 68%),
    radial-gradient(360px 360px at 92% 6%, rgba(94, 92, 230, .14), transparent 68%),
    radial-gradient(320px 320px at 58% 102%, rgba(48, 176, 199, .13), transparent 68%);
  filter: blur(52px) saturate(125%);
}
.bd.light .bd-kpi,
.bd.light .bd-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .66));
  border-color: rgba(255, 255, 255, .85);
}

/* 细节点缀：标题条、小标题竖条、实时灯 */
.bd.light .bd-title::after { width: 40px; background: linear-gradient(90deg, #0071e3, #5e5ce6); opacity: 1; }
.bd.light .bd-ct span::before {
  width: 3px; height: 12px; margin-top: -6px; border-radius: 2px;
  background: #0071e3;
}
.bd.light .bd-live i {
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, .16);
}
.bd.light .bd-live { color: #1d1d1f; }

/* 一周柱：主蓝渐变；今天仍反白 */
.bd.light .bd-day-b i { background: linear-gradient(180deg, #5aa9f0 0%, #0071e3 100%); }
.bd.light .bd-day-n { color: #0071e3; }
.bd.light .bd-day.on .bd-day-n { color: #ffffff; }
.bd.light .bd-day.on .bd-day-b i { background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, .55) 100%); }

/* 状态点：进行中绿、超期红 */
.bd.light .bd-dot { background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .14); }
.bd.light .bd-ord.over .bd-dot { background: #ff3b30; box-shadow: 0 0 0 3px rgba(255, 59, 48, .14); }
.bd.light .bd-ord.over { background: rgba(255, 247, 246, .70); }

/* 数值保持近黑，只有图形上色 */
.bd.light .bd-bar-n, .bd.light .bd-lg b, .bd.light .bd-plan-n, .bd.light .bd-dt-m b { color: #1d1d1f; }
.bd.light .bd-dt-chip { background: #0071e3; }
/* ================= 设计部 + 业务数据扩展位 ================= */
.bd-row-design { grid-template-columns: 1fr; }
.bd-mini4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bd-mini {
  position: relative; padding: 10px 12px 9px; border-radius: 11px;
  border: 1px solid var(--bd-border); background: var(--bd-soft);
  transition: border-color .16s ease, background .16s ease;
}
.bd-mini span { display: block; font-size: 11px; letter-spacing: .8px; color: var(--bd-sub); }
.bd-mini b { font-size: 24px; font-weight: 700; letter-spacing: -.4px; color: var(--bd-strong); line-height: 1.2; }
.bd-mini u { text-decoration: none; margin-left: 3px; font-size: 10.5px; color: var(--bd-sub); }
.bd-mini::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--tone); opacity: .9;
}
.bd-mini.bd-click:hover { border-color: color-mix(in srgb, var(--tone) 50%, transparent); background: var(--bd-card-a); }

.bd-design-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; margin-top: 14px; }
.bd-design-col { min-width: 0; }
.bd-sub-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-size: 11px; letter-spacing: 1px; color: var(--bd-sub);
}
.bd-more { cursor: pointer; font-size: 10.5px; color: var(--bd-sub); transition: color .15s; }
.bd-more:hover { color: var(--bd-strong); }

.bd-ds-list { display: flex; flex-direction: column; gap: 5px; }
.bd-ds {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1px 8px;
  padding: 6px 9px; border-radius: 9px; border: 1px solid var(--bd-border); background: var(--bd-soft);
}
.bd-ds b {
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .2px; color: var(--bd-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bd-ds em { font-style: normal; font-size: 10.5px; color: var(--bd-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-ds u { text-decoration: none; font-size: 10px; color: var(--bd-emp); text-align: right; white-space: nowrap; }
.bd-ds-st {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: .2px; white-space: nowrap;
}
.bd-ds-st.st-ok { color: #34d399; background: rgba(52, 211, 153, .14); }
.bd-ds-st.st-doing { color: #22d3ee; background: rgba(34, 211, 238, .13); }
.bd-ds-st.st-wait { color: var(--bd-sub); background: var(--bd-soft); }

/* 扩展位 */
.bd-row-ext { grid-template-columns: repeat(3, 1fr); }
.bd-ext { position: relative; }
.bd-ext-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-ext-n {
  padding: 8px 10px; border-radius: 9px;
  border: 1px dashed var(--bd-dash); background: var(--bd-soft);
}
.bd-ext-n span { display: block; font-size: 10.5px; letter-spacing: .4px; color: var(--bd-sub); }
.bd-ext-n b { display: block; margin-top: 1px; font-size: 18px; font-weight: 600; letter-spacing: -.2px; color: var(--bd-emp); }
.bd-ext-n.on { border-style: solid; border-color: color-mix(in srgb, var(--tone, #22d3ee) 45%, transparent); }
.bd-ext-n.on b { color: var(--bd-strong); }
.bd-ext-tag {
  font-style: normal; font-size: 10px; padding: 1px 8px; border-radius: 999px;
  border: 1px dashed var(--bd-dash); color: var(--bd-sub);
}
.bd-ext-tag.on { border: 1px solid rgba(34, 211, 238, .4); color: #22d3ee; background: rgba(34, 211, 238, .12); }
.bd-ext-note { margin-top: 10px; font-size: 11px; line-height: 1.6; color: var(--bd-sub); }
.bd-ext.bd-click:hover { border-color: color-mix(in srgb, var(--bd-strong) 22%, transparent); }
.bd-ext-state {
  padding: 10px 12px; border-radius: 10px; background: var(--bd-soft);
  border: 1px dashed var(--bd-dash); font-size: 12px; line-height: 1.6; color: var(--bd-sub);
}

/* 浅色收口 */
.bd.light .bd-mini { background: #f7f7f9; border-color: transparent; }
.bd.light .bd-mini b { font-size: 24px; letter-spacing: -.6px; color: #1d1d1f; }
.bd.light .bd-mini.bd-click:hover { background: #fff; border-color: rgba(0, 0, 0, .08); }
.bd.light .bd-mini::before { width: 3px; border-radius: 0 3px 3px 0; }
.bd.light .bd-ds { background: #f7f7f9; border-color: transparent; }
.bd.light .bd-ds b { letter-spacing: -.1px; color: #1d1d1f; }
.bd.light .bd-ds em { color: #86868b; }
.bd.light .bd-ds u { color: #a1a1a6; }
.bd.light .bd-ds-st { font-weight: 500; }
.bd.light .bd-ds-st.st-ok { color: #0f7a3d; background: #eaf7ee; }
.bd.light .bd-ds-st.st-doing { color: #0b6b86; background: #e8f4f9; }
.bd.light .bd-ds-st.st-wait { color: #6e6e73; background: #f0f0f3; }
.bd.light .bd-ext-n { background: #f7f7f9; border-color: rgba(0, 0, 0, .10); }
.bd.light .bd-ext-n b { color: #b0b0b6; }
.bd.light .bd-ext-n.on b { color: #1d1d1f; }
.bd.light .bd-ext-tag { border-color: rgba(0, 0, 0, .14); color: #86868b; }
.bd.light .bd-ext-tag.on { border-color: rgba(0, 113, 227, .28); color: #0a5fc4; background: #eaf4ff; }
.bd.light .bd-ext-note { color: #86868b; }
.bd.light .bd-ext-state { background: #f7f7f9; border-color: rgba(0, 0, 0, .10); color: #86868b; }

@media (max-width: 1240px) {
  .bd-row-ext { grid-template-columns: 1fr 1fr; }
  .bd-row-ext .bd-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .bd-mini4 { grid-template-columns: 1fr 1fr; }
  .bd-design-grid { grid-template-columns: 1fr; gap: 14px; }
  .bd-row-ext { grid-template-columns: 1fr; }
  .bd-row-ext .bd-card:last-child { grid-column: auto; }
}


/* ---- 看板一屏模式：整页不出滚动条，内容集中在看板界面内 ---- */
body.on-board .main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 28px 8px;
}
body.on-board .topbar { margin-bottom: 6px; }
body.on-board #view-board { flex: 1; display: flex; flex-direction: column; min-height: 0; }
body.on-board .bd { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
body.on-board .bd-stage { flex: 1 1 auto; min-height: 0; }
body.on-board .bd-orb { min-height: 0; max-height: none; }
body.on-board .bd-side {
  justify-content: flex-start;
  gap: 8px !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bd-border) transparent;
}
body.on-board .bd-side::-webkit-scrollbar { width: 3px; }
body.on-board .bd-side::-webkit-scrollbar-thumb { background: var(--bd-border); border-radius: 3px; }
body.on-board .bd-side::-webkit-scrollbar-track { background: transparent; }
/* 紧凑化：一屏内尽量放下 */
body.on-board .bd-side .bd-card { padding: 10px 11px 9px; }
body.on-board .bd-side .bd-kpi { padding: 9px 10px 7px; }
body.on-board .bd-side .bd-kpi-v b { font-size: 20px; }
body.on-board .bd-side .bd-ds-list { max-height: 96px; }
body.on-board .bd-side .bd-week { gap: 3px; }
body.on-board .bd-side .bd-day-b { height: 26px; }
body.on-board .bd-side .bd-ord { padding: 7px 8px; }
body.on-board .bd-side .bd-mini4 { gap: 6px; }
body.on-board .bd-side .bd-mini { padding: 7px 9px; }
body.on-board .bd-side > :first-child { margin-top: auto; }
body.on-board .bd-side > :last-child { margin-bottom: auto; }
body.on-board .bd-foot { margin-top: 10px; padding-top: 8px; }
body.on-board .bd { padding: 12px 14px 8px; }
body.on-board .bd-side .bd-kpi { padding: 8px 9px 6px; }
body.on-board .bd-side .bd-kpi-v { margin-top: 2px; }
body.on-board .bd-side .bd-kpi-s { margin-top: 6px; }
body.on-board .bd-side .bd-card { border-radius: 13px; }
body.on-board .bd-orb { border-radius: 16px; }
body.on-board .bd-orb-ico { gap: 9px; }
body.on-board .bd-ico-row { padding: 13px 16px; gap: 12px; border-radius: 12px; }
body.on-board .bd-ico-box { width: 34px; height: 34px; border-radius: 10px; }
body.on-board .bd-ico-box svg { width: 18px; height: 18px; }
body.on-board .bd-ico-track { height: 4px; }
body.on-board .bd-ico-val b { font-size: 18px; }
body.on-board .bd-ico-val em { font-size: 9.5px; }
body.on-board .bd-orb-visual { justify-content: center; }
body.on-board .bd-orb-lcol { gap: 10px; }
body.on-board .bd-orb-ico { gap: 10px; }
body.on-board .bd-orb-gap { gap: 6px; }
body.on-board .bd-gap { padding: 9px 10px; border-radius: 9px; }
body.on-board .bd-gap b { font-size: 14px; }
body.on-board .bd-orb-pf { gap: 9px; }
body.on-board .bd-pfr { grid-template-columns: minmax(56px, auto) minmax(0, 1fr) 30px; gap: 7px; font-size: 10px; }
body.on-board .bd-orb-meta { gap: 6px; }
body.on-board .bd-meta { padding: 9px 8px; border-radius: 8px; }
body.on-board .bd-meta b { font-size: 12px; }
body.on-board .bd-ring-orb .bd-lg-per { margin-top: 0; gap: 4px 5px; }
body.on-board .bd-head { align-items: center; }
body.on-board .bd-foot { margin-top: 8px; padding-top: 6px; }
body.on-board .bd-stage { margin-top: 10px; }
/* 排期 / 节奏 / 需求单进一步压缩 */
body.on-board .bd-side .bd-prow { padding: 2px 0; }
body.on-board .bd-side .bd-ext-n b { font-size: 14px; }
body.on-board .bd-side .bd-day-b { height: 22px; }
body.on-board .bd-side .bd-ord { margin-top: 5px; }
body.on-board .bd-side .bd-plan-t { height: 5px; }
body.on-board .bd-side .bd-day-d { display: none; }
body.on-board .bd-side .bd-day { padding: 5px 2px 4px; }
body.on-board .bd-side .bd-bars { gap: 0; }
body.on-board .bd-side .bd-bar { padding: 5px 0; }
body.on-board .bd-side .bd-ord { padding: 6px 8px; margin-top: 6px; }
body.on-board .bd-side .bd-ds-list { max-height: 72px; }
body.on-board .bd-side .bd-ext-state { padding: 6px 8px; }
body.on-board .bd-orb-in { column-gap: 16px; padding: 18px 20px 12px; }
/* 扩展位压成一行标题 + 两列数值，隐藏说明 */
body.on-board .bd-ext .bd-ct { margin-bottom: 6px; }
body.on-board .bd-ext .bd-ext-nums { gap: 6px; }
body.on-board .bd-ext .bd-ext-n b { font-size: 15px; }
body.on-board .bd-ext .bd-ext-note { display: none; }
body.on-board .bd-side .bd-ct { margin-bottom: 6px; }
body.on-board .bd-side .bd-sub-h { margin: 6px 0 4px; }
body.on-board .bd-side .bd-day-n { font-size: 10px; }

/* ================= 看板 v2 · 中央圆形数据展台（卫星环绕布局） ================= */
.bd-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(206px, 240px) minmax(0, 1fr) minmax(206px, 240px);
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}
/* 两侧模块纵向铺开，与中央展台等高 */
.bd-side { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.bd-side > * { width: 100%; }
.bd-side .bd-kpis { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 0; min-width: 0; }
.bd-side .bd-kpi { padding: 11px 12px 9px; border-radius: 13px; }
.bd-side .bd-kpi-l { font-size: 10.5px; letter-spacing: .6px; }
.bd-side .bd-kpi-v { margin-top: 3px; }
.bd-side .bd-kpi-v b { font-size: 23px; letter-spacing: -.6px; }
.bd-side .bd-kpi-v small { font-size: 10px; }
.bd-side .bd-kpi-s { height: 3px; margin-top: 8px; }
.bd-side .bd-card { flex: 0 0 auto; padding: 13px 13px 12px; border-radius: 16px; min-width: 0; max-width: 100%; overflow: hidden; }
.bd-side .bd-ct { margin-bottom: 9px; font-size: 12px; }
.bd-side .bd-ct span { font-size: 11.5px; }
.bd-side .bd-ct em { max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-side .bd-bars { gap: 1px; }
.bd-side .bd-bar { padding: 7px 0; grid-template-columns: 62px 1fr 34px; gap: 7px; }
.bd-side .bd-bar-l { font-size: 11.5px; }
.bd-side .bd-bar-n { font-size: 12px; }
.bd-side .bd-prow { grid-template-columns: 56px 1fr; gap: 2px 8px; padding: 5px 0; }
.bd-side .bd-plan-l { font-size: 11.5px; }
.bd-side .bd-plan-t { height: 6px; }
.bd-side .bd-plan-n { font-size: 11px; }
.bd-side .bd-plan-n u, .bd-side .bd-plan-n em { font-size: 9.5px; }
.bd-side .bd-week { gap: 4px; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; }
.bd-side .bd-day { padding: 6px 2px 5px; border-radius: 8px; min-width: 0; overflow: hidden; }
.bd-side .bd-day-w { font-size: 9px; }
.bd-side .bd-day-d { font-size: 9.5px; }
.bd-side .bd-day-b { height: 34px; margin: 4px 0 3px; }
.bd-side .bd-day-b i { width: 6px; border-radius: 3px; }
.bd-side .bd-day-n { font-size: 10.5px; }

/* 侧栏：设计部紧凑 */
.bd-side .bd-mini4 { grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-side .bd-mini { padding: 8px 10px 7px; border-radius: 10px; }
.bd-side .bd-mini span { font-size: 9.5px; letter-spacing: .4px; }
.bd-side .bd-mini b { font-size: 19px; letter-spacing: -.3px; }
.bd-side .bd-mini u { font-size: 9px; }
.bd-side .bd-mini::before { top: 9px; bottom: 9px; width: 2px; }
.bd-side .bd-design-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.bd-side .bd-sub-h { margin-bottom: 5px; font-size: 10px; letter-spacing: .6px; }
.bd-side .bd-more { font-size: 9.5px; }
.bd-side .bd-ds-list { gap: 4px; max-height: 132px; overflow-y: auto; padding-right: 2px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 12px), transparent 100%); }
.bd-side .bd-ds { padding: 5px 8px; gap: 1px 6px; border-radius: 8px; }
.bd-side .bd-ds b { font-size: 11px; }
.bd-side .bd-ds em, .bd-side .bd-ds u { font-size: 9.5px; }
.bd-side .bd-ds-st { font-size: 9px; padding: 1px 6px; }

/* 侧栏：需求单紧凑 */
.bd-side .bd-list { max-height: 250px; gap: 8px; padding-right: 2px; }
.bd-side .bd-ord { padding: 9px 10px; border-radius: 10px; }
.bd-side .bd-ord-h { gap: 6px; flex-wrap: wrap; }
.bd-side .bd-ord-h b { font-size: 10.5px; letter-spacing: 0; white-space: nowrap; }
.bd-side .bd-due { font-size: 9.5px; }
.bd-side .bd-ord-m { gap: 4px; margin: 6px 0 5px; }
.bd-side .bd-chip { font-size: 9.5px; padding: 1px 7px; }
.bd-side .bd-ord-b { flex-wrap: wrap; gap: 4px 9px; font-size: 10px; }

/* 侧栏：扩展位紧凑 */
.bd-side .bd-ext-nums { gap: 6px; }
.bd-side .bd-ext-n { padding: 6px 8px; border-radius: 8px; }
.bd-side .bd-ext-n span { font-size: 9.5px; letter-spacing: 0; }
.bd-side .bd-ext-n b { font-size: 15px; }
.bd-side .bd-ext-note { display: none; }
.bd-side .bd-ext-tag { font-size: 9px; padding: 1px 6px; }

/* 中央矩形展台：占页面主体约三分之二 */
.bd-orb-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: 12px;
  min-width: 0;
}
.bd-orb {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(560px, 66vh, 880px);
  max-height: 940px;
  border-radius: 20px;
  border: 1px solid var(--bd-border);
  background:
    radial-gradient(120% 90% at 50% -10%, var(--bd-soft), transparent 62%),
    radial-gradient(90% 70% at 50% 115%, var(--bd-halo), transparent 60%),
    var(--bd-card-a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 0 0 1px rgba(255, 255, 255, .02),
    0 26px 64px -34px rgba(0, 0, 0, .85);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2, .8, .3, 1);
}
/* 顶部呼吸光晕 */
.bd-orb-glow {
  position: absolute; left: -10%; right: -10%; top: -46%; height: 140%;
  background: radial-gradient(58% 52% at 50% 0%, var(--bd-halo), transparent 72%);
  animation: bd-orb-breathe 9s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes bd-orb-breathe {
  0%, 100% { opacity: .5; transform: translateY(0) scale(1); }
  50% { opacity: .95; transform: translateY(8px) scale(1.05); }
}
/* 点阵底纹 */
.bd-orb-ticks {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--bd-dash) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(120% 115% at 50% 0%, #000 0%, transparent 84%);
  mask-image: radial-gradient(120% 115% at 50% 0%, #000 0%, transparent 84%);
  opacity: .5;
  pointer-events: none; z-index: 0;
}
/* 顶部扫光条 */
.bd-orb-arc {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background-image: linear-gradient(90deg, transparent, var(--cy, #22d3ee), var(--pu, #a855f7), transparent);
  background-size: 45% 100%; background-repeat: no-repeat;
  animation: bd-arc-sweep 6.5s linear infinite;
  opacity: .9;
  pointer-events: none; z-index: 1;
}
@keyframes bd-arc-sweep {
  0% { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}
/* 上下四角的刻度描角 */
.bd-orb::after {
  content: '';
  position: absolute; inset: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(90deg, var(--bd-strong) 0 22px, transparent 22px) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, var(--bd-strong) 0 22px, transparent 22px) 100% 100% / 100% 1px no-repeat;
  opacity: .16;
  pointer-events: none; z-index: 1;
}

/* 内部：左「标题 + 大环」 / 右「分层明细」 */
.bd-orb-in {
  position: absolute; inset: 0; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  column-gap: 26px;
  padding: 22px 26px 16px;
  text-align: left;
  align-items: start;
}
.bd-orb-kick {
  grid-column: 1; grid-row: 1;
  font-size: 10px; letter-spacing: 2.4px; color: var(--bd-sub);
  text-transform: uppercase; white-space: nowrap;
}
.bd-orb-title {
  grid-column: 1; grid-row: 2;
  margin-top: 4px; font-size: 21px; font-weight: 700; letter-spacing: .4px;
  color: var(--bd-strong); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bd-orb-sub {
  grid-column: 1; grid-row: 3;
  margin-top: 5px; font-size: 12px; letter-spacing: .3px; color: var(--bd-sub);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bd-orb-visual {
  grid-column: 1; grid-row: 4;
  align-self: stretch;
  width: 100%; height: 100%; min-height: 0;
  display: flex; align-items: stretch; justify-content: center;
}
.bd-orb-visual .bd-ring-svg { width: min(100%, 460px); max-height: 100%; height: auto; }
.bd-orb-body {
  grid-column: 2; grid-row: 1 / 5;
  align-self: stretch;
  min-height: 0; height: 100%;
  padding-left: 24px;
  border-left: 1px solid var(--bd-border);
  overflow-y: auto; overscroll-behavior: contain;
  text-align: left;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 14px), transparent 100%);
}
.bd-orb-body::-webkit-scrollbar { width: 4px; }
.bd-orb-body::-webkit-scrollbar-thumb { background: var(--bd-border); border-radius: 4px; }
.bd-orb-body::-webkit-scrollbar-track { background: transparent; }

.bd-orb-back {
  grid-column: 2; grid-row: 5; justify-self: end; align-self: end;
  margin-top: 10px; padding: 5px 15px; border-radius: 999px;
  border: 1px solid var(--bd-border); background: var(--bd-soft); color: var(--bd-ct);
  font-size: 11px; letter-spacing: .4px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.bd-orb-back.on { opacity: 1; pointer-events: auto; }
.bd-orb-back:hover { border-color: var(--bd-strong); color: var(--bd-strong); }

.bd-orb-cap {
  font-size: 11px; letter-spacing: .6px; color: var(--bd-sub);
  max-width: 100%; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 返回总览：页面右缘悬浮竖排按钮（仅明细态出现） */
.bd-orb-home {
  position: fixed; right: 0; top: 50%; z-index: 70;
  transform: translateY(-50%) translateX(100%);
  writing-mode: vertical-rl;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 9px; border-radius: 999px 0 0 999px;
  border: 1px solid var(--bd-border); border-right: 0;
  background: var(--bd-card-a); color: var(--bd-ct);
  font-size: 11.5px; letter-spacing: 4px; cursor: pointer; font-family: inherit;
  box-shadow: -8px 0 26px -12px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .3, 1),
    color .18s ease, border-color .18s ease, background .18s ease;
}
.bd-orb-home svg { width: 14px; height: 14px; flex: none; }
.bd-orb-home.on { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.bd-orb-home:hover { color: var(--bd-strong); border-color: var(--bd-strong); }
.bd.light .bd-orb-home {
  background: rgba(255, 255, 255, .92); color: #3c4045;
  border-color: rgba(0, 0, 0, .1);
  box-shadow: -8px 0 26px -14px rgba(15, 23, 42, .25);
}
.bd.light .bd-orb-home:hover { color: #1d1d1f; border-color: rgba(0, 0, 0, .22); }

/* 总览展台：竖排图标（替代圆形三环） */
.bd-orb-lcol {
  display: flex; flex-direction: column; justify-content: space-evenly;
  gap: 0; width: min(100%, 470px); margin: 0 auto; min-height: 0;
}
.bd-orb-ico {
  display: flex; flex-direction: column; justify-content: center;
  gap: 13px; width: 100%;
}
.bd-ico-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 14px; width: 100%;
  border: 1px solid var(--bd-border); background: var(--bd-soft);
  cursor: pointer; font-family: inherit; text-align: left; min-width: 0;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.bd-ico-row:hover {
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
  transform: translateX(3px);
}
.bd-ico-box {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
}
.bd-ico-box svg { width: 22px; height: 22px; }
.bd-ico-meta { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bd-ico-name { font-size: 12.5px; letter-spacing: .4px; font-weight: 600; color: var(--bd-strong); }
.bd-ico-track { height: 5px; border-radius: 3px; background: var(--bd-border); overflow: hidden; }
.bd-ico-track i {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 30%, transparent), var(--tone));
  box-shadow: 0 0 10px var(--tone);
  transition: width .7s cubic-bezier(.2, .8, .3, 1);
}
.bd-ico-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bd-ico-val b { font-size: 22px; font-weight: 700; letter-spacing: -.5px; color: var(--tone); line-height: 1; }
.bd-ico-val em { font-style: normal; font-size: 10.5px; color: var(--bd-sub); }
.bd.light .bd-ico-box { background: color-mix(in srgb, var(--tone) 9%, #fff); }
.bd.light .bd-ico-track { background: rgba(0, 0, 0, .08); }

/* 总览展台：缺口速览 / 分平台完成率 / 需求排期速览 */
.bd-orb-visual { overflow: hidden; }
.bd-orb-gap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-gap {
  padding: 8px 10px; border-radius: 11px; min-width: 0;
  border: 1px solid var(--bd-border); background: var(--bd-soft);
  cursor: pointer; font-family: inherit; text-align: center;
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  transition: border-color .16s ease, transform .16s ease;
}
.bd-gap:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); transform: translateY(-2px); }
.bd-gap span { font-size: 10px; letter-spacing: .4px; color: var(--bd-sub); white-space: nowrap; }
.bd-gap b { font-size: 16px; font-weight: 700; color: var(--tone); letter-spacing: -.3px; }
.bd-gap em { font-style: normal; font-size: 9.5px; color: var(--bd-sub); }
.bd-orb-pf { display: flex; flex-direction: column; gap: 6px; }
.bd-pfr {
  display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr) 34px;
  align-items: center; gap: 9px;
  font-size: 12px; color: var(--bd-sub); white-space: nowrap;
}
.bd-pfr > span:first-child { overflow: hidden; text-overflow: ellipsis; letter-spacing: .3px; }
.bd-pfr-track { height: 6px; border-radius: 3px; background: var(--bd-border); overflow: hidden; }
.bd-pfr-track i {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pu, #a855f7) 30%, transparent), var(--pu, #a855f7));
  box-shadow: 0 0 8px color-mix(in srgb, var(--pu, #a855f7) 70%, transparent);
}
.bd-pfr b { font-size: 11px; font-weight: 600; color: var(--bd-strong); text-align: right; }
.bd-orb-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bd-meta {
  padding: 7px 9px; border-radius: 10px; min-width: 0;
  border: 1px solid var(--bd-border); background: var(--bd-soft);
  display: flex; align-items: baseline; justify-content: center; gap: 3px; flex-wrap: wrap;
}
.bd-meta span { font-size: 9.5px; letter-spacing: .3px; color: var(--bd-sub); white-space: nowrap; }
.bd-meta b { font-size: 14px; font-weight: 700; color: var(--bd-strong); letter-spacing: -.2px; }
.bd-meta em { font-style: normal; font-size: 9px; color: var(--bd-sub); }
/* 右栏大卡：分平台完成明细 */
.bd-orb-body .bd-ring-orb .bd-lg { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.bd-orb-body .bd-ring-orb .bd-lg-per {
  grid-column: 1 / -1; grid-row: 4; grid-auto-rows: auto;
  align-self: end; margin-top: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
}
.bd-orb-body .bd-ring-orb .bd-lg-per .bd-pf-row {
  grid-column: auto; grid-row: auto;
  display: grid; grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; border-radius: 0;
  font-size: 10.5px; letter-spacing: .2px; color: var(--bd-sub); white-space: nowrap;
}
.bd-orb-body .bd-ring-orb .bd-pf-name {
  overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; color: var(--bd-sub);
}
.bd-orb-body .bd-ring-orb .bd-pf-track {
  display: block; width: auto; height: 6px; border-radius: 3px;
  background: var(--bd-border); overflow: hidden;
}
.bd-orb-body .bd-ring-orb .bd-pf-track u {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: var(--tone); opacity: .9;
  transition: width .8s cubic-bezier(.2, .8, .3, 1);
}
.bd-orb-body .bd-ring-orb .bd-pf-row b {
  grid-column: auto; grid-row: auto; justify-self: end; align-self: center;
  font-size: 10px; letter-spacing: 0; color: var(--tone); font-weight: 600;
}

/* 明细态：三环让位，内容撑满展台 */
.bd-orb.detail { border-color: color-mix(in srgb, var(--bd-strong) 18%, transparent); }
.bd-orb.detail .bd-orb-visual { display: none; }
.bd-orb.detail .bd-orb-in {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: 22px 26px 16px;
}
.bd-orb.detail .bd-orb-title { font-size: 19px; }
.bd-orb.detail .bd-orb-arc { opacity: .85; }
.bd-orb.detail .bd-orb-body {
  grid-column: 1; grid-row: 4;
  margin-top: 10px; padding: 13px 0 0;
  border-left: 0; border-top: 1px solid var(--bd-border);
}
.bd-orb.detail .bd-orb-back { grid-column: 1; grid-row: 5; justify-self: start; align-self: end; }
.bd-orb.flash { animation: bd-orb-flash .6s ease-out; }
@keyframes bd-orb-flash {
  0% { box-shadow: 0 0 0 0 var(--bd-soft), 0 0 34px 2px var(--bd-halo); }
  70% { box-shadow: 0 0 0 14px transparent, 0 0 0 0 transparent; }
  100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 26px 64px -34px rgba(0, 0, 0, .85); }
}

/* 展台内组件：右栏分层卡纵向均分，左栏三环放大 */
.bd-orb-body .bd-ring-orb {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr);
  gap: 10px; height: 100%;
}
.bd-orb-body .bd-ring-orb .bd-lg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  align-items: center;
  gap: 6px 10px;
  padding: 16px 18px; border-radius: 12px; width: 100%;
  border: 1px solid var(--bd-border); background: var(--bd-soft);
  cursor: pointer; font-family: inherit; text-align: left;
  white-space: nowrap; min-width: 0; overflow: hidden;
  transition: border-color .16s ease, background .16s ease;
}
.bd-orb-body .bd-ring-orb .bd-lg > i { grid-column: 1; grid-row: 1; align-self: center; width: 9px; height: 9px; margin: 0; }
.bd-orb-body .bd-ring-orb .bd-lg > span { grid-column: 2; grid-row: 1; font-size: 13px; letter-spacing: .3px; color: var(--bd-sub); }
.bd-orb-body .bd-ring-orb .bd-lg > b { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; font-size: 34px; line-height: 1; letter-spacing: -1px; }
/* 卡片内进度条：把中间空白变成可视化进度 */
.bd-orb-body .bd-ring-orb .bd-lg-prog {
  grid-column: 1 / -1; grid-row: 2;
  display: block; height: 10px; border-radius: 5px;
  background: var(--bd-border); overflow: hidden;
}
.bd-orb-body .bd-ring-orb .bd-lg-prog > i {
  display: block; height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 30%, transparent), var(--tone));
  box-shadow: 0 0 10px var(--tone);
  transition: width .8s cubic-bezier(.2, .8, .3, 1);
}
.bd-orb-body .bd-ring-orb .bd-lg em {
  grid-column: 1 / -1; grid-row: 3;
  align-self: start; margin-top: 2px;
  font-style: normal; font-size: 11.5px; color: var(--bd-sub); opacity: .9;
}
.bd-orb-body .bd-ring-orb .bd-lg:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); }
.bd-orb-body .bd-dt-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bd-orb-body .bd-dt-m { padding: 10px 12px; border-radius: 10px; }
.bd-orb-body .bd-dt-m span { font-size: 10.5px; letter-spacing: .4px; }
.bd-orb-body .bd-dt-m b { font-size: 22px; }
.bd-orb-body .bd-dt-m em { font-size: 10px; }
.bd-orb-body .bd-dt-h { margin: 13px 0 6px; font-size: 11px; letter-spacing: .9px; }
.bd-orb-body .bd-dt-h::before { height: 11px; }
.bd-orb-body .bd-dt-rows, .bd-orb-body .bd-dt-ords { gap: 6px; }
.bd-orb-body .bd-dt-row {
  grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px;
  padding: 8px 11px; border-radius: 9px;
}
.bd-orb-body .bd-dt-row b { font-size: 13px; }
.bd-orb-body .bd-dt-row em { font-size: 11px; }
.bd-orb-body .bd-dt-track { grid-column: 1 / -1; }
.bd-orb-body .bd-dt-ord { padding: 9px 11px; border-radius: 10px; }
.bd-orb-body .bd-dt-ord-t b { font-size: 13px; }
.bd-orb-body .bd-dt-ord-t em { font-size: 10.5px; }
.bd-orb-body .bd-dt-ord-s { font-size: 10.5px; }
.bd-orb-body .bd-dt-kv { grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 10px; }
.bd-orb-body .bd-dt-kv > div { padding: 9px 11px; }
.bd-orb-body .bd-dt-kv span { font-size: 10px; }
.bd-orb-body .bd-dt-kv b { font-size: 13px; }
.bd-orb-body .bd-dt-text { font-size: 12.5px; line-height: 1.7; padding: 10px 12px; border-radius: 10px; }
.bd-orb-body .bd-dt-styles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.bd-orb-body .bd-dt-style { border-radius: 10px; }
.bd-orb-body .bd-dt-style span { font-size: 10.5px; }
.bd-orb-body .bd-dt-style em { font-size: 9.5px; }
.bd-orb-body .bd-dt-tags { gap: 5px; }
.bd-orb-body .bd-dt-tags span { font-size: 10.5px; padding: 3px 8px; }
.bd-orb-body .bd-dt-note, .bd-orb-body .bd-dt-loading, .bd-orb-body .bd-dt-empty {
  font-size: 11.5px; padding: 8px 2px;
}
.bd-orb-body .bd-ds-st { font-size: 10px; padding: 1px 7px; }
.bd-orb-body .bd-ext-state { font-size: 11.5px; padding: 9px 11px; }

/* 需求单全宽：两列排布 */
.bd-row-orders { grid-template-columns: 1fr; }
.bd-row-orders .bd-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  max-height: 316px;
}

/* 浅色 */
.bd.light .bd-orb {
  background:
    radial-gradient(120% 90% at 50% -10%, #fff 0%, rgba(255, 255, 255, .5) 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .64));
  border-color: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 2px 4px rgba(0, 0, 0, .03),
    0 26px 60px -26px rgba(0, 0, 0, .26);
}
.bd.light .bd-orb-glow {
  background: radial-gradient(58% 52% at 50% 0%, rgba(0, 113, 227, .12), transparent 72%);
}
.bd.light .bd-orb-ticks {
  background-image: radial-gradient(rgba(0, 0, 0, .13) 1px, transparent 1.4px);
  opacity: .45;
}
.bd.light .bd-orb-arc {
  background-image: linear-gradient(90deg, transparent, #0071e3, #5e5ce6, transparent);
  opacity: .5;
}
.bd.light .bd-orb::after { opacity: .07; }
.bd.light .bd-orb-kick { color: #a1a1a6; letter-spacing: 2px; }
.bd.light .bd-orb-title { color: #1d1d1f; letter-spacing: -.4px; }
.bd.light .bd-orb-sub { color: #86868b; }
.bd.light .bd-orb-cap { color: #a1a1a6; }
.bd.light .bd-orb-back { background: #f0f0f3; border-color: transparent; color: #3c4045; }
.bd.light .bd-orb-back:hover { background: #e8e8ec; color: #1d1d1f; }
.bd.light .bd-orb.detail { border-color: rgba(0, 0, 0, .07); }
.bd.light .bd-orb-body .bd-ring-orb .bd-lg { background: #f7f7f9; border-color: transparent; }
.bd.light .bd-orb.flash { animation: bd-orb-flash-l .6s ease-out; }
@keyframes bd-orb-flash-l {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .18), 0 26px 60px -26px rgba(0, 0, 0, .26); }
  70% { box-shadow: 0 0 0 16px rgba(0, 113, 227, 0), 0 0 0 0 transparent; }
  100% { box-shadow: inset 0 1px 0 #fff, 0 26px 60px -26px rgba(0, 0, 0, .26); }
}

/* 响应式 */
@media (max-width: 1440px) {
  .bd-stage { grid-template-columns: minmax(182px, 204px) minmax(0, 1fr) minmax(182px, 204px); }
  .bd-side .bd-kpi-v b { font-size: 19px; }
  .bd-side .bd-bar { grid-template-columns: 54px 1fr 32px; }
  .bd-side .bd-prow { grid-template-columns: 50px 1fr; }
  .bd-side .bd-day-d { display: none; }
  .bd-orb-in { column-gap: 20px; padding: 20px 22px 14px; }
  .bd-orb-visual .bd-ring-svg { width: min(100%, 350px); }
}
@media (max-width: 1180px) {
  .bd-stage { grid-template-columns: 1fr; gap: 14px; }
  .bd-side-l, .bd-side-r { align-items: stretch; }
  .bd-side > * { transform: none !important; }
  .bd-side .bd-day-d { display: block; }
  .bd-side-l { order: 1; }
  .bd-orb-wrap { order: 2; }
  .bd-side-r { order: 3; }
  .bd-side .bd-kpis { grid-template-columns: repeat(4, 1fr); }
  .bd-side .bd-kpi { padding: 12px 14px 10px; }
  .bd-side .bd-kpi-v b { font-size: 28px; }
  .bd-side .bd-kpi-v small { font-size: 10.5px; }
  .bd-side .bd-bar { grid-template-columns: 86px 1fr 46px; }
  .bd-side .bd-prow { grid-template-columns: 66px 1fr; }
  .bd-side .bd-day-b { height: 50px; }
  .bd-side .bd-day-b i { width: 10px; }
  .bd-side .bd-day-n { font-size: 12px; }
  /* 单列堆叠时恢复宽松排版 */
  .bd-side .bd-mini4 { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .bd-side .bd-mini { padding: 10px 12px 9px; }
  .bd-side .bd-mini span { font-size: 11px; }
  .bd-side .bd-mini b { font-size: 24px; }
  .bd-side .bd-design-grid { grid-template-columns: .82fr 1.18fr; gap: 18px; }
  .bd-side .bd-ds-list { max-height: 200px; }
  .bd-side .bd-ds b { font-size: 12px; }
  .bd-side .bd-ds em, .bd-side .bd-ds u { font-size: 10.5px; }
  .bd-side .bd-ext-note { display: block; }
  .bd-side .bd-ord-h b { font-size: 12.5px; }
  .bd-side .bd-list { max-height: 300px; }
}
@media (max-width: 900px) {
  .bd-row-orders .bd-list { grid-template-columns: 1fr; }
  .bd-side .bd-kpis { grid-template-columns: 1fr 1fr; }
  .bd-orb { min-height: 0; }
  .bd-orb-in {
    position: relative; inset: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    padding: 18px 20px 16px;
  }
  .bd-orb-kick { grid-column: 1; grid-row: 1; }
  .bd-orb-title { grid-column: 1; grid-row: 2; font-size: 18px; }
  .bd-orb-sub { grid-column: 1; grid-row: 3; }
  .bd-orb-visual { grid-column: 1; grid-row: 4; height: auto; margin: 8px 0; }
  .bd-orb-visual .bd-ring-svg { width: min(100%, 280px); }
  .bd-orb-body {
    grid-column: 1; grid-row: 5;
    height: auto; max-height: 240px;
    padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--bd-border);
  }
  .bd-orb-back { grid-column: 1; grid-row: 6; justify-self: start; }
  .bd-orb-body .bd-ring-orb { grid-auto-rows: auto; height: auto; }
  .bd-orb-body .bd-dt-mini { grid-template-columns: 1fr 1fr; }
  .bd-orb-body .bd-dt-styles { grid-template-columns: 1fr 1fr; }
  .bd-orb.detail .bd-orb-in { padding: 18px 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-orb-glow, .bd-orb-ticks, .bd-orb-arc { animation: none; }
  .bd-orb.flash { animation: none; }
}

/* ---- AI 数据分析对话面板（Accio 桥接） ---- */
.bd-ai-fab {
  position: absolute; right: 18px; bottom: 44px; z-index: 30;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cy, #22d3ee) 45%, transparent);
  background: var(--bd-card-a); color: var(--bd-strong);
  font-size: 14px; font-weight: 700; letter-spacing: .5px; cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .6);
  transition: transform .18s ease, border-color .18s ease;
}
.bd-ai-fab:hover { transform: translateY(-2px); border-color: var(--cy, #22d3ee); }
.bd-ai {
  position: absolute; right: 18px; bottom: 100px; z-index: 31;
  width: 390px; max-width: calc(100% - 36px);
  height: min(540px, calc(100% - 150px));
  display: flex; flex-direction: column;
  border-radius: 18px; border: 1px solid var(--bd-border);
  background: var(--bd-card-b);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.bd-ai.hidden { display: none; }
.bd-ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px; border-bottom: 1px solid var(--bd-border);
}
.bd-ai-head b { display: block; font-size: 13px; color: var(--bd-strong); letter-spacing: .4px; }
.bd-ai-head span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--bd-sub); }
.bd-ai-x {
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--bd-border); background: transparent; color: var(--bd-sub);
  font-size: 12px;
}
.bd-ai-x:hover { color: var(--bd-strong); }
.bd-ai-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.bd-ai-msgs::-webkit-scrollbar { width: 3px; }
.bd-ai-msgs::-webkit-scrollbar-thumb { background: var(--bd-border); border-radius: 3px; }
.bd-ai-m { max-width: 86%; padding: 8px 11px; border-radius: 13px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.bd-ai-m.u { align-self: flex-end; background: var(--bd-soft); color: var(--bd-strong); border-bottom-right-radius: 4px; }
.bd-ai-m.a { align-self: flex-start; background: var(--bd-card-a); border: 1px solid var(--bd-border); color: var(--bd-ct); border-bottom-left-radius: 4px; }
.bd-ai-m.err { background: rgba(226, 75, 74, .12); border-color: rgba(226, 75, 74, .35); color: #f09595; }
.bd.light .bd-ai-m.err { color: #a32d2d; }
.bd-ai-m.think { color: var(--bd-sub); }
.bd-ai-m.think i {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--bd-sub); margin-right: 4px; vertical-align: middle;
  animation: bd-ai-blink 1.2s ease-in-out infinite;
}
.bd-ai-m.think i:nth-child(2) { animation-delay: .2s; }
.bd-ai-m.think i:nth-child(3) { animation-delay: .4s; }
@keyframes bd-ai-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.bd-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.bd-ai-chips button {
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--bd-border); background: transparent; color: var(--bd-sub);
  font-size: 11px; letter-spacing: .3px;
  transition: color .15s ease, border-color .15s ease;
}
.bd-ai-chips button:hover { color: var(--bd-strong); border-color: color-mix(in srgb, var(--cy, #22d3ee) 50%, transparent); }
.bd-ai-in { display: flex; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--bd-border); }
.bd-ai-in input {
  flex: 1; min-width: 0; padding: 8px 11px; border-radius: 11px;
  border: 1px solid var(--bd-border); background: var(--bd-card-a);
  color: var(--bd-strong); font-size: 12.5px; outline: none;
}
.bd-ai-in input:focus { border-color: color-mix(in srgb, var(--cy, #22d3ee) 50%, transparent); }
.bd-ai-send {
  padding: 8px 14px; border-radius: 11px; cursor: pointer;
  border: none; background: color-mix(in srgb, var(--cy, #22d3ee) 22%, transparent);
  color: var(--bd-strong); font-size: 12.5px; letter-spacing: .5px;
}
.bd-ai-send:hover { background: color-mix(in srgb, var(--cy, #22d3ee) 34%, transparent); }
.bd-ai-send:disabled { opacity: .45; cursor: not-allowed; }

.bd.light .bd-ai-fab { background: #fff; color: #1d1d1f; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 10px 24px -10px rgba(0,0,0,.2); }
.bd.light .bd-ai-fab:hover { border-color: #1d1d1f; }
.bd.light .bd-ai { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-color: rgba(0, 0, 0, .06); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .3); }
.bd.light .bd-ai-head b { color: #1d1d1f; }
.bd.light .bd-ai-head span { color: #86868b; }
.bd.light .bd-ai-x { border-color: rgba(0, 0, 0, .08); color: #86868b; }
.bd.light .bd-ai-m.u { background: #f0f0f3; color: #1d1d1f; }
.bd.light .bd-ai-m.a { background: #fff; border-color: rgba(0, 0, 0, .07); color: #3c4045; }
.bd.light .bd-ai-m.think { color: #86868b; }
.bd.light .bd-ai-m.think i { background: #86868b; }
.bd.light .bd-ai-chips button { color: #86868b; border-color: rgba(0, 0, 0, .08); }
.bd.light .bd-ai-chips button:hover { color: #1d1d1f; border-color: rgba(0, 0, 0, .25); }
.bd.light .bd-ai-in input { background: #fff; border-color: rgba(0, 0, 0, .1); color: #1d1d1f; }
.bd.light .bd-ai-in input:focus { border-color: rgba(0, 0, 0, .3); }
.bd.light .bd-ai-send { background: #1d1d1f; color: #fff; }
.bd.light .bd-ai-send:hover { background: #000; }

/* 款式业务详情：主图预览 */
.bd-dt-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--bd-border); background: var(--bd-soft);
}
.bd-dt-hero img, .bd-dt-hero i.ph {
  width: 92px; height: 92px; flex: 0 0 auto;
  border-radius: 10px; object-fit: cover; display: block;
  border: 1px solid var(--bd-border); background: var(--bd-card-a);
}
.bd-dt-hero i.ph { display: flex; align-items: center; justify-content: center; }
.bd-dt-hero-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bd-dt-hero-t b { font-size: 16px; letter-spacing: -.3px; color: var(--bd-strong); }
.bd-dt-hero-t span { font-size: 11.5px; color: var(--bd-sub); }
.bd-dt-hero-t a { font-size: 11px; color: var(--tone, #22d3ee); text-decoration: none; width: fit-content; }
.bd-dt-hero-t a:hover { text-decoration: underline; }
.bd.light .bd-dt-hero { background: #f7f7f9; border-color: rgba(0, 0, 0, .05); }
.bd.light .bd-dt-hero img, .bd.light .bd-dt-hero i.ph { background: #fff; border-color: rgba(0, 0, 0, .07); }
.bd.light .bd-dt-hero-t b { color: #1d1d1f; }
.bd.light .bd-dt-hero-t span { color: #86868b; }
.bd.light .bd-dt-hero-t a { color: #1d1d1f; }

/* 图片灯箱浮窗 */
.bd-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
  cursor: zoom-out;
}
.bd-lightbox.on { opacity: 1; pointer-events: auto; }
.bd-lightbox-in {
  position: relative; max-width: min(76vw, 860px); max-height: 82vh;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.bd-lightbox-in img {
  max-width: 100%; max-height: 74vh; display: block;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  background: #fff;
}
.bd-lightbox-in span { font-size: 12px; letter-spacing: .5px; color: rgba(255, 255, 255, .8); }
.bd-lightbox-x {
  position: absolute; top: -34px; right: -6px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .4);
  color: #fff; font-size: 13px; cursor: pointer;
}
.bd-dt-hero-img {
  padding: 0; border: none; background: none; cursor: zoom-in;
  display: block; flex: 0 0 auto;
}
.bd-dt-hero-img img {
  width: 92px; height: 92px; border-radius: 10px; object-fit: cover; display: block;
  border: 1px solid var(--bd-border); background: var(--bd-card-a);
  transition: transform .15s ease, border-color .15s ease;
}
.bd-dt-hero-img:hover img { transform: scale(1.03); border-color: color-mix(in srgb, var(--tone, #22d3ee) 55%, transparent); }
.bd-dt-hero-link {
  padding: 0; border: none; background: none; cursor: pointer;
  font-size: 11px; color: var(--tone, #22d3ee); width: fit-content; font-family: inherit;
}
.bd-dt-hero-link:hover { text-decoration: underline; }
.bd.light .bd-dt-hero-img img { background: #fff; border-color: rgba(0, 0, 0, .07); }
.bd.light .bd-dt-hero-link { color: #1d1d1f; }

/* ---- 短视频库（独立存放） ---- */
/* 一个款号一整行：组与组纵向排列，组内视频横向铺开 */
.vv-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.vv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.vv-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09); }
.vv-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  display: flex; align-items: center; justify-content: center;
}
.vv-thumb video,
.vv-thumb .vv-poster {
  width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.vv-play {
  position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .5);
  pointer-events: none;
}
.vv-play::after {
  content: '';
  position: absolute; left: 17px; top: 13px;
  border-style: solid; border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #fff;
}
.vv-card:hover .vv-play { background: rgba(0, 0, 0, .62); }
.vv-del {
  position: absolute; right: 7px; top: 7px;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; cursor: pointer; display: none;
}
.vv-card:hover .vv-del { display: block; }
.vv-del:hover { background: #e24b4a; }
.vv-dl {
  position: absolute; right: 8px; bottom: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(0, 0, 0, .5); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.vv-dl:hover { background: rgba(0, 0, 0, .75); }
.vv-info { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 4px; }
.vv-info b { font-size: 14px; letter-spacing: .2px; }
.vv-info > span { font-size: 11.5px; color: var(--sub, #86868b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-ops { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.vv-type {
  padding: 3px 6px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 11px; color: inherit; cursor: pointer; outline: none;
}
.vv-ops em {
  font-style: normal; font-size: 10.5px; color: var(--sub, #86868b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.vv-empty {
  margin: 30px auto; text-align: center; font-size: 13px;
  color: var(--sub, #86868b); max-width: 460px; line-height: 1.8;
}
/* 款号分组：一个款号一排，同款多视频横向排列；整组包白色框与底层区分 */
.vv-group {
  margin-bottom: 0;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.vv-group-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 12px;
}
.vv-group-head b { font-size: 14.5px; letter-spacing: .2px; }
.vv-nos { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vv-no-x { font-size: 12px; color: var(--sub, #86868b); letter-spacing: .2px; line-height: 1.5; }
.vv-meta { font-size: 12px; color: var(--sub, #86868b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.vv-group-head span { font-size: 12px; color: var(--sub, #86868b); }
.vv-group-head em {
  font-style: normal; font-size: 12px; margin-left: auto;
  color: var(--accent, #2f6fed); background: rgba(47, 111, 237, .1);
  border-radius: 99px; padding: 1px 10px; white-space: nowrap;
}
.vv-group-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* 横版视频卡：16:9 缩略图 */
.vv-group-row .vv-card {
  width: 236px; flex: 0 0 auto; margin: 0;
  border: 1px solid var(--line);
  box-shadow: none;
}
.vv-group-row .vv-thumb { aspect-ratio: 9 / 16; background: #111; }
.vv-group-row .vv-thumb video,
.vv-group-row .vv-thumb .vv-poster { object-fit: contain; }
.vv-group-row .vv-info { padding: 7px 9px 9px; gap: 3px; }
/* 播放弹层 */
.vv-player {
  position: fixed; inset: 0; z-index: 180;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .76);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vv-player-in {
  position: relative;
  max-width: min(86vw, 900px);
  display: flex; flex-direction: column; gap: 10px;
}
.vv-player-in video {
  max-width: 100%; max-height: 72vh;
  border-radius: 14px; background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.vv-player-cap { display: flex; align-items: baseline; gap: 10px; color: rgba(255, 255, 255, .92); }
.vv-player-cap b { font-size: 15px; }
.vv-player-cap span { font-size: 12px; color: rgba(255, 255, 255, .65); }
.vv-x {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .4);
  color: #fff; font-size: 13px; cursor: pointer;
}
.vv-x:hover { background: rgba(0, 0, 0, .6); }
.vv-player-in .vv-x { position: absolute; top: -38px; right: -4px; }
/* 添加弹层 */
.vv-add {
  position: fixed; inset: 0; z-index: 181;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vv-add-card {
  width: min(430px, calc(100vw - 40px));
  max-height: 86vh; overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; gap: 12px;
}
.vv-add-head { display: flex; align-items: center; justify-content: space-between; }
.vv-add-head b { font-size: 15px; }
.vv-add-head .vv-x {
  border-color: var(--line); background: transparent; color: var(--sub, #86868b);
}
.vv-add-head .vv-x:hover { background: rgba(0, 0, 0, .06); }
.vv-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.vv-f span { color: var(--sub, #86868b); letter-spacing: .3px; }
.vv-f input, .vv-f select {
  padding: 8px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card);
  color: inherit; font-size: 13px; outline: none; font-family: inherit;
}
.vv-f input:focus, .vv-f select:focus { border-color: var(--accent); }
.vv-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vv-add-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.vv-add-msg { font-size: 12px; color: var(--sub, #86868b); flex: 1; min-width: 0; }

/* ============ 订单（内部款式购买 + 发货反馈） ============ */
.po-list { display: flex; flex-direction: column; gap: 10px; max-width: 980px; margin: 0 auto; }
.po-card {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 14px; min-width: 0;
  border: 1px solid var(--line, #e2e2e7); background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.po-card.st-pending { border-left: 3px solid #f59e0b; }
.po-card.st-shipped { border-left: 3px solid #3b82f6; }
.po-card.st-done { border-left: 3px solid #10b981; }
.po-card.st-cancelled { border-left: 3px solid #9ca3af; opacity: .75; }
.po-l { min-width: 0; flex: 1; }
.po-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.po-no { font-size: 13px; color: #6b7280; font-family: ui-monospace, monospace; letter-spacing: .3px; }
.po-style { display: inline-flex; align-items: baseline; gap: 8px; }
.po-style b { font-size: 16px; letter-spacing: .5px; }
.po-style em { font-style: normal; font-size: 11.5px; color: #6b7280; }
.po-info { margin-top: 5px; font-size: 12.5px; color: #374151; }
.po-info b { color: #111827; }
.po-info.sub { color: #6b7280; font-size: 12px; }
.po-ship { margin-top: 6px; font-size: 12.5px; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 5px 9px; width: fit-content; max-width: 100%; }
.po-cancelled { margin-top: 6px; font-size: 12px; color: #9ca3af; }
.po-meta { margin-top: 7px; font-size: 11px; color: #9ca3af; }
.po-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.po-badge { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.po-badge.st-pending { color: #b45309; background: #fef3c7; }
.po-badge.st-shipped { color: #1d4ed8; background: #dbeafe; }
.po-badge.st-done { color: #047857; background: #d1fae5; }
.po-badge.st-cancelled { color: #6b7280; background: #f3f4f6; }
.po-ops { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.po-style-meta { margin: -4px 0 4px; font-size: 11.5px; color: #6b7280; padding: 0 2px; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.po-card .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .po-card { flex-direction: column; }
  .po-r { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
}

/* ============ 订单跟踪（下单 → 发货 → 在途 → 签收） ============ */
.track-kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 1100px; margin: 0 auto 12px;
}
.tk-kpi-card {
  display: flex; flex-direction: column; gap: 1px; text-align: left;
  padding: 12px 14px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tk-kpi-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0, 0, 0, .07); }
.tk-kpi-card.on { border-color: currentColor; box-shadow: 0 0 0 2px rgba(0, 122, 255, .16); }
.tk-kpi-v { font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: .5px; }
.tk-kpi-l { font-size: 12px; font-weight: 600; color: #374151; }
.tk-kpi-h { font-size: 10.5px; color: #9ca3af; }
.tk-kpi-card.is-pending { color: #b45309; }
.tk-kpi-card.is-shipped { color: #1d4ed8; }
.tk-kpi-card.is-late { color: #dc2626; }
.tk-kpi-card.is-done { color: #047857; }
.tk-kpi-card.is-pending { background: #fffdf6; }
.tk-kpi-card.is-late { background: #fffafa; }

.track-list {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 1100px; margin: 0 auto;
}
.tk-card {
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 13px 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.tk-card.st-pending { border-left: 3px solid #f59e0b; }
.tk-card.st-shipped { border-left: 3px solid #3b82f6; }
.tk-card.st-done { border-left: 3px solid #10b981; }
.tk-card.st-cancelled { border-left: 3px solid #9ca3af; opacity: .8; }
.tk-card.is-late { border-left-color: #ef4444; background: #fffbfb; }

.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tk-head-l { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.tk-no { font-family: ui-monospace, monospace; font-size: 11.5px; color: #6b7280; letter-spacing: .3px; }
.tk-style { font-size: 15px; letter-spacing: .4px; }
.tk-sub { font-style: normal; font-size: 11.5px; color: #6b7280; }
.tk-head-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tk-transit {
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: #eff6ff; color: #1d4ed8; white-space: nowrap;
}
.tk-transit.late { background: #fef2f2; color: #dc2626; }
.tk-transit.pending { background: #fffbeb; color: #b45309; }
.tk-transit.done { background: #ecfdf5; color: #047857; }

.tk-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 14px 0 2px; padding: 0;
}
.tk-step { position: relative; padding: 0 8px 0 18px; min-width: 0; }
.tk-step::before {
  content: ''; position: absolute; left: 9px; right: 0; top: 6px;
  height: 2px; background: #e5e7eb; z-index: 0;
}
.tk-step:last-child::before { display: none; }
.tk-dot {
  position: absolute; left: 0; top: 2px; width: 10px; height: 10px;
  border-radius: 999px; background: #d1d5db; z-index: 1;
  box-shadow: 0 0 0 2px #fff;
}
.tk-step b { display: block; font-size: 12.5px; font-weight: 600; color: #6b7280; }
.tk-step em { display: block; font-style: normal; font-size: 10.5px; color: #9ca3af; margin-top: 1px; word-break: break-all; }
.tk-step.is-done .tk-dot { background: #10b981; }
.tk-step.is-done::before { background: #a7f3d0; }
.tk-step.is-done b { color: #111827; }
.tk-step.is-now .tk-dot { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.tk-step.is-now b { color: #1d4ed8; }
.tk-step.is-bad .tk-dot { background: #ef4444; }
.tk-step.is-bad b { color: #b91c1c; }
.tk-step.is-wait { opacity: .55; }
.tk-wait-t { color: #c4c4c9 !important; }

.tk-addr { margin-top: 10px; font-size: 11.5px; color: #6b7280; line-height: 1.55; }
.tk-ops { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tk-ops .btn { white-space: nowrap; text-decoration: none; }

@media (max-width: 760px) {
  .track-kpi { grid-template-columns: repeat(2, 1fr); }
  .tk-steps { grid-template-columns: 1fr; gap: 9px; }
  .tk-step::before { display: none; }
  .tk-head-r { width: 100%; justify-content: flex-start; }
}

/* ============ 任务订单 / 任务订单跟踪 ============ */
.to-card {
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 13px 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.to-card.st-pending { border-left: 3px solid #f59e0b; }
.to-card.st-in_progress { border-left: 3px solid #3b82f6; }
.to-card.st-completed { border-left: 3px solid #10b981; }
.to-card.st-cancelled { border-left: 3px solid #9ca3af; opacity: .82; }
.to-card.is-late { border-left-color: #ef4444; background: #fffbfb; }

.to-steps {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 12px 0 8px; padding-bottom: 3px;
}
.to-steps::-webkit-scrollbar { height: 6px; }
.to-steps::-webkit-scrollbar-thumb { background: #dcdce1; border-radius: 3px; }
.to-step {
  flex: 0 0 auto; min-width: 104px; padding: 7px 10px;
  border-radius: 10px; border: 1px solid var(--line); background: #fafafb;
}
.to-step b { display: block; font-size: 12.5px; font-weight: 600; color: #4b5563; }
.to-step em { display: block; font-style: normal; font-size: 10.5px; color: #9ca3af; margin-top: 1px; }
.to-step u { display: block; text-decoration: none; font-size: 10px; color: #b0b0b6; margin-top: 1px; }
.to-step.is-done { background: #ecfdf5; border-color: #a7f3d0; }
.to-step.is-done b { color: #047857; }
.to-step.is-done em { color: #34a37b; }
.to-step.is-doing { background: #eff6ff; border-color: #bfdbfe; box-shadow: 0 0 0 2px rgba(59, 130, 246, .10); }
.to-step.is-doing b { color: #1d4ed8; }
.to-step.is-doing em { color: #3b82f6; }
.to-step.is-pending { opacity: .6; }
.to-no-stage { font-size: 12px; color: #9ca3af; }

.to-prog { display: flex; align-items: center; gap: 10px; }
.to-bar { flex: 1; max-width: 220px; height: 5px; background: #eef0f3; border-radius: 999px; overflow: hidden; }
.to-bar i { display: block; height: 100%; background: linear-gradient(90deg, #34c759, #10b981); border-radius: 999px; }
.to-prog span { font-size: 11px; color: #6b7280; }

.to-body { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.to-sec { margin-bottom: 8px; }
.to-sec h5 { margin: 0 0 3px; font-size: 11.5px; font-weight: 600; color: #6b7280; }
.to-sec p { margin: 0; font-size: 12.5px; color: #1f2937; line-height: 1.6; word-break: break-word; }
.to-sec a { color: var(--accent); word-break: break-all; }
.to-nos { display: flex; flex-wrap: wrap; gap: 6px; }
.to-no {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-size: 12px; padding: 2px 8px; border-radius: 7px;
  background: #f3f4f6; color: #111827; font-family: ui-monospace, monospace;
}
.to-no em { font-style: normal; font-family: inherit; font-size: 10px; color: #9ca3af; }
.to-meta { margin-top: 8px; font-size: 11px; color: #9ca3af; }

/* ============ 套版模板库（PSD 模板） ============ */
.tpl-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.flex-1 { flex: 1; }
.tpl-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.tpl-kind {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.tpl-kind:hover { border-color: var(--line-strong); }
.tpl-kind.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.tpl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.tpl-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-1px); }
.tpl-thumb {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-thumb-doc { background: linear-gradient(135deg, #eef2ff, #f5f5f7); }
.tpl-ext {
  font-family: ui-monospace, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: .5px;
  padding: 10px 14px;
  border: 1.5px dashed #c7cbd6;
  border-radius: 10px;
  background: #fff;
}
.tpl-body { padding: 10px 12px 4px; }
.tpl-name {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpl-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tpl-chip {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 1px 7px;
}
.tpl-size { font-size: 11px; color: var(--sub); }
.tpl-sub { font-size: 11px; color: var(--sub); margin-top: 4px; }
.tpl-ops {
  display: flex; gap: 8px;
  padding: 10px 12px 12px;
}
.tpl-ops .btn { flex: 1; justify-content: center; }
.tpl-del { color: var(--danger); }
.tpl-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--sub);
  padding: 60px 0;
  font-size: 13px;
}

/* ============ 删除款式模式（管理员，页面右上角入口） ============ */
.del-btn { color: var(--danger); border-color: rgba(255, 59, 48, 0.35); }
.del-btn:hover { border-color: var(--danger); background: rgba(255, 59, 48, 0.06); }
.del-picking .pick.on {
  background: var(--danger);
  border-color: var(--danger);
}
.del-go { background: var(--danger); border-color: var(--danger); }
.del-go:hover { filter: brightness(0.92); }
.del-go[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ============ 手机 / 窄屏适配（≤820px） ============ */
.nav-toggle { display: none; }
@media (max-width: 820px) {
  :root { --side-rail: 56px; }
  .nav-toggle { display: inline-flex; }
  /* 侧栏改为抽屉：点汉堡展开，点导航后收起 */
  .side { z-index: 80; }
  .side:hover { width: var(--side-rail); box-shadow: none; }
  .side.open { width: var(--side-w); box-shadow: 12px 0 32px rgba(16, 24, 40, .18); }
  .side.open .nav-txt { opacity: 1; }
  .main { padding: 14px 14px 32px; }
  .topbar { align-items: center; gap: 10px; margin-bottom: 14px; }
  .topbar h2 { font-size: 19px; }
  .top-actions { flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  .filterbar { flex-wrap: wrap; gap: 8px; }
  .fb-title { flex: 1 1 100%; }
  .fb-title .page-sub { display: none; }
  .filterbar .search { flex: 1 1 140px; min-width: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  #view-upload .up-cards { grid-template-columns: 1fr; }
  /* 预览弹层：窄屏纵向排布，缩略图栏横向滚 */
  .preview { padding: 10px; }
  .preview-panel { height: 96vh; border-radius: 12px; }
  .preview-main { flex-direction: column; overflow-y: auto; }
  .pv-side { width: 100% !important; border-right: 0; border-bottom: 1px solid var(--line); max-height: 230px; overflow-y: auto; flex-shrink: 0; }
  .pv-info { border-left: 0; border-top: 1px solid var(--line); }
  /* 新增业务单元窄屏：两块上下并列、整栏全宽（折叠时仍为细条） */
  .pv-biz { width: 100% !important; border-left: 0; border-top: 1px solid var(--line); }
  .pv-biz.collapsed { width: 26px !important; }
  .pv-biz-sec { min-height: 150px; }
  /* 登录与弹窗 */
  .login { padding: 16px; }
  .login-card { width: 100%; max-width: 380px; padding: 24px 18px 18px; }
  .modal { padding: 12px; }
  .modal-card { width: 100%; max-width: 100%; max-height: 92vh; overflow-y: auto; padding: 18px 16px; }
}

/* ===== 访客岗位（开放注册默认岗位）：只能看图库/设计图库的图片 =====
   下载入口、批量条、删除条、预览右侧「库存·订单」侧栏全部收起；
   后端 /v1/zip、/v1/stock/*、/v1/db 写入同时会 403，双保险。 */
body.role-visitor #gBatchBtn,
body.role-visitor #batchBar,
body.role-visitor #delBar,
body.role-visitor #pvDownload,
body.role-visitor #pvBiz { display: none !important; }

/* 下单页：款号 → 图库/设计图库 匹配预览 */
.o-style-hits { margin-top: 10px; }
.osh-tip { font-size: 12px; color: var(--muted, #8a8f9d); margin-bottom: 8px; }
.osh-tip .osh-warn { color: #e5484d; }
.osh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.osh-card { border: 1px solid var(--line, #e3e6ee); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; background: #fff; }
.osh-card img, .osh-card .ph { width: 100%; height: 92px; object-fit: cover; border-radius: 6px; background: #f0f1f5; display: block; }
.osh-card .ph { position: relative; }
.osh-card .ph::after { content: '无图'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b6bac6; font-size: 11px; }
.osh-card b { font-size: 13px; color: var(--ink, #22242a); }
.osh-card em { color: var(--muted, #8a8f9d); font-style: normal; font-size: 11px; }
.osh-card .osh-src { font-size: 11px; line-height: 1; }
.osh-gal .osh-src { color: #2563eb; }
.osh-des .osh-src { color: #7c3aed; }
.osh-miss { border-color: #f0b6b8; background: #fdf5f5; }
.osh-miss .osh-src { color: #e5484d; }
.osh-miss em { color: #e5484d; }

/* ============ 下单页 · 视觉重构（2026-12-04） ============ */
/* 占满主区宽度，顶部引导条 + 左侧分区卡片表单 + 右侧填写指引 */
#view-order .order-page { max-width: 1680px; }

/* 顶部引导条 */
.order-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; margin-bottom: 18px;
  background: linear-gradient(120deg, #eef4ff 0%, #f7f9ff 55%, #faf5ff 100%);
  border: 1px solid #e3ebfb; border-radius: var(--radius);
}
.order-hero-icon {
  width: 52px; height: 52px; flex: 0 0 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; border-radius: 15px;
  background: linear-gradient(135deg, #4f8bff, #7c5cff);
  box-shadow: 0 6px 16px rgba(79, 139, 255, .28);
}
.order-hero-txt { min-width: 0; flex: 1; }
.order-hero-txt h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.01em; color: #1c2436; }
.order-hero-txt p { margin: 5px 0 0; font-size: 13px; color: #6b7280; }
.order-hero-steps { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ohs { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9aa1ad; white-space: nowrap; }
.ohs i { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; border-radius: 50%; background: #e6e9ef; color: #9aa1ad; }
.ohs.on { color: #2f6bff; font-weight: 600; }
.ohs.on i { background: #2f6bff; color: #fff; }
.ohs-sep { width: 22px; height: 1px; background: #d7deea; }

/* 两栏布局 */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.order-form-wrap { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* 分区卡片 */
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-card-hd { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f0f1f4; background: #fcfcfe; }
.order-card-no {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: #2f6bff; background: #eaf1ff;
}
.order-card-hd h4 { margin: 1px 0 0; font-size: 15px; font-weight: 620; color: var(--text); }
.order-card-hd p { margin: 3px 0 0; font-size: 12px; color: var(--sub); }
.order-card-bd { padding: 18px 20px 20px; }

/* 必填星号（不依赖 DOM，避免被 i18n textContent 冲掉） */
#view-order .req::after { content: ' *'; color: var(--danger); font-weight: 400; }

/* 字段布局 */
.order-fields.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ofield { min-width: 0; }
.ofield > label { display: block; font-size: 13px; color: #3a3a3c; margin-bottom: 8px; }
.order-card-bd > .ofield + .ofield { margin-top: 16px; }
.order-date-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.order-date-row > label { margin: 0; }
.order-date-row .hint { grid-column: 1 / -1; margin: 2px 0 0; }
.order-date-ctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-date-ctl .input { width: auto; min-width: 180px; }

/* 任务类型勾选在卡片里更舒展 */
#view-order .checks { padding-top: 0; gap: 10px; }
#view-order .check { padding: 9px 14px; font-size: 13.5px; }

/* 提交栏 */
.order-submit-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.order-submit-note { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--sub); }

/* 右栏：填写指引 */
.order-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; }
.order-guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.order-guide h4 { margin: 0 0 14px; font-size: 15px; font-weight: 620; color: var(--text); }
.order-guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.order-guide-list li { display: flex; gap: 10px; font-size: 12.5px; color: #5b606b; line-height: 1.55; }
.order-guide-list i {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 700;
  color: #2f6bff; background: #eaf1ff; margin-top: 1px;
}
.order-tip-card { display: flex; gap: 10px; padding: 15px 18px; border-radius: var(--radius); background: #fff8ec; border: 1px solid #f7e6c4; }
.order-tip-icon { flex: 0 0 auto; font-size: 16px; color: #d99100; line-height: 1.4; }
.order-tip-card b { display: block; font-size: 13px; color: #8a6100; }
.order-tip-card p { margin: 5px 0 0; font-size: 12px; color: #9a7537; line-height: 1.6; }

/* 响应式：窄屏两栏堆叠、步骤条换行 */
@media (max-width: 1100px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-aside { position: static; }
  .order-hero { flex-wrap: wrap; }
  .order-hero-steps { width: 100%; padding-left: 68px; }
}
@media (max-width: 620px) {
  .order-fields.two { grid-template-columns: 1fr; }
  .order-hero-steps { padding-left: 0; }
  .order-card-hd, .order-card-bd, .order-guide, .order-submit-bar { padding-left: 16px; padding-right: 16px; }
}
