/* =========================================================================
   外卖平台入驻意向客户线索管理系统 · 设计系统
   移动优先（小程序观感），管理端自适应桌面宽屏
   ========================================================================= */

/* ------------------------------ 1. 设计变量 ------------------------------ */
:root {
  --ink: #12151c;
  --ink-2: #1b2130;
  --ink-3: #2a3242;

  --brand: #2f7d74;
  --brand-2: #e8b04b;
  --brand-deep: #0b2e2c;
  --brand-soft: #eef6f4;
  --brand-line: #cfe3df;

  --ok: #0f9d58;
  --ok-soft: #e8f7ef;
  --blue: #2f6bff;
  --blue-soft: #edf2ff;
  --violet: #7c5cff;
  --violet-soft: #f1eeff;
  --amber: #c47c00;
  --amber-soft: #fff6e3;
  --gray: #8b95a7;
  --gray-soft: #f1f3f7;
  --danger: #e5484d;
  --danger-soft: #fdecea;

  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #ebedf2;
  --line-strong: #dfe3ea;

  --text: #1a2231;
  --text-2: #5b667a;
  --text-3: #8b95a7;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 10px 28px -14px rgba(16, 24, 40, 0.2);
  --shadow-lg: 0 24px 56px -20px rgba(16, 24, 40, 0.32);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-h: 48px;
  --tabbar-h: 58px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

/* ------------------------------ 2. 基础重置 ------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: rgba(255, 106, 43, 0.18);
}

.app-root {
  min-height: 100vh;
}

/* 滚动条（桌面端） */
@media (min-width: 900px) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: #d8dde6;
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: content-box;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #c3cad6;
    background-clip: content-box;
  }
}

/* ------------------------------ 3. 布局骨架 ------------------------------ */
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 移动端容器：桌面端居中并加设备感 */
.layout-mobile {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 0;
}

.layout-mobile.has-tabbar {
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}

@media (min-width: 860px) {
  body.is-mobile-surface {
    background: #e9ecf2;
  }
  .layout-mobile {
    max-width: 460px;
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    border-radius: 28px;
    box-shadow: 0 32px 70px -30px rgba(16, 24, 40, 0.45), 0 0 0 1px rgba(16, 24, 40, 0.06);
    overflow: clip;
  }
  .layout-mobile .topnav {
    border-radius: 28px 28px 0 0;
  }
  .layout-mobile .tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    border-radius: 0 0 28px 28px;
  }
}

.page {
  padding: 14px 16px 24px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
  animation: page-in 0.32s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@media (min-width: 860px) {
  .layout-mobile .page {
    min-height: calc(100vh - 48px - var(--nav-h));
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-section + .page-section {
  margin-top: 18px;
}

/* 管理端布局 */
.layout-admin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .layout-admin {
    grid-template-columns: 232px minmax(0, 1fr);
  }
}

.admin-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 14px;
    background: var(--ink);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 20px;
}

.sidebar-brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 6px 16px -6px rgba(255, 106, 43, 0.8);
}

.sidebar-brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.sidebar-brand span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  transition: background 0.16s ease, color 0.16s ease;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.nav-item svg {
  flex: none;
  opacity: 0.9;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-item.active {
  background: rgba(255, 106, 43, 0.16);
  color: #ffb996;
  font-weight: 600;
}

.nav-item.active svg {
  color: var(--brand);
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .admin-topbar {
    padding: 14px 28px;
  }
}

.admin-topbar h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar .spacer {
  flex: 1;
}

/* 顶栏内容与正文同宽并居中，避免宽屏下“内容贴左” */
.admin-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.admin-content {
  padding: 16px;
  flex: 1;
}

@media (min-width: 1024px) {
  .admin-content {
    padding: 24px 28px 40px;
    max-width: 1600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* 让页面根节点撑满内容区，分页条才能贴到页面底部 */
    display: flex;
    flex-direction: column;
  }

  .admin-content > div {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  /* 分页条固定在内容底部 */
  .admin-content .pagination {
    margin-top: auto;
    padding-top: 14px;
  }

  /* 分页条被包在容器里时，让这个容器也贴底 */
  .admin-content > div > div:last-child:has(.pagination) {
    margin-top: auto;
  }
}

/* ------------------------------ 4. 顶部导航 / Tab 栏 ------------------------------ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.topnav .nav-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topnav .nav-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.16s ease;
}

.topnav .nav-btn:active {
  background: var(--gray-soft);
}

.topnav .nav-side {
  min-width: 38px;
  display: flex;
  justify-content: flex-end;
}

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}

.tab-item {
  flex: 1;
  height: var(--tabbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.2px;
  transition: color 0.18s ease;
  position: relative;
}

.tab-item svg {
  width: 22px;
  height: 22px;
}

.tab-item.active {
  color: var(--brand);
  font-weight: 600;
}

.tab-item.active::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
}

.tab-item .tab-badge {
  position: absolute;
  top: 6px;
  right: 50%;
  margin-right: -22px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 600;
}

/* 管理端移动端抽屉 */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 24, 0.42);
  z-index: 60;
  animation: fade-in 0.2s ease both;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 76%;
  max-width: 300px;
  z-index: 61;
  background: var(--ink);
  color: #fff;
  padding: 22px 14px calc(20px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: slide-in-left 0.26s cubic-bezier(0.22, 0.8, 0.3, 1) both;
  overflow-y: auto;
}

@keyframes slide-in-left {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: none;
  }
}

/* ------------------------------ 5. 通用组件 ------------------------------ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 11px 12px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.card-title h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card-title .sub {
  font-size: 12px;
  color: var(--text-3);
}

.card-body {
  padding: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.975);
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(255, 106, 43, 0.75);
}

.btn-primary:hover {
  box-shadow: 0 10px 22px -8px rgba(255, 106, 43, 0.85);
}

.btn-ghost {
  background: var(--gray-soft);
  color: var(--text);
}

.btn-ghost:hover {
  background: #e8ebf1;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 36px;
  padding: 0;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 500;
}

.chip.soft.active {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-deep);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  background: var(--gray-soft);
  color: var(--text-2);
  white-space: nowrap;
}

.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.violet { background: var(--violet-soft); color: var(--violet); }
.tag.green { background: var(--ok-soft); color: var(--ok); }
.tag.gray { background: var(--gray-soft); color: var(--gray); }
.tag.orange { background: var(--brand-soft); color: var(--brand-deep); }
.tag.red { background: var(--danger-soft); color: var(--danger); }

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.muted { color: var(--text-3); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.stack { display: flex; flex-direction: column; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.grow { flex: 1; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* 表单 */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-label .req {
  color: var(--brand);
}

.input,
.textarea,
.select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
}

.textarea {
  height: auto;
  min-height: 88px;
  padding: 11px 13px;
  line-height: 1.6;
  resize: vertical;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b95a7' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

/* 自绘选择器（替代原生 select，兼容微信内置浏览器） */
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.select-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-text.placeholder {
  color: #a9b2c0;
}

.select-trigger.invalid,
.select.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.picker-option .picker-check {
  display: inline-flex;
  color: var(--brand);
  opacity: 0;
  flex: none;
}

.picker-option.active {
  color: var(--brand-deep);
  font-weight: 600;
  background: #fff8f4;
}

.picker-option.active .picker-check {
  opacity: 1;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.12);
}

.input::placeholder,
.textarea::placeholder {
  color: #a9b2c0;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 0;
}

.field-hint {
  font-size: 12px;
  color: var(--text-3);
}

.input.invalid {
  border-color: var(--danger);
  background: #fffafa;
}

.switch {
  position: relative;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: #d9dee7;
  transition: background 0.2s ease;
  flex: none;
  cursor: pointer;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.switch.on {
  background: var(--brand);
}

.switch.on::after {
  transform: translateX(19px);
}

/* 列表 */
.list {
  display: flex;
  flex-direction: column;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  transition: background 0.14s ease;
}

.list-row + .list-row {
  border-top: 1px solid var(--line);
}

.list-row.interactive {
  cursor: pointer;
}

.list-row.interactive:hover {
  background: #fafbfd;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(140deg, #3c4658, #232b3a);
  flex: none;
  letter-spacing: 0.5px;
}

.avatar.brand {
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
}

.avatar.sm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 12px;
}

/* 空状态 / 加载 */
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty .empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--gray-soft);
  color: #b3bcc9;
}

.empty h4 {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 4px;
}

.empty p {
  font-size: 12.5px;
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, #eff1f5 25%, #f7f8fa 37%, #eff1f5 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px 0;
  font-size: 13px;
  color: var(--text-3);
}

.pagination .pager {
  display: flex;
  gap: 6px;
}

/* ------------------------------ 6. 弹层 / 对话框 / Toast ------------------------------ */
.sheet-layer {
  position: relative;
  z-index: 80;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 24, 0.45);
  animation: fade-in 0.2s ease both;
  z-index: 80;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  z-index: 81;
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.3s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  padding-bottom: var(--safe-bottom);
}

.sheet.closing {
  animation: sheet-down 0.22s ease both;
}

@keyframes sheet-up {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}

@keyframes sheet-down {
  from { transform: translate(-50%, 0); opacity: 1; }
  to { transform: translate(-50%, 40%); opacity: 0; }
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 10px;
}

.sheet-head h3 {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}

.sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gray-soft);
  color: var(--text-2);
}

.sheet-body {
  padding: 6px 18px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-foot {
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--line);
}

.sheet-foot .btn {
  flex: 1;
}

.sheet-grabber {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #e3e7ee;
  margin: 8px auto 0;
}

.toast-layer {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 16px;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(18, 21, 28, 0.94);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  backdrop-filter: blur(8px);
}

.toast.out {
  animation: toast-out 0.24s ease both;
}

.toast.success svg { color: #5bd48c; }
.toast.error svg { color: #ff8a8f; }
.toast.info svg { color: #8fb4ff; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 24, 0.45);
  display: grid;
  place-items: center;
  z-index: 90;
  animation: fade-in 0.18s ease both;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 16px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.26s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: none; }
}

.modal h3 {
  font-size: 16.5px;
  font-weight: 600;
  text-align: center;
}

.modal p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
  height: 42px;
}

/* ------------------------------ 7. 登录页 ------------------------------ */
.login-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0b0e14;
  color: #fff;
  /* 小屏或弹出键盘时内容可能超出一屏，必须允许纵向滚动，否则会被裁切成空白 */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 两行：内容区占满剩余空间，底部背书记行固定在页面最底部 */
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(40px + env(safe-area-inset-top, 0px)) 26px calc(20px + var(--safe-bottom));
}

.login-screen::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: -18%;
  right: -28%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 106, 43, 0.5), rgba(255, 106, 43, 0) 62%);
  filter: blur(12px);
  pointer-events: none;
  animation: glow-drift 14s ease-in-out infinite alternate;
}

.login-screen::after {
  content: "";
  position: fixed;
  z-index: 0;
  bottom: -30%;
  left: -30%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 96, 255, 0.28), rgba(56, 96, 255, 0) 65%);
  pointer-events: none;
  animation: glow-drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 24px, 0) scale(1.08); }
}

