/* 租户工作台 · 商业化视觉主题（蜂蜜琥珀品牌色 + 轻立体控件） */
body.tenant-app {
  --primary: #e8871a;
  --primary-dark: #b85c0c;
  --primary-grad: linear-gradient(145deg, #ffd27a 0%, #ffab3d 42%, #e87b1a 100%);
  --accent-soft: rgba(255, 186, 90, 0.22);
  --text: #1a1d21;
  --text-2: #4a5260;
  --text-3: #7a8494;
  --border: #ebe6de;
  --bg: #faf8f5;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(26, 29, 33, 0.05);
  --shadow-lift: 0 8px 28px rgba(232, 123, 26, 0.1);
  --sidebar-w: 268px;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body.tenant-app img.logo {
  width: 48px;
  height: 48px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

/* ===== 按钮体系（轻立体感，全站一致） ===== */
body.tenant-app .btn {
  font-size: 15px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 11px;
  border-color: #ebe6de;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 0 rgba(26, 29, 33, 0.04),
    0 3px 10px rgba(26, 29, 33, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
body.tenant-app .btn:hover:not([disabled]) {
  border-color: #ffab3d;
  color: var(--primary-dark);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 3px 12px rgba(232, 123, 26, 0.15);
}
body.tenant-app .btn:active:not([disabled]) {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 1px 4px rgba(26, 29, 33, 0.08);
}
body.tenant-app .btn-primary {
  border: none;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(140, 70, 0, 0.25);
  background: var(--primary-grad);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 2px 0 #c96f0f,
    0 6px 16px rgba(232, 123, 26, 0.35);
}
body.tenant-app .btn-primary:hover:not([disabled]) {
  color: #fff;
  opacity: 1;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 0 #c96f0f,
    0 8px 22px rgba(232, 123, 26, 0.42);
}
body.tenant-app .btn-primary:active:not([disabled]) {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 200, 120, 0.4) inset,
    0 1px 0 #b85c0c,
    0 3px 10px rgba(232, 123, 26, 0.28);
}
body.tenant-app .btn-danger {
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px rgba(245, 34, 45, 0.1);
}
body.tenant-app .btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 9px;
}
body.tenant-app .lv-act-col .lv-act-btn,
body.tenant-app .lv-act-col .btn-sm.lv-act-btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}
body.tenant-app .lv-table .lv-act-col {
  gap: 6px;
}
body.tenant-app .bl-acts.lv-act-col,
body.tenant-app .bl-acts .lv-act-col {
  margin-top: 4px;
}
body.tenant-app .btn-lg {
  padding: 14px 28px;
  font-size: 17px;
  border-radius: 12px;
}
body.tenant-app .btn-block {
  padding: 16px;
  font-size: 17px;
}
body.tenant-app .btn-link {
  font-size: 15px;
  padding: 4px 10px;
  box-shadow: none;
  background: none;
}
body.tenant-app .seg-btn-group {
  border-radius: 10px;
  border-color: #e8e2d9;
  background: #f0ebe4;
  padding: 3px;
  gap: 2px;
}
body.tenant-app .seg-btn-group > .btn,
body.tenant-app .seg-btn-group > .lv-btn,
body.tenant-app .seg-btn-group > .shot-tab {
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background: transparent;
  transform: none;
  text-shadow: none;
  font-weight: 500;
}
body.tenant-app .seg-btn-group > .btn:hover,
body.tenant-app .seg-btn-group > .lv-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none !important;
}
body.tenant-app .seg-btn-group > .is-active,
body.tenant-app .seg-btn-group > .on,
body.tenant-app .seg-btn-group > .active {
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(232, 123, 26, 0.18);
}
body.tenant-app .seg-btn-group > .is-active:hover,
body.tenant-app .seg-btn-group > .on:hover,
body.tenant-app .seg-btn-group > .active:hover {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(232, 123, 26, 0.18);
}
body.tenant-app .seg-btn-group > .btn:active,
body.tenant-app .seg-btn-group > .lv-btn:active {
  transform: none;
}
body.tenant-app .seg-btn-group.lv-mode-group > .lv-btn {
  font-size: 13px;
  padding: 7px 16px;
  min-height: 34px;
}
body.tenant-app .wm-tab-bar.seg-btn-group > .btn {
  font-size: 14px;
  min-width: 8em;
  padding: 8px 18px;
}
body.tenant-app .lv-btn {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(26, 29, 33, 0.06);
}
body.tenant-app .seg-btn-group .lv-btn,
body.tenant-app .seg-btn-group > .lv-btn {
  box-shadow: none !important;
  border: none !important;
}

/* ===== 侧栏与导航 ===== */
body.tenant-app .sidebar {
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: 1px solid #f0ebe4;
  box-shadow: 2px 0 16px rgba(26, 29, 33, 0.03);
}
body.tenant-app .sidebar .brand {
  padding: 22px 18px;
  border-bottom: 1px solid #f3efe8;
  background: #ffffff;
}
body.tenant-app .sidebar .brand .name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
body.tenant-app .sidebar .brand .tag {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 500;
  margin-top: 2px;
}
body.tenant-app .menu {
  padding: 14px 12px 20px;
  font-size: 15px;
  line-height: 1.45;
}
body.tenant-app .menu-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #b8956a;
  letter-spacing: 0.04em;
  padding: 12px 14px 6px;
}
body.tenant-app .menu-item {
  font-size: inherit;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: 11px;
  gap: 12px;
  color: #3d4654;
}
body.tenant-app .menu-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.92;
  color: #5c6470;
}
body.tenant-app .menu-item.menu-sub {
  padding-left: 24px;
  font-size: inherit;
}
body.tenant-app .menu-item:hover {
  background: #fff6ea;
  color: var(--text);
}
body.tenant-app .menu-item:hover svg {
  color: var(--primary-dark);
}
body.tenant-app .menu-item.active {
  background: #fff3e0;
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: none;
}
body.tenant-app .menu-item.active svg {
  color: var(--primary-dark);
  opacity: 1;
}

