/* 悦好房 · 单边代理业务系统 — 设计系统 */
:root {
  --ink: #161a1f;
  --ink-2: #3b4440;
  --muted: #7d857f;
  --line: #e6e1d5;
  --cream: #f4f2ed;
  --paper: #ffffff;
  --green: #1f3b2c;
  --green-2: #2c5340;
  --green-soft: #e8eee8;
  --gold: #c9a05c;
  --gold-soft: #f6eddc;
  --red: #a8453a;
  --red-soft: #fbecea;
  --blue: #2f5d7c;
  --blue-soft: #e8f0f5;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(25, 40, 30, .07);
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--cream); color: var(--ink);
  font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::placeholder { color: #a9aea9; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-brand {
  background: radial-gradient(120% 90% at 10% 0%, #2b5240 0%, #16241c 55%, #101813 100%);
  color: #f6f3ea; padding: 56px 64px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-brand::after {
  content: ""; position: absolute; right: -160px; bottom: -180px; width: 560px; height: 560px;
  border-radius: 50%; border: 1px solid rgba(217, 183, 121, .28);
  box-shadow: 0 0 0 40px rgba(217,183,121,.05), 0 0 0 120px rgba(217,183,121,.03);
}
.brand-mark { display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .2em; }
.logo-sq { width: 34px; height: 34px; border: 1px solid rgba(217,183,121,.6); display: grid; place-items: center; color: var(--gold); font-size: 17px; font-weight: 700; border-radius: 6px; }
.login-title { font-size: 46px; line-height: 1.22; font-weight: 700; letter-spacing: .04em; margin-bottom: 18px; }
.login-title em { font-style: normal; color: var(--gold); }
.login-sub { color: rgba(246,243,234,.66); font-size: 15px; line-height: 1.9; max-width: 460px; }
.login-points { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.login-points div { font-size: 12px; color: rgba(246,243,234,.55); letter-spacing: .06em; }
.login-points strong { display: block; font-size: 22px; color: #f6f3ea; font-weight: 600; margin-bottom: 2px; letter-spacing: .02em; }
.login-foot { font-size: 12px; color: rgba(246,243,234,.38); position: relative; z-index: 2; }
.login-panel { display: grid; place-items: center; padding: 40px; background: var(--paper); }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 24px; margin-bottom: 6px; }
.login-card p.hint { color: var(--muted); margin-bottom: 26px; font-size: 13px; }
.login-card .input { margin-bottom: 12px; }
.demo-title { margin: 22px 0 10px; font-size: 12px; color: var(--muted); letter-spacing: .08em; display: flex; justify-content: space-between; }
.demo-list { display: flex; flex-wrap: wrap; gap: 7px; }
.demo-chip { border: 1px solid var(--line); background: #fbfaf7; border-radius: 99px; padding: 5px 11px; font-size: 12px; cursor: pointer; color: var(--ink-2); transition: .15s; }
.demo-chip:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* ---------- 框架 ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #1b3126 0%, #14231b 100%);
  color: #e9ece6; padding: 20px 14px 18px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand .logo-sq { width: 30px; height: 30px; font-size: 15px; }
.side-brand b { font-size: 16px; letter-spacing: .04em; }
.side-brand span { display: block; font-size: 10px; letter-spacing: .16em; color: rgba(233,236,230,.42); }
.side-role { margin: 0 8px 14px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 11px; color: rgba(233,236,230,.62); }
.nav { flex: 1; overflow-y: auto; }
.nav-group { font-size: 10px; letter-spacing: .16em; color: rgba(233,236,230,.35); padding: 12px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: rgba(233,236,230,.72); cursor: pointer; font-size: 13.5px; transition: .15s; margin-bottom: 1px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(217,183,121,.14); color: #f3d9a6; }
.nav-item .ico { width: 17px; text-align: center; opacity: .8; font-size: 14px; }
.nav-item .badge { margin-left: auto; background: rgba(217,183,121,.24); color: #f0d6a4; font-size: 10px; padding: 1px 6px; border-radius: 99px; }
.side-foot { font-size: 11px; color: rgba(233,236,230,.32); padding: 10px 10px 0; line-height: 1.8; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px;
  padding: 0 26px; position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.crumb b { color: var(--ink); font-weight: 600; }
.topbar .spacer { flex: 1; }
.top-search { width: 220px; height: 32px; border: 1px solid var(--line); background: #fbfaf7; border-radius: 8px; padding: 0 10px; font-size: 12.5px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 99px; background: #f6f4ef; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #efe3c8; display: grid; place-items: center; font-size: 12.5px; }
.user-chip .meta { font-size: 11px; line-height: 1.35; }
.user-chip .meta b { display: block; font-size: 12.5px; }
.user-chip .meta span { color: var(--muted); }
.content { padding: 26px; max-width: 1480px; width: 100%; }

.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; letter-spacing: .02em; font-weight: 700; }
.page-head .sub { color: var(--muted); font-size: 12.5px; padding-bottom: 3px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 组件 ---------- */
.card { background: var(--paper); border-radius: var(--radius); border: 1px solid #eeeade; box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px 0; }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .hint { font-size: 11.5px; color: var(--muted); }
.card-head .right { margin-left: auto; font-size: 12px; }
.section-title { font-size: 13px; color: var(--muted); letter-spacing: .1em; margin: 26px 0 10px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--paper); border: 1px solid #eeeade; border-radius: 12px; padding: 15px 16px 14px; box-shadow: var(--shadow); }
.kpi .label { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.kpi .value { font-size: 27px; font-weight: 700; margin: 8px 0 3px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 11px; color: var(--muted); }
.kpi.warn { border-color: #f0dcc2; background: linear-gradient(180deg,#fffdf8,#fff); }
.kpi.warn .value { color: #8a6120; }
.kpi.muted .value { color: #5f6b63; }

.btn {
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
  transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #cfc9ba; background: #fdfcf9; }
.btn.primary { background: var(--green); border-color: var(--green); color: #f4efe2; }
.btn.primary:hover { background: var(--green-2); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #eccdc8; background: #fdf7f6; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2b2314; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfaf7; border-radius: 8px;
  padding: 8px 11px; height: 36px; transition: .15s; font-size: 13px;
}
.textarea { height: auto; min-height: 82px; line-height: 1.7; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(31,59,44,.07); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.field .req { color: var(--red); }
.field .tip { font-size: 11px; color: var(--muted); margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: .04em;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfaf7; white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid #f2efe6; vertical-align: middle; }
.table.nw td { white-space: nowrap; }
.table.nw td > .muted { white-space: nowrap; }
.table tr:hover td { background: #fcfbf8; }
.table td.num { font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 600; }
.table .muted { color: var(--muted); font-size: 12px; }
.table .link { color: var(--green); cursor: pointer; border-bottom: 1px dashed rgba(31,59,44,.3); }
.table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
.tag.A { background: var(--gold-soft); color: #8a6120; font-weight: 600; }
.tag.B { background: var(--green-soft); color: #2b5340; }
.tag.C { background: #eef0ee; color: #5d6b62; }
.tag.D { background: #f3f0ea; color: #938b7d; border: 1px dashed #d8d0c2; }
.tag.gray { background: #f2f1ed; color: #777; }
.tag.green { background: var(--green-soft); color: #2b5340; }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.gold { background: var(--gold-soft); color: #8a6120; }
.tag.blue { background: var(--blue-soft); color: var(--blue); }

.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; background: #f2f1ed; color: #666; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; background: #bbb; }
.dot.g { background: #4a8a62; } .dot.y { background: #c9a05c; } .dot.r { background: #a8453a; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { padding: 9px 14px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--green); border-color: var(--green); font-weight: 600; }

.empty { padding: 38px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .big { font-size: 30px; opacity: .35; display: block; margin-bottom: 8px; }

/* 房源卡片 */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.prop-card { background: #fff; border: 1px solid #eeeade; border-radius: 12px; padding: 16px; box-shadow: var(--shadow); cursor: pointer; transition: .18s; position: relative; }
.prop-card:hover { transform: translateY(-2px); border-color: #ddd5c4; }
.prop-card .head { display: flex; align-items: flex-start; gap: 8px; }
.prop-card h3 { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.prop-card .sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.prop-card .price { margin-top: 13px; font-size: 21px; font-weight: 700; color: #8a6120; font-variant-numeric: tabular-nums; }
.prop-card .price small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.prop-card .meta { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.prop-card .foot { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding-top: 11px; border-top: 1px dashed #efece3; font-size: 11.5px; color: var(--muted); }
.prop-card .foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-card .foot .right { margin-left: auto; }
.prop-card .lv { position: absolute; right: 14px; top: 14px; }

/* 进度 */
.stepper { display: flex; gap: 0; margin: 14px 0 4px; flex-wrap: nowrap; overflow-x: auto; }
.step { flex: 1; min-width: 62px; text-align: center; position: relative; font-size: 11px; color: var(--muted); }
.step::before { content: ""; display: block; height: 3px; background: #ece8dd; margin-bottom: 8px; border-radius: 2px; }
.step.done::before { background: var(--green); }
.step.current::before { background: var(--gold); }
.step.current { color: #8a6120; font-weight: 600; }
.step.done { color: var(--green-2); }

.timeline { border-left: 2px solid #e9e4d8; padding-left: 16px; margin-left: 6px; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tl-item .t { font-size: 12px; color: var(--muted); }
.tl-item .h { font-weight: 600; margin: 2px 0; }
.tl-item .b { font-size: 12.5px; color: var(--ink-2); }

/* 图表 */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.bar-row .name { width: 58px; color: var(--ink-2); }
.bar-track { flex: 1; height: 16px; background: #f4f1e8; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #2c5340, #4a7a5c); border-radius: 4px; }
.bar-row .v { width: 44px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 弹层 */
.modal-mask { position: fixed; inset: 0; background: rgba(18, 26, 21, .42); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .16s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.22); animation: pop .18s ease; }
.modal.wide { max-width: 860px; }
@keyframes pop { from { transform: translateY(10px) scale(.99); opacity: .6 } to { transform: none; opacity: 1 } }
.modal-head { padding: 18px 22px 12px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #f2efe6; }
.modal-head h3 { font-size: 17px; font-weight: 600; }
.modal-head .desc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-close { margin-left: auto; border: 0; background: transparent; font-size: 20px; color: #999; cursor: pointer; line-height: 1; padding: 2px 4px; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { padding: 12px 22px 18px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid #f2efe6; }
.drawer-mask { position: fixed; inset: 0; background: rgba(18,26,21,.38); z-index: 90; display: flex; justify-content: flex-end; }
.drawer { width: min(760px, 92vw); height: 100%; background: #fff; overflow-y: auto; animation: slide .22s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: .7 } to { transform: none; opacity: 1 } }
.drawer-head { position: sticky; top: 0; background: #fff; z-index: 2; padding: 18px 24px 14px; border-bottom: 1px solid #f0ece3; display: flex; align-items: flex-start; gap: 10px; }
.drawer-head .close { margin-left: auto; border: 0; background: #f5f2ea; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: #888; }
.drawer-body { padding: 18px 24px 60px; }

.toast-wrap { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #1f3b2c; color: #f2eee1; padding: 10px 18px; border-radius: 9px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: pop .18s; max-width: 560px; }
.toast.error { background: #8e3a31; }
.toast.warn { background: #8a6120; }

.watermark-note { font-size: 11px; color: #a9aea9; border: 1px dashed #ded8ca; padding: 6px 10px; border-radius: 8px; display: inline-block; }

.notice { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; padding: 11px 13px; border-radius: 9px; background: #fbf7ee; border: 1px solid #efe3cc; color: #6b5730; line-height: 1.7; }
.notice.green { background: #f1f6f2; border-color: #dfe9e1; color: #385743; }
.notice.red { background: #fdf5f4; border-color: #f0d8d4; color: #8e3a31; }

.stat-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee9dd; font-size: 13px; }
.stat-line:last-child { border-bottom: 0; }
.stat-line .k { color: var(--muted); }
.stat-line .v { font-weight: 600; font-variant-numeric: tabular-nums; }

.upload-zone { border: 1px dashed #d9d2c2; border-radius: 10px; padding: 16px; text-align: center; color: var(--muted); font-size: 12.5px; cursor: pointer; background: #fbfaf6; }
.upload-zone:hover { border-color: var(--green); color: var(--green); }
.file-name { font-size: 12px; color: var(--green); margin-top: 6px; }

.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.hidden { display: none !important; }

/* 表单校验 / 工具栏 / 分页 */
.field .err { color: #a93b2e; font-size: 11.5px; margin-top: 4px; }
.input.bad, .select.bad, .textarea.bad { border-color: #c0564a; background: #fff8f6; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 132px; height: 34px; font-size: 12.5px; padding: 0 10px; }
.toolbar .spacer { flex: 1; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px 2px; font-size: 12px; color: var(--muted); }
.pager .select { width: auto; height: 30px; font-size: 12px; }
.btn.sm:disabled { opacity: .45; cursor: not-allowed; }
.mini-stat { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.mini-stat .item { background: #fff; border: 1px solid #ece7db; border-radius: 10px; padding: 10px 16px; min-width: 120px; }
.mini-stat .item .k { font-size: 11.5px; color: var(--muted); }
.mini-stat .item .v { font-size: 18px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.timeline { border-left: 2px solid #e9e3d5; margin: 8px 0 8px 6px; padding-left: 14px; }
.timeline .node { position: relative; padding: 0 0 14px; font-size: 12.5px; }
.timeline .node::before { content: ''; position: absolute; left: -20px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #c9a05c; }
.timeline .node .t { color: var(--muted); font-size: 11.5px; }
.doc-item { border: 1px solid #ece7db; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 12.5px; background: #fff; }
.doc-item .head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.doc-item .muted { font-size: 11.5px; }
.doc-item .t { font-weight: 600; color: #1f3b2c; font-size: 12.5px; margin-bottom: 4px; }
.doc-item .d { color: #4a524c; line-height: 1.85; white-space: pre-wrap; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 36px 28px; min-height: 300px; }
  .login-title { font-size: 32px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -240px; z-index: 60; transition: .2s; width: 232px; }
  .sidebar.open { left: 0; }
  .content { padding: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 上传区 ---------- */
.up-zone { border: 1px dashed #d8d2c3; border-radius: 12px; background: #fbfaf6; padding: 10px; transition: .15s; display: flex; flex-direction: column; }
.up-zone.dragging { border-color: var(--gold); background: var(--gold-soft); }
/* 上传按钮始终排在现有附件上方：弹窗里滚动时也不会被挤到看不见 */
.up-zone .up-add { order: 1; margin-top: 0; margin-bottom: 10px; }
.up-zone .up-list { order: 2; }
.up-zone .up-bar { order: 3; }
.up-list { display: flex; flex-wrap: wrap; gap: 10px; }
.up-empty { font-size: 12px; color: var(--muted); padding: 4px 2px 8px; }
.up-item { position: relative; width: 128px; border: 1px solid #e9e4d7; border-radius: 10px; background: #fff; overflow: hidden; }
.up-item img { display: block; width: 100%; height: 86px; object-fit: cover; background: #eee; }
.up-item .up-ico { height: 86px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: #7a8279; background: #f3f1e9; letter-spacing: .06em; }
.up-item .up-meta { padding: 6px 8px; font-size: 11.5px; line-height: 1.5; }
.up-item .up-meta a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.up-item .up-meta span { color: var(--muted); font-size: 10.5px; }
.up-item .up-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(22,26,31,.62); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.up-item .up-del:hover { background: var(--red); }
.up-add { margin-top: 10px; width: 100%; border: 0; border-radius: 9px; background: var(--green); color: #f6f3ea; height: 38px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.up-add span { font-size: 11px; font-weight: 400; opacity: .78; }
.up-add:hover { background: var(--green-2); }
.up-add:disabled { opacity: .55; cursor: wait; }
.up-bar { font-size: 11.5px; color: var(--muted); margin-top: 6px; min-height: 14px; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos img { width: 132px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid #e9e4d7; background: #f2f0e9; }
.photos a { display: block; }

/* ---- 视频 ---- */
.videos { display: flex; flex-wrap: wrap; gap: 8px; }
.video-thumb { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border: 1px solid #e9e4d7; border-radius: 10px; background: #fff; color: var(--ink-2); font-size: 12.5px; max-width: 260px; }
.video-thumb .play { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.video-thumb .vn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item .up-video { display: block; width: 100%; height: 86px; object-fit: cover; background: #000; }
.up-item .up-play { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }

/* ---- 图片 / 视频大图弹窗 ---- */
.lightbox-mask { position: fixed; inset: 0; z-index: 90; background: rgba(12,16,14,.78); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox { width: min(1100px, 96vw); max-height: 92vh; background: #14181b; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #d8dcd8; font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lb-bar .row-actions { margin-left: auto; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #0d1012; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 72vh; display: block; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-strip { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: #14181b; }
.lb-strip img { width: 68px; height: 46px; object-fit: cover; border-radius: 6px; opacity: .45; cursor: pointer; border: 2px solid transparent; }
.lb-strip img.on { opacity: 1; border-color: var(--gold); }

/* ---- 表单细节 ---- */
.checkbox-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); margin: 10px 0 4px; cursor: pointer; }
.checkbox-line input { margin-top: 3px; }
.input-suffix { display: flex; align-items: center; gap: 6px; }
.input-suffix span { font-size: 12.5px; color: var(--muted); }
.kpi.clickable { cursor: pointer; transition: .16s; }
.kpi.clickable:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(28,40,33,.12); border-color: #dfd7c2; }
.kpi .kpi-go { float: right; color: #b9b3a2; font-size: 12px; }

/* ---- 窄屏：表格横向滚动，保证操作列够得着 ---- */
@media (max-width: 960px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 780px; }
  .table th, .table td { white-space: nowrap; }
  .table td .muted { white-space: nowrap; }
  .row-actions { flex-wrap: nowrap; }
  .content { padding: 16px; }
  .lightbox-mask { padding: 8px; }
  .lb-strip img { width: 56px; height: 38px; }
}