.login-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  /* auto 外边距：有空间时垂直居中；内容超高时自然从顶部排布并允许整页滚动 */
  margin: auto;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding: 8px 0;
}

/* 关键：禁止子项被压缩，小屏/键盘弹出时改为整页滚动，避免登录表单被压成 0 高 */
.login-inner > * {
  flex: 0 0 auto;
}

@media (min-width: 860px) {
  .login-inner {
    max-width: 448px;
  }
}

/* 宽屏：左侧品牌主张 + 右侧登录面板 */
@media (min-width: 1040px) {
  .login-inner {
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 384px;
    column-gap: 76px;
    align-content: center;
    align-items: start;
  }

  .login-brand {
    grid-column: 1 / -1;
  }

  .login-hero {
    grid-column: 1;
    grid-row: 2;
    margin-top: 44px;
    /* 桌面端：标题、副标题、渠道卡片居中对齐，共用同一条中轴 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .login-hero .login-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .login-hero .login-channel {
    margin-left: auto;
    margin-right: auto;
    /* flex 列内需要显式宽度，否则会缩成内容宽 */
    width: 360px;
    max-width: 100%;
  }

  .login-title {
    margin-top: 0;
    font-size: 58px;
    letter-spacing: 4px;
  }

  .login-subtitle {
    margin-top: 16px;
    font-size: 15px;
  }

  .login-form {
    grid-column: 2;
    grid-row: 2;
    margin-top: 44px;
    padding: 26px 24px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(6px);
  }

  .login-foot {
    grid-column: 1 / -1;
    margin-top: 44px;
  }
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.3px;
  transition: color 0.5s ease;
  animation: fade-up 0.7s ease 0.1s both;
}

.login-brand.lit {
  color: rgba(255, 255, 255, 0.72);
}

.login-brand .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 8px 20px -8px rgba(255, 106, 43, 0.9);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.login-title {
  margin-top: 34px;
  font-size: clamp(33px, 8.4vw, 46px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 3px;
}

.login-line {
  display: block;
}

.login-line + .login-line {
  margin-top: 2px;
}

.login-title .char {
  display: inline-block;
  animation: char-in 0.55s cubic-bezier(0.22, 0.85, 0.3, 1) both;
}

.login-title .char.gap {
  width: 0.32em;
}

@keyframes char-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.login-title .accent {
  color: var(--brand);
}

.login-subtitle {
  margin-top: 12px;
  font-size: 14.5px;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  width: fit-content;
  animation: subtitle-in 0.7s ease both;
  overflow: hidden;
}

.login-subtitle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0e14 0%, rgba(11, 14, 20, 0.85) 45%, rgba(11, 14, 20, 0) 100%);
  transform-origin: right;
  animation: sweep 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes subtitle-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sweep {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* 兜底：动画结束（或异常/被系统抑制）后强制可见，避免页面只剩底部一行字 */
.login-screen.anim-settled .login-brand,
.login-screen.anim-settled .login-title .char,
.login-screen.anim-settled .login-subtitle,
.login-screen.anim-settled .login-channel,
.login-screen.anim-settled .login-form,
.login-screen.anim-settled .login-foot {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.login-screen.anim-settled .login-subtitle::after {
  display: none;
}

/* 系统开启“减少动效”时，直接显示内容，不做逐字/扫过/淡入 */
@media (prefers-reduced-motion: reduce) {
  .login-brand,
  .login-title .char,
  .login-subtitle,
  .login-channel,
  .login-form,
  .login-foot {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .login-subtitle::after {
    display: none;
  }
}

.login-form {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fade-up 0.8s ease 0.5s both;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-field:focus-within {
  border-color: rgba(255, 138, 76, 0.7);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.12);
}

.login-field svg {
  color: rgba(255, 255, 255, 0.42);
  flex: none;
}

.login-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.4px;
}

.login-field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-field input:focus {
  outline: none;
}

.login-eye {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.login-error {
  min-height: 18px;
  font-size: 12.5px;
  color: #ff8f8a;
  padding-left: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.login-error.show {
  opacity: 1;
}

.login-btn {
  position: relative;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #e8b04b, #2f7d74);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.25s ease, opacity 0.2s ease;
  box-shadow: 0 14px 30px -14px rgba(255, 106, 43, 0.9);
}

.login-btn:active {
  transform: translateY(2px) scale(0.996);
  box-shadow: 0 6px 16px -10px rgba(255, 106, 43, 0.9);
}

.login-btn .glint {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%) skewX(-16deg);
  pointer-events: none;
}

.login-btn.pressed .glint {
  animation: glint-run 0.9s ease;
}

@keyframes glint-run {
  from { transform: translateX(-140%) skewX(-16deg); }
  to { transform: translateX(340%) skewX(-16deg); }
}

.login-btn .btn-inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 100%;
}

.login-btn .btn-label {
  transition: opacity 0.3s ease;
}

.login-btn .btn-ring-mini {
  display: none;
  align-items: center;
}

.login-btn.loading .btn-ring-mini {
  display: inline-flex;
}

.login-btn .ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}

.login-btn.loading {
  pointer-events: none;
}

.login-btn.success {
  animation: success-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, #3ecf8e, #16a163);
  box-shadow: 0 14px 30px -14px rgba(22, 161, 99, 0.9);
}

@keyframes success-bounce {
  0% { transform: scale(1); }
  45% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.login-flare {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 65%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.login-btn.success .login-flare {
  animation: flare 0.9s ease-out;
}

@keyframes flare {
  0% { opacity: 0.85; transform: scale(0.4); }
  70% { opacity: 0.28; transform: scale(8); }
  100% { opacity: 0; transform: scale(12); }
}

/* 协议勾选行：必须勾选才能登录 */
.login-consent {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.46);
  padding: 4px 2px;
  border-radius: 8px;
  transition: color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.login-consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.login-consent-box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.16s ease;
}

.login-consent-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.16s ease;
}

.login-consent input:checked + .login-consent-box {
  background: var(--brand);
  border-color: var(--brand);
}

.login-consent input:checked + .login-consent-box svg {
  opacity: 1;
  transform: scale(1);
}

.login-consent input:focus-visible + .login-consent-box {
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.28);
}

.login-consent a {
  color: rgba(255, 154, 99, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-consent a:hover {
  color: #f2cd8c;
}

.login-consent.invalid {
  color: #ff8a8a;
  animation: shake 0.36s ease;
}

.login-consent.invalid .login-consent-box {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.16);
}

/* 协议正文（弹层内） */
.legal-doc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
}

.legal-meta {
  font-size: 11.5px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.legal-intro {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--gray-soft);
  color: var(--text-2);
  margin-bottom: 16px;
}

.legal-section {
  margin-bottom: 16px;
}

.legal-section h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.legal-section p {
  margin: 0 0 6px;
  color: var(--text-2);
}

/* 登录页「渠道方 / 推荐人」自助入口（标题下方，需明显可见） */
.login-channel {
  margin-top: 22px;
  padding: 15px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 46px -28px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  animation: fade-up 0.7s ease both;
}

.login-channel-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-channel-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 7px;
}

.login-channel-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.2);
}

.login-channel-badge {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #f2cd8c;
  background: rgba(255, 106, 43, 0.18);
  border: 1px solid rgba(255, 106, 43, 0.32);
}

.login-channel-actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}

.login-channel-btn {
  flex: 1;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.login-channel-btn svg {
  width: 18px;
  height: 18px;
}

.login-channel-btn:active {
  transform: scale(0.98);
}

.login-channel-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.login-channel-btn.primary {
  background: linear-gradient(135deg, #e8b04b, #2f7d74);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 24px -14px rgba(255, 106, 43, 0.9);
}

.login-channel-btn.primary:hover {
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(255, 106, 43, 1);
}

/* 极窄屏：两个入口上下排列，保证按钮足够大 */
@media (max-width: 359px) {
  .login-channel-actions {
    flex-direction: column;
  }

  .login-channel-btn {
    flex: none;
    height: 50px;
    font-size: 14.5px;
  }
}

/* 桌面端：两个入口上下排列（并排太宽不好看），并限制卡片宽度 */
@media (min-width: 1040px) {
  .login-channel {
    max-width: 360px;
  }

  /* 桌面端：上方标题行居中 */
  .login-channel-head {
    justify-content: center;
  }

  .login-channel-actions {
    flex-direction: column;
    gap: 9px;
  }

  .login-channel-btn {
    flex: none;
    height: 50px;
    font-size: 14.5px;
  }
}


.login-foot {
  /* 位于页面最底部（.login-screen 的第二行） */
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-error.shake {
  animation: shake 0.36s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ------------------------------ 8. 业务组件 ------------------------------ */

/* 指标卡 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 700px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.stat-card {
  position: relative;
  padding: 15px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card .stat-value {
  margin-top: 6px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-card .stat-value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 3px;
}

.stat-card .stat-foot {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-card.accent {
  background: linear-gradient(150deg, #1d2434, #12151c);
  border-color: #232c3d;
  color: #fff;
}

.stat-card.accent .stat-label,
.stat-card.accent .stat-foot {
  color: rgba(255, 255, 255, 0.55);
}

.stat-card.accent .stat-value {
  color: #fff;
}

.stat-card.accent::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 43, 0.4), transparent 65%);
  pointer-events: none;
}

/* 线索卡片 */
.lead-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  position: relative;
}

.lead-card:active {
  transform: scale(0.992);
}

@media (hover: hover) {
  .lead-card:hover {
    box-shadow: 0 12px 26px -18px rgba(16, 24, 40, 0.4);
    border-color: #e2e6ee;
  }
}

.lead-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(255, 106, 43, 0.16);
}

.lead-card .lead-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.lead-card .lead-name {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.lead-card .lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12.5px;
  color: var(--text-3);
}

.lead-card .lead-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lead-card .lead-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-3);
}

.lead-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #cfd6e1;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
  transition: all 0.15s ease;
  background: #fff;
}

.lead-check.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* 线索卡片底部的快捷操作（审核 / 分配） */
.lead-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.lead-card-actions .btn {
  flex: 1;
}

/* 门店跟踪截图上传与缩略图 */
.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fafbfd;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.upload-box:active {
  background: #f2f4f8;
}

.upload-box .shot-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
}

.shot-thumb {
  display: block;
  max-width: 160px;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.shot-link {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* 地址导航链接 */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--brand-deep);
  background: rgba(255, 106, 43, 0.1);
  border: 1px solid rgba(255, 106, 43, 0.18);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease;
}

.map-link:hover {
  background: rgba(255, 106, 43, 0.18);
}

.map-link::before {
  content: "📍";
  font-size: 10px;
}

/* 线索卡片底部提示（如：待审核需先审核通过才能分配） */
.lead-note {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 结算账单：单个推荐人的金额条 */
.bill-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 12px;
  background: #f7f9fc;
}

.bill-amounts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
  flex: 1;
}

.bill-amounts span {
  font-size: 11.5px;
  color: var(--text-3);
}

.bill-amounts b {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

/* 邀请码卡片上的收款信息行 */
.payout-line {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6f8fc;
  font-size: 11.5px;
  min-width: 0;
}

.payout-line.empty {
  background: #fff7ed;
}

.payout-label {
  flex: none;
  color: var(--text-3);
}

.payout-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
}