body.tenant-app .main {
  margin-left: var(--sidebar-w);
  background: var(--bg);
}

/* ===== 顶栏 ===== */
body.tenant-app .topbar {
  height: 64px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #f0ebe4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.tenant-app .topbar .page-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
body.tenant-app .tenant-switch .cur,
body.tenant-app .balance-chip {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #ffffff;
  border-color: #ebe6de;
}
body.tenant-app .bell:hover,
body.tenant-app .balance-chip:hover,
body.tenant-app .tenant-switch .cur:hover {
  background: #fff8ef;
}
body.tenant-app .tenant-switch .drop .opt {
  font-size: 14px;
  padding: 12px 16px;
}
body.tenant-app .user-chip {
  font-size: 14px;
}
body.tenant-app .user-chip .avatar,
body.tenant-app .user-chip .avatar-img {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

/* ===== 内容区与卡片 ===== */
body.tenant-app .content {
  padding: 12px 14px 14px;
}
body.tenant-app .card {
  border-radius: 16px;
  border: 1px solid #f0ebe4;
  background: #ffffff;
  box-shadow: var(--shadow);
}
body.tenant-app .card .card-hd .t {
  font-size: 17px;
  font-weight: 700;
}
body.tenant-app .card .card-hd {
  padding: 18px 20px;
}
body.tenant-app .card .card-bd {
  padding: 20px;
}

body.tenant-app .toolbar {
  gap: 12px;
  margin-bottom: 16px;
}
body.tenant-app .list-page > .toolbar {
  padding: 9px 10px 7px;
}
body.tenant-app .toolbar input[type="text"],
body.tenant-app .toolbar input[type="number"],
body.tenant-app .toolbar select {
  font-size: 15px;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 10px;
}
body.tenant-app .toolbar .us-cur {
  min-height: 46px;
  padding: 11px 14px;
  font-size: 15px;
  border-radius: 10px;
  box-sizing: border-box;
}
body.tenant-app .toolbar .btn:not(.btn-sm) {
  min-height: 46px;
  box-sizing: border-box;
}

/* ===== 列表与表格 ===== */
body.tenant-app table.grid {
  font-size: 15px;
}
body.tenant-app table.grid th,
body.tenant-app table.grid td {
  padding: 14px 16px;
}
body.tenant-app table.grid th {
  font-size: 14px;
  font-weight: 600;
  background: #ffffff;
}
body.tenant-app .lv-table th,
body.tenant-app .lv-table td {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.45;
}
body.tenant-app .lv-table th {
  font-size: 14px;
  background: #ffffff;
}
body.tenant-app .lv-table td {
  background: #ffffff;
}
body.tenant-app .lv-table tbody tr:hover td {
  background: #fffbf6;
}
body.tenant-app .lv-foot,
body.tenant-app .lv-bar {
  background: #ffffff;
  border-color: #f0ebe4;
}
body.tenant-app .lv-total {
  font-size: 14px;
}
body.tenant-app .lv-foot {
  padding: 12px 18px;
}
body.tenant-app .lv-pager button {
  min-width: 36px;
  height: 36px;
  font-size: 14px;
  border-radius: 8px;
}
body.tenant-app .lv-size {
  font-size: 14px;
}
body.tenant-app .empty {
  font-size: 15px;
  padding: 56px 0;
}
body.tenant-app .tag {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f5f6f8;
}
body.tenant-app .list-page {
  background: #ffffff;
  flex: 1;
  min-height: 0;
  height: 100%;
}
body.tenant-app .content:has(> .list-page) {
  overflow: hidden;
}
body.tenant-app .list-page > .lv-host > .lv {
  height: 100%;
}
body.tenant-app .lv-foot {
  flex: none;
  margin-top: auto;
  border-top-color: #f0ebe4;
}
body.tenant-app .list-page > .toolbar {
  background: #ffffff;
  border-bottom: 1px solid #f5f0e8;
}

/* 区块卡片：行内少放几块，信息更大 */
body.tenant-app .lv-block-body {
  padding: 18px 20px;
}
body.tenant-app .lv-blocks {
  gap: 18px;
}
body.tenant-app .lv-card {
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  border-color: #f0ebe4;
}
body.tenant-app .bl-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}
body.tenant-app .lv-card .bl-title .btn-link,
body.tenant-app .bl-title .btn-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
body.tenant-app .lv-card .remake-list-title-btn.btn-link,
body.tenant-app .lv-card .remake-list-title-text {
  font-size: 18px;
}
body.tenant-app .bl-title .tag {
  font-size: 15px;
}
body.tenant-app .lv-card .bl-row {
  font-size: 14px;
  padding: 7px 0;
  gap: 14px;
}
body.tenant-app .lv-card .bl-k {
  width: 5.8em;
  min-width: 5.8em;
  font-size: 14px;
  font-weight: 700;
  color: #2c3340;
  letter-spacing: 0.03em;
}
body.tenant-app .lv-card .bl-v {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
}

/* ===== 统计与看板 ===== */
body.tenant-app .stat-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
body.tenant-app .stat-card {
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
body.tenant-app .stat-card .label {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}
body.tenant-app .stat-card .value {
  font-size: 32px;
}
body.tenant-app .stat-card .extra {
  font-size: 13px;
  margin-top: 8px;
}

body.tenant-app .dash-trend-hint,
body.tenant-app .dash-trend-sub {
  font-size: 14px;
  line-height: 1.55;
}
body.tenant-app .dash-trend-bd .trend-legend,
body.tenant-app .trend-legend {
  font-size: 14px;
  gap: 18px;
  margin-bottom: 16px;
}
body.tenant-app .trend-legend .dot {
  width: 10px;
  height: 10px;
}
body.tenant-app .trend-chart-wrap .trend-chart-tip {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
}
body.tenant-app .trend-chart .trend-chart-line {
  stroke-width: 2.5px;
}
body.tenant-app .trend-chart--compact .trend-chart-line {
  stroke-width: 2px;
}

body.tenant-app .tracked-data-stat .lbl {
  font-size: 13px;
}
body.tenant-app .tracked-data-stat .val {
  font-size: 22px;
}
body.tenant-app .tracked-data-hd {
  font-size: 16px;
}

/* ===== 表单 ===== */
body.tenant-app .field label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
body.tenant-app .input,
body.tenant-app .field input[type="text"],
body.tenant-app .field input[type="password"],
body.tenant-app .field input[type="number"],
body.tenant-app .field select,
body.tenant-app .field textarea {
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 10px;
}
body.tenant-app .field .hint {
  font-size: 13px;
}

/* ===== 弹窗与 Tab ===== */
body.tenant-app .modal .modal-hd .t {
  font-size: 18px;
  font-weight: 700;
}
body.tenant-app .tabs .tab {
  font-size: 15px;
  padding: 12px 18px;
}

/* ===== 登录页 ===== */
body.tenant-app .auth-card {
  width: 440px;
  padding: 44px 40px;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(232, 123, 26, 0.12);
}
body.tenant-app .auth-card .brand .name {
  font-size: 22px;
}
body.tenant-app .auth-card .sub {
  font-size: 15px;
  margin-bottom: 32px;
}
body.tenant-app .auth-wrap {
  background: linear-gradient(165deg, #fffdf9 0%, #fff6e8 42%, #faf8f5 100%);
}

/* ===== 作品搜索 / 榜单页头 ===== */
body.tenant-app .work-search-page {
  height: 100%;
  min-height: 0;
}
body.tenant-app .content:has(> .work-search-page) {
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
body.tenant-app .work-search-page--idle {
  height: 100%;
}
body.tenant-app .work-search-page--idle .work-search-hero {
  flex: 0 0 auto;
}
body.tenant-app .work-search-body:not([hidden]),
body.tenant-app .work-search-results {
  flex: 1;
  min-height: 0;
}
body.tenant-app .work-search-title {
  font-size: 28px;
}
body.tenant-app .work-search-input {
  font-size: 17px;
  padding: 16px 20px;
}
body.tenant-app .rank-board-kicker {
  font-size: 14px;
}
body.tenant-app .rank-setting-label {
  font-size: 13px;
}

body.tenant-app .loading-box {
  font-size: 15px;
}

body.tenant-app .muted,
body.tenant-app .text-muted {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
body.tenant-app .arm-usage-notice,
body.tenant-app .wm-test-intro {
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: 12px;
  border-color: rgba(255, 171, 61, 0.35);
  background: rgba(255, 235, 200, 0.35);
}
body.tenant-app .dash-analysis-24h-table th,
body.tenant-app .dash-analysis-24h-table td {
  font-size: 15px;
  padding: 14px 16px;
}
body.tenant-app .recharge-pkg-card {
  border-radius: 16px;
  padding: 22px 20px;
}
body.tenant-app .recharge-pkg-card .pkg-title {
  font-size: 18px;
}
body.tenant-app .recharge-balance-only .value {
  font-size: 34px;
}
body.tenant-app .modal {
  border-radius: 16px;
}
body.tenant-app .us-opt {
  font-size: 14px;
  padding: 10px 12px;
}
body.tenant-app .us-search input {
  font-size: 14px;
  padding: 9px 12px;
}

@media (max-width: 900px) {
  body.tenant-app .sidebar {
    width: 64px;
  }
  body.tenant-app .main {
    margin-left: 64px;
  }
}