/* ---------- Remix Icon 兜底 ---------- */
/* 确保所有 ri- 类图标使用 remixicon 字体，vertical-align 对齐 */
[class^="ri-"], [class*=" ri-"] {
  font-family: 'remixicon' !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  vertical-align: -0.15em;
}

/* ============================================================
   SOIN KYC 管理界面样式 (console + boss 共用)
   全屏左右分栏: 左侧深色可折叠导航 + 右侧内容
   主题: 黑 #0a0d10 + 绿 #76B900 (变量继承 style.css)
   ============================================================ */

/* ---------- Shell 布局 ---------- */
/* 原生控件配色方案跟随主题 */
html, body { color-scheme: dark; }
html[data-theme="light"], html[data-theme="light"] body { color-scheme: light; }
.kyc-shell, .modal-mask, .modal-box { color-scheme: dark; }
html[data-theme="light"] .kyc-shell, html[data-theme="light"] .modal-mask, html[data-theme="light"] .modal-box { color-scheme: light; }
/* 原生表单控件一律深色 */
input, select, textarea, button { color-scheme: dark; }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea, html[data-theme="light"] button { color-scheme: light; }

/* ============ 全站原生 select 统一黑绿主题 ============ */
/* 覆盖所有原生 select (不分位置) */
.kyc-shell select, .modal-box select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-color: var(--bg-2, #0e1216);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2376b900' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5 2.6 6.1l1.3-1.3L8 8.9l4.1-4.1 1.3 1.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  border: 1px solid var(--border-2, #2d3641);
  border-radius: 9px;
  color: var(--text, #e4e6eb);
  font-size: 13.5px;
  font-family: inherit;
  height: 42px;
  padding: 0 38px 0 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  color-scheme: dark;
}
html[data-theme="light"] .kyc-shell select, html[data-theme="light"] .modal-box select { color-scheme: light;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232563eb' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5 2.6 6.1l1.3-1.3L8 8.9l4.1-4.1 1.3 1.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}
.kyc-shell select:hover, .modal-box select:hover { border-color: var(--border, #444f5e); }
.kyc-shell select:focus, .modal-box select:focus {
  outline: none; border-color: var(--green, #76b900);
  box-shadow: 0 0 0 3px rgba(118,185,0,.1);
}
.kyc-shell select:disabled, .modal-box select:disabled { opacity: .55; cursor: not-allowed; }
/* option 跟随主题 */
.kyc-shell select option, .modal-box select option {
  background: var(--card, #12161c);
  color: var(--text, #e4e6eb);
}
.kyc-shell select option:checked { background: var(--green-dim); color: var(--green-hi); }
/* 小尺寸变体 */
.kyc-shell select.sel-sm, .modal-box select.sel-sm { height: 34px; font-size: 12.5px; padding: 0 32px 0 10px; background-position: right 10px center; }
/* topbar 变体 */
.kyc-shell select.topbar-select { height: 32px; font-size: 13px; padding: 0 32px 0 12px; background-position: right 10px center; border-radius: 6px; }
/* pf-select (modal 表单) 已被全局规则覆盖, 这里只做微调 */
.modal-box select.pf-select { height: 42px; }

/* Vue 挂载前隐藏原始模板, 防止闪烁/暴露未渲染语法 */
[v-cloak] { display: none !important; }
.kyc-shell { display: flex; min-height: 100vh; background: var(--bg); }
.kyc-sidebar {
  width: 232px; flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; transition: width .22s ease; overflow: hidden;
}
.kyc-main { flex: 1; margin-left: 232px; min-width: 0; display: flex; flex-direction: column; transition: margin-left .22s ease; }
.kyc-shell.collapsed .kyc-sidebar { width: 64px; }
.kyc-shell.collapsed .kyc-main { margin-left: 64px; }

/* 侧栏头部 */
.ks-head { height: var(--nav-h); display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ks-logo { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
/* 展开态: 与首页 .brand img 一致 (高 30px, 宽自适应比例, 不变形不裁剪) */
.ks-logo .ks-logo-full { height: 30px; width: auto; object-fit: contain; }
/* 收起态专用方形图标 (默认隐藏) */
.ks-logo .ks-logo-mini { display: none; height: 30px; width: 30px; object-fit: contain; }
.ks-logo b { font-size: 16px; color: var(--text); letter-spacing: .5px; }
.ks-logo b em { font-style: normal; color: var(--green); }

/* 菜单 */
.ks-menu { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.ks-menu button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 13px; border-radius: 9px; border: none; background: transparent;
  color: var(--text-2); font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.ks-menu button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.ks-menu button.on { background: var(--green-dim); color: var(--green-hi); font-weight: 600; }
.ks-menu button.disabled { color: var(--text-3); cursor: not-allowed; opacity: .6; }
.ks-menu button.disabled:hover { background: transparent; color: var(--text-3); }
.ks-menu button .ti { font-size: 19px; flex-shrink: 0; }
/* 分组箭头 (有子菜单时显示, 展开/收起旋转) */
.ks-menu button .ks-arrow { margin-left: auto; font-size: 15px; opacity: .55; transition: transform .18s; }
.ks-menu button .ks-arrow.open { transform: rotate(90deg); }
/* 二级子菜单容器 */
.ks-sub { display: flex; flex-direction: column; gap: 2px; margin: 1px 0 3px; padding-left: 21px; position: relative; }
.ks-sub::before { content: ''; position: absolute; left: 20px; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.ks-sub button { padding: 9px 12px; font-size: 13.5px; border-radius: 8px; }
.ks-sub button .ti { font-size: 16px; }
.ks-sub button.on { color: var(--green-hi); background: var(--green-dim); }

/* 侧栏底部 */
.ks-foot { padding: 12px 10px; border-top: 1px solid var(--border); }
.ks-foot-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 9px;
  color: var(--text-3); font-size: 13.5px; white-space: nowrap;
}
.ks-foot-link:hover { color: var(--green); background: rgba(255,255,255,.04); }
.ks-foot-link .ti { font-size: 18px; flex-shrink: 0; }

/* 折叠态: 文字/箭头/子菜单全部隐藏, 图标用纯 flex 居中 */
.kyc-shell.collapsed .ks-label { display: none !important; }
.kyc-shell.collapsed .ks-arrow { display: none !important; }
.kyc-shell.collapsed .ks-sub { display: none !important; }
.kyc-shell.collapsed .ks-logo b { display: none; }
.kyc-shell.collapsed .ks-logo { gap: 0; justify-content: center; }
.kyc-shell.collapsed .ks-logo .ks-logo-full { display: none; }
.kyc-shell.collapsed .ks-logo .ks-logo-mini { display: block; }
.kyc-shell.collapsed .ks-head { padding: 0; justify-content: center; }
.kyc-shell.collapsed .ks-menu { padding: 14px 0; }
.kyc-shell.collapsed .ks-menu button { justify-content: center; padding: 11px 0; width: 100%; }
.kyc-shell.collapsed .ks-foot { padding: 12px 0; }
.kyc-shell.collapsed .ks-foot-link { justify-content: center; padding: 10px 0; }

/* ---------- 顶栏 ---------- */
.kyc-topbar {
  height: var(--nav-h); display: flex; align-items: center; gap: 16px;
  padding: 0 24px; border-bottom: 1px solid var(--border);
  background: rgba(10,13,16,.9); position: sticky; top: 0; z-index: 40;
}
.kt-toggle { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); color: var(--text-1); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 19px; }
.kt-toggle:hover { color: var(--green); border-color: rgba(118,185,0,.3); background: var(--green-dim); }
.kt-crumb { font-size: 15px; font-weight: 600; color: var(--text); }
.kt-right { margin-left: auto; position: relative; display: flex; align-items: center; }
.kt-user {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 4px 10px 4px 6px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  transition: background .15s, border-color .15s;
}
.kt-user:hover { background: rgba(255,255,255,.04); border-color: rgba(118,185,0,.25); }
.kt-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green-dim); color: var(--green-hi);
  display: flex; align-items: center; justify-content: center; font-size: 14.5px; font-weight: 700;
  border: 1px solid rgba(118,185,0,.35);
}
.kt-avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(118,185,0,.35); flex-shrink: 0; }
.kt-name { font-size: 13.5px; color: var(--text); font-weight: 600; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.kt-caret { font-size: 14px; color: var(--text-3); flex-shrink: 0; }
.kt-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--card-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 6px; box-shadow: 0 10px 32px rgba(0,0,0,.5); z-index: 60;
}
.kt-uinfo { padding: 10px 12px; font-size: 12.5px; color: var(--text-3); border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.kt-u-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; line-height: 1.4; }
.kt-u-label { color: var(--text-3); font-size: 12px; min-width: 36px; flex-shrink: 0; }
.kt-u-row > span:not(.kt-u-label) { color: var(--text-1); font-size: 13px; }
.kt-u-mail { word-break: break-all; }
.kt-u-company { display: inline-flex; align-items: center; gap: 4px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-verify-text.ok { color: #6bd38b; font-weight: 600; }
.kt-verify-text.pending { color: #f5a623; font-weight: 600; }
.kt-verify-s { font-size: 14px; }
.kt-verify-s.ok { color: #6bd38b; }
.kt-verify-s.pending { color: #f5a623; }

.kt-verify { font-size: 12px; }
.kt-verify.ok { color: #6bd38b; }
.kt-verify.pending { color: #f5a623; }
.kt-dropdown button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px;
  background: transparent; border: none; border-radius: 7px; color: var(--text-2); font-size: 13.5px; cursor: pointer;
}
.kt-dropdown button:hover { background: rgba(229,72,77,.12); color: #ff8a8e; }

/* ---------- 主题 & 语言按钮 ---------- */
.kt-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  color: var(--text-1); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  transition: all .15s; cursor: pointer; font-size: 20px;
  margin-right: 8px;
}
.kt-act:hover { color: var(--green); background: var(--green-dim); border-color: rgba(118,185,0,.3); transform: translateY(-1px); }
.kt-support i { font-size: 21px; }
.kt-theme i { font-size: 20px; }
.kt-help i { font-size: 21px; }
/* 语言按钮: 带文字 + 图标 */
.kt-lang {
  width: auto; gap: 7px; padding: 0 13px; font-size: 13px; font-weight: 500; height: 38px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.035); margin-right: 10px; position: relative;
}
.kt-lang i { font-size: 18px; }
.kt-lang-label { font-size: 13px; white-space: nowrap; }
/* 语言下拉菜单 */
.kt-lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  background: var(--card-2); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 6px; box-shadow: 0 10px 32px rgba(0,0,0,.5); z-index: 60;
}
.kt-lang-menu button {
  display: flex; align-items: center; width: 100%; gap: 8px; padding: 9px 12px;
  background: transparent; border: none; border-radius: 7px; color: var(--text-2);
  font-size: 13px; cursor: pointer; text-align: left; transition: all .12s;
}
.kt-lang-menu button:hover { background: var(--green-dim); color: var(--green); }
.kt-lang-menu button.on {
  background: var(--green-dim); color: var(--green-hi); font-weight: 600;
}
.kt-lang-menu button.on::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); flex-shrink: 0;
}

/* ---------- 亮色主题下的 admin 组件适配 ---------- */
html[data-theme="light"] .kt-act { color: var(--text-2); background: rgba(15,23,42,.03); border-color: var(--border-2); }
html[data-theme="light"] .kt-act:hover {
  color: #fff; background: var(--green); border-color: var(--green);
}
html[data-theme="light"] .kt-toggle { color: var(--text-2); background: rgba(15,23,42,.03); border-color: var(--border-2); }
html[data-theme="light"] .kt-toggle:hover { color: #fff; background: var(--green); border-color: var(--green); }
html[data-theme="light"] .kt-lang { border: 1px solid var(--border-2); background: rgba(15,23,42,.03); }
html[data-theme="light"] .modal-close:hover { color: var(--text); background: rgba(15,23,42,.06); }
html[data-theme="light"] .kt-user {
  border: 1px solid var(--border-2); background: transparent;
}
html[data-theme="light"] .kt-user:hover {
  background: rgba(37,99,235,.06); border-color: var(--green); color: var(--green);
}
html[data-theme="light"] .kt-avatar {
  border-color: var(--green);
}
html[data-theme="light"] .kt-dropdown,
html[data-theme="light"] .kt-lang-menu {
  background: #ffffff; border-color: var(--border-2);
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
}
html[data-theme="light"] .kt-dropdown button { color: var(--text-2); }
html[data-theme="light"] .kt-dropdown button:hover:not(.kt-logout) {
  background: rgba(37,99,235,.06); color: var(--green);
}
html[data-theme="light"] .kt-urow { border-bottom-color: var(--border); }

/* 侧栏亮色适配 */
html[data-theme="light"] .kyc-sidebar {
  background: #ffffff; border-right-color: var(--border);
}
html[data-theme="light"] .ks-logo b { color: #0f172a; }
html[data-theme="light"] .ks-menu button {
  color: var(--text-2);
}
html[data-theme="light"] .ks-menu button:hover {
  background: rgba(37,99,235,.06); color: var(--green);
}
html[data-theme="light"] .ks-menu button.on {
  background: rgba(37,99,235,.08); color: var(--green);
}

/* 顶栏亮色适配 */
html[data-theme="light"] .kyc-topbar {
  background: #ffffff; border-bottom-color: var(--border);
}
html[data-theme="light"] .kt-toggle {
  color: var(--text-2); border-color: var(--border-2);
}
html[data-theme="light"] .kt-crumb { color: var(--text); }

/* 面板/表格亮色适配 */
html[data-theme="light"] .panel {
  background: #ffffff; border-color: var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
html[data-theme="light"] .panel-head {
  border-bottom-color: var(--border);
}
html[data-theme="light"] .boss-table { background: #ffffff; }
html[data-theme="light"] .boss-table th {
  background: #f8fafc; color: var(--text-2);
  border-color: var(--border);
}
html[data-theme="light"] .boss-table td {
  color: var(--text); border-color: var(--border);
}
html[data-theme="light"] .boss-table tbody tr:hover { background: rgba(37,99,235,.03); }

/* 表单/输入框亮色适配 */
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #ffffff; border-color: var(--border-2); color: var(--text);
}
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
html[data-theme="light"] .boss-form .bf-item input,
html[data-theme="light"] .boss-form .bf-item select {
  background: #ffffff; border-color: var(--border-2); color: var(--text);
}
html[data-theme="light"] .filter-input,
html[data-theme="light"] .filter-select {
  background-color: #ffffff; border-color: var(--border-2); color: var(--text);
}

/* 按钮亮色适配 */
html[data-theme="light"] .btn-ghost {
  color: var(--text-2); border-color: var(--border-2); background: transparent;
}
html[data-theme="light"] .btn-ghost:hover {
  color: var(--green); border-color: var(--green); background: rgba(37,99,235,.04);
}
html[data-theme="light"] .btn-primary { color: #ffffff; }

/* Modal 亮色适配 */
html[data-theme="light"] .modal-box {
  background: #ffffff; border-color: var(--border);
  box-shadow: 0 20px 48px rgba(15,23,42,.18);
}
html[data-theme="light"] .modal-head { border-bottom-color: var(--border); }

/* 统计卡亮色适配 */
html[data-theme="light"] .stat-card {
  background: #ffffff; border-color: var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
html[data-theme="light"] .sc-icon {
  background: rgba(37,99,235,.1); color: var(--green);
}
html[data-theme="light"] .sc-label { color: var(--text-2); }

/* select 组件亮色适配 */
html[data-theme="light"] .kyc-select .ks-trigger {
  background: #ffffff; border-color: var(--border-2); color: var(--text);
}
html[data-theme="light"] .ks-dropdown {
  background: #ffffff; border-color: var(--border);
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
}
html[data-theme="light"] .ks-dropdown .ks-option {
  color: var(--text);
}
html[data-theme="light"] .ks-dropdown .ks-option:hover,
html[data-theme="light"] .ks-dropdown .ks-option.active {
  background: rgba(37,99,235,.08); color: var(--green);
}

/* kyc-date 自绘日历面板亮色适配 (面板底色/文字/hover/滚动条) */
html[data-theme="light"] .kd-panel {
  background: #ffffff; border-color: var(--border);
  box-shadow: 0 8px 28px rgba(15,23,42,.18);
}
html[data-theme="light"] .kd-nav-btn { color: var(--text-2); }
html[data-theme="light"] .kd-cell,
html[data-theme="light"] .kd-month-cell,
html[data-theme="light"] .kd-year-cell { color: var(--text); }
html[data-theme="light"] .kd-cell:hover,
html[data-theme="light"] .kd-month-cell:hover,
html[data-theme="light"] .kd-year-cell:hover { background: rgba(37,99,235,.08); color: var(--green); }
html[data-theme="light"] .kd-cell.out { color: #b3bcc9; }
html[data-theme="light"] .kd-cell.active:hover,
html[data-theme="light"] .kd-month-cell.active:hover,
html[data-theme="light"] .kd-year-cell.active:hover { background: #1d4ed8; color: #ffffff; }
html[data-theme="light"] .kd-year-grid { scrollbar-color: #cbd5e1 #ffffff; }
html[data-theme="light"] .kd-year-grid::-webkit-scrollbar-thumb { background: #cbd5e1; }

/* 续费页页内 Tab / 上传拖拽区: 亮色下硬编码绿色点缀改为主题蓝 */
html[data-theme="light"] .bill-tab.on { background: rgba(37,99,235,.10); }
html[data-theme="light"] .contract-drop:hover { background: rgba(37,99,235,.05); }

/* 强制改密遮罩亮色适配 */
html[data-theme="light"] .fcp-overlay {
  background: rgba(244,247,251,.85);
  backdrop-filter: blur(8px);
}
html[data-theme="light"] .fcp-box {
  background: #ffffff; border-color: var(--border);
  box-shadow: 0 20px 48px rgba(15,23,42,.18);
}
html[data-theme="light"] .fcp-icon { color: var(--green); }
html[data-theme="light"] .fcp-title { color: var(--text); }
html[data-theme="light"] .fcp-desc { color: var(--text-2); }

/* 团队管理亮色适配 */
html[data-theme="light"] .team-add {
  color: var(--green); border-color: var(--green); background: rgba(37,99,235,.04);
}
html[data-theme="light"] .team-add:hover {
  background: rgba(37,99,235,.1);
}
html[data-theme="light"] .team-card {
  background: #ffffff; border-color: var(--border);
}
html[data-theme="light"] .team-card .tc-header {
  background: #f8fafc; border-bottom-color: var(--border);
}
html[data-theme="light"] .ts-title .ti { color: var(--green); }

/* 徽章亮色适配 */
html[data-theme="light"] .badge.ok {
  background: rgba(34,197,94,.08); color: #16a34a; border-color: rgba(34,197,94,.2);
}
html[data-theme="light"] .badge.off {
  background: rgba(100,116,139,.08); color: #64748b; border-color: rgba(100,116,139,.2);
}
html[data-theme="light"] .badge.pending {
  background: rgba(245,166,35,.08); color: #d97706; border-color: rgba(245,166,35,.2);
}
html[data-theme="light"] .role-pill.owner {
  background: rgba(245,166,35,.08); color: #d97706;
}
html[data-theme="light"] .role-pill.admin {
  background: rgba(37,99,235,.08); color: var(--green);
}
html[data-theme="light"] .role-pill.member {
  background: rgba(100,116,139,.08); color: #64748b;
}

/* 其他 */
html[data-theme="light"] .lic-badge {
  background: rgba(37,99,235,.08); color: var(--green); border-color: rgba(37,99,235,.2);
}
html[data-theme="light"] .pwd-msg.err {
  background: rgba(220,38,38,.08); color: #dc2626;
}
html[data-theme="light"] .pwd-msg.ok {
  background: rgba(34,197,94,.08); color: #16a34a;
}

/* ---------- 内容区 ---------- */
.kyc-page { flex: 1; padding: 26px; max-width: 100%; width: 100%; }

/* 统计卡 */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.sc-icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--green-dim);
  border: 1px solid rgba(118,185,0,.3); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 23px; flex-shrink: 0;
}
.sc-label { font-size: 12.5px; color: var(--text-3); margin-bottom: 3px; }
.sc-value { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.3; }
.sc-value.ok { color: var(--green-hi); }
.sc-value.sm { font-size: 13px; word-break: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

/* 面板 */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
/* 云盘 panel 不需要额外 margin-bottom（下面就是文件列表） */
.drive-panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 0 14px; flex-wrap: wrap; }
.panel-head b { font-size: 15.5px; }
.panel-head .pts-sm { margin-left: 2px; }
.panel-head .ph-tools { display: flex; gap: 10px; align-items: center; }

/* 占位块 */
.placeholder-box {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 52px 20px; color: var(--text-3);
  border: 1px dashed var(--border-2); border-radius: var(--radius-sm);
}
.placeholder-box .ti { font-size: 44px; color: var(--border-2); }
.placeholder-box .ri { font-size: 36px; color: var(--border-2); line-height: 1; }
.placeholder-box p { font-size: 13.5px; }

/* 资料表单 */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 14px; margin-bottom: 20px; }
.pf-item label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }

/* ======= 统一所有输入控件基线（高度统一 42px） ======= */
.pf-item input,
.pf-item select,
.pf-item textarea,
.pf-static {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 9px;
  padding: 0 13px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
/* input 和 select 固定高度 42px，textarea 保持自适应，range 滑杆除外 */
.pf-item input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.pf-item select {
  height: 42px;
}
/* range 滑杆重置 pf-item 的输入框样式 — 优先级必须高于 .pf-item input 通用规则 */
.pf-item input[type="range"].cp-slider {
  -webkit-appearance: none !important; appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 6px 0 0 !important;
  background: var(--border) !important;
  border: none !important;
  border-radius: 999px !important;
  cursor: pointer;
  outline: none;
  box-shadow: none !important;
}
/* pf-static 与 input/select 等高 */
.pf-static {
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-item input:focus,
.pf-item select:focus,
.pf-item textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(118,185,0,.12);
}
/* placeholder 颜色显式定义（修复浏览器默认色导致的模糊/过暗） */
.pf-item input::placeholder,
.pf-item textarea::placeholder { color: var(--text-3); opacity: 1; }
.pf-item select:invalid { color: var(--text-3); }
.pf-item input:disabled,
.pf-item select:disabled {
  opacity: .55; cursor: not-allowed;
}
.pf-item textarea { resize: vertical; min-height: 74px; padding: 10px 13px; line-height: 1.6; }
.pf-static { color: var(--text-2); }

/* ======= select 深色主题 ======= */
.pf-item select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2376b900' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5 2.6 6.1l1.3-1.3L8 8.9l4.1-4.1 1.3 1.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
  color-scheme: dark !important;   /* ⚠️ 关键：强制浏览器用深色系统面板渲染下拉 option */
}
.pf-item select option {
  background: #1a1f26;
  color: #e4e6eb;
}
.pf-item select option:checked,
.pf-item select option:hover {
  background: #202b16;
  color: #a8e15c;
}
.pf-item select:invalid { color: #8b939c; }

/* ======= date 控件深色主题（原生 <input type="date">） ======= */
.pf-item input[type="date"] {
  color-scheme: dark !important;
  cursor: pointer;
  pointer-events: auto !important;
  /* 确保原生 date 能正常工作，不被其他样式干扰 */
  -webkit-appearance: auto !important;
  appearance: auto !important;
}
.pf-item input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  background: none;
  filter: invert(.75);
  opacity: .8;
  transition: opacity .15s, filter .15s;
  width: 18px; height: 18px;
  padding: 4px;                    /* 增加点击热区 */
}
.pf-item input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: invert(.5);
}
.pf-item input[type="date"]::-webkit-datetime-edit {
  color: var(--text);
}
.pf-item input[type="date"]::-webkit-datetime-edit-text,
.pf-item input[type="date"]::-webkit-datetime-edit-year-field,
.pf-item input[type="date"]::-webkit-datetime-edit-month-field,
.pf-item input[type="date"]::-webkit-datetime-edit-day-field {
  color: var(--text);
  padding: 0 2px;
}
.pf-item input[type="date"]:invalid,
.pf-item input[type="date"]::-webkit-datetime-edit {
  color: var(--text-3);
}
/* Firefox date */
@supports not selector(::-webkit-calendar-picker-indicator) {
  .pf-item input[type="date"] { color-scheme: dark !important; }
}

/* ✅ 全局表单间距：非 grid 场景下 pf-item 之间统一 14px 呼吸空间 */
.pf-item + .pf-item { margin-top: 14px; }
.pf-grid .pf-item + .pf-item,
.pf-grid-2 .pf-item + .pf-item { margin-top: 0; }  /* grid 场景用 gap 控制，不叠加 margin */

/* ✅ 按钮区间距：与上方表单保持呼吸 */
.pf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pf-actions .btn + .op-btn, .pf-actions .op-btn + .btn { margin-left: 2px; }
.pf-msg { font-size: 13px; color: var(--green-hi); }
.pf-avatar-row { display: flex; align-items: center; gap: 20px; padding: 16px; background: var(--bg); border-radius: 10px; margin-bottom: 16px; }
.pf-avatar-preview { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-2); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 2px solid var(--green); flex-shrink: 0; }
.pf-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar-preview span { font-size: 28px; font-weight: 700; color: var(--green); }
.pf-avatar-actions { display: flex; flex-direction: column; gap: 8px; }
.pf-avatar-tip { font-size: 12px; color: var(--text-3); }
.pf-avatar-actions .btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pf-avatar-actions .btn.disabled { opacity: .5; pointer-events: none; }
.pf-hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

/* ✅ 弹窗内表单块与其他组件（drive-drop / boss-table 等）的统一间距 */
/* 首元素不额外加 margin-top（已由 modal-body padding 处理） */
.kyc-shell .modal-body > .pf-item:first-child,
.kyc-shell .modal-body > .drive-drop:first-child,
.kyc-shell .modal-body > table:first-child { margin-top: 0; }

/* 跨组件类型间距（pf-item → drive-drop → boss-table → 上传进度等） */
.kyc-shell .modal-body > .pf-item + .drive-drop,
.kyc-shell .modal-body > .pf-item + table,
.kyc-shell .modal-body > .drive-drop + .du-item,
.kyc-shell .modal-body > .pf-item + div[class*="du-"] { margin-top: 14px; }

/* 两列表单块（pf-grid-2）与相邻块、消息提示行的统一间距 */
.kyc-shell .modal-body > .pf-grid-2 { margin-top: 14px; }
.kyc-shell .modal-body > .pf-grid-2:first-child { margin-top: 0; }
.kyc-shell .modal-body > .pf-grid-2 + .pf-item,
.kyc-shell .modal-body > .pf-grid-2 + .pf-msg,
.kyc-shell .modal-body > .pf-item + .pf-msg { margin-top: 14px; }

/* number 输入框隐藏浏览器原生 spinner，与其他输入框视觉统一 */
.pf-item input[type="number"]::-webkit-outer-spin-button,
.pf-item input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-item input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* 资料完善度进度条 */
.prog-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.prog-head .ph-label { font-size: 13px; color: var(--text-2); }
.prog-head .ph-num { font-size: 21px; font-weight: 700; color: var(--green-hi); }
.prog-track { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, #5a9400, var(--green)); border-radius: 999px; transition: width .5s ease; }
.prog-miss { margin-top: 10px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.prog-miss b { color: #fac334; font-weight: 600; }

/* 企业认证状态横幅 */
.vbanner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 22px; }
.vbanner > .ti { font-size: 26px; flex-shrink: 0; }
.vbanner.none { background: rgba(250,179,52,.07); border-color: rgba(250,179,52,.25); }
.vbanner.none > .ti { color: #fac334; }
.vbanner.pending { background: rgba(56,152,255,.08); border-color: rgba(56,152,255,.3); }
.vbanner.pending > .ti { color: #6db6ff; }
.vbanner.ok { background: var(--green-dim); border-color: rgba(118,185,0,.3); }
.vbanner.ok > .ti { color: var(--green); }
.vbanner .vb-body { flex: 1; min-width: 0; }
.vbanner .vb-title { font-weight: 600; font-size: 14.5px; }
.vbanner.ok .vb-title { color: var(--green-hi); }
.vbanner.pending .vb-title { color: #6db6ff; }
.vbanner.none .vb-title { color: #fac334; }
.vbanner .vb-desc { font-size: 12.5px; color: var(--text-3); margin-top: 3px; line-height: 1.6; }

/* 团队(部门)卡片 */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.team-card { border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.team-card .tc-name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.team-card .tc-desc { font-size: 12.5px; color: var(--text-3); min-height: 18px; margin-top: 4px; word-break: break-all; }
.team-card .tc-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.team-card .tc-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.team-add {
  border: 1px dashed var(--border-2); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-3); cursor: pointer; min-height: 128px; background: transparent; border-radius: 10px;
  font-size: 13px; transition: .15s;
}
.team-add:hover { color: var(--green); border-color: var(--green); }
.team-add .ti { font-size: 26px; }

/* 分公司/子公司 卡片 */
.team-card.branch {
  border: 1px solid rgba(118,185,0,.35);
  background: linear-gradient(135deg, rgba(118,185,0,.08) 0%, rgba(118,185,0,.02) 100%);
  position: relative;
}
.team-card.branch .tc-icon {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(118,185,0,.15); color: var(--green-hi);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.team-card.branch .tc-name { padding-right: 42px; }
.team-card.branch::before {
  content: ''; position: absolute; top: -1px; left: 16px;
  width: 28px; height: 2px; background: var(--green); border-radius: 2px;
}

/* 团队分组 section */
.team-section { margin-bottom: 18px; }
.team-section:last-child { margin-bottom: 0; }
.ts-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.ts-title .ti { font-size: 16px; color: var(--green); }

/* 表格内小下拉 (团队成员分配) */
.sel-sm {
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text-2);
  border-radius: 7px; padding: 6px 9px; font-size: 12.5px; max-width: 150px;
  color-scheme: dark !important;
}
.sel-sm:focus { outline: none; border-color: var(--green); }

/* 积分数字 */
.pts { font-weight: 700; color: var(--green-hi); }
.pts-sm { font-size: 12.5px; color: var(--text-3); }

/* ---------- BOSS 表格 ---------- */
.boss-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.boss-table th {
  text-align: left; padding: 10px 12px; color: var(--text-3); font-weight: 600; font-size: 12.5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.boss-table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.boss-table tr:hover td { background: rgba(255,255,255,.02); }
.boss-table td.em { color: var(--text); }
.boss-empty { text-align: center; padding: 44px 0 !important; color: var(--text-3); }

/* 表格内统一输入框样式 (模型官价等编辑场景) */
.boss-input {
  width: 100%; height: 34px; padding: 0 10px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; transition: border-color .15s, box-shadow .15s;
}
.boss-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px rgba(118,185,0,.15); }
.boss-input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }

/* 状态徽章 */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--green-dim); color: var(--green-hi); border: 1px solid rgba(118,185,0,.3); }
.badge.off { background: rgba(229,72,77,.1); color: #ff8a8e; border: 1px solid rgba(229,72,77,.25); }
.badge.pending { background: rgba(250,179,52,.1); color: #fac334; border: 1px solid rgba(250,179,52,.25); }
.badge.warn { background: rgba(245,166,35,.12); color: #f5a623; border: 1px solid rgba(245,166,35,.25); }

/* License 额度徽章 */
.lic-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(118,185,0,.1); color: #9ed86b; border: 1px solid rgba(118,185,0,.25);
  white-space: nowrap;
}
.lic-badge.full { background: rgba(229,72,77,.1); color: #ff8a8e; border-color: rgba(229,72,77,.25); }
.lic-badge .lic-rem { color: var(--text-2); font-weight: 500; }
.lic-badge .lic-no { color: #f5a623; }

/* 成员角色 Pill */
.role-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.role-pill.owner { background: rgba(250,179,52,.12); color: #fac334; }
.role-pill.admin { background: rgba(74,144,226,.12); color: #4a90e2; }
.role-pill.member { background: rgba(130,140,150,.15); color: #9aa4b0; }

/* 强制改密遮罩层 */
.fcp-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.fcp-box {
  width: 100%; max-width: 480px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.fcp-icon { text-align: center; font-size: 48px; color: #f5a623; margin-bottom: 12px; }
.fcp-title { text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.fcp-desc { text-align: center; color: var(--text-2); font-size: 13px; line-height: 1.7; margin-bottom: 24px; }

/* 成员表格操作列 */
.boss-table td.ops { white-space: nowrap; }

/* 行内操作按钮 */
.op-btn {
  background: transparent; border: 1px solid var(--border-2); color: var(--text-2);
  padding: 5px 11px; border-radius: 7px; font-size: 12.5px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; transition: .15s; margin: 2px 3px 2px 0;
}
.op-btn:hover { color: var(--green); border-color: var(--green); }
.op-btn .ri { font-size: 14px; line-height: 1; }
.op-btn.danger:hover { color: #ff8a8e; border-color: rgba(229,72,77,.5); }

/* BOSS 表单 */
.boss-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 760px; }
.bf-item { margin-bottom: 4px; }
.bf-item label { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 7px; }
.bf-item input, .bf-item select, .bf-item textarea {
  width: 100%; background-color: var(--bg-2); border: 1px solid var(--border-2); border-radius: 9px;
  padding: 10px 13px; color: var(--text); font-size: 14px;
  box-sizing: border-box;
}
.bf-item select { background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 14px 14px !important; padding-right: 38px !important; }
.bf-item input, .bf-item select { height: 42px; padding: 0 13px; }
.bf-item textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.bf-item input:focus, .bf-item select:focus, .bf-item textarea:focus { outline: none; border-color: var(--green); }
.bf-item .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.bf-switch { display: flex; align-items: center; gap: 10px; }
.bf-switch input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }
.bf-switch span { color: var(--text-2); font-size: 14px; }
.boss-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.boss-msg { font-size: 13px; }
.boss-msg.ok { color: var(--green-hi); }
.boss-msg.err { color: #ff8a8e; }

/* BOSS 登录页 */
.boss-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.boss-login-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; }
.boss-login-card .bl-brand { text-align: center; margin-bottom: 26px; }
.boss-login-card .bl-brand img { height: 34px; margin-bottom: 12px; }
.boss-login-card .bl-brand b { font-size: 18px; color: var(--text); }
.boss-login-card .bl-brand b em { font-style: normal; color: var(--green); }
.boss-login-card .bl-brand p { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.boss-login-card .field { margin-bottom: 15px; }
.boss-login-card .field label { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.boss-login-card .field input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 9px;
  padding: 11px 13px; color: var(--text); font-size: 14px;
}
.boss-login-card .field input:focus { outline: none; border-color: var(--green); }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 44px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border-2); }
.form-msg { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 15px; }
.form-msg.error { background: rgba(229,72,77,.12); color: #ff8a8e; border: 1px solid rgba(229,72,77,.3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--green); color: #0a0d10; padding: 11px 22px; border-radius: 9px; font-size: 14px; }
.btn-primary:hover { background: var(--green-hi); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); padding: 11px 22px; border-radius: 9px; font-size: 14px; }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); border-color: var(--border); }
.btn-danger { background: rgba(229,72,77,.14); color: #ff8a8e; border: 1px solid rgba(229,72,77,.4); padding: 11px 22px; border-radius: 9px; font-size: 14px; }
.btn-danger:hover { background: rgba(229,72,77,.22); border-color: rgba(229,72,77,.6); }
.btn-danger:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn > .ri { font-size: 16px; line-height: 1; }

/* 筛选工具 (全系统工具区统一控件高度 34px, 与 .op-btn/.kyc-select.sm 在工具区内齐平) */
.filter-input, .filter-select {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 0 12px; color: var(--text); font-size: 13px; width: 220px; height: 34px;
  box-sizing: border-box; color-scheme: dark !important;
}
.filter-select {
  width: auto; cursor: pointer; padding-right: 30px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2376b900' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5 2.6 6.1l1.3-1.3L8 8.9l4.1-4.1 1.3 1.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--green); }

/* 分页 */
.pager { display: flex; align-items: center; gap: 14px; justify-content: flex-end; margin-top: 18px; }
.pg-info { font-size: 13px; color: var(--text-3); }

/* 弹窗 */
.mask {
  position: fixed; inset: 0; background: rgba(4,6,8,.68); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
/* 全局 modal-mask (Teleport 到 body 时用) */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 1 !important; visibility: visible !important; transition: none !important;
}
.modal-box {
  width: 100%; max-width: 420px; background: var(--card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 26px; box-shadow: 0 16px 48px rgba(0,0,0,.55);
}
.modal-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 18px; word-break: break-all; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.op-btn.ok { background: var(--green); border-color: var(--green); color: #0a0d10; font-weight: 600; }
.op-btn.ok:hover { background: var(--green-hi); }

/* SMTP 启用状态 */
.smtp-state {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(250,179,52,.1); color: #fac334; border: 1px solid rgba(250,179,52,.25);
}
.smtp-state.on { background: var(--green-dim); color: var(--green-hi); border-color: rgba(118,185,0,.3); }

/* 移动端适配 */
@media (max-width: 860px) {
  .kyc-sidebar { width: 64px; }
  .kyc-main { margin-left: 64px; }
  .ks-label, .ks-logo b { display: none; }
  .ks-arrow { display: none !important; }
  .ks-sub { display: none !important; }
  .ks-logo { gap: 0; justify-content: center; }
  .ks-logo .ks-logo-full { display: none; }
  .ks-logo .ks-logo-mini { display: block; }
  .ks-head { padding: 0; justify-content: center; }
  .ks-menu { padding: 14px 0; }
  .ks-menu button, .ks-foot-link { justify-content: center; padding: 11px 0; width: 100%; }
  .kt-name { display: none; }
  .kyc-page { padding: 16px; }
  .boss-form { grid-template-columns: 1fr; }
}

/* ---------- 订单状态徽章 ---------- */
.badge.st0 { background: rgba(100,150,220,.1); color: #7cb4ff; border: 1px solid rgba(100,150,220,.25); }   /* 待生效 */
.badge.st1 { background: var(--green-dim); color: var(--green-hi); border: 1px solid rgba(118,185,0,.3); }      /* 有效 */
.badge.st2 { background: rgba(229,72,77,.1); color: #ff8a8e; border: 1px solid rgba(229,72,77,.25); }           /* 已到期 */
.badge.st3 { background: rgba(100,100,100,.15); color: #9aa0a6; border: 1px solid rgba(100,100,100,.25); }       /* 已取消 */

/* ---------- Modal (管理后台专属: kyc-shell 隔离, 避免和首页 style.css 冲突) ---------- */
.kyc-shell .modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center;
  padding: 20px;
  /* 覆盖 style.css 默认的 opacity:0 + visibility:hidden */
  opacity: 1 !important; visibility: visible !important;
  transition: none !important;
}
.kyc-shell .modal-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.modal-head b { font-size: 15px; color: var(--text); font-weight: 600; }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent;
  color: var(--text-3); font-size: 22px; cursor: pointer; line-height: 1; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.06); }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.f-group { margin-bottom: 16px; }
.f-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-size: 14px; box-sizing: border-box;
}
.modal-close:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* ✅ 统一加大弹窗内容区内边距 */
.kyc-shell .modal-body { padding: 24px; overflow-y: auto; flex: 1; }
/* 模态框滚动条统一黑绿主题 */
.kyc-shell .modal-body::-webkit-scrollbar,
.kyc-shell .upload-panel ::-webkit-scrollbar { width: 6px; height: 6px; }
.kyc-shell .modal-body::-webkit-scrollbar-thumb,
.kyc-shell .upload-panel ::-webkit-scrollbar-thumb { background: #2d3641; border-radius: 3px; }
.kyc-shell .modal-body::-webkit-scrollbar-thumb:hover,
.kyc-shell .upload-panel ::-webkit-scrollbar-thumb:hover { background: rgba(118,185,0,.55); }
.kyc-shell .modal-body::-webkit-scrollbar-track,
.kyc-shell .upload-panel ::-webkit-scrollbar-track { background: transparent; }

/* 修改密码提示 */
.pwd-msg { font-size: 12.5px; margin-top: 6px; padding: 6px 10px; border-radius: 7px; }
.pwd-msg.ok { color: #6bd38b; background: rgba(107,211,139,.1); border: 1px solid rgba(107,211,139,.25); }
.pwd-msg.err { color: #ff8a8e; background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.25); }

/* ===== 统一弹出层风格（upload-panel 系列） ===== */
.kyc-shell .upload-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  width: 100%; max-height: 88vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(0,0,0,.65);
}
.kyc-shell .up-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.kyc-shell .up-title { font-size: 15.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.kyc-shell .up-title i { font-size: 17px; color: var(--green); }
/* 头部关闭按钮：圆形深灰底 */
.kyc-shell .up-head .up-remove {
  position: static; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.06); color: var(--text-2); font-size: 18px;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background .15s, color .15s;
}
.kyc-shell .up-head .up-remove:hover { background: rgba(255,255,255,.14); color: #fff; }


/* 订单详情行 */
.od-status { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.od-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.od-row:last-of-type { border-bottom: none; }
.od-label { color: var(--text-3); font-size: 13px; }
.od-val { color: var(--text); font-weight: 500; }
.od-desc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.od-desc .od-label { margin-bottom: 6px; }
.od-text { color: var(--text-2); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; }

/* ---------- 表单分区 ---------- */
.form-section {
  border-left: 3px solid var(--green);
  padding: 18px 20px;
  margin: 22px 0;
  background: rgba(118,185,0,.03);
  border-radius: 0 8px 8px 0;
}
.form-section:first-of-type { margin-top: 0; }
.fs-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 14px;
}
.fs-title .ti { font-size: 17px; color: var(--green); }

/* ---------- 文件上传 ---------- */
.up-wrap { position: relative; }
.up-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed var(--border); border-radius: 10px; padding: 28px 16px;
  cursor: pointer; color: var(--text-3); font-size: 13px; text-align: center;
  transition: border-color .15s, color .15s, background .15s;
}
.up-zone:hover { border-color: var(--green); color: var(--green); background: rgba(118,185,0,.05); }
.up-zone.small { padding: 18px 10px; gap: 5px; font-size: 12px; }
.up-zone .ti { font-size: 26px; }
.up-zone.small .ti { font-size: 20px; }
.up-preview {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.up-preview img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; background: #0a0d10; }
.up-remove {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.7); color: #fff; font-size: 14px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.up-remove:hover { background: #ff4d4f; }

.up-row { display: flex; gap: 16px; }
.up-col { flex: 1; min-width: 0; }
.up-col-label { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }

/* ---------- 企业云盘 ---------- */

/* === 顶部栏（单行左右布局） === */
.drive-topbar {
  display: flex; align-items: center; gap: 24px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.drive-top-left {
  display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0;
}
.drive-top-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.drive-crumb {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0;
}
.dc-sep { color: var(--text-3); opacity: .6; font-size: 13px; }
.dc-item {
  color: var(--text-2); font-size: 13.5px; cursor: pointer; padding: 3px 7px; border-radius: 5px;
  display: inline-flex; align-items: center; gap: 4px; transition: .12s;
}
.dc-item:hover { color: var(--green); background: var(--green-dim); }
.dc-item.on { color: var(--text); font-weight: 600; cursor: default; }
.dc-item.on:hover { background: transparent; color: var(--text); }
.dc-item .ri { font-size: 14px; color: var(--green); }

.drive-stats {
  font-size: 12px; color: var(--text-3); white-space: nowrap; flex-shrink: 0;
  padding-left: 14px; border-left: 1px solid var(--border-2);
}
.drive-stats b { color: var(--text); margin: 0 2px; font-weight: 600; }

/* 搜索框 */
.drive-search-wrap { position: relative; display: inline-flex; align-items: center; }
.drive-search-wrap .ri-search-line {
  position: absolute; left: 11px; color: var(--text-3); font-size: 14px; pointer-events: none;
}
.drive-search {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 8px 12px 8px 32px; color: var(--text); font-size: 13px; width: 170px;
  transition: width .2s, border-color .15s, box-shadow .15s;
  box-sizing: border-box; color-scheme: dark !important;
}
.drive-search:focus { outline: none; border-color: var(--green); width: 220px; box-shadow: 0 0 0 3px rgba(118,185,0,.1); }

.drive-sort {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 8px 10px; color: var(--text); font-size: 13px; cursor: pointer;
  color-scheme: dark !important;
}

.drive-check-all {
  display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 13px; cursor: pointer;
  padding: 0 4px; white-space: nowrap;
}
.drive-check-all input { accent-color: var(--green); width: 15px; height: 15px; }

/* === 文件列表（表格化 grid，7 列） === */
/* grid-template-columns: checkbox | 文件名 | 详情 | 大小 | 创建时间 | 更新时间 | 操作 */
.drive-list-head,
.drive-item {
  display: grid;
  grid-template-columns: 40px minmax(180px, 2fr) minmax(0, 1.5fr) 80px 150px 150px minmax(180px, auto);
  align-items: center; gap: 14px;
  padding: 10px 14px;
}
.drive-list-head {
  font-size: 12px; color: var(--text-3); font-weight: 500;
  border-bottom: 1px solid var(--border); margin-bottom: 4px; letter-spacing: .3px;
}
.drive-list-head .dh-name   { text-align: left;   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-list-head .dh-detail { text-align: left;   overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-list-head .dh-size   { text-align: right;  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-list-head .dh-time   { text-align: right;  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-list-head .dh-ops    { text-align: right;  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-item {
  padding: 10px 14px; border-radius: 6px; cursor: default;
  background: transparent; transition: background .12s;
}
.drive-item:hover { background: rgba(118,185,0,.04); }
.drive-item.drive-folder { cursor: pointer; }
.drive-check { display: flex; align-items: center; justify-content: center; width: 100%; }
.drive-check input { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; }
.drive-item .di-name {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.drive-item.drive-folder .di-name { cursor: pointer; }
.drive-item.drive-folder .di-name:hover { color: #f8c757; }
.drive-item.drive-file .di-name { cursor: pointer; }
.drive-item.drive-file .di-name:hover { color: var(--green); }
.drive-folder-icon { color: #f8c757; font-size: 20px; flex-shrink: 0; }
/* 移动到文件夹 — 选项列表 */
.move-folder-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; cursor: pointer; font-size: 13.5px; color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,.04); transition: background .12s;
}
.move-folder-item:last-child { border-bottom: none; }
.move-folder-item:hover { background: rgba(248,199,87,.08); color: #f8c757; }
.move-folder-item.active { background: rgba(118,185,0,.12); color: var(--green); }
.drive-file-icon { color: var(--text-3); font-size: 18px; flex-shrink: 0; }
.drive-item .di-detail {
  color: var(--text-3); font-size: 12.5px; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.drive-item .di-size { color: var(--text-2); font-size: 12.5px; text-align: right; white-space: nowrap; }
.drive-item .di-time { color: var(--text-3); font-size: 12.5px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.drive-item .di-right { display: flex; gap: 6px; justify-content: flex-end; flex-shrink: 0; flex-wrap: nowrap; }

/* 上传 Modal / 新建文件夹 */
.drive-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border: 1.5px dashed var(--border-2); border-radius: 12px;
  padding: 36px 24px; cursor: pointer; color: var(--text-3); text-align: center;
  transition: border-color .18s, background .18s, color .18s;
  background: rgba(118,185,0,.02);
}
.drive-drop:hover { border-color: var(--green); color: var(--green); background: rgba(118,185,0,.07); }

/* 上传进度列表 */
.du-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 8px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  font-size: 13px;
}
.du-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.du-state { font-size: 12.5px; font-weight: 600; margin-left: 12px; flex-shrink: 0; }
.du-state.uploading { color: #6db6ff; }
.du-state.ok { color: var(--green-hi); }
.du-state.err { color: #ff8a8e; }

/* 预览 Modal (更大) */
.modal-box.preview-box { width: 96vw; max-width: 1600px; height: 92vh; max-height: 92vh; }
.modal-body.preview-body { flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.preview-text {
  margin: 0; padding: 24px; height: 100%; overflow: auto;
  background: #06080a; color: var(--text); font-family: ui-monospace, 'Consolas', monospace;
  font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-all;
}
.preview-empty {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-3);
}

/* ---------- 用户权限管理 ---------- */
.perm-member { display: flex; align-items: center; gap: 10px; }
.perm-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 15px; flex-shrink: 0;
}
.perm-meta { min-width: 0; }
.perm-name { color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.perm-email { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.self-tag {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: rgba(118,185,0,.15); color: var(--green); font-size: 11px; font-weight: 500;
}
.perm-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500;
}
.perm-badge.owner { background: rgba(255,204,102,.15); color: #ffcc66; }
.perm-badge.admin { background: rgba(109,182,255,.15); color: #6db6ff; }
.perm-badge.member { background: rgba(74,90,110,.25); color: var(--text-2); }
.perm-badge.ok { background: rgba(118,185,0,.15); color: var(--green-hi); }
.perm-badge.off { background: rgba(244,74,74,.12); color: #f47878; }
.perm-select {
  padding: 4px 8px; background: var(--bg-3); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; font-size: 13px; cursor: pointer;
  color-scheme: dark !important;
}
.perm-select:focus { outline: none; border-color: var(--green); }
.perm-switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.perm-switch input { opacity: 0; width: 0; height: 0; }
.perm-switch .slider {
  position: absolute; inset: 0; background: #3a4a5e; border-radius: 22px;
  transition: background .2s;
}
.perm-switch .slider::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.perm-switch input:checked + .slider { background: var(--green); }
.perm-switch input:checked + .slider::before { transform: translateX(18px); }
.boss-table tr.self td { background: rgba(118,185,0,.04); }
.boss-table tr.disabled td { opacity: .5; }

/* ============ 模块功能权限编辑弹窗 ============ */
.perm-mod-group { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.perm-mod-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-2); }
.perm-mod-title { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.perm-mod-title input { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.perm-mod-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; padding: 12px 14px; }
.perm-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; padding: 5px 2px; border-radius: 6px; }
.perm-item:hover { background: rgba(255,255,255,.03); }
.perm-item input { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; flex-shrink: 0; }
.perm-item.disabled { color: var(--text-3); cursor: not-allowed; opacity: .7; }
.perm-item.disabled input { cursor: not-allowed; }

/* ============ 费用中心 ============ */
.pf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .pf-grid-2 { grid-template-columns: 1fr; } }

/* 企业资料页财务入口卡片 */
.billing-entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.billing-entry-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--bg-2); transition: border-color .15s, transform .15s; }
.billing-entry-card:hover { border-color: var(--green); transform: translateY(-1px); }
.billing-entry-card > i { font-size: 26px; color: var(--green); flex-shrink: 0; }
.billing-entry-card b { display: block; font-size: 14px; color: var(--text-1); margin-bottom: 2px; }
.billing-entry-card span { font-size: 12px; color: var(--text-3); }

/* 订单卡片列表 */
.order-card-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--bg-2); }
.order-card.warn { border-color: rgba(250,195,52,.45); }
.order-card.expired { border-color: rgba(244,74,74,.45); opacity: .88; }
.order-card.pending { border-color: rgba(109,182,255,.4); }
.oc-head { display: flex; align-items: center; gap: 10px; }
.oc-ico { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(118,185,0,.12); color: var(--green-hi); font-size: 19px; flex-shrink: 0; }
.order-card.warn .oc-ico { background: rgba(250,195,52,.14); color: #fac334; }
.order-card.expired .oc-ico { background: rgba(244,74,74,.12); color: #f47878; }
.order-card.pending .oc-ico { background: rgba(109,182,255,.12); color: #6db6ff; }
.oc-title { font-size: 15px; font-weight: 700; color: var(--text-1); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-tag { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; background: rgba(118,185,0,.14); color: var(--green-hi); }
.oc-tag.warn { background: rgba(250,195,52,.16); color: #fac334; }
.oc-tag.expired { background: rgba(244,74,74,.14); color: #f47878; }
.oc-tag.pending { background: rgba(109,182,255,.14); color: #6db6ff; }
.oc-meta { margin: 8px 0 4px 46px; font-size: 12.5px; color: var(--text-3); }
.oc-bottom { margin-left: 46px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.oc-amount { font-size: 20px; font-weight: 800; color: var(--text-1); }
.oc-seat { font-size: 12.5px; font-weight: 400; color: var(--text-3); margin-left: 6px; }
.oc-actions { margin: 12px 0 0 46px; display: flex; gap: 8px; }

/* 对公汇款账户卡片 */
.bank-card { border: 1px solid rgba(118,185,0,.35); border-radius: 12px; padding: 8px 18px; background: linear-gradient(135deg, rgba(118,185,0,.07), rgba(118,185,0,.02)); }
.bank-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.bank-row:last-child { border-bottom: none; }
.bank-label { width: 84px; flex-shrink: 0; font-size: 13px; color: var(--text-3); }
.bank-val { flex: 1; font-size: 15px; color: var(--text-1); letter-spacing: .3px; }
.bank-val.em { font-weight: 700; font-size: 17px; }
.pay-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 14px; background: var(--bg-2); border-radius: 8px; color: var(--text-3); font-size: 12.5px; line-height: 1.7; }
.pay-note i { color: #fac334; margin-top: 2px; }
.pay-steps { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.pay-step { display: flex; gap: 12px; align-items: flex-start; }
.ps-num { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #0e1512; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.ps-body b { display: block; font-size: 14px; color: var(--text-1); margin-bottom: 3px; }
.ps-body span { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }

/* 分段选择按钮：整行均分、高度与输入框对齐 */
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-btn { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text-2); font-size: 13px; white-space: nowrap; cursor: pointer; transition: all .15s; }
.seg-btn:hover { border-color: var(--green); color: var(--text-1); }
.seg-btn.on { background: rgba(118,185,0,.16); border-color: var(--green); color: var(--green-hi); font-weight: 700; }

/* 邮寄地址列表项 */
.addr-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.addr-info b { font-size: 13.5px; color: var(--text-1); }
.addr-info .pts-sm { display: block; margin-top: 2px; }

/* ============ kyc-select 自定义深色下拉组件 ============ */
.kyc-select { position: relative; width: 100%; }
.kyc-select .ks-trigger {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 9px;
  padding: 0 13px; height: 42px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.kyc-select .ks-trigger:hover { border-color: var(--border); }
.kyc-select .ks-trigger.open { border-color: var(--green); box-shadow: 0 0 0 3px rgba(118,185,0,.1); }
.kyc-select .ks-trigger.disabled { opacity: .55; cursor: not-allowed; }
.kyc-select .ks-label {
  color: var(--text); font-size: 14px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kyc-select .ks-label.placeholder { color: var(--text-3); }
.kyc-select .ks-arrow { color: var(--green); font-size: 18px; flex-shrink: 0; margin-left: 8px; transition: transform .15s; }
.kyc-select.open .ks-arrow { transform: rotate(180deg); }
.ks-dropdown {
  position: fixed;
  background: #12161c; border: 1px solid var(--border); border-radius: 9px;
  max-height: 280px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
  /* Firefox 滚动条 */
  scrollbar-width: thin; scrollbar-color: #333 #12161c;
}
.ks-dropdown::-webkit-scrollbar { width: 6px; }
.ks-dropdown::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.ks-option {
  padding: 9px 14px; cursor: pointer; font-size: 13.5px; color: #e4e6eb;
  transition: background .1s, color .1s;
}
.ks-option:hover { background: rgba(118,185,0,.08); color: #9ed86b; }
.ks-option.active { background: rgba(118,185,0,.15); color: #9ed86b; font-weight: 600; }
/* 过渡动画 */
.ks-fade-enter-active, .ks-fade-leave-active { transition: opacity .12s, transform .12s; }
.ks-fade-enter-from, .ks-fade-leave-to { opacity: 0; transform: translateY(-4px); }
/* 紧凑尺寸 */
.kyc-select.sm .ks-trigger { padding: 6px 10px; border-radius: 7px; font-size: 12.5px; }
.kyc-select.sm .ks-label { font-size: 12.5px; }
.kyc-select.sm .ks-option { padding: 7px 11px; font-size: 12.5px; }

/* ============ kyc-date 自定义日期选择器组件 ============ */
.kyc-date { position: relative; width: 100%; }
.kd-trigger {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 9px;
  padding: 0 13px; height: 42px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box; flex-shrink: 0;
}
.kd-trigger:hover { border-color: var(--border); }
.kd-trigger.open { border-color: var(--green); box-shadow: 0 0 0 3px rgba(118,185,0,.1); }
.kd-trigger.disabled { opacity: .55; cursor: not-allowed; }
.kd-value { color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.kd-value.placeholder { color: var(--text-3); }
.kd-icon { color: var(--green); font-size: 18px; flex-shrink: 0; margin-left: 8px; }

/* 日历面板 */
.kd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000;
  width: 300px; padding: 14px;
  background: #12161c; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
}
.kd-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.kd-nav { display: flex; align-items: center; gap: 2px; }
.kd-nav-btn {
  color: var(--text-2); font-size: 18px; cursor: pointer; padding: 4px;
  border-radius: 5px; transition: color .1s, background .1s;
}
.kd-nav-btn:hover { color: var(--green); background: rgba(118,185,0,.1); }
.kd-title { color: var(--text); font-size: 14px; font-weight: 600; }
.kd-title-link { cursor: pointer; padding: 2px 6px; border-radius: 5px; transition: color .1s, background .1s; }
.kd-title-link:hover { color: var(--green); background: rgba(118,185,0,.1); }
.kd-today {
  background: var(--green); color: #0a0d10; border: none; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.kd-today:hover { background: #9ed86b; }

/* 星期表头 */
.kd-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.kd-w {
  text-align: center; font-size: 11px; color: var(--text-3); padding: 4px 0; font-weight: 600;
}

/* 日期格子 */
.kd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.kd-cell {
  text-align: center; padding: 7px 0; font-size: 13px; color: #e4e6eb;
  border-radius: 6px; cursor: pointer; transition: background .1s, color .1s;
}
.kd-cell:hover { background: rgba(118,185,0,.08); color: #9ed86b; }
.kd-cell.out { color: #555e6b; }
.kd-cell.today { color: var(--green); font-weight: 700; }
.kd-cell.today::after { content: ''; display: block; width: 4px; height: 4px; background: var(--green); border-radius: 50%; margin: 2px auto 0; }
.kd-cell.active { background: var(--green); color: #0a0d10; font-weight: 700; }
.kd-cell.active:hover { background: #9ed86b; }

/* 月份选择网格 */
.kd-month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.kd-month-cell {
  text-align: center; padding: 10px 0; font-size: 13px; color: #e4e6eb;
  border-radius: 8px; cursor: pointer; transition: background .1s, color .1s;
}
.kd-month-cell:hover { background: rgba(118,185,0,.08); color: #9ed86b; }
.kd-month-cell.active { background: var(--green); color: #0a0d10; font-weight: 700; }
.kd-month-cell.active:hover { background: #9ed86b; }

/* 年份选择网格 */
.kd-year-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 4px;
  max-height: 220px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #333 #12161c;
}
.kd-year-grid::-webkit-scrollbar { width: 5px; }
.kd-year-grid::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.kd-year-cell {
  text-align: center; padding: 9px 0; font-size: 12.5px; color: #e4e6eb;
  border-radius: 8px; cursor: pointer; transition: background .1s, color .1s;
}
.kd-year-cell:hover { background: rgba(118,185,0,.08); color: #9ed86b; }
.kd-year-cell.active { background: var(--green); color: #0a0d10; font-weight: 700; }
.kd-year-cell.active:hover { background: #9ed86b; }

/* 底部清除 */
.kd-footer { text-align: right; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-2); }
.kd-clear {
  background: transparent; border: none; color: var(--text-3); font-size: 12px; cursor: pointer;
  transition: color .1s;
}
.kd-clear:hover { color: var(--green); }

/* ============ 角色实例 ============ */
.char-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.char-title { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.char-title i { color: var(--green); font-size: 20px; }
.char-title .pts-sm { margin-left: 6px; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

/* ===== 角色实例：三步引导 ===== */
.char-guide {
  background: linear-gradient(135deg, rgba(118,185,0,.08), rgba(118,185,0,.02));
  border: 1px solid rgba(118,185,0,.25); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 20px;
}
.cg-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.cg-title i { color: var(--green); font-size: 18px; }
.cg-steps { display: flex; align-items: stretch; gap: 10px; }
.cg-step {
  flex: 1; display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 14px 12px;
}
.cg-step.done { border-color: rgba(118,185,0,.45); }
.cg-no {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-top: 2px;
}
.cg-step.done .cg-no { background: var(--green); color: #0a0d10; }
.cg-no i { font-size: 16px; }
.cg-body { flex: 1; min-width: 0; }
.cg-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cg-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 6px; }
.cg-meta { font-size: 12px; color: var(--green); font-weight: 600; }
.cg-step .op-btn { flex: 0 0 auto; align-self: center; }
.cg-arrow { color: var(--text-3); font-size: 22px; align-self: center; flex: 0 0 auto; }
@media (max-width: 1100px) {
  .cg-steps { flex-direction: column; }
  .cg-arrow { transform: rotate(90deg); }
}

/* ===== 角色实例：按产品分组 ===== */
.char-prod-group { margin-bottom: 28px; }
.char-prod-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px;
  background: var(--bg-2); border-radius: 10px;
  border-left: 3px solid var(--green);
}
.char-prod-head > i { font-size: 18px; color: var(--green); }
.char-prod-icon {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: rgba(118,185,0,.15); color: var(--green-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; overflow: hidden;
}
.char-prod-icon img { width: 100%; height: 100%; object-fit: cover; }
.char-prod-head b { font-size: 14.5px; color: var(--text); }
.char-prod-cnt {
  font-size: 12px; color: var(--green); background: rgba(118,185,0,.12);
  border-radius: 999px; padding: 2px 10px; font-weight: 600;
}
.char-prod-task { font-size: 12px; color: var(--text-3); }
.char-prod-group:last-child { margin-bottom: 0; }

.char-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer;
  transition: border-color .15s, transform .15s; position: relative;
}
.char-card:hover { border-color: var(--green); transform: translateY(-2px); }
.char-card.disabled { opacity: .55; }
.char-card.disabled:hover { transform: none; border-color: var(--border); }

/* ===== 竖版卡片布局 ===== */
.char-card-v {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 14px;
}
.char-card-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.char-card-v .char-avatar { position: relative; margin-bottom: 4px; }
.char-card-v .char-avatar img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-2);
}
.char-card-v .char-avatar-placeholder {
  width: 84px; height: 84px; border-radius: 50%; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; border: 3px solid var(--border-2);
}
.char-card-v .char-avatar-placeholder i { font-size: 36px; color: var(--text-3); }
.char-card-v .char-name { font-size: 16px; font-weight: 600; color: var(--text); }
.char-card-v .char-age { font-size: 12px; color: var(--text-3); font-weight: 400; }
.char-card-v .char-identity {
  font-size: 12.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.char-status {
  position: absolute; bottom: 0; right: 0;
  font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600;
}
.char-status.on { background: var(--green); color: #0a0d10; }
.char-status.off { background: #555; color: #fff; }

/* 星级 */
.char-stars { display: flex; gap: 2px; margin-top: 2px; }
.char-stars i { font-size: 15px; }
.char-stars i.on { color: #ffb800; }
.char-stars i.off { color: var(--border-2); }

/* 卡片中部：统计 + 对话压力 */
.char-card-mid { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.char-card-v .char-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.char-card-v .char-stats span { display: flex; align-items: center; gap: 4px; }
.char-card-v .char-stats i { color: var(--green); font-size: 13px; }
.char-card-v .char-stats b { color: var(--green); font-weight: 700; font-size: 13px; }

.char-pressure { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.cp-label { font-size: 11.5px; color: var(--text-3); display: flex; justify-content: space-between; }
.cp-label b { color: var(--green); font-weight: 600; }

/* 滑杆 */
.cp-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px; background: var(--border);
  outline: none; cursor: pointer;
}
.cp-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%; background: var(--green);
  cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: transform .12s;
}
.cp-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cp-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--green);
  cursor: pointer; border: 2px solid #fff;
}

/* 卡片底部操作按钮行 */
.char-ops-row {
  display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 14px;
}
.char-ops-row .op-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; font-size: 13px; white-space: nowrap; border-radius: 8px;
}
.char-ops-row .op-btn i { font-size: 15px; }
/* 纯图标按钮更紧凑，给文字按钮留空间 */
.char-ops-row .op-btn:not(.primary):not(.kg) { flex: 0 0 42px; padding: 9px 0; }
.char-ops-row .op-btn.primary, .char-ops-row .op-btn.kg { flex: 1.4; }
.char-ops-row .op-btn.primary {
  background: var(--green); color: #0a0d10; border-color: var(--green); font-weight: 600;
}
.char-ops-row .op-btn.primary:hover { background: var(--green-hi); border-color: var(--green-hi); color: #0a0d10; }
.char-ops-row .op-btn.kg {
  background: rgba(34,197,94,.12); color: var(--green); border-color: rgba(34,197,94,.4);
}
.char-ops-row .op-btn.kg:hover { background: rgba(34,197,94,.22); color: var(--green); border-color: rgba(34,197,94,.6); }
.char-ops-row .op-btn.kg.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
/* 卡片内普通图标按钮 hover 保持可见 */
.char-ops-row .op-btn:not(.primary):not(.kg):hover { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--border-2); }
.char-train-badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: 10px; padding: 2px 7px;
  border-radius: 8px; font-weight: 600;
}
.char-train-badge.pending { background: rgba(250,195,52,.15); color: #fac334; }
.char-train-badge.done { background: rgba(34,197,94,.15); color: var(--green); }

/* 产品筛选栏 */
.product-filter-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:12px 0 16px; padding:10px 14px; background:var(--bg-2); border-radius:10px; }
.pf-label { font-size:12px; color:var(--text-2); display:flex; align-items:center; gap:4px; }
.pf-chip { padding:5px 14px; border-radius:16px; border:1px solid var(--border); background:var(--bg); font-size:12px; cursor:pointer; transition:all .2s; color:var(--text-2); }
.pf-chip:hover { border-color:var(--primary); color:var(--primary); }
.pf-chip.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* 产品管理 */
.product-list { display:flex; flex-direction:column; gap:10px; }
.product-item { display:flex; justify-content:space-between; align-items:flex-start; padding:14px; background:var(--bg-2); border-radius:10px; border:1px solid var(--border); gap:10px; }
.prod-icon-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(118,185,0,.15); color: var(--green-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; overflow: hidden;
}
.prod-icon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { flex:1; min-width:0; }
.product-name { font-size:15px; font-weight:600; color:var(--text); margin-bottom:4px; }
.product-cat { font-size:11px; color:var(--primary); background:rgba(24,144,255,.1); padding:2px 8px; border-radius:10px; margin-left:6px; }
.product-actions { display:flex; gap:6px; flex-shrink:0; }
.op-btn.sm { padding:4px 10px; font-size:12px; }


/* 难度选择器 */
.char-difficulty-picker { display: flex; align-items: center; gap: 6px; height: 42px; }
.char-difficulty-picker i { font-size: 22px; cursor: pointer; transition: transform .1s; }
.char-difficulty-picker i:hover { transform: scale(1.15); }
.char-difficulty-picker i.on { color: #ffb800; }
.char-difficulty-picker i.off { color: var(--border-2); }
.cdp-text { font-size: 13px; color: var(--text-2); margin-left: 4px; }

/* 训练模态框 - 文件选择 */
.train-file-trigger { width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.train-file-trigger i.ri-folder-2-line { color: var(--green); font-size: 18px; }
.train-file-trigger:hover { border-color: var(--green); }
.train-selected-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ts-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  border-radius: 999px; font-size: 12px; color: var(--text);
}
.ts-chip i.ri-close-line { cursor: pointer; color: var(--text-3); font-size: 14px; }
.ts-chip i.ri-close-line:hover { color: #ff8a8e; }

/* 云盘多选弹窗 */
.drive-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drive-pane { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.drive-pane-head { padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.drive-pane-body { max-height: 320px; overflow-y: auto; padding: 6px; }
.drive-file-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 7px; cursor: pointer; font-size: 12.5px; color: var(--text);
}
.drive-file-row:hover { background: rgba(255,255,255,.05); }
.drive-file-row.sel { background: rgba(34,197,94,.08); color: var(--green); }
.drive-file-row input[type=checkbox] { accent-color: var(--green); }
.drive-file-row i.ri-file-text-line { color: var(--green); font-size: 16px; }
.drive-file-row .df-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-file-row .df-size { font-size: 11px; color: var(--text-3); }
.drive-file-row i.ri-close-line { color: var(--text-3); cursor: pointer; font-size: 16px; }
.drive-file-row i.ri-close-line:hover { color: #ff8a8e; }
/* 训练资料选择器 — 面包屑 + 文件夹行 */
.train-crumb {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 8px 14px; font-size: 12.5px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--border);
}
.train-crumb .crumb-item {
  color: var(--text-3); cursor: pointer; padding: 2px 6px; border-radius: 5px; transition: .12s;
}
.train-crumb .crumb-item:hover { color: var(--green); background: rgba(118,185,0,.1); }
.train-crumb .crumb-item.on { color: var(--text); cursor: default; background: transparent; }
.drive-file-row.folder-row {
  color: var(--text-2);
}
.drive-file-row.folder-row:hover { background: rgba(248,199,87,.08); color: #f8c757; }
.drive-file-row .df-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 模拟训练页面 */
.sim-train-layout { display: grid; grid-template-columns: 1fr 380px; gap: 16px; height: calc(100vh - 160px); }
.sim-chat-panel { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sim-chat-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.sim-chat-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sim-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sim-msg { max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; }
.sim-msg.user { align-self: flex-end; background: var(--green); color: #0a0d10; }
.sim-msg.assistant { align-self: flex-start; background: var(--bg-2); color: var(--text); }
.sim-msg.system { align-self: center; background: transparent; color: var(--text-3); font-size: 12px; }
.sim-chat-input { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.sim-chat-input textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 12px; }
.sim-kg-panel { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sim-kg-title { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sim-kg-chart { flex: 1; min-height: 300px; }
.sim-kg-insights { padding: 12px 16px; border-top: 1px solid var(--border); max-height: 180px; overflow-y: auto; }
.sim-kg-insights li { font-size: 12px; color: var(--text-2); margin-bottom: 6px; padding-left: 14px; position: relative; }
.sim-kg-insights li::before { content: '•'; color: var(--green); position: absolute; left: 0; }
.sim-role-select { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sim-role-card { padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.sim-role-card.active { border-color: var(--green); }
.sim-role-card img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* 评分报告 */
.score-overall { text-align: center; padding: 20px; }
.score-big { font-size: 48px; font-weight: 700; color: var(--green); }
.score-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.score-dim-item { background: var(--bg-2); border-radius: 10px; padding: 12px; text-align: center; }
.score-dim-item .sd-score { font-size: 24px; font-weight: 700; color: var(--green); }
.score-dim-item .sd-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* 步骤指示器 */
.char-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.char-step { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); }
.char-step span {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text-3);
}
.char-step.active span { background: var(--green); color: #0a0d10; border-color: var(--green); }
.char-step.active { color: var(--text); }
.char-step.done span { background: var(--green); color: #0a0d10; border-color: var(--green); }
.char-step.done { color: var(--green); }
.char-step-line { flex: 1; height: 2px; background: var(--border-2); }
.char-step-line.done { background: var(--green); }

/* 生成中动画 */
.char-gen-step { min-height: 320px; }
.char-gen-center { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0; }

/* ===== AI陪练 ===== */
.sp-root { display: flex; flex-direction: column; height: calc(100vh - 140px); background: var(--bg); border-radius: 12px; overflow: hidden; }
.sp-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.sp-customer { display: flex; align-items: center; gap: 12px; }
.sp-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); }
.sp-customer-name { font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 10px; }
.sp-customer-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sp-archive-btn { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: rgba(24,144,255,.1); color: var(--primary); border: none; cursor: pointer; }
.sp-end-btn { display: flex; align-items: center; gap: 5px; padding: 8px 18px; background: #ef4444; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 500; }
.sp-end-btn:hover { background: #dc2626; }

.sp-taskbar { display: flex; align-items: center; padding: 12px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
.sp-task-item { flex: 1; text-align: center; }
.sp-task-value { font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 2px; }
.sp-task-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.sp-task-divider { width: 1px; height: 32px; background: var(--border); }

.sp-bg-card { margin: 12px 20px; padding: 14px 16px; background: linear-gradient(135deg, rgba(24,144,255,.08), rgba(24,144,255,.02)); border-radius: 10px; border: 1px solid rgba(24,144,255,.15); }
.sp-bg-title { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.sp-bg-content { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.sp-chat-area { flex: 1; overflow-y: auto; padding: 16px 20px; }
.sp-ready { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-3); }
.sp-ready-icon { font-size: 56px; margin-bottom: 12px; opacity: .5; }
.sp-ready-text { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.sp-ready-hint { font-size: 13px; }
.sp-bubble-wrap { display: flex; margin-bottom: 14px; }
.sp-bubble-wrap.user { justify-content: flex-end; }
.sp-bubble-wrap.assistant { justify-content: flex-start; }
.sp-bubble { max-width: 70%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.6; word-break: break-word; }
.sp-bubble-wrap.user .sp-bubble { background: var(--green); color: #0a0d10; border-bottom-right-radius: 4px; }
.sp-bubble-wrap.assistant .sp-bubble { background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.sp-bubble-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; align-self: center; }
.sp-bubble-avatar.left { margin-right: 10px; }
.sp-bubble-avatar.right { margin-left: 10px; }
.sp-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--text-2); font-size: 14px; font-weight: 600; border: 1px solid var(--border); }
.sp-bubble-wrap.user .sp-avatar-fallback { background: var(--green); color: #0a0d10; border-color: var(--green); }
.sp-bubble-wrap.assistant .sp-avatar-fallback { border-color: var(--green); }

.sp-input-area { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; background: var(--bg-2); border-top: 1px solid var(--border); }
.sp-input { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 14px; outline: none; }
.sp-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(118,185,0,.1); }
.sp-input-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.sp-send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #0a0d10; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.sp-send-btn:hover { background: var(--green-hi); }
.sp-send-btn:disabled { background: var(--border); color: var(--text-3); cursor: not-allowed; }
.sp-voice-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; transition: .2s; }
.sp-voice-btn:hover:not(:disabled) { color: var(--green); border-color: var(--green); }
.sp-voice-btn.active { background: rgba(239,68,68,.15); border-color: #ef4444; color: #ef4444; animation: pulse 1s infinite; }
.sp-voice-btn:disabled { opacity: .4; cursor: not-allowed; }
.sim-voice-time { font-size: 10px; font-weight: 600; }
.sp-footer-tip { text-align: center; font-size: 11px; color: var(--text-3); padding: 6px; background: var(--bg-2); }

/* ===== AI 陪练三栏布局 ===== */
.sim-page { height: calc(100vh - 110px); }
.sim-layout { display: grid; grid-template-columns: 260px 1fr 360px; gap: 12px; height: 100%; }
.sim-left, .sim-center, .sim-right { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

/* 左栏 */
.sim-left-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.sim-left-head i { color: var(--green); }
.sim-left-count { margin-left: auto; background: var(--green-dim); color: var(--green-hi); font-size: 12px; padding: 1px 8px; border-radius: 10px; }
.sim-left-body { flex: 1; overflow-y: auto; padding: 8px; }
.sim-prod-group { margin-bottom: 10px; }
.sim-prod-name { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); padding: 6px 8px; font-weight: 600; }
.sim-prod-name i { color: #f8c757; }
.sim-prod-cnt { margin-left: auto; font-size: 11px; background: var(--bg-2); padding: 0 6px; border-radius: 8px; color: var(--text-2); }
.sim-char-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 9px; cursor: pointer; transition: .12s; border: 1px solid transparent; }
.sim-char-item:hover { background: var(--bg-2); }
.sim-char-item.active { background: rgba(118,185,0,.1); border-color: var(--green); }
.sim-char-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-2); flex-shrink: 0; }
.sim-char-item.active .sim-char-avatar { border-color: var(--green); }
.sim-char-info { min-width: 0; flex: 1; }
.sim-char-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-char-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-char-live { color: #ef4444; font-size: 14px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* 中栏 */
.sim-topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sim-topbar-left { display: flex; align-items: center; gap: 12px; }
.sim-topbar-name { font-size: 15px; font-weight: 600; color: var(--text); }
.sim-topbar-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sim-topbar-right { display: flex; align-items: center; gap: 14px; }
.sim-timer { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; }
.sim-timer i { color: var(--green); font-size: 16px; }
.sim-timer-val { font-family: 'SF Mono', monospace; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.sim-turn-badge { font-size: 12px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px; }
.sim-timer-warn { border-color: #f59e0b !important; }
.sim-timer-warn i, .sim-timer-warn .sim-timer-val { color: #f59e0b !important; }
.sim-timer-danger { border-color: #ef4444 !important; animation: pulse 1s infinite; }
.sim-timer-danger i, .sim-timer-danger .sim-timer-val { color: #ef4444 !important; }

/* 右栏 */
.sim-stats-card { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.sim-stats-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.sim-stats-title i { color: var(--green); }
.sim-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sim-stat { text-align: center; background: var(--bg-2); border-radius: 8px; padding: 10px 4px; }
.sim-stat-val { font-size: 20px; font-weight: 700; color: var(--green-hi); }
.sim-stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.sim-tabs { display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sim-tab { flex: 1; padding: 11px 6px; text-align: center; font-size: 12.5px; color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; transition: .12s; border-bottom: 2px solid transparent; }
.sim-tab:hover { color: var(--text); background: var(--bg-2); }
.sim-tab.on { color: var(--green); border-bottom-color: var(--green); background: rgba(118,185,0,.05); }

.sim-tab-body { flex: 1; overflow-y: auto; padding: 14px; }
.sim-tab-content { font-size: 13px; }
.sim-empty { text-align: center; color: var(--text-3); padding: 30px 10px; font-size: 12.5px; }

/* 客户黑盒资料卡 */
.sim-profile-card { text-align: center; margin-bottom: 16px; }
.sim-profile-avatar { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 10px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--green); }
.sim-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sim-profile-avatar span { font-size: 24px; font-weight: 700; color: var(--green); }
.sim-profile-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

/* ===== 工具区控件统一高度 (筛选条 .filter-bar / 面板头 .ph-tools / 分页器 .pager: 下拉/日期/输入框/按钮均 34px) ===== */
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .kyc-select.sm .ks-trigger,
.ph-tools .kyc-select.sm .ks-trigger,
.pager .kyc-select.sm .ks-trigger,
.filter-bar .kd-trigger,
.ph-tools .kd-trigger {
  height: 34px; padding: 0 11px; border-radius: 7px; box-sizing: border-box;
}
.filter-bar .kd-value, .ph-tools .kd-value { font-size: 12.5px; }
.filter-bar .op-btn, .ph-tools .op-btn, .pager .op-btn,
.filter-bar .btn, .ph-tools .btn, .pager .btn {
  height: 34px; margin: 0; padding: 0 14px; border-radius: 7px; font-size: 12.5px;
}

/* ===== 词元用量日历热力图 (GitHub 风格, 纯 CSS 不依赖图表库) ===== */
.heatmap-wrap { width: 100%; padding: 6px 0 2px; overflow: hidden; }
.hm-month-row { display: flex; align-items: flex-end; height: 16px; gap: 3px; }
.hm-gutter { flex: 0 0 20px; margin-right: 4px; }
.hm-month { flex: 0 0 14px; font-size: 10px; color: var(--text-3); white-space: nowrap; line-height: 14px; overflow: hidden; text-overflow: clip; }
.hm-body { display: flex; align-items: flex-start; margin-top: 2px; }
.hm-weekdays { flex: 0 0 20px; display: flex; flex-direction: column; margin-right: 4px; }
.hm-weekdays span { height: 14px; line-height: 14px; margin-bottom: 3px; font-size: 10px; color: var(--text-3); }
.hm-weeks { display: flex; gap: 3px; flex-shrink: 0; }
.hm-week { display: flex; flex-direction: column; gap: 3px; }
.hm-cell { width: 14px; height: 14px; border-radius: 2px; box-sizing: border-box; background: var(--bg-2); border: 1px solid var(--border); flex-shrink: 0; }
.hm-cell.out { background: transparent; border-color: transparent; }
.hm-cell.lv1 { background: rgba(118,185,0,.28); border-color: transparent; }
.hm-cell.lv2 { background: rgba(118,185,0,.5); border-color: transparent; }
.hm-cell.lv3 { background: rgba(118,185,0,.74); border-color: transparent; }
.hm-cell.lv4 { background: var(--green); border-color: transparent; }
.hm-legend { display: flex; align-items: center; gap: 5px; margin-top: 12px; margin-left: 30px; font-size: 11px; color: var(--text-3); }
.hm-legend .hm-cell { display: inline-block; }
.hm-legend-tip { margin-left: 14px; color: var(--text-3); }

/* 紧凑行内图例 (默认放区块标题右侧, 移到图表下方时自动 full-width 换行) */
.hm-legend-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.hm-legend-inline .hm-cell { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin: 0; flex: 0 0 auto; }
.hm-legend-hint { margin-left: 8px; color: var(--text-4); }
.hm-legend-block { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); margin-top: 6px; margin-left: 22px; flex-wrap: wrap; line-height: 1.4; }
.hm-legend-block .hm-cell { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin: 0; flex: 0 0 auto; }
.hm-legend-block .hm-legend-hint { margin-left: 10px; white-space: normal; }

/* 情绪状态 */
.sim-emotion-section { margin-top: 8px; }
.sim-emotion-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.sim-emotion-title i { color: var(--green); }
.sim-mood-tag { margin-left: auto; font-size: 11px; padding: 2px 10px; border-radius: 10px; background: var(--bg-2); color: var(--text-2); }
.mood-happy { background: rgba(118,185,0,.15); color: #76b900; }
.mood-interested { background: rgba(96,165,250,.15); color: #60a5fa; }
.mood-neutral { background: var(--bg-2); color: var(--text-3); }
.mood-skeptical { background: rgba(248,199,87,.15); color: #f8c757; }
.mood-impatient { background: rgba(251,146,60,.15); color: #fb923c; }
.mood-angry { background: rgba(239,68,68,.15); color: #ef4444; }
.mood-confused { background: rgba(168,85,247,.15); color: #a855f7; }
.sim-emotion-radar { width: 100%; height: 200px; }
.sim-emotion-sliders { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.sim-emo-slider label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.sim-emo-slider label b { color: var(--green-hi); font-weight: 700; }
.sim-emo-slider .cp-slider { width: 100%; height: 6px; }

/* 向量化资料片段 */
.sim-mat-file-group { margin-bottom: 12px; }
.sim-mat-chunks { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.sim-mat-chunk { font-size: 12px; color: var(--text-2); line-height: 1.5; padding: 8px 10px; background: var(--bg); border-radius: 6px; border-left: 2px solid var(--green); max-height: 80px; overflow-y: auto; }

/* 客户画像 */
.sim-kg-item { background: var(--bg-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; border-left: 3px solid var(--green); }
.sim-kg-label { font-size: 11px; color: var(--green-hi); font-weight: 600; margin-bottom: 4px; }
.sim-kg-value { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

/* 产品资料 */
.sim-mat-search { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.sim-mat-search i { color: var(--text-3); }
.sim-mat-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 13px; }
.sim-mat-product { margin-bottom: 14px; }
.sim-mat-prod-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sim-mat-prod-desc { font-size: 12px; color: var(--text-3); margin-bottom: 10px; line-height: 1.5; }
.sim-mat-section { margin-bottom: 12px; }
.sim-mat-sec-title { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.sim-mat-sec-title i { color: var(--green); }
.sim-mat-sec-body { font-size: 12.5px; color: var(--text-2); line-height: 1.6; padding: 8px 10px; background: var(--bg-2); border-radius: 6px; }
.sim-mat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-mat-chip { font-size: 11.5px; padding: 3px 10px; background: var(--green-dim); color: var(--green-hi); border-radius: 10px; }
.sim-mat-files { margin-top: 14px; }
.sim-mat-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; background: var(--bg-2); margin-bottom: 6px; }
.sim-mat-file i { color: var(--text-3); font-size: 15px; flex-shrink: 0; }
.sim-mat-fname { flex: 1; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-mat-fsize { font-size: 11px; color: var(--text-3); flex-shrink: 0; }

/* 评估报告 */
.sim-report-item { background: var(--bg-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: .12s; border: 1px solid transparent; }
.sim-report-item:hover { border-color: var(--green); background: rgba(118,185,0,.05); }
.sim-report-top { display: flex; align-items: center; justify-content: space-between; }
.sim-report-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sim-report-score { font-size: 14px; font-weight: 700; color: var(--green-hi); }
.sim-report-meta { display: flex; gap: 14px; margin-top: 6px; font-size: 11px; color: var(--text-3); }
.sim-report-detail { margin-top: 14px; padding: 14px; background: var(--bg-2); border-radius: 10px; border: 1px solid var(--border); }
.sim-report-detail-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.sim-report-detail-head i { cursor: pointer; color: var(--text-3); }
.sim-report-overall { text-align: center; margin-bottom: 14px; }
.sim-report-score-big { font-size: 36px; font-weight: 800; color: var(--green-hi); }
.sim-report-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.sim-report-dim { text-align: center; background: var(--bg); border-radius: 6px; padding: 8px 4px; }
.srd-score { font-size: 16px; font-weight: 700; color: var(--green); }
.srd-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.sim-report-block { margin-bottom: 10px; font-size: 12.5px; line-height: 1.6; }
.sim-report-block b { color: var(--text); display: block; margin-bottom: 3px; }
.sim-report-block div { color: var(--text-2); white-space: pre-wrap; }
.sim-voice-analysis { margin-top: 12px; padding: 10px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); }
.sim-va-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sim-va-title i { color: var(--green); }
.sim-va-rate { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.sim-va-rate b { color: var(--green-hi); font-size: 14px; }

/* 客户全景视图 */
.sp-archive-header { display: flex; align-items: center; gap: 14px; padding: 20px; background: linear-gradient(135deg, rgba(24,144,255,.12), rgba(24,144,255,.02)); }
.sp-archive-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.sp-archive-name { font-size: 18px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-archive-tag { font-size: 12px; background: rgba(24,144,255,.15); color: var(--primary); padding: 2px 10px; border-radius: 10px; font-weight: normal; }
.sp-archive-age { font-size: 14px; color: var(--text-2); font-weight: normal; }
.sp-archive-section { padding: 16px 20px; }
.sp-archive-sec-title { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 12px; padding-left: 8px; border-left: 3px solid var(--primary); }
.sp-archive-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sp-archive-row span:first-child { color: var(--text-3); }
.sp-archive-row span:last-child { color: var(--text); font-weight: 500; text-align: right; max-width: 60%; }

/* 知识图谱弹窗 */
.sp-kg-chart { width: 100%; height: 520px; }
.sp-kg-tip { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.sp-kg-node-name { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.sp-kg-node-cat { font-size: 13px; color: var(--primary); margin-bottom: 8px; }
.sp-kg-node-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.sp-kg-node-meta { font-size: 13px; color: var(--green); font-weight: 600; }

/* 页面通用头部 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head .ph-title { font-size: 20px; font-weight: 700; color: var(--text); }
.page-head .ph-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.empty-state { text-align: center; color: var(--text-3); padding: 60px 20px; font-size: 14px; }

/* 训练模板卡片 */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tpl-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.tpl-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.tpl-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tpl-name { font-size: 15px; font-weight: 600; color: var(--text); }
.tpl-ops { display: flex; gap: 6px; }
.tpl-ops .op-btn { padding: 4px 8px; }
.tpl-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.5; margin-bottom: 12px; min-height: 18px; }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-tag { font-size: 11.5px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }

.btn-lg { padding: 10px 28px; font-size: 15px; }


@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 环形进度 */
.char-spinner-ring {
  position: relative; width: 140px; height: 140px; margin-bottom: 20px;
}
.char-spinner-svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.char-spinner-bg {
  fill: none; stroke: var(--border-2); stroke-width: 6;
}
.char-spinner-fg {
  fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.char-spinner-inner {
  position: absolute; top: 0; left: 0; width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.char-spinner-inner i { font-size: 40px; color: var(--green); animation: spin 1.2s linear infinite; }

.char-gen-text { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.char-gen-text.success { color: var(--green); }
.char-gen-text.error { color: #ff6b6b; }
.char-gen-sub { font-size: 12.5px; color: var(--text-3); margin-top: 10px; text-align: center; line-height: 1.6; }
.char-gen-warn { font-size: 12px; color: #ffa940; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.char-gen-warn i { font-size: 14px; }

/* 进度条 */
.char-progress-wrap {
  width: 100%; max-width: 320px; height: 8px; background: var(--border);
  border-radius: 999px; overflow: hidden; margin-bottom: 10px;
}
.char-progress-bar {
  height: 100%; background: linear-gradient(90deg, #5a9400, var(--green));
  border-radius: 999px; transition: width 1s linear;
}
.char-progress-info {
  display: flex; justify-content: space-between; width: 100%; max-width: 320px;
  font-size: 12.5px; color: var(--text-3);
}
.char-progress-info b { color: var(--green); font-weight: 700; }

/* 成功动画 */
.char-success-ring {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  animation: pop .4s cubic-bezier(.34,1.56,.64,1);
}
.char-success-ring i { font-size: 40px; color: #0a0d10; }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.char-error-ring {
  width: 72px; height: 72px; border-radius: 50%; background: #ff6b6b;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  animation: pop .4s cubic-bezier(.34,1.56,.64,1);
}
.char-error-ring i { font-size: 40px; color: #fff; }

.char-gen-preview {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  margin-top: 16px; border: 3px solid var(--green);
  animation: pop .4s cubic-bezier(.34,1.56,.64,1);
}

/* 角色详情 */
.char-detail-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.char-detail-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-2); }
.char-detail-info { flex: 1; }
.char-detail-name { font-size: 18px; font-weight: 700; color: var(--text); }
.char-detail-identity { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.char-detail-status { margin-top: 6px; }
.badge-on { background: var(--green); color: #0a0d10; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-off { background: #555; color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }

.char-detail-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-2); }
.char-detail-row label { width: 80px; color: var(--text-3); font-size: 13px; flex-shrink: 0; }
.char-detail-row > div { flex: 1; color: var(--text); font-size: 13.5px; line-height: 1.6; }

.char-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.char-stat-card { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 14px; text-align: center; }
.cs-num { font-size: 22px; font-weight: 700; color: var(--green); }
.cs-num.sm { font-size: 12px; color: var(--text-2); font-weight: 500; }
.cs-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.char-detail-section { margin-top: 18px; }
.cds-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.cds-title i { color: var(--green); }
.cds-empty { font-size: 13px; color: var(--text-3); padding: 12px; text-align: center; background: var(--bg-2); border-radius: 8px; }

/* spin 动画 (通用) */
.spin { animation: spin 1s linear infinite; display: inline-block; }


/* ====== 模拟陪练：订阅/资料放大相关 ====== */
/* 角色卡订阅状态 */
.sim-char-item.subscribed { border-left: 2px solid var(--green); }
.sim-char-sub-mark { color: var(--green); font-size: 16px; margin-left: 4px; }

/* 客户全景视图：订阅按钮区 */
.sp-archive-actions { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.sp-archive-sub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: .15s; }
.sp-archive-sub-btn:disabled { opacity: .55; cursor: not-allowed; }
.sp-archive-sub-btn.primary { background: var(--green); color: #0a0d10; }
.sp-archive-sub-btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.sp-archive-sub-btn.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }
.sp-archive-sub-btn.ghost:hover:not(:disabled) { background: var(--bg-2); }
.sp-archive-sub-hint { display: flex; align-items: center; gap: 8px; color: var(--green-hi); font-size: 13px; font-weight: 600; }
.sp-archive-sub-hint i { color: var(--green); font-size: 18px; }
.sp-archive-sub-actions { display: flex; gap: 10px; }

/* 产品资料：放大按钮 */
.sim-mat-zoom-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; background: rgba(118,185,0,.12); color: var(--green-hi); border: none; cursor: pointer; font-size: 11px; }
.sim-mat-zoom-btn:hover { background: rgba(118,185,0,.2); }

/* 窄边栏 chunk 预览 */
.sim-mat-chunk { cursor: pointer; transition: .15s; }
.sim-mat-chunk:hover { background: var(--bg-2) !important; border-left-color: var(--primary) !important; }
.sim-mat-chunk-pre { margin: 0; font-family: inherit; font-size: 12px; color: var(--text-2); line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 80px; overflow: hidden; }
.sim-mat-more { font-size: 11.5px; color: var(--primary); cursor: pointer; padding: 6px 8px; text-align: center; background: rgba(24,144,255,.06); border-radius: 6px; }
.sim-mat-more:hover { background: rgba(24,144,255,.12); }

/* 产品资料放大模态框 */
.sp-material-modal-panel { max-width: 920px; height: 80vh; display: flex; flex-direction: column; }
.sp-material-modal-panel .modal-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.sp-material-meta { display: flex; align-items: center; gap: 12px; padding: 8px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.sp-material-chip { font-size: 12px; color: var(--green-hi); background: var(--green-dim); padding: 3px 10px; border-radius: 10px; }
.sp-material-tip { font-size: 12px; color: var(--text-3); }
.sp-material-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; }
.sp-material-chunk { background: var(--bg-2); border-radius: 8px; padding: 12px 14px; border-left: 3px solid var(--green); }
.sp-material-chunk-head { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; }
.sp-material-chunk-pre { margin: 0; font-family: inherit; font-size: 13px; color: var(--text); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

/* ====== 模拟陪练：语音 TTS / 录音动画 ====== */
.sp-tts-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; transition: .15s; }
.sp-tts-btn:hover { background: var(--bg); color: var(--text); }
.sp-tts-btn.active { background: var(--green-dim); color: var(--green-hi); border-color: var(--green); }
.sp-voice-btn.listening { background: #ef4444; color: #fff; border-color: #ef4444; animation: simVoicePulse 1.4s ease-in-out infinite; }
@keyframes simVoicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* 中栏：选中角色但未订阅的待开始态 */
.sp-ready-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); margin-bottom: 14px; }
.sp-ready-btn { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; font-size: 14px; }
.sp-ready-btn.big-start { padding: 14px 36px; font-size: 16px; font-weight: 700; background: var(--green); color: #0a0d10; box-shadow: 0 4px 18px rgba(107,211,139,.45); border: none; border-radius: 12px; }
.sp-ready-btn.big-start:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(107,211,139,.55); }

/* 右栏画像：完整画像 / 订阅操作 */
.sim-profile-actions { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sim-profile-btn { flex: 1; min-width: 110px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: none; white-space: nowrap; }
.sim-profile-btn:disabled { opacity: .55; cursor: not-allowed; }
.sim-profile-btn.primary { background: var(--green); color: #0a0d10; }
.sim-profile-btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.sim-profile-btn.primary.big { flex: 1.4; padding: 10px 14px; font-size: 13.5px; box-shadow: 0 2px 10px rgba(107,211,139,.35); }
.sim-profile-btn.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }
.sim-profile-btn.ghost:hover { background: var(--bg-2); }
.sim-profile-subbed { display: inline-flex; align-items: center; gap: 6px; color: var(--green-hi); font-size: 12.5px; font-weight: 600; padding: 8px 12px; }
.sim-profile-subbed i { color: var(--green); font-size: 16px; }

/* 聊天气泡头像 fallback 颜色区分 */
.sp-avatar-char { background: linear-gradient(135deg, #1d2b3a, #2a3f52); color: #8fc9ff; border: 1.5px solid rgba(143,201,255,0.4); }
.sp-avatar-user { background: linear-gradient(135deg, #5a8a00, #76b900); color: #0a0d10; border: 1.5px solid rgba(118,185,0,0.6); }

/* 输入区用户头像入口 */
.sp-input-user-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1.5px solid rgba(118,185,0,0.5); transition: all .2s; }
.sp-input-user-avatar:hover { border-color: var(--green); box-shadow: 0 0 8px rgba(118,185,0,0.3); }
.sp-input-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp-input-user-fallback { background: linear-gradient(135deg, #5a8a00, #76b900); color: #0a0d10; font-size: 14px; font-weight: 600; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* 计时器暂停态 */
.sim-timer-paused { opacity: 0.7; }
.sim-timer-paused .sim-timer-hint { font-size: 11px; color: var(--text-2); margin-left: 6px; white-space: nowrap; }

/* ===== 产品资料卡片化样式（新） ===== */
.sim-mat-product { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.sim-mat-product-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sim-mat-prod-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(118,185,0,.15); color: var(--green-hi); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; font-weight: 700; overflow: hidden; }
.sim-mat-prod-icon img { width: 100%; height: 100%; object-fit: cover; }
/* 产品图标编辑器 */
.prod-icon-editor { display: flex; gap: 14px; align-items: center; }
.prod-icon-preview {
  width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; position: relative;
  background: rgba(118,185,0,.15); color: var(--green-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; overflow: hidden;
}
.prod-icon-preview img { width: 100%; height: 100%; object-fit: cover; }
.prod-icon-loading {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.prod-icon-loading i { animation: prodIconSpin 1s linear infinite; }
@keyframes prodIconSpin { to { transform: rotate(360deg); } }
.prod-icon-ops { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.prod-icon-ops .pf-hint { margin-top: 0; }
.prod-icon-ops .op-btn { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.prod-icon-ops .op-btn.disabled { opacity: .6; pointer-events: none; }
.sim-mat-prod-info { flex: 1; min-width: 0; }
.sim-mat-prod-name { font-size: 15px; font-weight: 700; color: var(--text); }
.sim-mat-prod-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }
.sim-mat-meta { display: flex; flex-direction: column; gap: 10px; }

.sim-mat-chunk-list { display: flex; flex-direction: column; gap: 8px; }
.sim-mat-chunk-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sim-mat-chunk-card:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(118,185,0,.12); }
.sim-mat-chunk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.sim-mat-chunk-head > i { color: var(--text-3); font-size: 14px; }
.sim-mat-chunk-file { flex: 1; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-mat-chunk-index { font-size: 10.5px; color: var(--text-3); background: var(--border); padding: 1px 7px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.sim-mat-chunk-body { font-size: 13px; color: var(--text); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.sim-mat-chunk-foot { margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.sim-mat-chunk-foot i { font-size: 13px; }
.sim-mat-hl { background: rgba(118,185,0,.35); color: #0a0d10; padding: 0 2px; border-radius: 2px; font-weight: 600; }
.sim-mat-count { font-size: 11.5px; color: var(--green-hi); font-weight: 600; }
.sim-mat-search { position: sticky; top: 0; z-index: 2; background: var(--card); border-bottom: 1px solid var(--border); }

/* ===== 模板卡 — 复用角色卡风格 ===== */
.tpl-card-v { background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: border-color .15s, box-shadow .15s; }
.tpl-card-v:hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.tpl-avatar { width: 84px; height: 84px; border-radius: 50%; background: rgba(118,185,0,.12); border: 3px solid var(--border-2); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tpl-avatar i { font-size: 36px; color: var(--green-hi); }
.tpl-card-mid { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.tpl-knowledge-level { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 4px; padding-top: 4px; border-top: 1px dashed var(--border); }
.tpl-knowledge-level i { color: var(--text-3); font-size: 13px; }

/* ===== 订单到期提醒 ===== */
.od-warn-list { display: flex; flex-direction: column; gap: 10px; }
.od-warn-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); transition: border-color .15s; }
.od-warn-item:hover { border-color: var(--green); }
.od-warn-item.warn { border-color: rgba(250,195,52,.5); background: rgba(250,195,52,.06); }
.od-warn-item.expired { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.06); }
.od-warn-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: rgba(109,182,255,.15); color: #6db6ff; }
.od-warn-item.warn .od-warn-icon { background: rgba(250,195,52,.15); color: #fac334; }
.od-warn-item.expired .od-warn-icon { background: rgba(239,68,68,.15); color: #ef4444; }
.od-warn-info { flex: 1; min-width: 0; }
.od-warn-title { font-size: 14px; font-weight: 600; color: var(--text); }
.od-warn-meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.od-warn-right { flex-shrink: 0; }
.od-warn-tag { font-size: 11.5px; padding: 3px 10px; border-radius: 10px; font-weight: 600; }
.od-warn-tag.ok { background: rgba(118,185,0,.15); color: var(--green-hi); }
.od-warn-tag.warn { background: rgba(250,195,52,.15); color: #fac334; }
.od-warn-tag.expired { background: rgba(239,68,68,.15); color: #ef4444; }
.od-warn-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ===== 分析报告卡片 ===== */
.ai-report-list { display: flex; flex-direction: column; gap: 12px; }
.ai-report-card { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); padding: 14px 16px; border-left: 3px solid #fac334; }
.ai-report-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--text-2); font-size: 13px; }
.ai-report-head b { color: var(--text); }
.ai-report-head i { color: #fac334; font-size: 16px; }
.ai-report-count { margin-left: auto; font-size: 11.5px; padding: 2px 10px; border-radius: 10px; background: rgba(250,195,52,.15); color: #fac334; font-weight: 600; }
.ai-report-body { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ===== 通用 data-table ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }

/* ========== 产品资料：文件卡片列表 ========== */
.sim-mat-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 4px 2px; }
.sim-mat-file-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sim-mat-file-card:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.sim-mat-file-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 22px; color: #fff; flex-shrink: 0; }
.sim-mat-file-icon.ext-pdf { background: linear-gradient(135deg,#e74c3c,#c0392b); }
.sim-mat-file-icon.ext-doc,.sim-mat-file-icon.ext-docx { background: linear-gradient(135deg,#2b579a,#1e3e72); }
.sim-mat-file-icon.ext-xls,.sim-mat-file-icon.ext-xlsx { background: linear-gradient(135deg,#217346,#185434); }
.sim-mat-file-icon.ext-ppt,.sim-mat-file-icon.ext-pptx { background: linear-gradient(135deg,#d2522c,#9c3d21); }
.sim-mat-file-icon.ext-zip,.sim-mat-file-icon.ext-rar,.sim-mat-file-icon.ext-7z { background: linear-gradient(135deg,#8e44ad,#5f2d79); }
.sim-mat-file-icon.ext-png,.sim-mat-file-icon.ext-jpg,.sim-mat-file-icon.ext-jpeg,.sim-mat-file-icon.ext-gif,.sim-mat-file-icon.ext-webp { background: linear-gradient(135deg,#16a085,#0e6d5b); }
.sim-mat-file-icon.ext-mp4,.sim-mat-file-icon.ext-mov { background: linear-gradient(135deg,#f39c12,#c07d0e); }
.sim-mat-file-icon.ext-mp3,.sim-mat-file-icon.ext-wav { background: linear-gradient(135deg,#e67e22,#b3611a); }
.sim-mat-file-icon.ext-txt,.sim-mat-file-icon.ext-md,.sim-mat-file-icon.ext-csv,.sim-mat-file-icon.ext-json,.sim-mat-file-icon.ext-html,.sim-mat-file-icon.ext-xml { background: linear-gradient(135deg,#3498db,#21618c); }
.sim-mat-file-icon.ext-file { background: linear-gradient(135deg,#636e72,#444a4d); }
.sim-mat-file-info { flex: 1; min-width: 0; }
.sim-mat-file-name { font-size: 14px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.sim-mat-file-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; gap: 4px; align-items: center; }
.sim-mat-file-meta .dot { opacity: .5; }
.sim-mat-file-act { color: var(--text-3); font-size: 16px; opacity: 0; transition: opacity .15s; }
.sim-mat-file-card:hover .sim-mat-file-act { opacity: 1; }

/* ========== 统一文件预览宽面板 ========== */
.sp-preview-panel { width: 92vw; max-width: 1400px; height: 88vh; max-height: 900px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.5); margin: 4vh auto; }
.sp-preview-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg-2); gap: 12px; flex-shrink: 0; }
.sp-preview-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.sp-preview-head-left i { font-size: 20px; color: var(--brand); }
.sp-preview-title { font-size: 15px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
.sp-preview-badge { font-size: 11px; padding: 2px 8px; background: rgba(107,211,139,.12); color: var(--brand); border-radius: 10px; font-weight: 600; letter-spacing: .5px; }
.sp-preview-head-act { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sp-zip-btn, .sp-download-btn, .sp-close-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-3); color: var(--text-2); font-size: 13px; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; font-family: inherit; }
.sp-zip-btn:hover, .sp-download-btn:hover { background: var(--bg-hover); color: var(--text-1); }
.sp-close-btn { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; font-size: 15px; }
.sp-close-btn:hover { background: #e74c3c; border-color: #e74c3c; color: #fff; }
.sp-preview-body { flex: 1; min-height: 0; position: relative; background: #0d1117; }
.sp-preview-frame { width: 100%; height: 100%; border: none; display: block; }
.sp-zip-body { display: flex; }
.sp-zip-list { width: 260px; border-right: 1px solid var(--border); background: var(--bg-2); display: flex; flex-direction: column; transition: width .2s; flex-shrink: 0; }
.sp-zip-list.collapsed { width: 0; overflow: hidden; border-right: none; }
.sp-zip-list-head { padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sp-zip-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.sp-zip-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); transition: background .1s; }
.sp-zip-item:hover { background: rgba(255,255,255,.05); }
.sp-zip-item.active { background: rgba(107,211,139,.15); color: var(--brand); }
.sp-zip-item.unsupported { opacity: .55; }
.sp-zip-item i { font-size: 16px; flex-shrink: 0; }
.sp-zip-item-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-zip-item-ext { font-size: 10px; padding: 1px 6px; background: var(--bg-3); border-radius: 4px; color: var(--text-3); font-weight: 600; letter-spacing: .5px; }
.sp-preview-frame-wrap { flex: 1; min-width: 0; position: relative; }

/* Office 降级 fallback */
.sp-office-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; text-align: center; }
.sp-office-fallback > i { font-size: 48px; color: #f39c12; opacity: .85; }
.sp-office-fallback p { color: var(--text-1); font-size: 15px; margin: 0; }
.sp-office-fallback .sp-office-fallback-sub { font-size: 12px; color: var(--text-3); }
.sp-download-big-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 8px; border: 1px solid var(--brand); background: transparent; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; margin-top: 8px; font-family: inherit; }
.sp-download-big-btn:hover { background: var(--brand); color: #111; }

/* ========== 排行榜 ========== */
.rank-podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding: 16px 0 24px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.pod-item { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; flex: 0 0 auto; min-width: 90px; }
.pod-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 3px solid transparent; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--text-3); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.pod-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pod-avatar.sm { width: 36px; height: 36px; font-size: 16px; border-width: 2px; }
.pod-item.first .pod-avatar { border-color: #ffd700; box-shadow: 0 0 18px rgba(255,215,0,.5); transform: scale(1.15); }
.pod-item.second .pod-avatar { border-color: #c0c0c0; }
.pod-item.third .pod-avatar { border-color: #cd7f32; }
.pod-name { font-size: 12.5px; font-weight: 600; color: var(--text-1); white-space: nowrap; max-width: 80px; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.pod-score { font-size: 18px; font-weight: 800; color: var(--green-hi); line-height: 1; }
.pod-score.sm { font-size: 14px; }
.pod-sub { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.pod-bar { width: 100%; border-radius: 4px 4px 0 0; margin-top: 8px; min-height: 28px; }
.pod-item.first .pod-bar { background: linear-gradient(180deg,#ffd700,#ff9500); min-height: 80px; }
.pod-item.second .pod-bar { background: linear-gradient(180deg,#c0c0c0,#8a8a8a); min-height: 66px; }
.pod-item.third .pod-bar { background: linear-gradient(180deg,#cd7f32,#9e5f22); min-height: 56px; }
.pod-item.fourth { flex-direction: row; gap: 10px; padding: 6px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; align-items: center; min-width: 200px; }
.pod-item.fourth .pod-num { font-size: 14px; font-weight: 700; color: var(--text-3); }
.pod-item.fourth .pod-meta { flex: 1; min-width: 0; }
.pod-item.fourth .pod-name { text-align: left; font-size: 13px; }

.pod-crown, .pod-medal { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-size: 18px; }
.pod-crown { color: #ffd700; top: -14px; font-size: 22px; filter: drop-shadow(0 0 6px rgba(255,215,0,.7)); }
.pod-medal { color: #c0c0c0; top: -12px; font-size: 16px; }
.pod-item.third .pod-medal { color: #cd7f32; }

.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-row { display: grid; grid-template-columns: 36px 36px minmax(0, 140px) 70px 1fr 60px 50px; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; transition: background .1s; font-size: 13px; }
.rank-row:hover { background: var(--bg-2); }
.rank-row.top3 { background: rgba(107,211,139,.06); border-left: 3px solid var(--brand); }
.rank-num { font-size: 14px; font-weight: 700; color: var(--text-3); text-align: center; }
.rank-row.top3 .rank-num { color: var(--brand); }
.rank-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 14px; color: var(--text-3); }
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rank-name { font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-role { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; text-align: center; }
.rank-role.owner { background: rgba(255,204,102,.12); color: #ffcc66; }
.rank-role.admin { background: rgba(109,182,255,.12); color: #6db6ff; }
.rank-role.member { background: var(--bg-3); color: var(--text-3); }
.rank-score-bar { height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.rank-score-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#6db6ff,#6bd38b); transition: width .4s; }
.rank-score-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rank-sessions { color: var(--text-3); font-size: 12px; text-align: right; }

/* ========== 订单到期浮窗 ========== */
.od-float-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; max-height: calc(100vh - 60px); }
.od-float-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: linear-gradient(135deg,#2d3748,#1a202c); border: 1px solid var(--border); border-radius: 12px; color: var(--text-1); font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.4); margin-top: 8px; transition: transform .15s; }
.od-float-toggle:hover { transform: translateY(-1px); }
.od-float-toggle i:first-child { color: #f59e0b; font-size: 16px; }
.od-float-count { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; min-width: 18px; text-align: center; }
.od-float-list { width: 340px; max-height: calc(100vh - 160px); overflow-y: auto; background: #171923; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 14px; margin-bottom: 4px; }
.od-float-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); gap: 0 12px; }
.od-float-head b { color: var(--text-1); font-size: 14px; }
.od-float-head .pts-sm { margin-left: 2px; }
.od-float-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; transition: border-color .15s; }
.od-float-card:last-child { margin-bottom: 0; }
.od-float-card.warn { border-color: rgba(245,158,11,.4); }
.od-float-card.expired { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.06); }
.od-fc-top { display: flex; gap: 10px; align-items: flex-start; }
.od-fc-ico { font-size: 18px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.od-float-card.warn .od-fc-ico { color: #f59e0b; }
.od-float-card.expired .od-fc-ico { color: #ef4444; }
.od-fc-title { font-size: 13px; font-weight: 600; color: var(--text-1); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-fc-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.od-fc-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.od-fc-amount { font-size: 14px; font-weight: 700; color: var(--text-1); }
.od-fc-seat { font-size: 11px; color: var(--text-3); font-weight: 400; }
.od-fc-tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.od-fc-tag.expired { background: rgba(239,68,68,.18); color: #ef4444; }
.od-fc-tag.warn { background: rgba(245,158,11,.18); color: #f59e0b; }
.od-fc-tag.ok { background: rgba(107,211,139,.18); color: var(--brand); }
.od-fc-actions { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.od-fc-actions .op-btn { flex: 1; justify-content: center; }
/* 滑入动画 */
.odslide-enter-active, .odslide-leave-active { transition: all .22s ease; }
.odslide-enter-from, .odslide-leave-to { opacity: 0; transform: translateX(20px); }

/* ========== 分析报告图表 ========== */
.ar-chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ar-chart-card { margin-top: 0 !important; }
.ar-chart-box { width: 100%; height: 280px; }
.ar-chart-conclusion { margin-top: 10px; padding: 10px 14px; background: rgba(107,211,139,.08); border: 1px solid rgba(107,211,139,.22); border-radius: 8px; font-size: 12.5px; color: var(--text-2); display: flex; gap: 10px; line-height: 1.55; }
.ar-chart-conclusion > i { color: #f59e0b; font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.topbar-select { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-3); color: var(--text-1); font-size: 13px; font-family: inherit; cursor: pointer; }

/* ============================================================
   亮色模式对比度统一修复 (2026-09-09)
   亮色下 var(--green) 映射为科技蓝 #2563eb,
   所有蓝底元素文字一律反白, 避免蓝底深字看不清
   ============================================================ */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .op-btn.ok,
html[data-theme="light"] .char-ops-row .op-btn.primary,
html[data-theme="light"] .char-status.on,
html[data-theme="light"] .cg-step.done .cg-no,
html[data-theme="light"] .kd-today,
html[data-theme="light"] .kd-cell.active,
html[data-theme="light"] .kd-month-cell.active,
html[data-theme="light"] .kd-year-cell.active,
html[data-theme="light"] .sim-msg.user,
html[data-theme="light"] .char-step.active span,
html[data-theme="light"] .char-step.done span,
html[data-theme="light"] .sp-bubble-wrap.user .sp-bubble,
html[data-theme="light"] .sp-bubble-wrap.user .sp-avatar-fallback,
html[data-theme="light"] .sp-send-btn,
html[data-theme="light"] .badge-on,
html[data-theme="light"] .sp-ready-btn.big-start,
html[data-theme="light"] .sim-profile-btn.primary,
html[data-theme="light"] .sp-archive-sub-btn.primary { color: #ffffff; }

/* hover/派生态同步反白 */
html[data-theme="light"] .char-ops-row .op-btn.primary:hover,
html[data-theme="light"] .kd-today:hover { color: #ffffff; }
/* kd-today hover 硬编码浅绿底, 亮色下改深蓝保证白字可读 */
html[data-theme="light"] .kd-today:hover { background: var(--green-hi); }

/* 三步引导: 亮色下由绿调改为蓝色调, 与主题一致 */
html[data-theme="light"] .char-guide {
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(37,99,235,.02));
  border-color: rgba(37,99,235,.22);
}

/* 亮色下白色系 hover 背景不可见, 改为深色淡显 */
html[data-theme="light"] .char-ops-row .op-btn:not(.primary):not(.kg):hover { background: rgba(15,23,42,.06); }

/* ============ 使用手册(文档中心布局) ============ */
.help-modal-box { max-width: 1440px !important; width: 95vw; padding: 0; overflow: hidden; }
.help-modal-box .modal-head { padding: 14px 20px; }
.help-head-title { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.help-head-title:hover { color: var(--green, #76b900); }
.help-head-title .ri { font-size: 18px; }
.help-layout { display: flex; height: 88vh; min-height: 560px; }
.help-sidebar { width: 260px; flex-shrink: 0; border-right: 1px solid var(--border, #2a3340); display: flex; flex-direction: column; background: var(--bg-2, rgba(255,255,255,.02)); }
.help-search { padding: 12px; border-bottom: 1px solid var(--border, #2a3340); position: relative; display: flex; align-items: center; gap: 6px; }
.help-search input { flex: 1; height: 32px; padding: 0 10px 0 30px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; outline: none; }
.help-search input:focus { border-color: var(--green, #84cc16); }
.help-search > .ri { position: absolute; left: 20px; color: var(--muted, #94a3b8); font-size: 15px; }
.help-search-clear { position: absolute; right: 18px; background: none; border: none; color: var(--muted, #94a3b8); cursor: pointer; padding: 2px; }
.help-cat-tree { flex: 1; overflow-y: auto; padding: 10px; }
.help-cat-group { margin-bottom: 6px; }
.help-cat-row { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--text); transition: background .15s, color .15s; }
/* 顶级分类: 带底色的分组块 */
.help-cat-row.parent { background: var(--bg-2); font-weight: 600; color: var(--text); }
.help-cat-row.parent:hover { background: color-mix(in srgb, var(--green) 12%, var(--bg-2)); }
.help-cat-row.parent.expanded { background: color-mix(in srgb, var(--green) 10%, var(--bg-2)); }
.help-cat-row.parent.active { background: var(--green-dim); color: var(--green-hi); }
.help-cat-ficon { color: var(--green); font-size: 16px; flex-shrink: 0; }
.help-cat-row.parent.active .help-cat-ficon { color: var(--green-hi); }
/* 子分类 */
.help-cat-row.sub { padding-left: 30px; margin: 2px 4px 2px 8px; color: var(--text-2); font-size: 13px; }
.help-cat-row.sub:hover { background: var(--bg-2); color: var(--text); }
.help-cat-row.sub.active { background: var(--green-dim); color: var(--green-hi); font-weight: 600; }
.help-cat-arrow { font-size: 17px; color: var(--text-2); flex-shrink: 0; width: 16px; text-align: center; }
.help-cat-arrow.placeholder { display: inline-block; }
.help-cat-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-cat-cnt { font-size: 11px; color: var(--text-2); flex-shrink: 0; background: color-mix(in srgb, var(--text-2) 14%, transparent); padding: 0 7px; border-radius: 10px; line-height: 17px; }
.help-cat-row.parent .help-cat-cnt { color: var(--text-2); }
.help-cat-row.active .help-cat-cnt { color: var(--green-hi); background: color-mix(in srgb, var(--green) 18%, transparent); }
.help-cat-sub { overflow: hidden; padding-top: 2px; }
.help-art-list { padding: 2px 0 6px 0; }
.help-art-list-top { padding: 2px 8px 8px 30px; }
.help-art-item { display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 44px; margin: 1px 6px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text-2); line-height: 1.35; transition: background .12s, color .12s; }
.help-art-item i { font-size: 12px; opacity: .7; flex-shrink: 0; }
.help-art-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-art-item:hover { background: var(--bg-2); color: var(--text); }
.help-art-item.active { background: var(--green-dim); color: var(--green-hi); font-weight: 500; }
.help-art-item.active i { opacity: 1; }
.help-search-results { flex: 1; overflow-y: auto; padding: 10px; }
.help-sr-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--text); margin-bottom: 3px; }
.help-sr-item:hover { background: var(--bg-2); }
.help-loading { text-align: center; padding: 30px; color: var(--text-2); font-size: 22px; }

.help-doc { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.help-breadcrumb { margin: 14px 28px 8px; padding: 9px 14px; font-size: 13px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.help-bc-item { display: inline-flex; align-items: center; gap: 4px; }
.help-bc-item.link { color: var(--text-2); cursor: pointer; transition: color .15s; }
.help-bc-item.link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.help-bc-item.active { color: var(--green-hi); font-weight: 600; }
.help-bc-sep { color: var(--border-2); }
.help-doc-main { flex: 1; display: flex; overflow: hidden; min-height: 0; }
.help-empty-doc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-2); gap: 14px; font-size: 15px; }
.help-empty-doc .ri { font-size: 56px; opacity: .4; }
.help-loading { flex: 1; text-align: center; padding: 30px; color: var(--muted, #94a3b8); font-size: 22px; }
.help-doc-scroll { flex: 1; overflow-y: auto; padding: 0 32px 60px 28px; min-width: 0; }
.help-doc-title { font-size: 26px; font-weight: 700; color: var(--text, #e2e8f0); margin: 8px 0 6px; }
.help-doc-meta { font-size: 12px; color: var(--muted, #94a3b8); margin-bottom: 20px; }

/* ============ 帮助中心欢迎首页 ============ */
.help-welcome { flex: 1; overflow-y: auto; padding: 8px 36px 48px 32px; min-width: 0; }
.hw-hero { text-align: center; padding: 30px 20px 26px; }
.hw-hero-icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff;
  background: linear-gradient(135deg, var(--green, #76b900), color-mix(in srgb, var(--green, #76b900) 55%, #0ea5e9));
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--green, #76b900) 55%, transparent);
}
.hw-hero-title { font-size: 27px; font-weight: 800; color: var(--text, #e2e8f0); margin: 0 0 12px; letter-spacing: .5px; }
.hw-hero-desc { font-size: 14.5px; line-height: 1.8; color: var(--text-2, #98a4b1); max-width: 560px; margin: 0 auto 22px; }
.hw-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hw-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 20px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .18s; font-family: inherit; }
.hw-btn .ri { font-size: 17px; line-height: 1; }
.hw-btn-primary { background: var(--green, #76b900); color: #fff; }
.hw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--green, #76b900) 60%, transparent); }
.hw-btn-ghost { background: transparent; border-color: var(--border-2, #2d3641); color: var(--text, #e2e8f0); }
.hw-btn-ghost:hover { border-color: var(--green, #76b900); color: var(--green, #76b900); background: var(--green-dim, rgba(118,185,0,.1)); }

.hw-section { margin-top: 34px; }
.hw-section-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; color: var(--text, #e2e8f0); margin-bottom: 16px; }
.hw-bar { width: 4px; height: 17px; border-radius: 3px; background: var(--green, #76b900); }

/* 三步上手 */
.hw-steps { display: flex; align-items: stretch; gap: 10px; }
.hw-step {
  flex: 1; position: relative; background: var(--card, #12161c); border: 1px solid var(--border, #232a33);
  border-radius: 12px; padding: 20px 18px; cursor: pointer; transition: all .18s; overflow: hidden;
}
.hw-step:hover { border-color: var(--green, #76b900); transform: translateY(-3px); box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); }
.hw-step-no { position: absolute; top: 12px; right: 16px; font-size: 34px; font-weight: 800; color: var(--green-dim, rgba(118,185,0,.16)); line-height: 1; }
.hw-step-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--green, #76b900); background: var(--green-dim, rgba(118,185,0,.12)); margin-bottom: 12px; }
.hw-step-name { font-size: 15px; font-weight: 700; color: var(--text, #e2e8f0); margin-bottom: 6px; }
.hw-step-text { font-size: 12.5px; line-height: 1.7; color: var(--text-2, #98a4b1); }
.hw-step-arrow { display: flex; align-items: center; color: var(--text-2, #98a4b1); font-size: 20px; flex-shrink: 0; }

/* 功能模块卡片 */
.hw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hw-card {
  display: flex; align-items: flex-start; gap: 13px; padding: 16px; border-radius: 12px; cursor: pointer;
  background: var(--card, #12161c); border: 1px solid var(--border, #232a33); transition: all .18s;
}
.hw-card:hover { border-color: var(--green, #76b900); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.hw-card-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--green, #76b900); background: var(--green-dim, rgba(118,185,0,.12)); }
.hw-card-body { flex: 1; min-width: 0; }
.hw-card-name { font-size: 15px; font-weight: 700; color: var(--text, #e2e8f0); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hw-card-cnt { font-size: 11.5px; font-weight: 500; color: var(--text-2, #98a4b1); }
.hw-card-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.hw-tag { font-size: 12px; padding: 2px 10px; border-radius: 20px; color: var(--text-2, #98a4b1); background: var(--bg-2, #0e1216); border: 1px solid var(--border, #232a33); transition: all .15s; }
.hw-tag:hover { color: var(--green, #76b900); border-color: var(--green, #76b900); }
.hw-card-arrow { color: var(--text-2, #98a4b1); font-size: 20px; flex-shrink: 0; margin-top: 10px; transition: transform .18s, color .18s; }
.hw-card:hover .hw-card-arrow { color: var(--green, #76b900); transform: translateX(3px); }

.hw-tip { margin-top: 26px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 10px; font-size: 13px; color: var(--text-2, #98a4b1); background: var(--green-dim, rgba(118,185,0,.08)); border: 1px solid color-mix(in srgb, var(--green, #76b900) 25%, transparent); }
.hw-tip .ri { font-size: 19px; color: var(--green, #76b900); flex-shrink: 0; }

/* 富文本内容 - 全部使用主题变量, 不硬编码灰色 */
.help-content { font-size: 14.5px; line-height: 1.8; color: var(--text, #e2e8f0); word-break: break-word; }
.help-content h1 { font-size: 24px; font-weight: 700; color: var(--text, #e2e8f0); margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border, #2a3340); }
.help-content h2 { font-size: 20px; font-weight: 700; color: var(--text, #e2e8f0); margin: 26px 0 12px; }
.help-content h3 { font-size: 17px; font-weight: 600; color: var(--text, #e2e8f0); margin: 22px 0 10px; }
.help-content h4, .help-content h5, .help-content h6 { font-size: 15px; font-weight: 600; color: var(--text, #e2e8f0); margin: 18px 0 8px; }
.help-content p { margin: 12px 0; color: var(--text, #e2e8f0); }
.help-content ul, .help-content ol { margin: 12px 0; padding-left: 28px; color: var(--text, #e2e8f0); }
.help-content ul { list-style: disc; }
.help-content ol { list-style: decimal; }
.help-content li { margin: 6px 0; color: var(--text, #e2e8f0); }
.help-content li::marker { color: var(--green, #84cc16); }
.help-content a { color: var(--green, #84cc16); text-decoration: none; }
.help-content a:hover { text-decoration: underline; }
.help-content blockquote { margin: 14px 0; padding: 12px 18px; border-left: 3px solid var(--green, #84cc16); background: var(--bg-2, rgba(255,255,255,.04)); border-radius: 0 8px 8px 0; color: var(--text-secondary, #cbd5e1); }
.help-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.help-content th, .help-content td { border: 1px solid var(--border, #2a3340); padding: 10px 14px; text-align: left; color: var(--text, #e2e8f0); }
.help-content th { background: var(--bg-2, rgba(255,255,255,.05)); font-weight: 600; color: var(--text, #e2e8f0); }
.help-content strong { font-weight: 700; color: var(--text, #e2e8f0); }
.help-content hr { border: none; border-top: 1px solid var(--border, #2a3340); margin: 22px 0; }
.help-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; cursor: zoom-in; }
/* 图片放大预览 lightbox */
.help-lb { position: fixed; inset: 0; background: rgba(0,0,0,.86); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 40px; animation: helpLbFade .18s ease; }
@keyframes helpLbFade { from { opacity: 0; } to { opacity: 1; } }
.help-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.help-lb-close { position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.help-lb-close:hover { background: rgba(255,255,255,.25); }
/* 内容中的平面图标 (由 emoji 替换为 Remix Icon 线条图标) */
.help-content .help-ic { display: inline-block; font-style: normal; vertical-align: -0.12em; color: var(--green); margin: 0 2px; font-size: 1.05em; line-height: 1; }
.help-content li .help-ic { margin-left: -4px; margin-right: 4px; }
.help-content code { padding: 2px 7px; background: var(--bg-2, rgba(255,255,255,.07)); border-radius: 4px; font-size: 13px; font-family: monospace; color: var(--text, #e2e8f0); }

/* 本页目录 - flex 独立列, 不再绝对定位遮挡内容 */
.help-toc { width: 170px; flex-shrink: 0; overflow-y: auto; padding: 12px 16px 60px; border-left: 1px solid var(--border, #2a3340); }
.help-toc-title { font-size: 12px; color: var(--muted, #94a3b8); margin-bottom: 10px; font-weight: 600; }
.help-toc-item { display: block; font-size: 12.5px; color: var(--muted, #94a3b8); padding: 4px 0; cursor: pointer; text-decoration: none; line-height: 1.5; }
.help-toc-item:hover, .help-toc-item.active { color: var(--green, #84cc16); }
.help-toc-item.h3 { padding-left: 14px; font-size: 12px; }

/* 亮色主题适配 */
html[data-theme="light"] .help-content { color: var(--text, #0f172a); }
html[data-theme="light"] .help-content h1, html[data-theme="light"] .help-content h2, html[data-theme="light"] .help-content h3, html[data-theme="light"] .help-content h4, html[data-theme="light"] .help-content h5, html[data-theme="light"] .help-content h6, html[data-theme="light"] .help-content p, html[data-theme="light"] .help-content li, html[data-theme="light"] .help-content strong, html[data-theme="light"] .help-content th, html[data-theme="light"] .help-content td, html[data-theme="light"] .help-content code { color: var(--text, #0f172a); }
html[data-theme="light"] .help-content th { background: var(--bg-2, #f1f5f9); }
html[data-theme="light"] .help-content blockquote { color: var(--text-secondary, #475569); background: var(--bg-3, #eef2f7); border: 1px solid var(--border, #e2e8f0); border-left: 3px solid var(--green, #2563eb); }
html[data-theme="light"] .help-doc-title { color: var(--text, #0f172a); }

/* ============ CKEditor 编辑区(后台) - 强制白底深字, 保证编辑可读性 ============ */
.ck-editor__editable { background: #ffffff !important; color: #1e293b !important; min-height: 520px; max-height: calc(100vh - 280px); overflow-y: auto; }
.ck-editor__editable .ck-content, .ck-content { background: #ffffff !important; color: #1e293b !important; }
.ck-content h1, .ck-content h2, .ck-content h3, .ck-content h4, .ck-content h5, .ck-content h6 { color: #0f172a !important; }
.ck-content p, .ck-content li, .ck-content span, .ck-content div { color: #1e293b !important; }
.ck-content strong, .ck-content b { color: #0f172a !important; }
.ck-content a { color: #2563eb !important; }
.ck-content blockquote { color: #475569 !important; background: #f8fafc !important; border-left-color: #cbd5e1 !important; }
.ck-content th, .ck-content td { color: #1e293b !important; border-color: #e2e8f0 !important; }
.ck-content th { background: #f1f5f9 !important; }
.ck-content code { color: #be185d !important; background: #fdf2f8 !important; }
.ck-content hr { border-color: #e2e8f0 !important; }
.ck.ck-editor__main > .ck-editor__editable { background: #ffffff !important; min-height: 520px !important; height: auto !important; max-height: calc(100vh - 280px) !important; overflow-y: auto !important; }
.ck.ck-editor__editable.ck-content { min-height: 520px !important; }
/* 工具栏也保持可读 */
.ck.ck-toolbar { background: #f8fafc !important; }
.ck.ck-button { color: #334155 !important; }
.ck.ck-button.ck-on { background: #e0f2fe !important; color: #0369a1 !important; }

html[data-theme="light"] .ks-foot-link:hover { background: rgba(15,23,42,.05); }

/* 画像按钮(kg)/资料结论等绿色柔和底, 亮色下同步为蓝色调 */
html[data-theme="light"] .char-ops-row .op-btn.kg {
  background: rgba(37,99,235,.08); color: var(--green); border-color: rgba(37,99,235,.35);
}
html[data-theme="light"] .char-ops-row .op-btn.kg:hover {
  background: rgba(37,99,235,.16); color: var(--green); border-color: rgba(37,99,235,.55);
}
html[data-theme="light"] .char-train-badge.done { background: rgba(37,99,235,.10); color: var(--green); }
html[data-theme="light"] .ar-chart-conclusion { background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.20); }

/* ============================================================
   亮色模式对比度修复 第二批 (2026-09-09): 滑杆/进度条/下拉/白色系hover
   ============================================================ */
/* 滑杆轨道: 亮色下 var(--border) 太浅不可见, 加深 */
html[data-theme="light"] .cp-slider { background: #94a3b8; }
html[data-theme="light"] .pf-item input[type="range"].cp-slider { background: #94a3b8 !important; }
/* 训练/生成进度条: 底槽加深, 填充改蓝色渐变 */
html[data-theme="light"] .char-progress-wrap { background: #cbd5e1; }
html[data-theme="light"] .char-progress-bar { background: linear-gradient(90deg, #1d4ed8, var(--green)); }

/* 原生 select: 箭头 SVG 硬编码绿色 → 亮色换蓝箭头; option 深色列表 → 亮色白底 */
html[data-theme="light"] .kyc-shell select,
html[data-theme="light"] .modal-box select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232563eb' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5 2.6 6.1l1.3-1.3L8 8.9l4.1-4.1 1.3 1.3z'/%3E%3C/svg%3E");
}
html[data-theme="light"] .kyc-shell select option,
html[data-theme="light"] .modal-box select option { background: #ffffff; color: var(--text); }
html[data-theme="light"] .kyc-shell select option:checked,
html[data-theme="light"] .modal-box select option:checked { background: rgba(37,99,235,.12); color: var(--green-hi); }

/* 白色系 hover/分隔线在亮色下不可见 → 深色淡显 */
html[data-theme="light"] .modal-close:hover { background: rgba(15,23,42,.06); }
html[data-theme="light"] .drive-pane-head { background: rgba(15,23,42,.03); }
html[data-theme="light"] .drive-file-row:hover { background: rgba(15,23,42,.04); }
html[data-theme="light"] .drive-file-row.sel { background: rgba(37,99,235,.08); }
html[data-theme="light"] .train-crumb { background: rgba(15,23,42,.02); }
html[data-theme="light"] .data-table tr:hover td { background: rgba(37,99,235,.03); }
html[data-theme="light"] .sp-zip-item:hover { background: rgba(15,23,42,.04); }
html[data-theme="light"] .move-folder-item { border-bottom-color: var(--border); }
html[data-theme="light"] .move-folder-item.active { background: rgba(37,99,235,.10); }

/* 上传面板关闭按钮: 白色系底在亮色下不可见 */
html[data-theme="light"] .kyc-shell .up-head .up-remove { background: rgba(15,23,42,.06); }
html[data-theme="light"] .kyc-shell .up-head .up-remove:hover { background: rgba(15,23,42,.14); color: var(--text); }

/* 排行榜底槽/头像底/角色徽章等 --bg-3 使用处已在 style.css 定义变量, 自动适配 */

/* ============================================================
   亮色模式修复 第三批 (2026-09-09): 订单到期浮窗
   按钮深色渐变 + 面板硬编码 #171923 → 亮色化, 文字改深色可读
   ============================================================ */
html[data-theme="light"] .od-float-toggle {
  background: #ffffff; border-color: var(--border-2); color: var(--text-1);
  box-shadow: 0 8px 24px rgba(15,23,42,.18);
}
html[data-theme="light"] .od-float-toggle i:first-child { color: #d97706; }
html[data-theme="light"] .od-float-list {
  background: #ffffff; border-color: var(--border);
  box-shadow: 0 16px 40px rgba(15,23,42,.16);
}
/* 过期卡片: 显式浅红底, 避免叠加深色面板 */
html[data-theme="light"] .od-float-card.expired { background: #fef2f2; }
/* 橙黄标签/图标在白底对比不足, 加深 */
html[data-theme="light"] .od-float-card.warn .od-fc-ico { color: #d97706; }
html[data-theme="light"] .od-fc-tag.warn { background: rgba(217,119,6,.14); color: #b45309; }
html[data-theme="light"] .od-fc-tag.expired { color: #dc2626; }

/* ============================================================
   设备检测页 (系统设置 > 设备检测)
   ============================================================ */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.dev-card { padding: 18px 20px; }
.dev-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dev-title { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.dev-title i { color: var(--green); font-size: 18px; }
.dev-badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 12px; background: var(--bg-3); color: var(--text-2); }
.dev-badge.ok { background: rgba(118,185,0,.14); color: var(--green-hi); }
.dev-badge.testing { background: rgba(56,132,255,.14); color: #6db6ff; }
.dev-badge.fail { background: rgba(229,72,77,.12); color: #ff8a8e; }
.dev-wave { width: 100%; height: 56px; background: var(--bg-3); border-radius: 8px; display: block; margin-bottom: 10px; }
.dev-video-wrap { width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.dev-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dev-info { font-size: 13px; color: var(--text-2); margin-bottom: 6px; word-break: break-all; }
.dev-err { font-size: 13px; color: #ff8a8e; line-height: 1.7; margin: 8px 0; padding: 10px 12px; background: rgba(229,72,77,.08); border-radius: 8px; }
.dev-tips { font-size: 12px; color: var(--text-3); margin: 6px 0 10px; line-height: 1.7; }
.dev-actions { margin-top: 10px; display: flex; gap: 10px; }
.dev-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.dev-item:last-child { border-bottom: none; }
.dev-item i { color: var(--green); font-size: 16px; }
.dev-item .dev-name { flex: 1; color: var(--text); word-break: break-all; }
.dev-item .dev-kind { font-size: 12px; color: var(--text-3); background: var(--bg-3); border-radius: 999px; padding: 2px 10px; flex-shrink: 0; }

/* ===== 模拟陪练: 思考中/输入中 状态动画 ===== */
.sp-bubble.is-thinking { display: inline-flex; align-items: center; gap: 8px; }
.think-dots { display: inline-flex; align-items: center; gap: 4px; }
.think-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: .35; animation: thinkBounce 1.2s infinite ease-in-out; }
.think-dots i:nth-child(2) { animation-delay: .18s; }
.think-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes thinkBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.think-label { font-size: 12px; color: var(--text-3); }
.typing-cursor { display: inline-block; width: 2px; height: 1em; background: var(--green); margin-left: 2px; vertical-align: text-bottom; animation: cursorBlink .8s infinite; }
@keyframes cursorBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ===== 模拟陪练: 报告生成中提示 ===== */
.sim-report-loading {
  display: flex; align-items: center; gap: 12px;
  margin: 18px auto 0; max-width: 560px;
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 12px; padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.sim-report-loading > i.ri-file-chart-line { font-size: 26px; color: var(--green); flex-shrink: 0; }
.sim-report-loading .srl-text { flex: 1; min-width: 0; }
.sim-report-loading .srl-title { font-size: 14px; font-weight: 600; color: var(--text); }
.sim-report-loading .srl-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.sp-end-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== 评测报告: 列表格式 + PDF 导出按钮 ===== */
.sim-report-list { white-space: pre-line; line-height: 1.9; font-size: 12.5px; color: var(--text-2); word-break: break-word; }
.sr-export-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--green);
  background: transparent; border: 1px solid var(--green);
  border-radius: 8px; padding: 4px 10px; cursor: pointer; transition: .15s;
}
.sr-export-btn:hover:not(:disabled) { background: var(--green); color: #0a0d10; }
.sr-export-btn:disabled { opacity: .55; cursor: not-allowed; }
[data-theme="light"] .sr-export-btn:hover:not(:disabled) { color: #ffffff; }

/* ===== 训练结束报告结果页 ===== */
.sim-result-page { display: flex; justify-content: center; padding: 18px 10px 26px; }
.srp-card {
  width: 100%; max-width: 720px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 30px 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.srp-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.srp-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); }
.srp-avatar-icon { font-size: 44px; color: var(--green); }
.srp-head-info { flex: 1; min-width: 0; }
.srp-title { font-size: 20px; font-weight: 700; color: var(--text); }
.srp-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.srp-score-box { text-align: center; flex-shrink: 0; }
.srp-score { font-size: 40px; font-weight: 800; color: var(--green); line-height: 1; }
.srp-score-label { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.srp-dims { padding: 16px 0 6px; }
.srp-dim { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.srp-dim-k { width: 78px; font-size: 13px; color: var(--text-2); flex-shrink: 0; text-align: right; }
.srp-dim-bar { flex: 1; height: 8px; background: var(--bg-3); border-radius: 99px; overflow: hidden; }
.srp-dim-bar i { display: block; height: 100%; background: linear-gradient(90deg, #84cc16, #65a30d); border-radius: 99px; }
.srp-dim-v { width: 38px; text-align: right; font-size: 13px; font-weight: 700; color: var(--text); flex-shrink: 0; }
.srp-block { margin-top: 14px; }
.srp-block-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.srp-block-title.good { color: var(--green); }
.srp-block-title.warn { color: #f59e0b; }
.srp-block-title.tip { color: #3b82f6; }
.srp-block-title.voice { color: var(--green); }
.srp-list { white-space: pre-line; line-height: 1.9; font-size: 13px; color: var(--text-2); word-break: break-word; padding-left: 2px; }
.srp-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.srp-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14px; font-weight: 600; border-radius: 10px;
  padding: 11px 16px; cursor: pointer; transition: .15s; border: 1px solid transparent;
}
.srp-btn:disabled { opacity: .55; cursor: not-allowed; }
.srp-btn.primary { background: var(--green); color: #0a0d10; }
.srp-btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.srp-btn.ghost { background: transparent; border-color: var(--green); color: var(--green); }
.srp-btn.ghost:hover:not(:disabled) { background: var(--green); color: #0a0d10; }
[data-theme="light"] .srp-btn.ghost:hover:not(:disabled) { color: #ffffff; }
[data-theme="light"] .srp-btn.primary { color: #ffffff; }
[data-theme="light"] .srp-dim-bar { background: #e2e8f0; }

/* ===== 实时情绪联动: 心理解读 + 更新脉冲 ===== */
.sim-emotion-comment {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 8px; padding: 7px 10px;
  background: var(--bg-2); border-left: 2px solid var(--green);
  border-radius: 6px; font-size: 12px; color: var(--text-2); line-height: 1.5;
}
.sim-emotion-comment i { color: var(--green); font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.sim-emotion-comment span { flex: 1; min-width: 0; }
.emo-pulse { animation: emoPulse 1.6s ease-out; }
@keyframes emoPulse {
  0% { box-shadow: 0 0 0 0 rgba(118,185,0,.45); }
  35% { box-shadow: 0 0 0 5px rgba(118,185,0,.18); }
  100% { box-shadow: 0 0 0 0 rgba(118,185,0,0); }
}
.emo-pulse .sim-emotion-radar { animation: radarFlash 1.6s ease-out; }
@keyframes radarFlash { 0% { filter: brightness(1.6); } 100% { filter: brightness(1); } }

/* ============ 在线客服 / 工单系统 ============ */
/* 顶部客服按钮未读角标 */
.kt-support { position: relative; }
.kt-tk-badge {
  position: absolute; top: -5px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid var(--bg-1, #0d1117); box-sizing: content-box;
}
/* 手册欢迎页反馈按钮 */
.hw-btn-feedback { background: rgba(110,168,254,.1); border-color: rgba(110,168,254,.4); color: #6ea8fe; }
.hw-btn-feedback:hover { transform: translateY(-2px); background: rgba(110,168,254,.18); box-shadow: 0 8px 20px -6px rgba(110,168,254,.5); }
/* 工单弹窗叠加在手册之上 */
.tk-modal-mask { z-index: 200; }
/* 弹窗头部标题图标（用户端/Boss 工单弹窗） */
.tk-modal-mask .modal-head b { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; }
.tk-modal-mask .modal-head b > .ri { font-size: 20px; line-height: 1; color: var(--green, #76b900); }
.badge.info { color: #6ea8fe; border-color: rgba(110,168,254,.4); background: rgba(110,168,254,.08); }
.badge.demo { color: #c69cf8; border-color: rgba(198,156,248,.4); background: rgba(198,156,248,.08); }
.badge.closed { color: #8a93a3; border-color: rgba(138,147,163,.35); background: rgba(138,147,163,.1); }
.badge.tk-urgent { color: #ff8a8e; border-color: rgba(229,72,77,.35); background: rgba(229,72,77,.1); }
.badge.tk-urgent .ri { font-size: 13px; }

/* ============ 列表弹窗 ============ */
.tk-head-tools { display: flex; align-items: center; gap: 10px; }
.tk-head-btn { height: 36px; padding: 0 16px; font-size: 13px; }
.tk-head-btn .ri { font-size: 15px; }
.tk-list-body { max-height: 70vh; overflow-y: auto; padding: 10px 2px 4px; }
.tk-loading { padding: 46px 0; text-align: center; color: var(--text-3); font-size: 22px; }
.tk-empty { padding: 42px 20px 48px; text-align: center; color: var(--text-3); }
.tk-empty > .ri {
  width: 74px; height: 74px; margin: 0 auto; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--green, #76b900); opacity: 1;
  background: rgba(118,185,0,.09); border: 1px solid rgba(118,185,0,.22);
}
.tk-empty p { margin: 18px 0 22px; font-size: 14px; color: var(--text-2); }
.tk-empty .btn { height: 44px; min-width: 190px; padding: 0 24px; }
.tk-empty .btn .ri { font-size: 17px; }
.tk-list { display: grid; gap: 10px; }
.tk-item {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--border-2); border-radius: 12px; padding: 14px 16px 14px 19px;
  background: var(--bg-2); cursor: pointer; overflow: hidden;
  transition: border-color .15s, background .15s, transform .15s;
}
.tk-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-2);
}
.tk-item.unread::before { background: var(--green, #76b900); }
.tk-item.urgent::before { background: #e5484d; }
.tk-item:hover { border-color: rgba(118,185,0,.4); background: rgba(118,185,0,.05); transform: translateX(2px); }
.tk-item-main { flex: 1; min-width: 0; }
.tk-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-item-cat { font-size: 12px; color: var(--text-3); }
.tk-item-title {
  margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-item-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; position: relative; padding-right: 6px; }
.tk-item-time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tk-item-count { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.tk-item-count .ri { font-size: 15px; }
.tk-item-arrow { position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 20px; opacity: 0; transition: all .15s; }
.tk-item:hover .tk-item-arrow { opacity: 1; right: -14px; color: var(--green, #76b900); }
.tk-unread-dot {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* ============ 提交表单弹窗 ============ */
.tk-form-row { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
.tk-form-item label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.tk-form-item .kyc-select { width: 100%; }
.tk-success { text-align: center; padding: 28px 12px 18px; }
.tk-success-icon {
  font-size: 56px; line-height: 1; width: 84px; height: 84px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--green, #76b900); background: rgba(118,185,0,.1); border: 1px solid rgba(118,185,0,.25);
}
.tk-success-title { font-size: 17px; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.tk-success-no { font-size: 13px; color: var(--text-2); }
.tk-success-no b { color: var(--green-hi, #9ed86b); font-family: ui-monospace, monospace; }
.tk-success-desc { font-size: 13px; color: var(--text-3); margin-top: 10px; line-height: 1.7; max-width: 420px; margin-left: auto; margin-right: auto; }
.tk-success-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

/* ============ 详情对话弹窗 ============ */
.tk-back {
  background: transparent; border: none; color: var(--text-2); cursor: pointer;
  font-size: 20px; padding: 2px 6px 2px 0; display: inline-flex; vertical-align: middle;
}
.tk-back:hover { color: var(--green); }
.tk-d-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-3); margin: 0 10px 0 4px; background: var(--bg-2); border:1px solid var(--border-2); padding:2px 9px; border-radius:6px; }
.tk-detail-body { padding-top: 6px; }
.tk-d-meta {
  padding: 13px 15px; border: 1px solid var(--border-2); border-radius: 12px;
  margin-bottom: 14px; background: linear-gradient(180deg, rgba(118,185,0,.04), rgba(118,185,0,0) 60%), var(--bg-2);
}
.tk-d-cat { font-size: 12px; color: var(--green-hi, #9ed86b); font-weight: 600; }
.tk-d-title { margin: 7px 0 5px; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.5; }
.tk-d-time { font-size: 12px; color: var(--text-3); }

/* 聊天气泡（用户端/Boss 端共用） */
.tk-chat { display: flex; flex-direction: column; }
.tk-chat-body {
  max-height: 42vh; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 18px;
  background: rgba(255,255,255,.018); border: 1px solid var(--border-2); border-radius: 14px;
}
.tk-msg { display: flex; gap: 10px; max-width: 78%; align-self: flex-start; }
.tk-msg.right { align-self: flex-end; flex-direction: row-reverse; }
.tk-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.tk-msg.left .tk-avatar { background: rgba(110,168,254,.15); color: #6ea8fe; }
.tk-msg.right .tk-avatar { background: rgba(118,185,0,.18); color: var(--green, #76b900); }
.tk-bubble-col { min-width: 0; display: flex; flex-direction: column; }
.tk-msg.right .tk-bubble-col { align-items: flex-end; }
.tk-msg-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; }
.tk-msg-name { font-weight: 600; color: var(--text-2); }
.tk-msg-time { font-variant-numeric: tabular-nums; }
.tk-msg-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word;
}
.tk-msg.left .tk-msg-bubble {
  background: var(--bg-2, #1b2230); border: 1px solid var(--border-2);
  border-top-left-radius: 4px; color: var(--text);
}
.tk-msg.right .tk-msg-bubble {
  background: linear-gradient(135deg, #85c90a, #76b900); color: #0e130a;
  border-top-right-radius: 4px; font-weight: 500;
}
.tk-closed-tip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--text-3); padding: 9px; margin: 12px 0 0;
  border: 1px dashed var(--border-2); border-radius: 10px;
}
.tk-closed-tip .ri { font-size: 15px; }
.tk-chat-input { padding-top: 13px; margin-top: 12px; border-top: 1px solid var(--border-2); }
.tk-chat-input textarea {
  width: 100%; box-sizing: border-box; min-height: 52px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 11px 13px; color: var(--text); font-size: 13.5px; line-height: 1.6;
  resize: vertical; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.tk-chat-input textarea:focus { outline: none; border-color: rgba(118,185,0,.55); box-shadow: 0 0 0 3px rgba(118,185,0,.1); }
.tk-chat-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.tk-close-ticket { height: 36px; padding: 0 14px; font-size: 13px; }