.payout-line.empty .payout-value {
  color: #d97706;
}

.payout-line .btn {
  flex: none;
  height: 26px;
  padding: 0 9px;
  font-size: 11.5px;
}

/* 列表工具条 */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-3);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.toolbar-row::-webkit-scrollbar {
  display: none;
}

/* 详情页 */
.detail-hero {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #1e2636, #12151c);
  color: #fff;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 43, 0.36), transparent 62%);
  pointer-events: none;
}

.detail-hero h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

.detail-hero .hero-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.detail-hero .hero-tags .tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.detail-hero .hero-tags .tag.amber { background: rgba(255, 186, 66, 0.18); color: #ffd189; }
.detail-hero .hero-tags .tag.blue { background: rgba(94, 142, 255, 0.22); color: #b3c9ff; }
.detail-hero .hero-tags .tag.violet { background: rgba(146, 118, 255, 0.22); color: #d3c4ff; }
.detail-hero .hero-tags .tag.green { background: rgba(45, 200, 125, 0.2); color: #86e6b4; }
.detail-hero .hero-tags .tag.gray { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.66); }

.detail-hero .hero-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
  position: relative;
  z-index: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: 88px 1fr;
  row-gap: 12px;
  column-gap: 10px;
  font-size: 13.5px;
}

.info-grid dt {
  color: var(--text-3);
}

.info-grid dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  margin: 18px 2px 10px;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--brand);
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(#e3e7ee, #eef1f5);
}

.timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cfd6e1;
}

.timeline-item.active::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.14);
}

.timeline-item .t-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.timeline-item .t-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
}

/* 阶段进度 */
.stage-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  row-gap: 8px;
}

.stage-node {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-3);
  background: #f4f6fa;
  border: 1px solid transparent;
  white-space: nowrap;
}

.stage-node .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cdd4de;
  flex: none;
}

/* 历史阶段（已从配置中删除或改名）：仅作记录展示，弱化为灰色未激活状态 */
.stage-node.legacy,
.stage-node.legacy.done {
  border-style: dashed;
  border-color: #d8dee8;
  color: var(--text-3);
  background: #fbfcfe;
  opacity: 0.8;
}

.stage-node.legacy .dot,
.stage-node.legacy.done .dot {
  background: #d8dee8;
}

.stage-node.done {
  color: #0b7a45;
  background: var(--ok-soft);
}

.stage-node.done .dot {
  background: var(--ok);
}

.stage-node.current {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: var(--brand-line);
  font-weight: 600;
}

.stage-node.current .dot {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.16);
}

.stage-line {
  display: none;
}

/* 图表 */
.chart-box {
  width: 100%;
  overflow: visible;
}

.chart-box svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.funnel-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.funnel-bar {
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 106, 43, 0.14), rgba(255, 106, 43, 0.06));
  position: relative;
  overflow: hidden;
}

.funnel-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8b04b, #2f7d74);
  transition: width 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.funnel-bar > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 12.5px;
  color: #6b4230;
  font-weight: 500;
  mix-blend-mode: multiply;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.rank-row + .rank-row {
  border-top: 1px solid var(--line);
}

.rank-no {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--gray-soft);
  color: var(--text-3);
  flex: none;
}

