/* 奢泰速卖通运营系统 · 界面样式
   跟随奢泰 ERP（Vue3 + Element Plus）的视觉：深蓝灰侧栏、白色顶栏、浅灰内容区、Element 配色。 */
:root {
  --primary: #409eff; --primary-hover: #66b1ff; --primary-active: #337ecc;
  --primary-soft: #ecf5ff; --primary-line: #d9ecff;
  --ok: #67c23a; --ok-text: #529b2e; --ok-soft: #f0f9eb; --ok-line: #e1f3d8;
  --warn: #e6a23c; --warn-text: #b88230; --warn-soft: #fdf6ec; --warn-line: #faecd8;
  --bad: #f56c6c; --bad-text: #c45656; --bad-soft: #fef0f0; --bad-line: #fde2e2;
  --gray: #909399; --gray-soft: #f4f4f5; --gray-line: #e9e9eb;
  --text: #303133; --text-2: #606266; --muted: #909399; --placeholder: #a8abb2;
  --line: #ebeef5; --line-strong: #dcdfe6; --fill: #f5f7fa;
  --bg: #f0f2f5; --panel: #fff;
  --side: #304156; --side-dark: #263445; --side-deep: #1f2d3d; --side-logo: #2b3649;
  --side-text: #bfcbd9; --side-muted: #7a8799;
  --gold: #c9a45c;
  --radius: 8px; --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 2px 8px rgba(0, 21, 41, .04);
  --shadow-hover: 0 4px 16px rgba(0, 21, 41, .10);
  --side-w: 220px; --top-h: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- 整体布局 ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side);
  display: flex; flex-direction: column; z-index: 30;
}
.logo { height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--side-logo); color: #fff; flex: none; }
.logo:hover { color: #fff; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #e3c584, #b38b45); color: #1f2d3d; font-weight: 800; font-size: 17px;
  box-shadow: 0 2px 6px rgba(201, 164, 92, .35);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo-text b { font-size: 14px; letter-spacing: .3px; white-space: nowrap; }
.logo-text small { font-size: 12px; color: var(--side-text); }
.menu { flex: 1; overflow-y: auto; padding: 8px 0 12px; scrollbar-width: thin; scrollbar-color: #4a5a70 transparent; }
.menu-group { padding: 16px 20px 6px; font-size: 12px; color: var(--side-muted); letter-spacing: 1px; }
.menu-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 20px;
  color: var(--side-text); font-size: 14px; transition: background .15s, color .15s;
}
.menu-item:hover { background: var(--side-dark); color: #fff; }
.menu-item.on { background: var(--side-dark); color: var(--primary); }
.menu-item.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.menu-item.off { color: #6b7a8f; cursor: default; }
.menu-item.off:hover { background: transparent; color: #6b7a8f; }
.menu-item em { margin-left: auto; font-style: normal; font-size: 11px; padding: 0 6px; line-height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .06); color: #6b7a8f; }
.sidebar-foot { padding: 10px 20px; font-size: 12px; color: var(--side-muted); border-top: 1px solid rgba(255, 255, 255, .06); flex: none; }

.main-wrap { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); background: var(--panel);
  box-shadow: 0 1px 4px rgba(0, 21, 41, .08); display: flex; align-items: center; gap: 12px; padding: 0 20px;
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; white-space: nowrap; }
.crumb b { font-weight: 600; color: var(--text); }
.crumb .sep { color: var(--placeholder); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--fill); }
.icon-btn .ico { width: 20px; height: 20px; }

.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: var(--text-2); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--fill); }
.user-menu summary .ico { width: 14px; height: 14px; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #79bbff, #409eff); color: #fff; font-size: 13px; font-weight: 600; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); padding: 6px 0; z-index: 40;
}
.dd-head { display: flex; flex-direction: column; padding: 6px 16px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--text-2); }
.dropdown a:hover { background: var(--primary-soft); color: var(--primary); }
.dropdown .ico { width: 16px; height: 16px; }

