/* ============================================
   WorkBench - 工作台样式表
   ============================================ */

/* ---------- 主题变量 ---------- */
:root {
  /* 深色主题（默认） */
  --bg-base: #090d14;
  --bg-surface: #111923;
  --bg-surface-2: #172230;
  --bg-surface-3: #213044;
  --bg-hover: #243449;
  --border-color: rgba(148, 163, 184, 0.16);
  --border-light: rgba(148, 163, 184, 0.09);

  --text-primary: #f1f5f9;
  --text-secondary: #aebfd0;
  --text-muted: #71839b;
  --text-dim: #4c5e75;

  --accent: #19d6bd;
  --accent-hover: #31e4ce;
  --accent-soft: rgba(25, 214, 189, 0.12);
  --accent-glow: rgba(25, 214, 189, 0.24);

  --success: #3ddc97;
  --success-soft: rgba(61, 220, 151, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.12);
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);

  --sidebar-w: 240px;
  --header-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 浅色主题 */
[data-theme="light"] {
  --bg-base: #f3f7f8;
  --bg-surface: #ffffff;
  --bg-surface-2: #f5f9fa;
  --bg-surface-3: #e8f0f2;
  --bg-hover: #e5f5f3;
  --border-color: #d9e6e8;
  --border-light: #edf3f4;

  --text-primary: #172a36;
  --text-secondary: #4b6472;
  --text-muted: #8196a1;
  --text-dim: #b8c7cc;

  --accent: #0ebaa8;
  --accent-hover: #0ca695;
  --accent-soft: rgba(14,186,168,.1);
  --accent-glow: rgba(14,186,168,.18);
  --success-soft: rgba(34, 197, 94, 0.08);
  --warning-soft: rgba(245, 158, 11, 0.08);
  --danger-soft: rgba(239, 68, 68, 0.08);
  --purple-soft: rgba(168, 85, 247, 0.08);
  --teal-soft: rgba(20, 184, 166, 0.08);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
ul, ol { list-style: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------- 登录页 ---------- */
#login-view { display:none; min-height:100vh; background:#0d1323; }
#login-view.active { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(380px,.85fr); }
.login-visual { position:relative; overflow:hidden; min-height:100vh; padding:42px 54px; background:radial-gradient(circle at 18% 22%, rgba(37,230,221,.22), transparent 25%), radial-gradient(circle at 72% 75%, rgba(255,35,92,.16), transparent 27%), linear-gradient(135deg,#030507 0%,#071017 52%,#050609 100%); }
.login-visual::before { content:""; position:absolute; inset:0; opacity:.6; background-image:linear-gradient(rgba(67,230,211,.08) 1px, transparent 1px),linear-gradient(90deg, rgba(67,230,211,.08) 1px, transparent 1px); background-size:46px 46px; mask-image:linear-gradient(90deg,#000,transparent); }
.login-visual::after { content:""; position:absolute; width:180px; height:180px; right:-54px; top:60px; border-radius:34px; background:linear-gradient(135deg,#25e6dd 0 54%,#fff 54% 68%,#ff335f 68%); transform:rotate(40deg); box-shadow:-220px 490px 0 -64px #ff335f, -195px 465px 0 -42px #25e6dd; opacity:.9; }
.login-visual::after { content:""; position:absolute; inset:0; background:radial-gradient(ellipse at 90% 14%, rgba(37,230,221,.16), transparent 17%), radial-gradient(ellipse at 76% 82%, rgba(255,51,95,.12), transparent 18%), linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.54)); }
.login-visual-brand, .login-visual-copy, .login-visual-dots { position:relative; z-index:1; }
.login-visual-brand { display:flex; align-items:center; min-height:42px; }
.login-visual-tiktok-logo { display:block; width:180px; height:auto; object-fit:contain; }
.login-visual-copy { position:absolute; left:11%; bottom:13%; color:#fff; }
.login-visual-kicker { margin-bottom:12px; color:#6ee7dc; font-size:12px; font-weight:700; letter-spacing:1.8px; }
.login-visual-copy h2 { margin:0; font-size:42px; line-height:1.28; letter-spacing:-1px; }
.login-visual-copy p { margin-top:16px; color:rgba(255,255,255,.78); font-size:16px; }
.login-visual-ui { position:absolute; z-index:1; top:18%; right:13%; width:285px; height:430px; transform:rotate(7deg); filter:drop-shadow(0 30px 28px rgba(0,0,0,.33)); }
.visual-phone { position:relative; height:100%; padding:14px; border:1px solid rgba(146,255,242,.28); border-radius:32px; background:linear-gradient(155deg,rgba(28,49,73,.9),rgba(6,16,29,.95)); box-shadow:inset 0 1px 0 rgba(255,255,255,.1); }
.visual-phone::before { content:""; display:block; width:74px; height:6px; margin:0 auto 12px; border-radius:10px; background:#07101b; }
.visual-phone-head { display:flex; align-items:center; justify-content:space-between; color:#d7e6ef; font-size:11px; }
.visual-phone-head i { width:10px; height:10px; border-radius:50%; background:#1bd8bf; box-shadow:0 0 12px #1bd8bf; }.visual-phone-head b { font-size:12px; }.visual-phone-head span { color:#91a6ba; }
.visual-video { display:flex; flex-direction:column; justify-content:flex-end; height:225px; margin-top:13px; padding:15px; border-radius:20px; background:radial-gradient(circle at 65% 25%,rgba(37,141,255,.94),transparent 30%),linear-gradient(155deg,#18bfae,#115c91 55%,#0a1728); overflow:hidden; }
.visual-video::before { content:""; position:absolute; width:170px; height:170px; right:-25px; top:95px; border:20px solid rgba(255,255,255,.18); border-radius:50%; }.visual-video span { position:relative; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.18); backdrop-filter:blur(4px); }.visual-video em { position:relative; margin-top:10px; color:#fff; font-style:normal; font-size:13px; font-weight:700; }
.visual-product { display:flex; align-items:center; gap:9px; position:absolute; right:24px; left:24px; bottom:24px; padding:10px; border:1px solid rgba(255,255,255,.15); border-radius:13px; background:rgba(8,17,29,.84); }.visual-thumb { display:grid; place-items:center; width:35px; height:35px; border-radius:9px; background:linear-gradient(135deg,#f5ce60,#fd875e); color:#182233; }.visual-product div:nth-child(2) { flex:1; min-width:0; }.visual-product strong,.visual-product small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.visual-product strong { color:#fff; font-size:10px; }.visual-product small { margin-top:2px; color:#68e5d3; font-size:8px; }.visual-product button { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; background:#1bd4bd; color:#06221f; font-size:18px; }
.visual-metric { position:absolute; padding:12px 14px; border:1px solid rgba(90,238,218,.24); border-radius:13px; background:rgba(10,24,42,.82); box-shadow:0 14px 24px rgba(0,0,0,.22); backdrop-filter:blur(8px); }.visual-metric span,.visual-metric small { display:block; font-size:10px; }.visual-metric span { color:#9ab1c4; }.visual-metric strong { display:block; margin:3px 0; color:#fff; font-size:17px; }.visual-metric small { color:#3ce2b4; }.metric-one { left:-68px; top:82px; }.metric-two { right:-78px; bottom:74px; }
.login-visual-dots { position:absolute; bottom:48px; left:54px; display:flex; gap:8px; }
.login-visual-dots span { width:22px; height:3px; border-radius:5px; background:rgba(255,255,255,.32); }
.login-visual-dots span:first-child { background:#28d7c0; }
.login-panel { display:flex; align-items:center; justify-content:center; padding:32px; background:radial-gradient(circle at 25% 10%, rgba(43,109,211,.22), transparent 36%), linear-gradient(160deg,#141d30,#0c1322); }
.login-card { width:100%; max-width:410px; padding:34px; border:1px solid rgba(148,163,184,.18); border-radius:18px; background:rgba(15,24,42,.84); box-shadow:0 24px 70px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.035); backdrop-filter:blur(14px); }
.login-logo { text-align:left; margin-bottom:28px; }
.login-tiktok-logo { display:block; width:188px; height:auto; margin:0 0 18px; object-fit:contain; }
.login-logo h1 { color:#fff; font-size:24px; font-weight:750; letter-spacing:-.6px; }
.login-logo p { color:#93a4bd; font-size:13px; margin-top:5px; }

.form-group { margin-bottom:20px; }
.form-group label { display:block; font-size:13px; font-weight:500; color:var(--text-secondary); margin-bottom:6px; }
.form-group input, .form-group textarea, .form-group select { width:100%; background:var(--bg-surface-2); border:1px solid var(--border-color); border-radius:var(--radius-md); padding:12px 14px; color:var(--text-primary); font-size:14px; transition:var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-glow); }
.form-group input::placeholder, .form-group textarea::placeholder { color:var(--text-muted); }
.login-card .login-field { margin-bottom:16px; }
.login-card .login-field label { color:#b7c4d7; font-size:12px; font-weight:600; }
.login-card .login-field input { height:44px; padding:0 13px; border-color:rgba(148,163,184,.17); border-radius:9px; background:rgba(7,15,30,.58); color:#f8fafc; font-size:14px; }
.login-card .login-field input::placeholder { color:#64748b; }
.login-card .login-field input:focus { border-color:#21cdb8; box-shadow:0 0 0 3px rgba(33,205,184,.12); }
.remember-row { display:flex; align-items:center; gap:7px; margin:-2px 0 18px; color:#95a7c0; font-size:12px; cursor:pointer; }
.remember-row input { width:14px; height:14px; accent-color:#20cdb8; }
.login-card .btn-primary { height:46px; border-radius:9px; background:linear-gradient(90deg,#11c9aa,#258ff0); color:#fff; font-weight:700; letter-spacing:1px; box-shadow:0 10px 22px rgba(21,174,199,.22); }
.login-card .btn-primary:hover { filter:brightness(1.08); transform:translateY(-1px); }
.login-card .login-toggle { margin-top:18px; color:#96a7c0; }
.login-card .login-toggle a { color:#37d8c4; font-weight:650; }
.login-card .login-hint { text-align:center; }
.login-card .login-hint span { color:#71829b !important; }
.login-card .captcha-question { min-width:120px; border:1px dashed rgba(47,212,187,.6); border-radius:9px; background:rgba(31,204,180,.12); color:#65e6d2; font-family:var(--font-mono); font-size:16px; font-weight:750; letter-spacing:3px; }
.login-card .captcha-row input { text-transform:uppercase; }
.login-server-hint { margin-top:14px; padding-top:12px; border-top:1px solid rgba(148,163,184,.12); }
.login-server-hint span { color:#71829b !important; font-size:12px; }

/* 密码显示/隐藏按钮 */
.pwd-wrapper { position: relative; }
.pwd-wrapper input { padding-right: 40px; }
.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
  user-select: none;
  transition: color 0.2s;
}
.pwd-toggle:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background:linear-gradient(90deg, #14cbb4, #258cf0); color:#fff; box-shadow:0 7px 18px rgba(20,203,180,.16); }
.btn-primary:hover { background:linear-gradient(90deg, #24ddc5, #3799fa); box-shadow:0 9px 24px rgba(20,203,180,.28); transform:translateY(-1px); }
.btn-secondary {
  background: var(--bg-surface-3);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--bg-hover); }
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-ghost {
  color: var(--text-secondary);
  padding: 6px 10px;
}
.btn-ghost:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

.login-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.login-toggle a { cursor: pointer; font-weight: 500; }

.login-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.login-error.show { display: block; }

/* ---------- 主应用布局 ---------- */
#app-view { display: none; height: 100vh; }
#app-view.active { display: flex; }

.sidebar {
  width: var(--sidebar-w);
  background:linear-gradient(180deg, rgba(16,28,41,.98), rgba(10,16,25,.99));
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
  z-index: 100;
}

.sidebar-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-header .logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #248ff0);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar-header .logo.logo-image { width:44px; height:32px; padding:0; border-radius:0; background:transparent; object-fit:contain; }
.sidebar-header .title { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 16px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.nav-item.active { background:linear-gradient(90deg, rgba(25,214,189,.18), rgba(36,143,240,.12)); color:var(--accent); box-shadow:inset 2px 0 0 var(--accent); }
.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-color);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-md);
}
.sidebar-user .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-user .info { flex: 1; min-width: 0; }
.sidebar-user .info .name { font-size: 13px; font-weight: 500; }
.sidebar-user .info .role { font-size: 11px; color: var(--text-muted); }

/* ---------- 主内容区 ---------- */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: var(--header-h);
  background:rgba(14,22,34,.88);
  backdrop-filter:blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}
.topbar .page-title { font-size: 16px; font-weight: 600; }
.topbar .actions { display: flex; align-items: center; gap: 8px; }

.topbar { position:relative; z-index:300; }
.theme-switcher { display:inline-flex; align-items:center; gap:2px; padding:3px; border:1px solid rgba(45,222,200,.28); border-radius:999px; background:var(--bg-surface-2); box-shadow:var(--shadow-sm); }
.theme-switch-btn { min-width:48px; min-height:29px; padding:0 10px; border-radius:999px; color:var(--text-muted); font-size:12px; font-weight:700; transition:var(--transition); }
.theme-switch-btn:hover { color:var(--text-primary); background:var(--bg-hover); }
.theme-switch-btn.active { color:#052520; background:var(--accent); box-shadow:0 3px 10px var(--accent-glow); }
[data-theme="light"] .theme-switcher { border-color:#cde4e5; background:#f4faf9; }
[data-theme="light"] .theme-switch-btn.active { color:#fff; background:#0ebaa8; }

/* 网络状态指示器（WebSocket 实时延迟版） */
.network-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  cursor: default;
  user-select: none;
}
.network-status .net-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.network-status .net-rtt {
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
  font-weight: 600;
}
.network-status .net-wave {
  font-size: 10px;
  width: 12px;
  text-align: center;
  opacity: 0.7;
}
.network-status .net-text {
  white-space: nowrap;
  font-size: 11px;
}

/* 延迟状态颜色 */
.network-status.lat-low { color: var(--success); border-color: rgba(34,197,94,0.3); background: var(--success-soft); }
.network-status.lat-low .net-dot { background: var(--success); box-shadow: 0 0 6px var(--success); }
.network-status.lat-mid { color: var(--warning); border-color: rgba(234,179,8,0.3); background: var(--warning-soft); }
.network-status.lat-mid .net-dot { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.network-status.lat-high { color: var(--danger); border-color: rgba(239,68,68,0.3); background: var(--danger-soft); }
.network-status.lat-high .net-dot { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.network-status.offline { color: var(--danger); border-color: rgba(239,68,68,0.3); background: var(--danger-soft); }
.network-status.offline .net-dot { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* Toast 通知 */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: toastSlideIn 0.3s ease-out;
  max-width: 90vw;
  white-space: nowrap;
}
.toast-item.offline { background: var(--danger); color: #fff; }
.toast-item.online { background: var(--success); color: #fff; }
.toast-item.fade { animation: toastFadeOut 0.3s ease-in forwards; }
@keyframes toastSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastFadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
}

.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 通用组件 ---------- */
.card { background:linear-gradient(145deg, rgba(22,34,48,.94), rgba(15,24,35,.94)); border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:20px; box-shadow:0 8px 24px rgba(0,0,0,.12); transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card:hover { border-color:rgba(46,214,194,.28); box-shadow:0 12px 28px rgba(0,0,0,.17); }
[data-theme="light"] .sidebar { background:linear-gradient(180deg,#f8fcfc,#eef5f6); border-right-color:#dbe9eb; }
[data-theme="light"] .topbar { background:rgba(255,255,255,.9); border-bottom-color:#dbe9eb; }
[data-theme="light"] .card { background:linear-gradient(145deg,#fff,#f8fbfb); border-color:#dce9eb; box-shadow:0 8px 22px rgba(26,83,91,.08); }
[data-theme="light"] .card:hover { border-color:rgba(13,184,166,.34); box-shadow:0 12px 28px rgba(26,83,91,.13); }
[data-theme="light"] input,[data-theme="light"] textarea,[data-theme="light"] select { background:#fff; border-color:#d4e3e6; color:#172a36; }
[data-theme="light"] input:focus,[data-theme="light"] textarea:focus,[data-theme="light"] select:focus { border-color:#0ebaa8; box-shadow:0 0 0 3px rgba(14,186,168,.13); }
[data-theme="light"] .modal { background:linear-gradient(145deg,#fff,#f2f8f8); border-color:#cfe5e5; box-shadow:0 24px 58px rgba(18,63,75,.2); }
[data-theme="light"] .modal-overlay { background:rgba(12,29,37,.42); }
[data-theme="light"] .nav-item:hover { background:#e6f5f3; color:#0a8078; }
[data-theme="light"] .nav-item.active { background:linear-gradient(90deg,rgba(13,185,166,.16),rgba(37,143,240,.1)); color:#087e78; }
[data-theme="light"] .toast { box-shadow:0 10px 30px rgba(13,59,69,.16); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state .title { font-size: 15px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }
.empty-state .desc { font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--accent-soft); color: var(--accent); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-teal { background: var(--teal-soft); color: var(--teal); }
.badge-muted { background: var(--bg-surface-3); color: var(--text-muted); }

/* ---------- 首页 ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.welcome-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.welcome-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
}
.welcome-card .greeting { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.welcome-card .time { font-size: 36px; font-weight: 700; font-family: var(--font-mono); letter-spacing: -1px; }
.welcome-card .date { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.welcome-main { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.weather-card { min-width:205px; padding:14px 16px; border:1px solid rgba(129,140,248,0.28); border-radius:16px; background:linear-gradient(135deg, rgba(79,70,229,0.18), rgba(56,189,248,0.10)); box-shadow:inset 0 1px 0 rgba(255,255,255,0.06); }
.weather-location { font-size:12px; color:var(--text-secondary); margin-bottom:4px; }
.weather-main { display:flex; align-items:center; gap:10px; }
.weather-icon { font-size:35px; line-height:1; }
.weather-temp { font-size:30px; line-height:1.05; font-weight:750; font-family:var(--font-mono); }
.weather-desc { margin-top:3px; font-size:12px; color:var(--text-secondary); }
.weather-meta { display:flex; justify-content:space-between; gap:10px; margin-top:10px; padding-top:8px; border-top:1px solid rgba(255,255,255,0.09); color:var(--text-muted); font-size:11px; }
.weather-loading { min-height:68px; display:flex; align-items:center; justify-content:center; gap:8px; color:var(--text-secondary); font-size:12px; }
.weather-spinner { width:15px; height:15px; border:2px solid var(--accent-soft); border-top-color:var(--accent); border-radius:50%; animation:weatherSpin .7s linear infinite; }
.weather-fallback { color:var(--text-muted); }
@keyframes weatherSpin { to { transform:rotate(360deg); } }

.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: '"';
  position: absolute;
  top: 0; left: 16px;
  font-size: 80px;
  color: var(--accent-soft);
  font-family: Georgia, serif;
  line-height: 1;
}
.quote-card .quote-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  margin-top: 20px;
}
.quote-card .quote-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: right;
}

.todo-card { background:linear-gradient(145deg, var(--bg-surface), var(--bg-surface-2)); border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:20px; box-shadow:var(--shadow-sm); }
.todo-card .card-header { margin-bottom:13px; }
.todo-subtitle { margin-top:2px; color:var(--text-muted); font-size:11px; }
.todo-list { max-height:330px; overflow-y:auto; padding-right:2px; }
.todo-section-head { display:flex; align-items:center; gap:7px; padding:2px 2px 7px; color:var(--text-secondary); font-size:12px; font-weight:700; }
.todo-section-head b, .todo-completed-toggle b { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--accent-soft); color:var(--accent); font-size:11px; }
.todo-pending-list { border:1px solid var(--border-light); border-radius:12px; overflow:hidden; background:rgba(0,0,0,.04); }
.todo-item { display:flex; align-items:center; gap:10px; min-height:46px; padding:8px 10px; border-bottom:1px solid var(--border-light); transition:background var(--transition); }
.todo-item:last-child { border-bottom:none; }
.todo-item:hover { background:var(--bg-hover); }
.todo-item .checkbox { width:20px; height:20px; border:1.5px solid var(--text-muted); border-radius:6px; cursor:pointer; flex-shrink:0; display:grid; place-items:center; transition:var(--transition); }
.todo-item .checkbox:hover { border-color:var(--accent); background:var(--accent-soft); }
.todo-item .checkbox.done { background:var(--success); border-color:var(--success); }
.todo-item .checkbox.done::after { content:'\2713'; color:#fff; font-size:12px; font-weight:800; }
.todo-item .todo-text { flex:1; min-width:0; font-size:13px; color:var(--text-primary); }
.todo-item.done .todo-text { text-decoration:line-through; color:var(--text-muted); }
.todo-item .todo-delete { width:24px; height:24px; display:grid; place-items:center; border-radius:6px; opacity:0; color:var(--text-muted); cursor:pointer; font-size:14px; transition:var(--transition); }
.todo-item:hover .todo-delete, .todo-item .todo-delete:focus { opacity:1; }
.todo-item .todo-delete:hover { color:var(--danger); background:var(--danger-soft); }
.todo-empty { padding:16px; color:var(--text-muted); font-size:12px; text-align:center; }
.todo-completed-section { margin-top:10px; border:1px solid var(--border-light); border-radius:11px; overflow:hidden; }
.todo-completed-toggle { width:100%; display:flex; align-items:center; gap:7px; padding:9px 10px; color:var(--text-secondary); font-size:12px; font-weight:700; text-align:left; }
.todo-completed-toggle:hover { background:var(--bg-hover); }
.todo-fold-icon { width:14px; color:var(--text-muted); font-size:16px; line-height:1; }
.todo-completed-toggle b { margin-left:auto; background:var(--bg-surface-3); color:var(--text-muted); }
.todo-completed-list { border-top:1px solid var(--border-light); }

.todo-input-row { display:flex; gap:8px; margin-top:12px; }
.todo-input-row input {
  flex: 1;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
}
.todo-input-row input:focus { border-color: var(--accent); }

.news-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; }
.news-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.news-item:last-child { border-bottom: none; }
.news-item .news-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; width: 50px; }
.news-item .news-content { font-size: 13px; line-height: 1.5; }
.news-item .news-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }

/* ---------- 定价表 ---------- */
.pricing-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.region-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.region-tab {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.region-tab:hover { background: var(--bg-surface-2); }
.region-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.pricing-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pricing-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}
.pricing-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}
.pricing-table tr:hover td { background: var(--bg-surface-2); }
.pricing-table input, .pricing-table select {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
  transition: var(--transition);
}
.pricing-table input:hover { border-color: var(--border-color); }
.pricing-table input:focus { border-color: var(--accent); background: var(--bg-surface-2); }
.profit-positive { color: var(--success); font-weight: 600; }
.profit-negative { color: var(--danger); font-weight: 600; }

.summary-bar {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
}
.summary-item { flex: 1; text-align: center; }
.summary-item .label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.summary-item .value { font-size: 18px; font-weight: 700; font-family: var(--font-mono); }

/* ---------- 登录验证码与汇率输入 ---------- */
.captcha-row { display:flex; gap:8px; }
.captcha-row input { flex:1; min-width:0; }
.captcha-question { min-width:120px; border:1px dashed var(--accent); border-radius:var(--radius-md); background:var(--accent-soft); color:var(--accent); font-size:13px; font-weight:700; cursor:pointer; }
.captcha-question:hover { background:var(--accent); color:#fff; }
.currency-panel { padding:4px 0 2px; }
.currency-inputs { display:grid; grid-template-columns:minmax(105px,.7fr) minmax(150px,1fr) 42px minmax(150px,1fr); align-items:end; gap:10px; }
.currency-amount-wrap, .currency-input-wrap { min-width:0; }
.currency-inputs label { display:block; margin:0 0 7px; color:var(--text-secondary); font-size:12px; font-weight:600; }
.currency-amount-wrap input, .currency-select-input { width:100%; height:44px; background:var(--bg-surface-2); border:1px solid var(--border-color); border-radius:10px; padding:0 12px; color:var(--text-primary); font-size:16px; font-weight:600; }
.currency-select-input:focus, .currency-amount-wrap input:focus { border-color:var(--accent); outline:none; box-shadow:0 0 0 3px var(--accent-soft); }
.currency-select-input.is-valid { border-color:var(--success); }
.currency-select-input.is-invalid { border-color:var(--danger); }
.currency-swap-btn { width:42px; height:42px; flex-shrink:0; border:1px solid var(--border-color); border-radius:12px; color:var(--accent); background:var(--bg-surface-2); font-size:21px; cursor:pointer; transition:var(--transition); }
.currency-swap-btn:hover { border-color:var(--accent); background:var(--accent-soft); transform:rotate(180deg); }
.currency-input-hint { color:var(--text-muted); font-size:12px; margin:10px 0 12px; }
.currency-result { min-height:104px; padding:16px 18px; border:1px solid rgba(99,102,241,.3); border-radius:14px; background:linear-gradient(135deg, var(--accent-soft), rgba(56,189,248,.08)); }
.currency-result-label { color:var(--text-secondary); font-size:12px; font-weight:600; }
.currency-result-value { display:flex; align-items:baseline; gap:8px; margin-top:4px; color:var(--accent); }
.currency-result-value span { font-size:32px; font-weight:750; font-family:var(--font-mono); letter-spacing:-1px; }
.currency-result-value strong { font-size:15px; }
.currency-result-formula, .currency-rate-line { margin-top:5px; color:var(--text-secondary); font-size:12px; }
.currency-rate-line { color:var(--text-muted); font-family:var(--font-mono); }
.currency-status { margin:10px 0 14px; color:var(--text-muted); font-size:12px; }
.currency-dot { margin:0 7px; }
.currency-quick-label { margin-bottom:8px; color:var(--text-secondary); font-size:12px; font-weight:600; }
.currency-quick-pairs { display:flex; gap:7px; flex-wrap:wrap; }
.currency-quick-pairs .btn { border-radius:999px; font-size:12px; }

/* ---------- 定价表升级样式 ---------- */
.pricing-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; padding:20px 22px; border:1px solid var(--border-color); border-radius:var(--radius-lg); background:linear-gradient(135deg, var(--bg-surface), var(--bg-surface-2)); }
.pricing-site-selector { margin-bottom:12px; padding:12px 14px; border:1px solid var(--border-color); border-radius:var(--radius-md); background:var(--bg-surface); }
.pricing-site-label { margin-bottom:8px; font-size:12px; font-weight:700; color:var(--text-secondary); }
.region-site-chips { display:flex; gap:6px; flex-wrap:wrap; }
.region-site-chip { border:1px solid var(--border-color); border-radius:999px; padding:5px 9px; background:var(--bg-surface-2); color:var(--text-secondary); font-size:12px; cursor:pointer; }
.region-site-chip:hover, .region-site-chip.active { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); }
.pricing-site-tip { margin-top:8px; color:var(--text-muted); font-size:11px; }
.pricing-page-head h2 { margin:3px 0 4px; font-size:22px; letter-spacing:-0.4px; }
.pricing-page-head p { margin:0; font-size:13px; color:var(--text-secondary); }
.pricing-eyebrow { color:var(--accent); font-size:11px; font-weight:700; letter-spacing:1.1px; text-transform:uppercase; }
.pricing-head-actions, .pricing-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.pricing-actions { margin:0 0 12px; padding:10px 12px; border:1px solid var(--border-color); border-radius:var(--radius-md); background:var(--bg-surface); }
.pricing-hint { margin-left:auto; color:var(--text-muted); font-size:12px; }
.pricing-form-list { display:flex; flex-direction:column; gap:16px; }
.pricing-product-card { border:1px solid var(--border-color); border-radius:var(--radius-lg); background:var(--bg-surface); overflow:hidden; box-shadow:var(--shadow-sm); }
.pricing-product-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; background:var(--bg-surface-2); border-bottom:1px solid var(--border-color); }
.pricing-product-head span { display:block; color:var(--text-muted); font-size:11px; margin-bottom:2px; }
.pricing-product-head strong { font-size:15px; }
.pricing-form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:12px; padding:16px; }
.pricing-field { min-width:0; }
.pricing-field label { display:flex; align-items:center; gap:5px; min-height:19px; margin:0 0 6px; color:var(--text-secondary); font-size:12px; font-weight:600; }
.pricing-input, .pricing-field input { display:block; box-sizing:border-box; width:100%; min-height:38px; padding:8px 10px; border:1px solid var(--border-color); border-radius:var(--radius-sm); background:var(--bg-base); color:var(--text-primary); font-size:13px; transition:var(--transition); }
.pricing-input:hover, .pricing-field input:hover { border-color:var(--text-muted); }
.pricing-input:focus, .pricing-field input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); background:var(--bg-surface); }
.input-with-suffix { position:relative; }
.input-with-suffix input { padding-right:30px; }
.input-with-suffix span { position:absolute; right:10px; top:50%; transform:translateY(-50%); color:var(--text-muted); font-size:12px; }
.cost-tag, .global-rate label span { padding:2px 5px; border-radius:8px; background:var(--warning-soft); color:var(--warning); font-size:10px; font-weight:500; }
.pricing-field.computed { padding:8px 10px; border:1px solid currentColor; border-radius:var(--radius-sm); background:var(--bg-surface-2); }
.computed-value { font-family:var(--font-mono); font-size:18px; font-weight:700; }
.global-rate input, .derived-currency input { border-style:dashed; color:var(--text-muted); cursor:not-allowed; background:var(--bg-surface-2); }
.global-rate small, .derived-currency small { display:block; margin-top:4px; color:var(--text-muted); font-size:10px; }
.derived-currency label span { padding:2px 5px; border-radius:8px; background:var(--accent-soft); color:var(--accent); font-size:10px; font-weight:600; }
.field-locked { display:inline-block; padding:3px 7px; border-radius:10px; background:var(--bg-surface-3); color:var(--text-muted); font-size:11px; }
.currency-swap-btn { width:34px; height:34px; flex-shrink:0; border:1px solid var(--border-color); border-radius:50%; color:var(--accent); background:var(--bg-surface-2); font-size:18px; cursor:pointer; transition:var(--transition); }
.currency-swap-btn:hover { border-color:var(--accent); background:var(--accent-soft); transform:rotate(180deg); }
@media (max-width: 760px) { .pricing-page-head { align-items:flex-start; flex-direction:column; padding:16px; } .pricing-hint { margin-left:0; width:100%; } .summary-bar { overflow-x:auto; } .summary-item { min-width:110px; } }

/* ---------- 达人管理 ---------- */
.influencer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.influencer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition);
}
.influencer-card:hover { border-color: var(--accent); }
.influencer-card .header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.influencer-card .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
  flex-shrink: 0;
}
.influencer-card .name { font-size: 14px; font-weight: 600; }
.influencer-card .handle { font-size: 12px; color: var(--text-muted); }
.influencer-card .stats { display: flex; gap: 12px; margin-bottom: 12px; }
.influencer-card .stat { font-size: 11px; color: var(--text-secondary); }
.influencer-card .stat strong { display: block; font-size: 14px; color: var(--text-primary); }
.influencer-card .sample-status { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.influencer-card .actions { display: flex; gap: 6px; }

.sample-pipeline { display: flex; align-items: center; gap: 4px; margin: 8px 0; }
.sample-step {
  flex: 1;
  text-align: center;
  font-size: 10px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-3);
  color: var(--text-muted);
  position: relative;
}
.sample-step.done { background: var(--success-soft); color: var(--success); }
.sample-step.current { background: var(--accent-soft); color: var(--accent); }
.sample-arrow { color: var(--text-muted); font-size: 10px; }

/* ---------- 团队架构 ---------- */
.org-tree { padding: 20px 0; }
.org-level {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
}
.org-node {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 160px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.org-node:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.org-node .role-name { font-size: 13px; font-weight: 600; }
.org-node .role-title { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.org-node .role-person { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.org-node.lead { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 模态框 ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background:linear-gradient(145deg, rgba(23,37,52,.98), rgba(12,20,31,.98));
  border: 1px solid rgba(92,221,205,.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- 占位页面 ---------- */
.placeholder-page {
  text-align: center;
  padding: 60px 20px;
}
.placeholder-page .icon { font-size: 56px; margin-bottom: 16px; opacity: 0.3; }
.placeholder-page h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.placeholder-page p { color: var(--text-secondary); font-size: 14px; max-width: 480px; margin: 0 auto 8px; }
.placeholder-page .config-list {
  text-align: left;
  max-width: 480px;
  margin: 20px auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.placeholder-page .config-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.placeholder-page .config-list li:last-child { border-bottom: none; }
.placeholder-page .config-list li .num {
  width: 20px; height: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- 数据表格 ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: var(--bg-surface-2); }
.data-table .actions-cell { white-space: nowrap; }
.data-table .actions-cell button {
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.data-table .actions-cell button:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.data-table .actions-cell button.delete:hover { color: var(--danger); }

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 10px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-primary);
  width: 220px;
}
.search-box:focus { border-color: var(--accent); }

/* ---------- 移动端遮罩 ---------- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  #login-view.active { display:block; }
  .login-visual { min-height:230px; padding:24px; }
  .login-visual-copy { left:24px; bottom:24px; }
  .login-visual-copy h2 { font-size:25px; }
  .login-visual-copy p, .login-visual-ui, .login-visual-dots { display:none; }
  .login-panel { min-height:calc(100vh - 230px); padding:22px 16px; }
  .login-card { max-width:460px; padding:28px 24px; }
  .welcome-main { align-items:flex-start; flex-direction:column; }
  .weather-card { width:100%; }
  .currency-inputs { grid-template-columns:1fr 1fr; }
  .currency-amount-wrap { grid-column:1 / -1; }
  .currency-swap-btn { grid-column:auto; align-self:end; }
  .currency-input-wrap:last-of-type { grid-column:2; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .mobile-menu-btn { display: flex; }
  .home-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content-area { padding: 16px; }
  .topbar { padding: 0 16px; }
  .summary-bar { flex-direction: column; gap: 8px; }
  .org-level { flex-direction: column; align-items: center; }
  .search-box { width: 140px; }
  .login-card { padding: 28px; }
}

/* ---------- 通知 ---------- */
.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- 数据分析 ---------- */
.analytics-page .summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.analytics-page .summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.analytics-page .summary-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.analytics-page .summary-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.csv-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.csv-field-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.csv-field-tag.required {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-glow);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.data-table tr:hover td {
  background: var(--bg-hover);
}

/* ---------- 网络状态 Banner ---------- */
.network-banner {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--border-color);
}
.network-banner.offline {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(239,68,68,0.3);
}
.network-banner.online {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(34,197,94,0.3);
}

/* ---------- 飞书文档模块 ---------- */
.feishu-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  transition: background 0.15s;
}
.feishu-file:hover { background: var(--bg-surface-2); }
.feishu-file .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feishu-file .arrow { color: var(--text-muted); font-size: 18px; }

/* ---------- 飞书链接收藏 ---------- */
.feishu-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}
.feishu-link-row:last-child { border-bottom: none; }
.feishu-link-row:hover { background: var(--bg-surface-2); }
.feishu-link-info { flex: 1; min-width: 0; cursor: pointer; }
.feishu-link-title { font-size: 14px; color: var(--text-primary); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feishu-link-url { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.feishu-link-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ---------- 汇率组件 ---------- */
.currency-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; }
.currency-card .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.currency-card .card-title { font-size: 14px; font-weight: 600; }
.currency-card select, .currency-card input[type="number"] {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-primary);
  font-size: 13px;
}

/* ---------- 定价表增强 ---------- */
.pricing-table .computed-col { background: var(--bg-surface-2); color: var(--text-muted); font-weight: 500; }
.pricing-table td .pricing-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  color: var(--text-primary);
  font-size: 12px;
  width: 80px;
  min-width: 60px;
  transition: var(--transition);
}
.pricing-table td .pricing-input:hover { border-color: var(--border-color); }
.pricing-table td .pricing-input:focus { border-color: var(--accent); background: var(--bg-surface-2); outline: none; }