.rank-no.top1 { background: linear-gradient(140deg, #ffd764, #ffb020); color: #7a4a00; }
.rank-no.top2 { background: #eef1f6; color: #5c6779; }
.rank-no.top3 { background: #fbeada; color: #a5602a; }

.rank-bar {
  height: 6px;
  border-radius: 999px;
  background: #f0f2f6;
  overflow: hidden;
  margin-top: 5px;
}

.rank-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2cd8c, #2f7d74);
}

/* 提交页 hero */
.submit-hero {
  padding: 22px 18px 26px;
  background: linear-gradient(160deg, #1d2434 0%, #12151c 70%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.submit-hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 43, 0.45), transparent 62%);
  pointer-events: none;
}

/* 头部第一行（含「管理入口」链接）置于装饰光斑之上 */
.submit-hero > .flex-between,
.submit-hero .hero-top {
  position: relative;
  z-index: 2;
  gap: 10px;
  flex-wrap: nowrap;
}

.submit-hero .hero-kicker {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submit-hero .hero-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.submit-hero .hero-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.submit-hero .hero-links a:hover {
  color: #fff;
}

.submit-hero .hero-links-divider {
  color: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

/* 窄屏隐藏英文 kicker，避免与右侧链接挤成两行 */
@media (max-width: 480px) {
  .submit-hero .hero-kicker {
    display: none;
  }
}

.submit-hero .hero-kicker {
  font-size: 11.5px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

.submit-hero h1 {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.submit-hero p {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.form-card {
  margin: -14px 16px 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 18px 40px -24px rgba(16, 24, 40, 0.4);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-top: 2px;
}

.form-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-actions {
  padding: 18px 16px calc(20px + var(--safe-bottom));
  display: flex;
  gap: 10px;
}

/* 选择器行（地区等） */
.picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 46px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  text-align: left;
}

.picker-row.placeholder {
  color: #a9b2c0;
}

.picker-row svg {
  color: var(--text-3);
  flex: none;
}

.picker-breadcrumb {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.picker-crumb {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.picker-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.picker-option + .picker-option {
  border-top: 1px solid var(--line);
}

.picker-option:hover {
  background: #fafbfd;
}

.picker-option.active {
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-weight: 500;
}

.picker-option svg {
  color: var(--text-3);
}

/* 成功页 */
.success-panel {
  padding: 44px 24px 30px;
  text-align: center;
}

.success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

.success-panel h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.success-panel p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
}

.success-detail {
  margin-top: 22px;
  text-align: left;
  border-radius: 14px;
  background: #fafbfd;
  border: 1px solid var(--line);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px 10px;
  font-size: 13px;
}

.success-detail dt { color: var(--text-3); }
.success-detail dd { margin: 0; }

/* 分段控件（如进度查询的两种查询方式） */
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--gray-soft);
}

.segmented button {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  transition: all 0.16s ease;
}

.segmented button.active {
  background: #fff;
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* 底部操作条 */
.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.action-bar .btn {
  flex: 1;
}

/* 为吸底操作条预留空间，避免遮挡内容 */
.action-spacer {
  height: 76px;
}

/* 桌面端内容高度可控，操作条改为随内容排列，避免遮挡 */
@media (min-width: 1024px) {
  .action-bar {
    position: static;
    border-radius: 14px;
    border: 1px solid var(--line);
    margin-top: 4px;
  }

  .action-spacer {
    display: none;
  }
}

/* 保存类吸底工具条（管理端表单页）：移动端吸底，桌面端随内容排列 */
.sticky-actions {
  display: flex;
  gap: 8px;
}

.sticky-actions .btn {
  flex: 1;
}

@media (max-width: 1023px) {
  .sticky-actions {
    position: sticky;
    bottom: 8px;
    z-index: 12;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
}

/* 员工端统计条 */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.mini-stats > div {
  text-align: center;
}

.mini-stats b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-stats span {
  font-size: 11.5px;
  color: var(--text-3);
}

/* 开关行 */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
}

.switch-row + .switch-row {
  border-top: 1px solid var(--line);
}

/* 可编辑列表项 */
.edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.edit-row + .edit-row {
  margin-top: 8px;
}

.drag-handle {
  color: #c3cbd8;
  cursor: grab;
}

/* 管理端表格化卡片网格 */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

/* 所有卡片列表统一：按可用宽度自动铺满，同行等宽等高 */
@media (min-width: 720px) {
  .grid-cards {
    grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
    align-items: stretch;
  }

  .grid-cards > * {
    min-width: 0;
    height: 100%;
  }
}





.split-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 1100px) {
  .split-2 {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

.sticky-top {
  position: sticky;
  top: 70px;
}

/* 403 / 404 */
.state-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  background: var(--bg);
}

.state-page .code {
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(150deg, #e8b04b, #2f7d74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.state-page h2 {
  margin-top: 12px;
  font-size: 18px;
}

.state-page p {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13.5px;
}

/* 头像菜单 */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.16s ease;
}

.user-chip:hover {
  border-color: var(--line-strong);
}

/* 滚动条隐藏辅助 */
.no-scrollbar {
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* 顶部提示条 */
.banner {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: #8a4a24;
  font-size: 12.5px;
  line-height: 1.6;
}

.banner.info {
  background: var(--blue-soft);
  border-color: #d8e3ff;
  color: #2c4c96;
}

/* 时间/编号等次要信息 */
.email-like {
  font-size: 12.5px;
  color: var(--text-3);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 卡片色调：按业务状态做淡色描边 + 渐变底，避免整页纯白 */
.card.tint-amber { border-left: 3px solid var(--amber); background: linear-gradient(180deg, var(--amber-soft) 0%, #fff 55%); }
.card.tint-green { border-left: 3px solid var(--ok); background: linear-gradient(180deg, var(--ok-soft) 0%, #fff 55%); }
.card.tint-violet { border-left: 3px solid var(--violet); background: linear-gradient(180deg, var(--violet-soft) 0%, #fff 55%); }
.card.tint-red { border-left: 3px solid var(--danger); background: linear-gradient(180deg, var(--danger-soft) 0%, #fff 55%); }
.card.tint-gray { border-left: 3px solid var(--line); background: linear-gradient(180deg, #fafbfd 0%, #fff 55%); }
.sum-strip { display: flex; align-items: stretch; margin-bottom: 12px; overflow: hidden; }
.sum-strip > div { flex: 1; min-width: 0; padding: 9px 12px; }
.sum-strip > div + div { border-left: 1px solid var(--line); }
.sum-strip .sum-label { font-size: 12px; color: var(--muted); }
.sum-strip .sum-value { font-size: 17px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lead-card.status-pending_review { background: linear-gradient(180deg, var(--violet-soft) 0%, #fff 46%); }
.lead-card.status-pending_assign { background: linear-gradient(180deg, var(--amber-soft) 0%, #fff 46%); }
.lead-card.status-following { background: linear-gradient(180deg, #eef5ff 0%, #fff 46%); }
.lead-card.status-signed { background: linear-gradient(180deg, var(--ok-soft) 0%, #fff 46%); }
.lead-card.status-invalid { background: linear-gradient(180deg, #f6f7f9 0%, #fff 46%); }
/* 统计卡紧凑化 + 状态色调 */
.stat-card { padding: 13px 15px; }
.stat-card .stat-value { font-size: 21px; margin-top: 2px; }
.stat-card .stat-foot { margin-top: 4px; font-size: 11.5px; }
.stat-card.tone-violet { background: linear-gradient(180deg, var(--violet-soft) 0%, #fff 70%); border-color: #e6e0ff; }
.stat-card.tone-amber { background: linear-gradient(180deg, var(--amber-soft) 0%, #fff 70%); border-color: #ffe9c2; }
.stat-card.tone-green { background: linear-gradient(180deg, var(--ok-soft) 0%, #fff 70%); border-color: #d5f0e2; }
.stat-card.tone-brand { background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 70%); border-color: var(--brand-line); }
/* 卡片全局压缩：更小的标题与行距 */
.card-pad .text-strong { font-size: 13.5px; }
.grid-cards > .card { font-size: 12.5px; }
.grid-cards .tag { height: 19px; font-size: 11px; padding: 0 6px; }
.grid-cards .btn-sm { height: 28px; font-size: 12px; padding: 0 8px; }
.grid-cards .list-row { padding: 7px 9px; }

/* 侧边栏未处理数量角标 */
.nav-item { position: relative; }
.nav-item .nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* 线索卡：邀请码独立一行显示 */
.lead-invite { font-size: 11.5px; color: var(--text-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-invite b { color: var(--text-2); font-weight: 600; letter-spacing: 0.5px; }
/* ===== 表格列表与页面留白优化（2026-11） ===== */
/* 页面整体留白更宽松 */
.page {
  padding: 18px 20px 32px;
  gap: 0;
}

@media (min-width: 1200px) {
  .page {
    padding: 24px 32px 40px;
  }
}

/* 列表页表格 */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f8fc;
  color: var(--text-3);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover > td {
  background: #f9faff;
}

/* 表格内的次要信息与操作按钮 */
.table .text-xs {
  font-size: 12px;
  line-height: 1.5;
}

.table td .btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}

.table td .flex.gap-6 {
  gap: 6px;
}

/* 表格外层卡片：圆角裁切 + 横向滚动条更轻 */
.card > .table {
  margin: 0;
}

.card > table {
  border-radius: 14px;
}

/* 顶部工具条与统计条间距 */
.toolbar {
  gap: 12px;
}

.card.sum-strip {
  margin-bottom: 14px;
}

.card.sum-strip > div {
  padding: 4px 2px;
}

.sum-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}

.sum-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

/* 搜索框、按钮高度统一 */
.search-box {
  height: 40px;
}

.search-box input {
  height: 100%;
  font-size: 13.5px;
}

.chip-row {
  gap: 8px;
}

/* 移动端仍然紧凑一些 */
@media (max-width: 719px) {
  .page {
    padding: 14px 14px 28px;
  }

  .table thead th {
    padding: 10px 12px;
  }

  .table tbody td {
    padding: 12px;
  }
}

/* ===== 展示优化（第二版）：留白、字号、卡片层次 ===== */
.admin-main > .page,
.admin-main > div > .page {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* 卡片内边距更舒适 */
.card-pad {
  padding: 14px 16px;
}

@media (min-width: 1200px) {
  .card-pad {
    padding: 16px 18px;
  }
}

/* 段落小标题更有层次 */
.section-title {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.section-title:first-child {
  margin-top: 4px;
}

/* 标签更松弛 */
.tag {
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}

/* 筛选标签（全部/待审核…）更大更好点 */
.chip {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
}

/* 统计条数字与标签之间的呼吸 */
.sum-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  padding: 16px 20px;
}

.sum-strip > div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

/* 表格行操作按钮组更整齐 */
.table td .flex.gap-6 {
  gap: 8px;
}

/* 列表页顶部工具条与筛选条间距 */
.toolbar + .chip-row,
.chip-row + .card {
  margin-top: 4px;
}

/* 空状态更宽松 */
.empty {
  padding: 44px 20px;
}

/* 弹层内容留白 */
.sheet-body {
  padding: 18px 18px 8px;
}

@media (max-width: 719px) {
  .card-pad {
    padding: 12px;
  }

  .sheet-body {
    padding: 14px 14px 6px;
  }
}


/* ===== 入驻意向登记页优化 ===== */
.hero-guide {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.hero-guide:hover {
  background: rgba(255, 255, 255, 0.28);
}

.guide-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 16px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.guide-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  border: 0;
  border-radius: 10px;
  background: #f7f8fc;
  cursor: pointer;
  text-align: center;
}

.guide-step b {
  font-size: 12.5px;
  color: var(--brand-deep);
}

.guide-step span {
  font-size: 11px;
  color: var(--text-3);
}

.guide-step:hover {
  background: var(--brand-soft);
}

.guide-arrow {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--line-strong, #d7dbe6);
  border-bottom: 1.5px solid var(--line-strong, #d7dbe6);
  transform: rotate(-45deg);
  flex: none;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

.step-hint {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-3);
}

.submit-actions {
  position: sticky;
  bottom: 0;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 40%);
}

.guide-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfd;
}

.guide-item.active {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

@media (max-width: 360px) {
  .guide-step span {
    display: none;
  }
}


/* ===== 工作台改版 ===== */
.dash-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1200px) {
  .dash-page {
    padding: 24px 32px 40px;
    gap: 18px;
  }
}

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-hello {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dash-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
}

.dash-hero-actions {
  display: flex;
  gap: 8px;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dash-kpis {
    grid-template-columns: 1fr;
  }
}

.dash-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.dash-kpi::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}

.dash-kpi--brand::after { background: linear-gradient(180deg, #e8b04b, #2f7d74); }
.dash-kpi--amber::after { background: linear-gradient(180deg, #ffc46b, #f59e0b); }
.dash-kpi--green::after { background: linear-gradient(180deg, #6ee7b7, #10b981); }
.dash-kpi--violet::after { background: linear-gradient(180deg, #c4b5fd, #8b5cf6); }

.dash-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dash-kpi-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f4f6fa;
  color: var(--brand-deep);
}

.dash-kpi--amber .dash-kpi-icon { background: #fff6e6; color: #b45309; }
.dash-kpi--green .dash-kpi-icon { background: #eafaf2; color: #047857; }
.dash-kpi--violet .dash-kpi-icon { background: #f2eeff; color: #6d28d9; }

.dash-kpi-label {
  font-size: 13px;
  color: var(--text-3);
}

.dash-kpi-delta {
  margin-left: auto;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4f6fa;
  color: var(--text-3);
}

.dash-kpi-delta.up {
  background: #eafaf2;
  color: #047857;
}

.dash-kpi-value {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dash-kpi-foot {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-3);
}

.dash-kpi-foot b {
  color: var(--text);
}

.dash-link {
  color: var(--brand-deep);
  font-size: 12.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dash-span-2 {
  grid-column: span 2;
}

@media (max-width: 1100px) {
  .dash-span-2 {
    grid-column: span 1;
  }
}

.dash-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 10px;
}

.dash-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f4f6fa;
  color: var(--text-2);
  flex: none;
}

.dash-section-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}

.dash-section-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
}

.dash-card-body {
  padding: 4px 18px 18px;
}

.dash-chart {
  padding: 0 10px 8px;
}

.dash-rates {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-rate-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-3);
}

.dash-rate-row b.good {
  color: #059669;
}

/* 排行 */
.dash-ranks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-rank {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dash-rank-no {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: #f4f6fa;
  color: var(--text-3);
  flex: none;
}

.dash-rank-no.r1 { background: linear-gradient(140deg, #ffb648, #ff8a00); color: #fff; }
.dash-rank-no.r2 { background: #e8edf5; color: #475569; }
.dash-rank-no.r3 { background: #f6e6c8; color: #b45309; }

.dash-rank-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.dash-rank-name {
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-rank-meta {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.dash-rank-bar {
  margin-top: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f1f4f9;
  overflow: hidden;
}

.dash-rank-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8b04b, #2f7d74);
}

/* 最新线索 */
.dash-recent {
  padding: 0 8px 8px;
}

.dash-recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.dash-recent-row:hover {
  background: #f8f9fd;
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(140deg, #eef1f6, #e2e7ef);
  color: var(--text-2);
  flex: none;
}

.dash-avatar.signed {
  background: linear-gradient(140deg, #e8b04b, #2f7d74);
  color: #fff;
}

.dash-recent-name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-recent-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
}

/* 图表容器 */
.chart-box {
  width: 100%;
}

.chart-box svg {
  width: 100%;
  height: auto;
  display: block;
}

.funnel-bar {
  height: 10px;
  border-radius: 999px;
  background: #f1f4f9;
  overflow: hidden;
}

.funnel-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2cd8c, #2f7d74);
}

.rank-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
}

.rank-bar {
  margin-top: 5px;
  height: 6px;
  border-radius: 999px;
  background: #f1f4f9;
  overflow: hidden;
}

.rank-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8b04b, #2f7d74);
}


/* ===== 工作台（简洁版，覆盖旧装饰） ===== */
.dash-page {
  max-width: 1560px;
  margin: 0 auto;
  padding: 20px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 719px) {
  .dash-page {
    padding: 14px 14px 28px;
    gap: 12px;
  }
}

.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-title {
  font-size: 18px;
  font-weight: 600;
}

.dash-actions {
  display: flex;
  gap: 8px;
}

.dash-hero,
.dash-hello,
.dash-sub,
.dash-hero-actions,
.dash-kpi-head,
.dash-kpi-icon,
.dash-kpi-delta,
.dash-section-head,
.dash-section-icon,
.dash-section-sub,
.dash-ranks,
.dash-rank,
.dash-rank-top,
.dash-rank-bar,
.dash-recent,
.dash-recent-row,
.dash-avatar,
.dash-recent-name,
.dash-recent-sub {
  display: none !important;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 960px) {
  .dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: none;
  transition: none;
}

.dash-kpi::after {
  display: none;
}

.dash-kpi:hover {
  transform: none;
  box-shadow: none;
}

.dash-kpi-label {
  font-size: 12.5px;
  color: var(--text-3);
  display: block;
  margin-bottom: 8px;
}

.dash-kpi-value {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.dash-kpi-foot {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
}

.dash-row {
  display: grid;
  gap: 16px;
  align-items: start;
}

.dash-row-2 {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

@media (max-width: 960px) {
  .dash-row-2 {
    grid-template-columns: 1fr;
  }
}

.dash-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

.dash-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 6px;
}

.dash-block-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.dash-block-head .muted {
  font-size: 12px;
  color: var(--text-3);
}

.dash-block-body {
  padding: 4px 16px 16px;
}

.dash-chart {
  padding: 0 8px 8px;
  height: 170px;
}

.dash-chart .chart-box,
.dash-chart svg {
  width: 100%;
  height: 160px;
}

.dash-rates {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dash-rate-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-3);
}

.dash-rate-row b {
  color: var(--text);
}

.dash-rank-list {
  display: flex;
  flex-direction: column;
}

.dash-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.dash-rank-item:last-child {
  border-bottom: 0;
}

.dash-rank-no {
  width: 20px;
  flex: none;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.dash-rank-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-rank-meta {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.dash-link {
  color: var(--brand-deep);
  font-size: 12.5px;
  text-decoration: none;
}

/* 漏斗与排行条统一简洁风格 */
.funnel-bar,
.rank-bar {
  height: 8px;
  border-radius: 999px;
  background: #f1f4f9;
  margin-top: 6px;
}

.funnel-bar i,
.rank-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.85;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.rank-no {
  width: 20px;
  flex: none;
  font-size: 12px;
  color: var(--text-3);
}

.rank-no.top1,
.rank-no.top2,
.rank-no.top3 {
  color: var(--text-2);
  font-weight: 600;
}


/* ===== 工作台（极简版） ===== */
.dash-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-bar {
  display: none;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-kpi {
  padding: 16px 18px;
  border-radius: 12px;
}

.dash-kpi-value {
  font-size: 28px;
}

.dash-row-2 {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

@media (max-width: 960px) {
  .dash-row-2 {
    grid-template-columns: 1fr;
  }
}

.dash-chart {
  height: 200px;
  padding: 0 10px 10px;
}

.dash-chart .chart-box,
.dash-chart svg {
  height: 190px;
}

.dash-block-head {
  padding: 16px 18px 8px;
}

.dash-block-body {
  padding: 4px 18px 18px;
}

.dash-rates {
  display: none;
}

/* 排行榜更紧凑干净 */
.rank-row {
  padding: 8px 0;
}

.rank-bar {
  margin-top: 6px;
}


/* ===== 侧边栏分组 ===== */
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group + .nav-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-group-title {
  padding: 0 12px 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.34);
}

.nav-item {
  padding: 9px 12px;
  font-size: 13.5px;
}


/* ===== 结算流程条 ===== */
.settle-flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.settle-step {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.settle-step:hover {
  border-color: var(--brand-line);
}

.settle-step.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.08);
}

.settle-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.settle-step-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-deep);
}

.settle-step-desc {
  font-size: 11.5px;
  color: var(--text-3);
}

.settle-arrow {
  align-self: center;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  transform: rotate(-45deg);
  flex: none;
}

.settle-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #fff8f3;
  border: 1px solid #ffd9c2;
  border-radius: 12px;
}

@media (max-width: 720px) {
  .settle-arrow {
    display: none;
  }
  .settle-step {
    min-width: 120px;
  }
}


/* ===== 账单批次列表 ===== */
.batch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.batch-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.batch-item:hover {
  border-color: var(--brand-line);
}


/* ===== 分段控件文字不换行 ===== */
.segmented {
  flex: none;
}

.segmented button {
  white-space: nowrap;
  padding: 0 14px;
  flex: none;
}

#bill-view.segmented button {
  min-width: 84px;
}

@media (max-width: 420px) {
  .segmented button {
    padding: 0 10px;
    font-size: 13px;
  }
  #bill-view.segmented button {
    min-width: 72px;
  }
}


/* ===== 员工端 7 个底部标签：更紧凑 ===== */
.tabbar .tab-item {
  gap: 2px;
  padding: 0 1px;
  min-width: 0;
}

.tabbar .tab-item span {
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  transform: scale(0.95);
}

.tabbar .tab-item svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 420px) {
  .tabbar .tab-item span {
    font-size: 11px;
  }
}


/* ===== 员工端 5 个底部标签（中间登记凸起） ===== */
.tabbar .tab-item {
  gap: 3px;
}

.tabbar .tab-item span {
  font-size: 11px;
  transform: none;
}

.tabbar .tab-item svg {
  width: 22px;
  height: 22px;
}

.tabbar .tab-primary {
  position: relative;
}

.tabbar .tab-primary svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  background: linear-gradient(140deg, #e8b04b, #2f7d74);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 106, 43, 0.38);
  margin-top: -22px;
  box-sizing: border-box;
}

.tabbar .tab-primary span {
  color: var(--brand-deep);
  font-weight: 600;
}

.tabbar .tab-primary.active svg {
  box-shadow: 0 8px 20px rgba(255, 106, 43, 0.5);
}


/* ===== 员工端「操作指引」内嵌线索查询 ===== */
.docs-embed .layout-mobile {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  min-height: 0;
}

.docs-embed .layout-mobile .page {
  padding: 0;
  min-height: 0;
}


/* =========================================================================
   京东风格主题（JD Style）— 覆盖品牌色、圆角、侧边栏与控件
   ========================================================================= */
:root {
  --brand: #0f3b39;
  --brand-2: #17514e;
  --brand-deep: #0b2e2c;
  --brand-soft: #eef6f4;
  --brand-line: #cfe3df;

  --ok: #00a870;
  --ok-soft: #e8f8f2;
  --blue: #1a5cff;
  --blue-soft: #eef3ff;
  --violet: #6b4dff;
  --violet-soft: #f2efff;
  --amber: #d98200;
  --amber-soft: #fff7e6;
  --danger: #c0392b;
  --danger-soft: #fdecea;

  --bg: #f4f4f4;
  --card: #ffffff;
  --line: #ebebeb;
  --line-strong: #dcdcdc;

  --text: #1a1a1a;
  --text-2: #4d4d4d;
  --text-3: #999999;

  --radius: 6px;
  --radius-sm: 4px;
  --radius-xs: 3px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 基础排版：京东偏紧凑、字号略小 */
body {
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

/* 侧边栏：白底 + 红字选中，去掉深色渐变 */
.admin-sidebar {
  background: #fff !important;
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03);
}

.sidebar-brand {
  border-bottom: 1px solid var(--line);
}

.sidebar-brand .logo-mark {
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 4px;
}

.sidebar-brand strong {
  color: var(--text) !important;
  font-size: 14px;
}

.sidebar-brand span {
  color: var(--text-3) !important;
  font-size: 11px;
}

.nav-group-title {
  color: #b3b3b3 !important;
  font-size: 11px;
  padding: 0 14px 6px;
}

.nav-group + .nav-group {
  border-top: 1px solid #f2f2f2 !important;
}

.sidebar-nav .nav-item {
  color: var(--text-2) !important;
  border-radius: 4px;
  margin: 1px 8px;
  padding: 9px 12px !important;
  font-size: 13.5px;
}

.sidebar-nav .nav-item svg {
  color: #8c8c8c;
  opacity: 1;
}

.sidebar-nav .nav-item:hover {
  background: #fafafa !important;
  color: var(--brand) !important;
}

.sidebar-nav .nav-item:hover svg {
  color: var(--brand);
}

.sidebar-nav .nav-item.active {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
  font-weight: 600;
  position: relative;
}

.sidebar-nav .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-item.active svg {
  color: var(--brand);
}

.sidebar-footer {
  color: #b3b3b3 !important;
  border-top: 1px solid var(--line);
}

/* 顶栏 */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

/* 卡片：小圆角、细边框、几乎无阴影 */
.card,
.dash-kpi,
.dash-card,
.dash-block,
.settle-step,
.rank-item {
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

/* 按钮：京东红实心 / 白底描边 */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
}

.btn-outline {
  color: var(--brand) !important;
  border-color: var(--brand-line) !important;
  background: #fff !important;
}

.btn-outline:hover {
  background: var(--brand-soft) !important;
  border-color: var(--brand) !important;
}

.btn-ghost {
  color: var(--text-2);
  background: transparent;
}

.btn-ghost:hover {
  background: #f7f7f7;
  color: var(--brand);
}

/* 搜索框 / 输入框 */
.input,
.select,
.textarea,
.search-box {
  border-radius: 4px;
  border-color: var(--line-strong);
  background: #fff;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(225, 37, 27, 0.08);
}

.search-box:focus-within {
  border-color: var(--brand);
}

/* 标签：京东风格浅底深字 */
.tag {
  border-radius: 2px !important;
  font-weight: 500;
}

/* 表格：京东后台风，表头浅灰、行高紧凑 */
.table thead th {
  background: #fafafa !important;
  color: var(--text-2) !important;
  font-weight: 600;
  border-bottom: 1px solid var(--line) !important;
  font-size: 12.5px;
  padding: 11px 16px !important;
}

.table tbody td {
  border-bottom: 1px solid #f2f2f2 !important;
  padding: 13px 16px !important;
  font-size: 13px;
}

.table tbody tr:hover > td {
  background: #f4f9f8 !important;
}

/* 筛选 chip */
.chip {
  border-radius: 4px !important;
  border-color: var(--line-strong);
  color: var(--text-2);
  font-size: 13px;
}

.chip.active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

/* 分段控件 */
.segmented {
  background: #f5f5f5 !important;
  border-radius: 4px !important;
  padding: 3px !important;
}

.segmented button {
  border-radius: 3px !important;
  font-size: 13px;
  color: var(--text-2);
}

.segmented button.active {
  background: #fff !important;
  color: var(--brand) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* 统计条 */
.sum-label {
  color: var(--text-3);
  font-size: 12px;
}

.sum-value {
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

/* 结算流程步骤 */
.settle-step {
  background: #fff;
}

.settle-step.active {
  border-color: var(--brand) !important;
  background: var(--brand-soft);
  box-shadow: none !important;
}

.settle-step-title {
  color: var(--text-2);
  font-size: 13px;
}

.settle-step.active .settle-step-title {
  color: var(--brand);
  font-weight: 600;
}

.settle-step-count {
  color: var(--brand) !important;
}

.settle-bulk {
  background: var(--brand-soft) !important;
  border-color: var(--brand-line) !important;
  border-radius: 4px;
}

/* 移动端 TabBar：京东红选中 */
.tabbar {
  background: #fff;
  border-top: 1px solid var(--line);
}

.tab-item {
  color: var(--text-3);
}

.tab-item.active {
  color: var(--brand) !important;
}

.tabbar .tab-primary svg {
  background: var(--brand) !important;
  box-shadow: 0 4px 10px rgba(225, 37, 27, 0.35) !important;
}

/* 数据看板配色收敛为红/灰 */
.dash-kpi-value {
  color: var(--text);
  font-weight: 600;
}

.dash-rank-bar i,
.rank-bar i,
.funnel-bar i {
  background: var(--brand) !important;
  opacity: 0.85;
}

/* 弹层 */
.sheet {
  border-radius: 8px 8px 0 0;
}

@media (min-width: 720px) {
  .sheet {
    border-radius: 8px;
  }
}

.sheet-head h3 {
  font-size: 15px;
  font-weight: 600;
}

/* 链接按钮 */
.link-btn,
.dash-link {
  color: var(--brand) !important;
}

/* 品牌记忆点：顶部细红条 */
.admin-topbar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--brand);
}

.admin-topbar {
  position: sticky;
}


/* ===== 品牌 Logo ===== */
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
  display: block;
}

.brand-logo-sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.sidebar-brand .logo-mark {
  display: none;
}

.sidebar-brand strong {
  font-size: 15px;
  letter-spacing: 0.5px;
}

.login-brand-name {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-brand-sub {
  color: var(--text-3);
  font-size: 12px;
  margin-left: 2px;
}


/* =========================================================================
   登录页重新设计（京东风格 · 左品牌 / 右表单）
   ========================================================================= */
.login-screen {
  min-height: 100vh;
  background: #f4f4f4;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.login-shell {
  display: flex;
  width: 100%;
  max-width: 1240px;
  min-height: 100vh;
  background: transparent;
}

/* 左侧品牌区 */
.login-aside {
  width: 46%;
  min-width: 380px;
  background: linear-gradient(150deg, #0f3b39 0%, #0b2e2c 62%, #082422 100%);
  color: #fff;
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.login-aside::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.login-aside-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.login-aside-brand .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  padding: 2px;
  box-sizing: border-box;
}

.login-aside-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 1px;
}

.login-aside-brand span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.login-aside-body {
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
  z-index: 1;
}

.login-aside-body h1 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 2px;
}

.login-aside-body p {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  max-width: 380px;
}

.login-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
}

.login-points svg {
  color: #cfe3df;
  flex: none;
}

.login-aside-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

/* 右侧表单区 */
.login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-brand {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.login-welcome {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.login-tip {
  margin: 8px 0 26px;
  font-size: 13px;
  color: var(--text-3);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: block;
}

.login-field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--text-2);
}

.login-field-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-field-box > svg {
  color: #b3b3b3;
  flex: none;
}

.login-field-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(225, 37, 27, 0.08);
}

.login-field-box:focus-within > svg {
  color: var(--brand);
}

.login-field-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}

.login-field-box input::placeholder {
  color: #b3b3b3;
}

.login-eye {
  border: 0;
  background: transparent;
  color: #b3b3b3;
  padding: 4px;
  cursor: pointer;
  display: flex;
}

.login-eye:hover {
  color: var(--text-2);
}

.login-error {
  min-height: 16px;
  font-size: 12.5px;
  color: var(--danger);
  display: none;
}

.login-error.show {
  display: block;
}

.login-error.shake {
  animation: login-shake 0.3s ease;
}

@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.login-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
  cursor: pointer;
}

.login-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-consent-box {
  width: 16px;
  height: 16px;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex: none;
  margin-top: 1px;
  background: #fff;
}

.login-consent input:checked + .login-consent-box {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.login-consent.invalid .login-consent-box {
  border-color: var(--danger);
}

.login-consent-text a {
  color: var(--brand);
  text-decoration: none;
}

.login-btn {
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease;
}

.login-btn:hover {
  background: var(--brand-deep);
}

.login-btn:active,
.login-btn.pressed {
  transform: translateY(1px);
}

.login-btn.loading .btn-label {
  opacity: 0.75;
}

.login-btn.success {
  background: #00a870;
}

.login-btn .btn-ring-mini {
  display: none;
}

.login-btn.loading .btn-ring-mini {
  display: inline-flex;
  margin-left: 8px;
}

.login-btn .ring {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.8s linear infinite;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-links {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
}

.login-links a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.login-links a:hover {
  color: var(--brand);
}

.login-links i {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.login-foot {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
}

/* 移动端：去掉左侧面板，顶部红色条 */
@media (max-width: 860px) {
  .login-aside {
    display: none;
  }

  .login-screen {
    background: #fff;
  }

  .login-main {
    padding: 32px 22px 24px;
    justify-content: flex-start;
  }

  .login-brand {
    display: flex;
  }

  .login-shell {
    max-width: 480px;
    min-height: auto;
  }

  .login-welcome {
    font-size: 22px;
  }
}


/* =========================================================================
   登录页极简版（全屏铺满 + 无装饰输入框）
   ========================================================================= */
.login-screen {
  min-height: 100vh;
  width: 100%;
  background: #fff;
  display: block;
  padding: 0;
}

.login-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  background: #fff;
}

/* 左侧：纯色浅灰，无渐变无装饰 */
.login-aside {
  width: 50%;
  background: #fafafa;
  border-right: 1px solid #ededed;
  color: #1a1a1a;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.login-aside::after {
  display: none;
}

.login-aside-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-aside-brand .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.login-aside-brand span {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.login-aside-body {
  margin: auto 0;
}

.login-aside-body h1 {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 1px;
  line-height: 1.4;
}

.login-aside-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #666;
  max-width: 460px;
}

.login-aside-foot {
  font-size: 12px;
  color: #999;
  display: block;
}

/* 右侧：表单 */
.login-main {
  flex: 1;
  background: #fff;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 340px;
}

.login-brand {
  display: none;
}

.login-welcome {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
}

.login-tip {
  display: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #666;
}

.login-field input,
.login-pwd input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.login-field input::placeholder,
.login-pwd input::placeholder {
  color: #b3b3b3;
}

.login-field input:focus,
.login-pwd input:focus {
  border-color: #0f3b39;
}

.login-pwd {
  position: relative;
}

.login-pwd input {
  padding-right: 40px;
}

.login-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #b3b3b3;
  padding: 6px;
  cursor: pointer;
  display: flex;
}

.login-eye:hover {
  color: #666;
}

.login-error {
  display: none;
  min-height: 14px;
  font-size: 12.5px;
  color: #0f3b39;
}

.login-error.show {
  display: block;
}

.login-error.shake {
  animation: login-shake 0.3s ease;
}

@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.login-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: #999;
  line-height: 1.6;
  cursor: pointer;
}

.login-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-consent-box {
  width: 15px;
  height: 15px;
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex: none;
  margin-top: 1px;
  background: #fff;
}

.login-consent input:checked + .login-consent-box {
  background: #0f3b39;
  border-color: #0f3b39;
  color: #fff;
}

.login-consent.invalid .login-consent-box {
  border-color: #0f3b39;
}

.login-consent-text a {
  color: #0f3b39;
  text-decoration: none;
  margin: 0 2px;
}

.login-btn {
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 4px;
  background: #0f3b39;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s ease;
}

.login-btn:hover {
  background: #0b2e2c;
}

.login-btn.success {
  background: #00a870;
}

.login-btn .btn-ring-mini {
  display: none;
}

.login-btn.loading .btn-ring-mini {
  display: inline-flex;
  margin-left: 8px;
}

.login-btn .ring {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.8s linear infinite;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
}

.login-links a {
  color: #666;
  text-decoration: none;
}

.login-links a:hover {
  color: #0f3b39;
}

.login-links i {
  width: 1px;
  height: 11px;
  background: #e5e5e5;
}

.login-foot {
  display: none;
}

/* 窄屏：单列，铺满 */
@media (max-width: 900px) {
  .login-shell {
    flex-direction: column;
    min-height: 100vh;
  }

  .login-aside {
    display: none;
  }

  .login-main {
    padding: 40px 22px;
    align-items: flex-start;
  }

  .login-card {
    max-width: 400px;
    margin: 8vh auto 0;
  }

  .login-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
  }

  .login-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
  }
}

/* 登录页：去掉输入框外层的旧装饰边框（只保留 input 自身边框） */
.login-screen .login-field {
  display: block;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-screen .login-field:focus-within {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-screen .login-field svg {
  color: #b3b3b3;
}

/* =========================================================================
   登录页品牌版（青绿 + 琥珀，配合「智服东来」标识）
   ========================================================================= */
.login-screen {
  background: #fff;
}

.login-shell {
  min-height: 100vh;
  width: 100%;
  max-width: none;
}

.login-aside {
  position: relative;
  width: 50%;
  background: #f3f8f7;
  border-right: 1px solid #e3ecea;
  color: #0f3b39;
  padding: 56px 64px;
  overflow: hidden;
}

.login-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-deco-1 {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(232, 176, 75, 0.28), rgba(232, 176, 75, 0) 70%);
}

.login-deco-2 {
  width: 320px;
  height: 320px;
  left: -110px;
  bottom: -120px;
  background: radial-gradient(circle at 60% 40%, rgba(15, 59, 57, 0.12), rgba(15, 59, 57, 0) 70%);
}

.login-deco-3 {
  width: 160px;
  height: 160px;
  right: 18%;
  bottom: 18%;
  border: 1px dashed rgba(15, 59, 57, 0.16);
  background: transparent;
}

.login-aside-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.login-aside-brand .brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.login-aside-brand-text strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0f3b39;
}

.login-aside-brand-text span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 3.4px;
  color: #2f7d74;
}

.login-aside-body {
  margin: auto 0;
  position: relative;
  z-index: 1;
}

.login-aside-body h1 {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: 3px;
  color: #0f3b39;
}

.login-aside-body h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e8b04b, #f2cd8c);
}

.login-aside-body p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.9;
  color: #4d6f6b;
  max-width: 420px;
}

.login-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: #345855;
}

.login-features li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8b04b;
  flex: none;
}

.login-aside-foot {
  font-size: 12px;
  color: #8aa39f;
  position: relative;
  z-index: 1;
}

/* 右侧表单：沿用简洁输入框，改青绿主色 */
.login-main {
  background: #fff;
}

.login-welcome {
  color: #0f3b39;
}

.login-field input:focus,
.login-pwd input:focus {
  border-color: #0f3b39;
}

.login-btn {
  background: #0f3b39;
}

.login-btn:hover {
  background: #17514e;
}

.login-consent input:checked + .login-consent-box {
  background: #0f3b39;
  border-color: #0f3b39;
}

.login-consent-text a {
  color: #0f3b39;
}

.login-links a:hover {
  color: #0f3b39;
}

.login-error {
  color: #c0392b;
}

@media (max-width: 900px) {
  .login-aside {
    display: none;
  }

  .login-main {
    background: #fff;
  }

  .login-card {
    margin-top: 6vh;
  }

  .login-brand-name {
    color: #0f3b39;
  }

  .login-btn {
    background: #0f3b39;
  }
}


/* ===== 品牌色校准（青绿 + 琥珀） ===== */
:root {
  --brand: #0f3b39;
  --brand-2: #17514e;
  --brand-deep: #0b2e2c;
  --brand-soft: #eef6f4;
  --brand-line: #cfe3df;
  --danger: #c0392b;
  --danger-soft: #fdecea;
}

/* 品牌 Logo 放大 */
.login-aside-brand .brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.login-aside-brand-text strong {
  font-size: 24px;
  letter-spacing: 3px;
}

.login-aside-brand-text span {
  font-size: 11px;
  letter-spacing: 4px;
  margin-top: 5px;
}

.login-brand .brand-logo-sm {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.login-brand-name {
  font-size: 17px;
}

.sidebar-brand .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.login-aside-brand {
  gap: 14px;
}
/* =========================================================================
   响应式适配（PC / 平板 / 手机）+ 抽屉与深色残留修正
   ========================================================================= */

/* 移动端抽屉改为白底，和侧边栏一致 */
.drawer {
  background: #fff;
  color: var(--text);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.08);
}

.drawer .sidebar-brand strong,
.drawer .sidebar-brand span {
  color: var(--text) !important;
}

.drawer .nav-group-title {
  color: #b3b3b3 !important;
}

.drawer .nav-item {
  color: var(--text-2);
}

.drawer .nav-item svg {
  color: #8c8c8c;
}

.drawer .nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
}

/* 视口高度：移动端避免 100vh 被地址栏顶掉 */
.layout-admin,
.layout-app,
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

/* 员工端底部导航留白 + 安全区 */
.layout-app {
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

.tabbar {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

/* 表格：移动端可横向滑动，首尾不裁切 */
.card > .table,
.card > table {
  -webkit-overflow-scrolling: touch;
}

.card[style*="overflow-x"] {
  overscroll-behavior-x: contain;
}

/* 工具栏在窄屏自动换行 */
@media (max-width: 719px) {
  .toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .toolbar > .flex {
    flex-wrap: wrap;
  }

  .search-box {
    min-width: 180px;
  }

  .sum-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sum-strip > div + div {
    border-left: 0;
    padding-left: 0;
  }

  .page {
    padding: 14px 12px 24px;
  }

  .card-pad {
    padding: 12px;
  }

  .sheet {
    width: 100%;
    max-width: 100%;
    border-radius: 14px 14px 0 0;
  }

  .login-main {
    padding: 28px 18px;
  }

  .login-card {
    max-width: 100%;
  }

  .login-aside-brand .brand-logo {
    width: 52px;
    height: 52px;
  }
}

/* 平板 */
@media (min-width: 720px) and (max-width: 1023px) {
  .page {
    padding: 18px 20px 28px;
  }

  .sum-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 触屏按钮最小可点区域 */
@media (hover: none) and (pointer: coarse) {
  .btn-sm {
    min-height: 34px;
  }

  .table td .btn-sm {
    min-height: 32px;
  }
}

/* =========================================================================
   UI 参照版式：深色导航 + 浅色内容 + 琥珀高亮
   ========================================================================= */
:root {
  --nav-bg: #0e1a33;
  --nav-bg-2: #0b1529;
  --nav-text: rgba(255, 255, 255, 0.72);
  --nav-muted: rgba(255, 255, 255, 0.38);
  --gold: #e8b04b;
  --gold-soft: rgba(232, 176, 75, 0.16);
  --content-bg: #f5f6f8;
}

body,
.admin-main {
  background: var(--content-bg);
}

/* 侧边栏：深海军蓝 + 琥珀选中 */
.admin-sidebar {
  background: var(--nav-bg) !important;
  border-right: 1px solid #17233f !important;
  box-shadow: none !important;
}

.sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 16px;
}

.sidebar-brand strong {
  color: #ffffff !important;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.sidebar-brand span {
  color: var(--nav-muted) !important;
}

.sidebar-brand .brand-logo {
  background: transparent;
}

.nav-group-title {
  color: var(--nav-muted) !important;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 0 14px 6px;
}

.nav-group + .nav-group {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  margin-top: 8px;
  padding-top: 8px;
}

.sidebar-nav .nav-item {
  color: var(--nav-text) !important;
  border-radius: 6px;
  margin: 1px 10px;
  padding: 9px 12px !important;
  font-size: 13.5px;
}

.sidebar-nav .nav-item svg {
  color: rgba(255, 255, 255, 0.55) !important;
  opacity: 1;
}

.sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.sidebar-nav .nav-item:hover svg {
  color: #fff !important;
}

.sidebar-nav .nav-item.active {
  background: var(--gold-soft) !important;
  color: var(--gold) !important;
  font-weight: 600;
}

.sidebar-nav .nav-item.active::before {
  background: var(--gold);
}

.sidebar-nav .nav-item.active svg {
  color: var(--gold) !important;
}

.sidebar-footer {
  color: var(--nav-muted) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
}

/* 移动端抽屉：同款深色 */
.drawer {
  background: var(--nav-bg) !important;
  color: var(--nav-text) !important;
  border-right: 1px solid #17233f;
}

.drawer .sidebar-brand strong {
  color: #fff !important;
}

.drawer .sidebar-brand span {
  color: var(--nav-muted) !important;
}

.drawer .nav-group-title {
  color: var(--nav-muted) !important;
}

.drawer .nav-item {
  color: var(--nav-text) !important;
}

.drawer .nav-item svg {
  color: rgba(255, 255, 255, 0.55) !important;
}

.drawer .nav-item.active {
  background: var(--gold-soft) !important;
  color: var(--gold) !important;
}

.drawer .nav-item.active svg {
  color: var(--gold) !important;
}

/* 顶栏：白底，细线，左侧留一点内边距 */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e9ebef;
}

.admin-topbar::before {
  display: none;
}

/* 内容卡片：更接近后台表格风 */
.card,
.dash-card,
.dash-block,
.dash-kpi,
.settle-step {
  border-radius: 8px !important;
  border: 1px solid #e9ebef !important;
  box-shadow: none !important;
}

/* 表格：紧凑、浅灰表头 */
.table thead th {
  background: #fafbfc !important;
  color: #8a8f99 !important;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 11px 14px !important;
  border-bottom: 1px solid #eef0f3 !important;
}

.table tbody td {
  padding: 13px 14px !important;
  font-size: 13px;
  border-bottom: 1px solid #f2f3f5 !important;
}

.table tbody tr:hover > td {
  background: #f8fafb !important;
}

/* 筛选 chip：和参考一致的小圆角 */
.chip {
  border-radius: 6px !important;
  border-color: #e3e6ea;
  color: #4d5563;
  height: 32px;
  font-size: 13px;
}

.chip.active {
  background: #0f3b39 !important;
  border-color: #0f3b39 !important;
  color: #fff !important;
}

/* 页面标题区：更像后台 */
.page > .toolbar:first-child {
  padding-bottom: 2px;
}

/* 侧边栏里的品牌小标签 */
.sidebar-brand::after {
  content: '管理端';
  margin-left: auto;
  font-size: 10px;
  color: var(--gold);
  border: 1px solid rgba(232, 176, 75, 0.45);
  background: rgba(232, 176, 75, 0.12);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: 1px;
}

/* =========================================================================
   文字可读性与排版修正（深色导航 / 浅色内容）
   ========================================================================= */

/* 员工端顶栏：补白底，避免内容滚动时文字穿透重叠 */
.topnav {
  background: #fff;
  border-bottom: 1px solid #e9ebef;
  z-index: 25;
}

.topnav .nav-title {
  color: #1a1a1a;
  font-weight: 600;
}

/* 侧边栏文字：不换行、超长省略，避免挤压 */
.sidebar-brand strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav .nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav .nav-item {
  min-width: 0;
}

/* 深色导航内所有文字默认浅色，避免个别节点继承深色 */
.admin-sidebar,
.admin-sidebar .nav-item,
.drawer,
.drawer .nav-item {
  color: rgba(255, 255, 255, 0.72);
}

.admin-sidebar a,
.drawer a {
  text-decoration: none;
}

/* 标签对比度：保证浅底深字 */
.tag {
  background: #f4f5f7;
  color: #4d5563;
}

.tag.green { background: #e8f7ef; color: #0b7a4b; }
.tag.amber { background: #fff6e3; color: #a2620a; }
.tag.red { background: #fdecea; color: #b8382c; }
.tag.blue { background: #edf2ff; color: #2354c7; }
.tag.violet { background: #f1eeff; color: #5b3fd6; }
.tag.gray { background: #f2f3f5; color: #6b7280; }

/* 次要文字：浅灰但可读 */
.text-xs.muted,
.text-sm.muted {
  color: #8a8f99;
}

/* 表格单元格里的次要信息不挤成两行 */
.table td .text-xs {
  line-height: 1.5;
}

/* 金额 / 编号等宽字体对齐 */
.mono {
  font-variant-numeric: tabular-nums;
}

/* 长文本省略 */
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 分页与工具条文字不被按钮挤压 */
.pagination {
  flex-wrap: wrap;
  gap: 8px;
}

/* 移动端：顶部标题与右侧按钮不重叠 */
@media (max-width: 719px) {
  .topnav .nav-title {
    font-size: 15px;
  }

  .admin-topbar {
    padding-left: 8px !important;
  }
}
/* 登录页：系统名称副标题 */
.login-aside-brand-text em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 11.5px;
  color: #6b8b87;
  letter-spacing: 0.5px;
}

.login-brand-sub {
  margin-left: 6px;
  font-size: 12px;
  color: #8aa39f;
}

@media (max-width: 900px) {
  .login-brand-sub {
    display: none;
  }
}
/* 工作台：统计范围切换条 */
.dash-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.dash-toolbar .muted {
  font-size: 12.5px;
  color: #8a8f99;
}

@media (max-width: 719px) {
  .dash-toolbar .muted {
    display: none;
  }

  .dash-toolbar .segmented button {
    padding: 0 9px;
    font-size: 12.5px;
  }
}
/* =========================================================================
   整体观感优化（卡片、标题、表格、按钮反馈）
   ========================================================================= */

/* 工作台指标卡：悬停轻微抬起 */
.dash-kpi {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dash-kpi:hover {
  border-color: #d5e3e0 !important;
  box-shadow: 0 6px 18px rgba(15, 59, 57, 0.07);
  transform: translateY(-1px);
}

/* 区块标题：左侧青色细条 */
.section-title > span::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--brand);
  margin-right: 8px;
  vertical-align: -2px;
}

.section-title {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* 表头在滚动区域里吸顶 */
.card .table thead th,
.card table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* 按钮焦点可见（键盘可达） */
.btn:focus-visible,
.chip:focus-visible,
.segmented button:focus-visible,
.tab-item:focus-visible {
  outline: 2px solid rgba(15, 59, 57, 0.45);
  outline-offset: 2px;
}

/* 次级按钮悬停更明显 */
.btn-outline:hover {
  background: #eef6f4 !important;
  border-color: #0f3b39 !important;
}

.btn-ghost:hover {
  background: #f2f5f5;
  color: #0f3b39;
}

/* 可点击行给出反馈 */
.table tbody tr[data-kb],
.table tbody tr[data-sync-lead] {
  cursor: pointer;
}

/* 空状态统一留白 */
.empty {
  padding: 32px 12px;
  text-align: center;
}

.empty p {
  color: #8a8f99;
  font-size: 13px;
}

/* 工具条：按钮组不换行错位 */
.toolbar .flex,
.flex.gap-8 {
  align-items: center;
}

/* 移动端卡片间距更松弛 */
@media (max-width: 719px) {
  .dash-kpis {
    gap: 10px;
  }

  .stack-12 > * + * {
    margin-top: 10px;
  }
}
/* 工作台排行卡：两栏等高，超出折叠滚动 */
.dash-row-2 {
  align-items: stretch;
}

.dash-row-2 > .dash-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dash-row-2 > .dash-block .dash-block-body {
  flex: 1;
  min-height: 0;
}

.dash-rank-scroll {
  max-height: 252px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.dash-rank-scroll::-webkit-scrollbar {
  width: 6px;
}

.dash-rank-scroll::-webkit-scrollbar-thumb {
  background: #dfe6e5;
  border-radius: 3px;
}

.dash-rank-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* 滚动区域里的条目紧凑一点，避免一屏只看到两条 */
.dash-rank-scroll .dash-rank-item,
.dash-rank-scroll .rank-item {
  padding-top: 7px;
  padding-bottom: 7px;
}

@media (max-width: 719px) {
  .dash-rank-scroll {
    max-height: 208px;
  }
}
/* 工作台口径说明 */
.dash-metric-note {
  font-size: 11.5px;
  color: #9aa0a8;
  margin-left: auto;
}

@media (max-width: 1023px) {
  .dash-metric-note {
    display: none;
  }
}

/* =========================================================================
   Clean 主题 v2：少颜色、多留白、统一圆角与边框
   ========================================================================= */
:root {
  --nav-bg: #101828;
  --nav-bg-2: #0c1322;
  --nav-text: rgba(255, 255, 255, 0.66);
  --nav-muted: rgba(255, 255, 255, 0.32);
  --content-bg: #f6f7f9;
  --card-border: #e9ecf1;
  --card-radius: 10px;
  --text-1: #101828;
  --text-2: #475467;
  --text-3: #98a2b3;
  --brand: #0f3b39;
}

body,
.admin-main,
.layout-app {
  background: var(--content-bg);
}

/* ---------- 侧边栏 ---------- */
.admin-sidebar {
  background: var(--nav-bg) !important;
  border-right: 0 !important;
}

.sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px 16px;
}

.sidebar-brand::after {
  content: '管理端';
  margin-left: auto;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.5px;
}

.sidebar-brand strong {
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sidebar-brand span {
  color: var(--nav-muted) !important;
  font-size: 11px;
}

.nav-group-title {
  color: var(--nav-muted) !important;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 14px 16px 6px;
}

.nav-group + .nav-group {
  border-top: 0 !important;
  margin-top: 2px;
  padding-top: 0;
}

.sidebar-nav .nav-item {
  color: var(--nav-text) !important;
  border-radius: 6px;
  margin: 1px 8px;
  padding: 9px 12px !important;
  font-size: 13px;
  gap: 10px;
}

.sidebar-nav .nav-item svg {
  color: rgba(255, 255, 255, 0.45) !important;
}

.sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.sidebar-nav .nav-item.active {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
  font-weight: 500;
}

.sidebar-nav .nav-item.active::before {
  background: #4fb3a6;
  width: 3px;
  height: 14px;
  border-radius: 0 2px 2px 0;
}

.sidebar-nav .nav-item.active svg {
  color: #8fd6cb !important;
}

.sidebar-footer {
  color: var(--nav-muted) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
}

/* 移动端抽屉同款 */
.drawer {
  background: var(--nav-bg) !important;
  color: var(--nav-text) !important;
  border-right: 0;
}

.drawer .sidebar-brand strong { color: #fff !important; }
.drawer .nav-item.active { background: rgba(255, 255, 255, 0.09) !important; color: #fff !important; }

/* ---------- 顶栏 ---------- */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  height: 56px;
}

.admin-topbar::before { display: none; }

/* ---------- 卡片 ---------- */
.card,
.dash-card,
.dash-block,
.dash-kpi,
.settle-step,
.rank-item {
  background: #fff !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: none !important;
}

.card-pad { padding: 18px 20px !important; }

/* ---------- 区块标题 ---------- */
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0;
  margin-bottom: 10px;
}

.section-title > span::before {
  width: 3px;
  height: 12px;
  background: #4fb3a6;
  margin-right: 7px;
}

/* ---------- 表格 ---------- */
.table thead th {
  background: #fff !important;
  color: var(--text-3) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--card-border) !important;
}

.table tbody td {
  padding: 14px 16px !important;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid #f4f5f7 !important;
}

.table tbody tr:last-child td { border-bottom: 0 !important; }

.table tbody tr:hover > td {
  background: #fafbfc !important;
}

.table td .text-strong,
.table td b { color: var(--text-1); }

/* ---------- 按钮 ---------- */
.btn {
  border-radius: 6px;
  font-weight: 500;
  box-shadow: none;
}

.btn-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

.btn-primary:hover { background: #17514e !important; border-color: #17514e !important; }

.btn-outline {
  background: #fff !important;
  border: 1px solid #d0d5dd !important;
  color: #344054 !important;
}

.btn-outline:hover {
  background: #f9fafb !important;
  border-color: #98a2b3 !important;
  color: #101828 !important;
}

.btn-ghost {
  background: transparent !important;
  color: #475467 !important;
  border: 1px solid transparent !important;
}

.btn-ghost:hover {
  background: #f2f4f7 !important;
  color: #101828 !important;
}

.btn-danger { background: #fdecea !important; color: #b8382c !important; border-color: #f6d3cf !important; }

/* ---------- 输入与选择 ---------- */
.input,
.select,
.textarea,
.search-box {
  border: 1px solid #d0d5dd !important;
  border-radius: 6px !important;
  background: #fff !important;
  height: 36px;
}

.input:focus,
.select:focus,
.textarea:focus,
.search-box:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(15, 59, 57, 0.08) !important;
}

/* ---------- 筛选 chip / 分段 ---------- */
.chip {
  border: 1px solid #e4e7ec !important;
  background: #fff !important;
  color: #475467 !important;
  border-radius: 6px !important;
  height: 32px;
  font-size: 13px;
}

.chip.active {
  background: #101828 !important;
  border-color: #101828 !important;
  color: #fff !important;
}

.segmented {
  background: #f2f4f7 !important;
  border-radius: 6px !important;
  padding: 3px !important;
}

.segmented button {
  border-radius: 4px !important;
  font-size: 13px;
  color: #475467;
}

.segmented button.active {
  background: #fff !important;
  color: #101828 !important;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

/* ---------- 标签 ---------- */
.tag {
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  height: 22px;
}

.tag.green { background: #ecfdf3; color: #067647; }
.tag.amber { background: #fffaeb; color: #b54708; }
.tag.red { background: #fef3f2; color: #b42318; }
.tag.blue { background: #eff8ff; color: #175cd3; }
.tag.violet { background: #f4f3ff; color: #5925dc; }
.tag.gray { background: #f2f4f7; color: #475467; }

/* ---------- 工作台 ---------- */
.dash-page { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 16px; }

.dash-toolbar { gap: 10px; }

.dash-kpi {
  padding: 18px 20px !important;
  border-radius: var(--card-radius) !important;
}

.dash-kpi-label {
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 400;
}

.dash-kpi-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.dash-kpi-foot {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

.dash-kpi:hover {
  border-color: #dce3e1 !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06) !important;
  transform: none;
}

.dash-block-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f4f5f7;
}

.dash-block-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.dash-block-body { padding: 12px 20px 16px; }

.dash-link { color: var(--brand); font-weight: 500; }

.dash-rank-item { border-bottom: 1px solid #f4f5f7; }
.dash-rank-item:last-child { border-bottom: 0; }

/* ---------- 页面容器 ---------- */
.page {
  padding: 20px 24px 28px;
}

.toolbar { gap: 10px; }

/* 统计条更干净 */
.sum-strip {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 14px 4px;
}

.sum-label { font-size: 12px; color: var(--text-3); }
.sum-value { font-size: 20px; font-weight: 600; color: var(--text-1); }

/* 结算流程步骤 */
.settle-step {
  background: #fff !important;
  border: 1px solid var(--card-border) !important;
}

.settle-step.active {
  border-color: #b9d8d2 !important;
  background: #f2f9f7 !important;
}

.settle-step.active .settle-step-title { color: var(--brand); }

/* 移动端 */
@media (max-width: 719px) {
  .page { padding: 14px 12px 22px; }
  .dash-page { padding: 14px 12px 22px; }
  .card-pad { padding: 14px !important; }
  .dash-kpi-value { font-size: 22px; }
}

/* 图表容器：固定高度，避免拉伸变形 */
.chart-box svg {
  width: 100%;
  height: 220px;
  display: block;
}

.funnel-bar {
  background: #f2f4f7 !important;
  border-radius: 6px;
  height: 30px;
}

.funnel-bar > i {
  background: #0f3b39 !important;
  border-radius: 6px;
}

.rank-bar,
.dash-rank-bar {
  background: #f2f4f7 !important;
  border-radius: 4px;
}

.rank-bar > i,
.dash-rank-bar > i {
  background: #0f3b39 !important;
  border-radius: 4px;
}

@media (max-width: 719px) {
  .chart-box svg {
    height: 180px;
  }
}
/* 图表高度统一：容器自适应，SVG 固定高度 */
.dash-chart {
  height: auto !important;
  padding: 4px 16px 14px !important;
}

.dash-chart .chart-box,
.dash-chart svg {
  height: 200px !important;
}

@media (max-width: 719px) {
  .dash-chart .chart-box,
  .dash-chart svg {
    height: 170px !important;
  }
}
/* =========================================================================
   员工端页面与工作台图表统一（Clean 风格）
   ========================================================================= */
.detail-hero {
  background: linear-gradient(160deg, #143d3a, #0f1b2d) !important;
  border-radius: 12px !important;
  color: #fff;
}

.detail-hero::after {
  opacity: 0.35;
}

.detail-hero .text-xs,
.detail-hero small {
  color: rgba(255, 255, 255, 0.62);
}

/* 员工端卡片与列表 */
.lead-card {
  border: 1px solid var(--card-border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.lead-card:hover {
  border-color: #d7e0de !important;
}

/* 员工端统计条 */
.sum-strip {
  border: 1px solid var(--card-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.sum-value {
  font-size: 19px !important;
  font-weight: 600 !important;
  color: #101828 !important;
}

.sum-label {
  font-size: 12px !important;
  color: #98a2b3 !important;
}

/* 员工端进度条（业绩页） */
.detail-hero i[style*="border-radius:999px"] {
  background: #4fb3a6 !important;
}

/* 员工端页面标题 */
.page > div:first-child > div:first-child[style*="font-size:20px"] {
  font-size: 19px !important;
  font-weight: 600 !important;
  color: #101828;
}

/* 员工端任务卡片与列表行 */
.list-row {
  border-color: #f4f5f7 !important;
}

/* 员工端通知/公告标签 */
.announcement-item {
  border: 1px solid var(--card-border);
  border-radius: 10px;
}
/* 图标：统一 15–18px、细线，减少视觉噪音 */
.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.table .btn svg {
  opacity: 0.8;
}

.sidebar-nav .nav-item svg {
  width: 17px;
  height: 17px;
  opacity: 0.9;
}

.chip svg,
.segmented svg {
  width: 14px;
  height: 14px;
}

.tag svg {
  width: 12px;
  height: 12px;
}

.tab-item svg {
  width: 21px;
  height: 21px;
}

/* 去掉统计/指标卡里多余图标的底色块 */
.dash-kpi svg,
.sum-strip svg {
  color: #98a2b3;
}
/* =========================================================================
   漏斗 / 排行 / 图表 视觉减重
   ========================================================================= */
.funnel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.funnel-item { display: block; }

.funnel-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.funnel-label {
  font-size: 12.5px;
  color: #475467;
}

.funnel-value {
  font-size: 12px;
  color: #98a2b3;
  font-variant-numeric: tabular-nums;
}

.funnel-track {
  height: 6px;
  border-radius: 3px;
  background: #f2f4f7;
  overflow: hidden;
}

.funnel-track > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #0f3b39;
}

/* 排行列表 */
.rank-list { display: flex; flex-direction: column; }

.rank-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f6f7f9;
}

.rank-row:last-child { border-bottom: 0; }

.rank-no {
  width: 16px;
  flex: none;
  font-size: 12px;
  color: #b3b8c2;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: center;
}

.rank-no.is-top { color: #475467; font-weight: 600; }

.rank-main { flex: 1; min-width: 0; }

.rank-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.rank-name {
  font-size: 13px;
  color: #101828;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  font-size: 12px;
  color: #98a2b3;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.rank-track {
  height: 5px;
  border-radius: 3px;
  background: #f2f4f7;
  overflow: hidden;
}

.rank-track > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #0f3b39;
  opacity: 0.85;
}

/* 排行滚动：隐藏滚动条，避免两条灰色竖条 */
.dash-rank-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 0;
}

.dash-rank-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* 图表区更紧凑 */
.dash-chart .chart-box,
.dash-chart svg {
  height: 178px !important;
}

.dash-chart {
  padding: 2px 16px 8px !important;
}

.dash-block-head {
  padding: 14px 18px 10px !important;
}

.dash-block-body {
  padding: 10px 18px 14px !important;
}

/* 旧的漏斗样式禁用 */
.funnel-bar { display: none !important; }