/* 店铺切换 */
.store-menu { position: relative; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.store-menu summary {
  list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 18px; color: var(--text); background: var(--panel); max-width: 360px;
}
.store-menu summary::-webkit-details-marker { display: none; }
.store-menu summary:hover { border-color: #a0cfff; color: var(--primary); }
.store-menu summary > .ico:first-child { color: var(--primary); }
.store-menu summary > .ico:last-child { width: 14px; height: 14px; color: var(--muted); }
.store-menu .sname { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown.left { left: 14px; right: auto; min-width: 300px; }
.dropdown form { margin: 0; }
.dd-item {
  width: 100%; height: auto; display: flex; align-items: center; gap: 10px; padding: 8px 16px; border: 0; border-radius: 0;
  background: transparent; color: var(--text); text-align: left; white-space: normal;
}
.dd-item:hover { background: var(--primary-soft); color: var(--text); }
.dd-item.on { background: var(--primary-soft); }
.dd-item.on .code { background: var(--primary); color: #fff; }
.dd-item .code { flex: none; min-width: 42px; height: 24px; padding: 0 6px; border-radius: 4px; display: grid; place-items: center; background: var(--fill); color: var(--text-2); font-size: 12px; font-weight: 600; }
.dd-item .nm { display: flex; flex-direction: column; line-height: 1.35; }
.dd-item .nm small { color: var(--muted); font-size: 12px; }
.dd-head span.small { font-weight: 400; margin-top: 2px; }

.content { flex: 1; padding: 20px; width: 100%; max-width: 1600px; }
.nav-toggle, .scrim, .only-mobile { display: none; }

/* ---------- 标题与卡片 ---------- */
h1 { font-size: 20px; font-weight: 600; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; box-shadow: var(--shadow); }
.card > table:last-child, .card > .tbl-wrap:last-child { margin-bottom: -4px; }

/* 统计卡片 */
.stat { display: flex; align-items: center; gap: 14px; color: var(--text); transition: box-shadow .2s, transform .2s; }
a.stat:hover { color: var(--text); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.stat .si { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.stat .si .ico { width: 22px; height: 22px; }
.stat .si.ok { background: var(--ok-soft); color: var(--ok); }
.stat .si.warn { background: var(--warn-soft); color: var(--warn); }
.stat .si.bad { background: var(--bad-soft); color: var(--bad); }
.stat .si.purple { background: #f3edff; color: #8b5cf6; }
.stat .si.gold { background: #faf3e6; color: #b38b45; }
.stat .n { font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 13px; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--fill); color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
tr:hover > td { background: #fafbfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.card.tbl-wrap { padding: 0; }
.card.tbl-wrap table th:first-child, .card.tbl-wrap table td:first-child { padding-left: 20px; }
.card.tbl-wrap table th:last-child, .card.tbl-wrap table td:last-child { padding-right: 20px; }
.card.tbl-wrap tr:last-child > td { border-bottom: 0; }

/* ---------- 标签与提示 ---------- */
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; white-space: nowrap;
  background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-line); font-weight: 400; vertical-align: middle;
}
.tag.ok { background: var(--ok-soft); color: var(--ok-text); border-color: var(--ok-line); }
.tag.warn { background: var(--warn-soft); color: var(--warn-text); border-color: var(--warn-line); }
.tag.bad { background: var(--bad-soft); color: var(--bad-text); border-color: var(--bad-line); }
.tag.gray { background: var(--gray-soft); color: var(--gray); border-color: var(--gray-line); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.note {
  position: relative; background: var(--primary-soft); color: #2f6fb5; border: 1px solid var(--primary-line);
  border-radius: var(--radius); padding: 10px 14px 10px 16px; margin: 0 0 16px; font-size: 13px;
}
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: var(--radius) 0 0 var(--radius); background: var(--primary); }
.note.warn { background: var(--warn-soft); color: #8a6420; border-color: var(--warn-line); }
.note.warn::before { background: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad-text); border-color: var(--bad-line); }
.note.bad::before { background: var(--bad); }
ul.plain { margin: 0; padding-left: 18px; }

/* ---------- 表单与按钮 ---------- */
form.inline { display: inline; }
label { display: block; font-size: 13px; color: var(--text-2); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; height: 34px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
textarea { height: auto; min-height: 96px; padding: 8px 11px; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #c0c4cc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(64, 158, 255, .15); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--primary); }
input[type=file] { height: auto; padding: 6px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--primary); background: var(--primary); color: #fff;
  font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
button:hover, .btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
button:active, .btn:active { background: var(--primary-active); border-color: var(--primary-active); }
button.ghost, .btn.ghost { background: var(--primary-soft); color: var(--primary); border-color: #a0cfff; }
button.ghost:hover, .btn.ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
button.danger { background: var(--bad); border-color: var(--bad); }
button.danger:hover { background: #f89898; border-color: #f89898; }
button.block { width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 其他 ---------- */
.bar { height: 6px; background: var(--fill); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #79bbff, var(--primary)); border-radius: 3px; }
.score { font-weight: 600; font-size: 16px; color: var(--primary); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters a { height: 30px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 15px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text-2); font-size: 13px; transition: all .15s; }
.filters a:hover { color: var(--primary); border-color: #a0cfff; }
.filters a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
details summary { cursor: pointer; color: var(--primary); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
pre { white-space: pre-wrap; background: var(--fill); border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--radius-sm); margin: 4px 0; color: var(--text-2); }

/* ---------- 登录页 ---------- */
body.bare { background: var(--panel); }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(1200px 600px at -10% -20%, #3d5373 0%, transparent 60%), radial-gradient(800px 500px at 110% 120%, #4a3b22 0%, transparent 55%), linear-gradient(160deg, #304156, #1f2d3d);
}
.login-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(201, 164, 92, .25); }
.login-brand { position: absolute; top: 40px; left: 64px; display: flex; align-items: center; gap: 12px; }
.login-brand span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.login-brand small { color: var(--side-text); font-size: 12px; }
.login-hero h2 { font-size: 34px; font-weight: 600; margin: 0 0 10px; letter-spacing: 1px; }
.login-hero h2::before { display: none; }
.login-hero p { color: var(--side-text); font-size: 16px; margin: 0 0 32px; }
.login-hero ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 460px; }
.login-hero li { display: flex; gap: 14px; align-items: baseline; color: var(--side-text); font-size: 14px; padding: 10px 14px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.login-hero li b { color: var(--gold); font-weight: 600; flex: none; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 360px; }
.login-form h1 { font-size: 26px; margin-bottom: 4px; }
.login-form > .muted { margin: 0 0 24px; }
.login-form input { height: 42px; font-size: 15px; }
.login-form label { margin-top: 16px; }
.login-form button { height: 42px; margin-top: 28px; font-size: 15px; letter-spacing: 4px; }

/* ---------- 手机与窄屏 ---------- */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, .2); }
  .nav-toggle:checked ~ .sidebar { transform: none; }
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 25; }
  .main-wrap { margin-left: 0; }
  .only-mobile { display: grid; }
  .topbar { padding: 0 10px; gap: 6px; }
  .content { padding: 12px; }
  .g2 { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-hero { padding: 96px 24px 32px; }
  .login-brand { left: 24px; top: 28px; }
  .login-hero h2 { font-size: 26px; }
  .login-hero ul { display: none; }
}
@media (max-width: 900px) {
  .crumb { display: none; }
  .store-menu { margin-left: 0; padding-left: 0; border-left: 0; min-width: 0; }
  .store-menu summary { max-width: 200px; }
  .dropdown.left { left: 0; min-width: 270px; }
}
@media (max-width: 560px) {
  .hide-mobile, .user-menu .uname { display: none; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .stat .si { width: 38px; height: 38px; }
  .card { padding: 14px; }
}

/* 工作台 · 当前店铺 */
.store-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px;
  background: linear-gradient(100deg, #fff 55%, #f4f9ff); border-left: 3px solid var(--primary); }
.store-card .sc-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.store-card .si { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.store-card .si .ico { width: 24px; height: 24px; }
.store-card .sc-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; margin-bottom: 2px; }
.store-card .sc-nums { display: flex; gap: 28px; }
.store-card .sc-nums div { display: flex; flex-direction: column; align-items: center; }
.store-card .sc-nums b { font-size: 22px; font-weight: 600; line-height: 1.2; }
.store-card .sc-nums span { font-size: 12px; color: var(--muted); }

/* ---------- 图片工作台 ---------- */
.upload-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.dropzone {
  margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 190px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--fill);
  cursor: pointer; color: var(--text); padding: 20px; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.dz-ico .ico { width: 24px; height: 24px; }
.upload-side label:first-child { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.g-item { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.g-item:hover { color: var(--text); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.g-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); aspect-ratio: 2 / 1; }
.g-thumbs img, .g-ph { width: 100%; height: 100%; object-fit: contain; background: #fff; display: grid; place-items: center; color: var(--muted); font-size: 12px; min-height: 0; }
.g-meta { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.g-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot figcaption { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.shot-img { aspect-ratio: 1 / 1; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; background: #fff; }
.shot-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shot a .ico, .scene-out .ico { width: 15px; height: 15px; vertical-align: -3px; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #eceef2 25%, transparent 25%), linear-gradient(-45deg, #eceef2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eceef2 75%), linear-gradient(-45deg, transparent 75%, #eceef2 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.scene { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; color: var(--text); font-size: 13px; transition: border-color .15s, background .15s; }
.scene:hover { border-color: #a0cfff; }
.scene:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.scene input { margin-top: 3px; }
.scene small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scene-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.scene-out figure { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.scene-out img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.scene-out figcaption { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-size: 12px; color: var(--text-2); }
h2 .ico { width: 18px; height: 18px; color: var(--primary); }
button .ico { width: 16px; height: 16px; }
@media (max-width: 900px) { .upload-form, .trio { grid-template-columns: 1fr; } }
.cut-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.recut { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; }
.recut form { margin: 0; }
.prov-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scene:has(input:disabled) { opacity: .55; cursor: not-allowed; }
button.small { height: 28px; padding: 0 10px; font-size: 12px; }
.menu-item .badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #f56c6c; color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; font-style: normal; }

/* ---------- 问题中心 ---------- */
.issue { margin-bottom: 12px; border-left: 3px solid var(--line-strong); }
.issue.risk-high { border-left-color: var(--bad); }
.issue.risk-medium { border-left-color: var(--warn); }
.issue-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.issue-title { font-size: 15px; }
.issue-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.issue-body ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.issue-body .evidence { background: var(--fill); border-radius: 6px; padding: 10px 12px; }
.issue-body .suggest { background: var(--primary-soft); border-radius: 6px; padding: 10px 12px; }
.issue-body .suggest p { margin: 4px 0; font-size: 13px; }
.ev-high { color: var(--bad-text); font-weight: 600; }
.ev-medium { color: var(--warn-text); }
.issue-actions input { height: 32px; }
@media (max-width: 900px) { .issue-body { grid-template-columns: 1fr; } }
/* 通用：指标卡、进度条、图表、对话 */
.kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi .card { padding: 14px 16px; }
.kpi .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 12px; }
.progress { position: relative; height: 10px; background: var(--fill); border-radius: 5px; overflow: hidden; margin: 6px 0; }
.progress > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #79bbff, var(--primary)); border-radius: 5px; }
.progress > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--warn); }
.chart { width: 100%; height: auto; display: block; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 860px; padding: 12px 14px; border-radius: 10px; white-space: pre-wrap; line-height: 1.7; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; }
.msg.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); }
.trace { margin-top: 8px; font-size: 12px; color: var(--muted); }
.trace code { background: var(--fill); padding: 1px 6px; border-radius: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.layout-box { position: relative; display: inline-block; max-width: 100%; }
.layout-box img { max-width: 100%; max-height: 420px; display: block; border-radius: 6px; }
.layout-box .lb { position: absolute; border: 2px solid; border-radius: 3px; font-size: 11px; color: #fff; }
.layout-box .lb span { position: absolute; left: -2px; top: -18px; padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.verdict { font-size: 15px; padding: 3px 10px; height: auto; }
.inline-check { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 0 10px; color: var(--text-2); font-size: 12px; cursor: pointer; }
.confirm-list { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 4px; }
.confirm-list .inline-check { margin-left: 0; }
.edit-box { padding: 0 10px 8px; }
.edit-box form { display: flex; flex-direction: column; gap: 6px; }
.edit-box input { height: 30px; font-size: 12px; }
.report { border-left: 3px solid var(--primary); }
.report h2 { font-size: 14px; }

/* ---------- 编辑广告（照 Chrono24 编辑页：左边字段名、右边输入） ---------- */
.ef-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ef-head img { border-radius: 8px; object-fit: cover; }
.ef-meta { margin: 0 0 12px; }
.linkbtn { background: none; border: 0; color: var(--primary); padding: 0; height: auto; font-size: inherit; cursor: pointer; }
.linkbtn:hover { background: none; color: var(--primary-hover); text-decoration: underline; }
.ef-card { margin-bottom: 16px; }
.ef-card h2 { margin: 0 0 8px; }
.ef-row { display: grid; grid-template-columns: 230px 1fr; gap: 16px; padding: 10px 8px; border-radius: 6px; align-items: start; }
.ef-row + .ef-row { border-top: 1px dashed var(--line); }
.ef-row.changed { background: var(--warn-soft); box-shadow: inset 3px 0 0 var(--warn); }
.ef-label { color: var(--text-2); padding-top: 6px; }
.ef-ctl > input:not([type=hidden]), .ef-ctl > select, .ef-ctl > textarea { width: 100%; max-width: 560px; }
.ef-ctl > textarea { max-width: 100%; }
.ef-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 16px; cursor: pointer; font-size: 13px; background: #fff; }
.chip:hover { border-color: var(--primary); }
.chip:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-active); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding-top: 6px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 40px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { left: 22px; }
.switch input:focus-visible + i { box-shadow: 0 0 0 2px rgba(64, 158, 255, .3); }
.ef-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.ef-imgs img { border-radius: 6px; object-fit: cover; border: 1px solid var(--line); }
.savebar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
  box-shadow: 0 -4px 16px rgba(0, 21, 41, .08); margin-top: 8px;
}
.savebar img { border-radius: 6px; object-fit: cover; }
.savebar .sb-title { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; min-width: 0; }
.savebar #dirty.on { color: var(--warn-text); font-weight: 600; }
@media (max-width: 760px) {
  .ef-row { grid-template-columns: 1fr; gap: 4px; }
  .ef-label { padding-top: 0; }
  .savebar .sb-title, .savebar img { display: none; }
}

/* 批量操作 */
.batchbar { margin-bottom: 16px; }
.batchbar .actions { align-items: center; }
th.ck, td.ck { width: 28px; }
td.ck input, th.ck input { width: 16px; height: 16px; }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 8px 0 12px; }
.progress > i { display: block; height: 100%; background: var(--ok-text); transition: width .3s; }
