/* ============================================================
   抖音多账号管理平台 - 高端简约商务企业风
   主色：藏蓝 #152238 | 点缀：铜金 #c9a35f | 中性：石墨灰
   ============================================================ */
:root {
  --navy: #152238;
  --navy-2: #1d2f4b;
  --navy-3: #24395c;
  --gold: #c9a35f;
  --gold-light: #e3c890;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e5e8ed;
  --text: #23293a;
  --text-2: #5c6474;
  --text-3: #9099a8;
  --blue: #2e5fa3;
  --green: #2e7d5b;
  --red: #b4433a;
  --orange: #c07a30;
  --shadow: 0 1px 3px rgba(21, 34, 56, .06), 0 4px 16px rgba(21, 34, 56, .05);
  --radius: 10px;
  --sidebar-w: 232px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 13px; }

/* ---------------- 登录页 ---------------- */
.login-wrap {
  height: 100vh; display: flex;
  background: linear-gradient(135deg, #0f1a2c 0%, #1d2f4b 55%, #24395c 100%);
  align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ''; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  border: 1px solid rgba(201, 163, 95, .14); left: -260px; top: -260px;
}
.login-wrap::after {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  border: 1px solid rgba(201, 163, 95, .1); right: -160px; bottom: -160px;
}
.login-panel {
  display: flex; width: 860px; max-width: 94vw; min-height: 480px; border-radius: 16px;
  overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, .45); position: relative; z-index: 2;
}
.login-brand {
  flex: 1.1; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; padding: 52px 44px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-brand .logo-row { display: flex; align-items: center; gap: 12px; }
.login-brand .logo-badge {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(201, 163, 95, .16);
  border: 1px solid rgba(201, 163, 95, .5); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 20px; font-weight: 700; font-family: Georgia, serif;
}
.login-brand h1 { font-size: 21px; font-weight: 600; letter-spacing: 1px; }
.login-brand .sub { font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: 4px; letter-spacing: 2.5px; }
.login-brand .slogan { font-size: 15px; line-height: 2; color: rgba(255, 255, 255, .82); }
.login-brand .slogan strong { color: var(--gold-light); font-weight: 600; }
.login-brand .foot { font-size: 12px; color: rgba(255, 255, 255, .38); }
.login-form-side { flex: 1; background: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.login-form-side h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.login-form-side .tip { color: var(--text-3); font-size: 12.5px; margin-bottom: 30px; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; }
.login-field input {
  width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 14px; font-size: 14px; transition: all .2s; background: #fafbfc;
}
.login-field input:focus { outline: none; border-color: var(--navy-3); background: #fff; box-shadow: 0 0 0 3px rgba(29, 47, 75, .08); }
.btn-login {
  width: 100%; height: 44px; border: none; border-radius: 8px; margin-top: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff;
  font-size: 15px; letter-spacing: 6px; cursor: pointer; transition: opacity .2s;
}
.btn-login:hover { opacity: .92; }
.login-hint { margin-top: 22px; font-size: 12px; color: var(--text-3); line-height: 1.9; background: #f7f8fa; border-radius: 8px; padding: 10px 14px; }
.login-error { color: var(--red); font-size: 12.5px; margin-top: 10px; min-height: 18px; }

/* ---------------- 整体布局 ---------------- */
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: var(--sidebar-w); background: var(--navy); color: #fff; display: flex; flex-direction: column;
  flex-shrink: 0;
}
.sidebar .brand {
  height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar .brand .logo-badge {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(201, 163, 95, .16);
  border: 1px solid rgba(201, 163, 95, .5); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: 700; font-family: Georgia, serif; font-size: 16px; flex-shrink: 0;
}
.sidebar .brand .t1 { font-size: 14.5px; font-weight: 600; letter-spacing: .5px; }
.sidebar .brand .t2 { font-size: 10px; color: rgba(255, 255, 255, .4); letter-spacing: 1.5px; }
.nav-scroll { flex: 1; overflow-y: auto; padding: 12px 0 20px; }
.nav-scroll::-webkit-scrollbar { width: 4px; }
.nav-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 2px; }
.nav-group-title {
  padding: 16px 20px 8px; font-size: 11px; color: rgba(255, 255, 255, .35); letter-spacing: 1.5px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px; cursor: pointer;
  color: rgba(255, 255, 255, .72); font-size: 13.5px; transition: all .15s; position: relative;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-item.active {
  color: var(--gold-light); background: linear-gradient(90deg, rgba(201, 163, 95, .14), transparent);
  border-left-color: var(--gold);
}
.nav-item .ico { width: 17px; height: 17px; flex-shrink: 0; opacity: .9; }
.sidebar .user-box {
  padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; align-items: center; gap: 10px;
}
.sidebar .user-box .uavatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy-3); border: 1px solid rgba(201, 163, 95, .4);
  display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-size: 14px; flex-shrink: 0;
}
.sidebar .user-box .uname { font-size: 13px; }
.sidebar .user-box .urole { font-size: 11px; color: rgba(255, 255, 255, .4); }
.sidebar .user-box .logout-btn {
  margin-left: auto; background: none; border: none; color: rgba(255, 255, 255, .45); cursor: pointer;
  font-size: 12px; padding: 4px; transition: color .15s;
}
.sidebar .user-box .logout-btn:hover { color: var(--gold-light); }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 60px; background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 28px; gap: 16px; flex-shrink: 0;
}
.topbar .crumb { font-size: 15px; font-weight: 600; }
.topbar .crumb .sep { color: var(--text-3); font-weight: 400; margin: 0 8px; }
.topbar .crumb .parent { color: var(--text-3); font-weight: 400; font-size: 13px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.bell-wrap { position: relative; cursor: pointer; padding: 6px; border-radius: 8px; transition: background .15s; }
.bell-wrap:hover { background: var(--bg); }
.bell-dot {
  position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center;
}
.content { flex: 1; overflow-y: auto; padding: 24px 28px 48px; }
.content::-webkit-scrollbar { width: 8px; }
.content::-webkit-scrollbar-thumb { background: #d4d8df; border-radius: 4px; }

/* ---------------- 通用组件 ---------------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-pad { padding: 20px 22px; }
.card-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 7px;
  border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--navy-3); color: var(--navy-2); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { opacity: .9; }
.btn.danger { color: var(--red); border-color: #e8d3d1; }
.btn.danger:hover { background: #fdf5f4; border-color: var(--red); }
.btn.sm { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.input, select.input {
  height: 34px; border: 1px solid var(--border); border-radius: 7px; padding: 0 12px; background: #fff;
  transition: border .15s; color: var(--text);
}
.input:focus { outline: none; border-color: var(--navy-3); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.7; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th {
  text-align: left; font-size: 12.5px; color: var(--text-3); font-weight: 500; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap;
}
table.tbl th.sortable { cursor: pointer; user-select: none; }
table.tbl th.sortable:hover { color: var(--navy-2); }
table.tbl td { padding: 13px 14px; border-bottom: 1px solid #f0f2f5; font-size: 13px; vertical-align: middle; }
table.tbl tr:hover td { background: #fafbfd; }
table.tbl tr:last-child td { border-bottom: none; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 5px;
  font-size: 11.5px; background: #eef1f6; color: var(--text-2); margin-right: 5px;
}
.tag.gold { background: rgba(201, 163, 95, .12); color: #9a7736; }
.tag.blue { background: rgba(46, 95, 163, .1); color: var(--blue); }
.tag.green { background: rgba(46, 125, 91, .1); color: var(--green); }
.tag.red { background: rgba(180, 67, 58, .09); color: var(--red); }
.tag.orange { background: rgba(192, 122, 48, .11); color: var(--orange); }

.badge-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.badge-status .dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.green { background: var(--green); }
.dot.red { background: var(--red); }
.dot.orange { background: var(--orange); }
.dot.gray { background: #b7bdc9; }
.dot.blue { background: var(--blue); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.acc-cell { display: flex; align-items: center; gap: 10px; }
.acc-cell .nick { font-weight: 500; }
.acc-cell .dyid { font-size: 11.5px; color: var(--text-3); }

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: 1fr 1fr; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) { .grid.c4, .grid.c5 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: 1fr 1fr; } }

.kpi-card { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi-card::after {
  content: ''; position: absolute; right: -18px; top: -18px; width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 95, .1), transparent 70%);
}
.kpi-card .k-label { font-size: 12.5px; color: var(--text-3); }
.kpi-card .k-value { font-size: 26px; font-weight: 650; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.kpi-card .k-foot { font-size: 12px; color: var(--text-3); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.k-up { color: var(--red); }
.k-down { color: var(--green); }

.empty { text-align: center; color: var(--text-3); padding: 46px 0; font-size: 13px; }
.empty .e-ico { font-size: 30px; margin-bottom: 10px; opacity: .5; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 22, 36, .5); z-index: 100;
  display: flex; align-items: center; justify-content: center; animation: fadeIn .15s;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; border-radius: 12px; width: 520px; max-width: 92vw; max-height: 86vh;
  display: flex; flex-direction: column; animation: slideUp .2s; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal.lg { width: 720px; }
.modal.xl { width: 900px; }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between;
  font-size: 15.5px; font-weight: 600;
}
.modal-close { background: none; border: none; font-size: 18px; color: var(--text-3); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; }
.form-row label .req { color: var(--red); margin-left: 2px; }
.form-row .input, .form-row select, .form-row textarea { width: 100%; }
.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.check-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 180px; overflow-y: auto; }
.check-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 7px;
  padding: 6px 12px; cursor: pointer; font-size: 12.5px; transition: all .15s; user-select: none;
}
.check-chip.on { border-color: var(--gold); background: rgba(201, 163, 95, .09); color: #9a7736; }

/* ---------------- Toast ---------------- */
#toast-root { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy); color: #fff; padding: 11px 22px; border-radius: 8px; font-size: 13.5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25); animation: slideUp .2s; display: flex; align-items: center; gap: 8px;
}
.toast.err { background: var(--red); }
.toast.ok::before { content: '✓'; color: var(--gold-light); font-weight: 700; }

/* ---------------- 通知抽屉 ---------------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(15, 22, 36, .35); z-index: 90; animation: fadeIn .15s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 90vw; background: #fff; z-index: 91;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .16); display: flex; flex-direction: column; animation: drawerIn .22s;
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: .4 } to { transform: none; opacity: 1 } }
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; }
.ntf-item { padding: 15px 20px; border-bottom: 1px solid #f0f2f5; cursor: pointer; transition: background .15s; }
.ntf-item:hover { background: #fafbfd; }
.ntf-item.unread { background: #f7f9fd; }
.ntf-item .n-title { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ntf-item .n-content { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }
.ntf-item .n-time { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

/* ---------------- 图表容器 ---------------- */
.chart-box svg { display: block; width: 100%; }
.legend-row { display: flex; gap: 18px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.legend-row .lg-item { display: flex; align-items: center; gap: 6px; }
.legend-row .lg-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ---------------- 日历 ---------------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-size: 16px; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.cal-dow { padding: 9px; text-align: center; font-size: 12px; color: var(--text-3); background: #fafbfc; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-cell {
  min-height: 104px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 6px; transition: background .15s; position: relative; background: #fff;
}
.cal-cell.other { background: #fafbfc; }
.cal-cell.today { background: rgba(201, 163, 95, .05); }
.cal-cell.drag-over { background: rgba(46, 95, 163, .08); outline: 2px dashed var(--blue); outline-offset: -2px; }
.cal-date { font-size: 12px; color: var(--text-3); margin-bottom: 4px; display: flex; justify-content: space-between; }
.cal-date .today-mark { background: var(--gold); color: #fff; border-radius: 4px; padding: 0 5px; font-size: 10.5px; }
.cal-ev {
  font-size: 11.5px; border-radius: 5px; padding: 3px 7px; margin-bottom: 3px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid;
}
.cal-ev.scheduled { background: rgba(46, 95, 163, .08); border-color: var(--blue); color: var(--blue); }
.cal-ev.done { background: rgba(46, 125, 91, .08); border-color: var(--green); color: var(--green); }
.cal-ev.publishing { background: rgba(192, 122, 48, .1); border-color: var(--orange); color: var(--orange); }
.cal-ev[draggable="true"] { cursor: grab; }
.cal-ev.dragging { opacity: .4; }

/* ---------------- 素材卡片 ---------------- */
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mat-card { overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.mat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21, 34, 56, .12); }
.mat-thumb {
  height: 124px; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(145deg, #1d2f4b, #24395c); color: rgba(255, 255, 255, .85);
}
.mat-thumb.image { background: linear-gradient(145deg, #2d5a4a, #3a6e5c); }
.mat-thumb.text { background: linear-gradient(145deg, #6b5a2d, #7d6c3a); }
.mat-thumb .m-type-ico { font-size: 30px; }
.mat-thumb img, .mat-thumb video { width: 100%; height: 100%; object-fit: cover; }
.mat-thumb .m-dur {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; border-radius: 4px; padding: 1px 6px;
}
.mat-info { padding: 12px 14px; }
.mat-info .m-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat-info .m-meta { font-size: 11.5px; color: var(--text-3); margin-top: 5px; display: flex; justify-content: space-between; }

/* ---------------- 排行榜 ---------------- */
.rank-list { display: flex; flex-direction: column; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #eef0f4; }
.rank-item:last-child { border-bottom: none; }
.rank-no {
  width: 22px; height: 22px; border-radius: 6px; background: #eef1f6; color: var(--text-3);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.rank-no.r1 { background: var(--gold); color: #fff; }
.rank-no.r2 { background: #a8b3c5; color: #fff; }
.rank-no.r3 { background: #c9a08a; color: #fff; }
.rank-item .r-name { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-item .r-value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------- 步骤条 / 发布 ---------------- */
.steps { display: flex; align-items: center; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.step .s-no {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; font-size: 12px;
}
.step.on { color: var(--navy); font-weight: 600; }
.step.on .s-no { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 14px; min-width: 30px; }

.sel-mat-item { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; margin-bottom: 10px; transition: all .15s; }
.sel-mat-item:hover { border-color: var(--navy-3); }
.sel-mat-item.on { border-color: var(--gold); background: rgba(201, 163, 95, .06); }
.sel-mat-item .sm-thumb { width: 76px; height: 52px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }

/* ---------------- 热力图 ---------------- */
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); }
.heat-legend .hb { width: 14px; height: 10px; border-radius: 2px; }

/* ---------------- 收件箱布局 ---------------- */
.inbox-item { padding: 14px 16px; border-bottom: 1px solid #f0f2f5; }
.inbox-item .ib-head { display: flex; align-items: center; gap: 10px; }
.inbox-item .ib-user { font-weight: 600; font-size: 13px; }
.inbox-item .ib-time { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.inbox-item .ib-content { margin: 8px 0; font-size: 13px; line-height: 1.7; }
.inbox-item .ib-src { font-size: 11.5px; color: var(--text-3); }
.inbox-item .ib-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.inbox-item .ib-reply-box { margin-top: 10px; display: flex; gap: 8px; }
.inbox-item .ib-reply-box .input { flex: 1; }
.reply-record { background: #f7f8fa; border-radius: 7px; padding: 8px 12px; font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.reply-record .rr-by { color: var(--gold); font-weight: 500; margin-right: 6px; }

/* ---------------- 页头 ---------------- */
.page-desc { color: var(--text-3); font-size: 12.5px; margin: -14px 0 18px; }

/* ---------------- 打印导出 ---------------- */
@media print {
  .sidebar, .topbar, .toolbar, .no-print { display: none !important; }
  .content { overflow: visible; padding: 0; }
  .layout { height: auto; }
  body { background: #fff; }
}

/* ============================================================
   V2 精细化优化 - 新增样式
   ============================================================ */

/* 子 Tab（发布页：制作与发布 / 内容日历） */
.sub-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.sub-tab {
  padding: 9px 16px; font-size: 13.5px; color: var(--text-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; user-select: none;
}
.sub-tab:hover { color: var(--navy-2); }
.sub-tab.on { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }

/* 批量操作栏 */
.batch-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(21, 34, 56, .04), rgba(201, 163, 95, .06));
  border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 8px;
}
.batch-bar .bb-count { font-size: 13px; color: var(--text-2); }
.batch-bar .bb-count b { color: var(--navy); font-size: 15px; }

/* 选中行高亮 */
table.tbl tr.row-sel td { background: rgba(201, 163, 95, .07); }
table.tbl tr.row-sel:hover td { background: rgba(201, 163, 95, .11); }

/* 幽灵按钮（弱操作） */
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-3); }
.btn.ghost:hover { background: var(--bg); color: var(--text-2); border-color: var(--border); }

/* 警示条（失效账号 / 健康度预警） */
.warn-bar {
  display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; padding: 11px 15px;
  background: rgba(192, 122, 48, .09); border: 1px solid rgba(192, 122, 48, .28);
  border-radius: 8px; color: #8a5a1e; font-size: 12.5px; line-height: 1.7;
}
.warn-bar .wb-ico { font-size: 15px; line-height: 1.4; flex-shrink: 0; }
.warn-bar b { color: var(--orange); }

/* 素材重复徽章 */
.dup-badge {
  position: absolute; left: 8px; top: 8px; background: var(--red); color: #fff;
  font-size: 10.5px; padding: 2px 7px; border-radius: 4px; letter-spacing: .5px;
}

/* 日历事件：可拖拽 / 锁定 */
.cal-ev.can-drag { box-shadow: inset 0 0 0 1px rgba(46, 95, 163, .25); }
.cal-ev.locked { opacity: .72; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 6px, transparent 6px 12px); }
.cal-ev .drag-grip { margin-right: 4px; opacity: .55; font-weight: 700; }
.cal-ev .lock-ico { margin-right: 3px; filter: grayscale(.2); }

/* 发布高级设置面板 */
.adv-panel {
  margin-top: 10px; padding: 13px 15px; background: #fafbfd; border: 1px solid var(--border);
  border-radius: 8px; font-size: 12.5px; color: var(--text-2);
}
.input.sm-sel { height: 28px; width: auto; padding: 0 8px; }

/* 导出工具条 */
.export-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

/* 环比变化徽标（▲升/▼降/—平；涨红跌绿） */
.chg { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--red); }
.chg.down { color: var(--green); }
.chg.flat { color: var(--text-3); }
.chg .u { font-size: 9px; }
