/* ============================================================
   team-admin.css — WOW KOL Console（团队长后台）
   SaaS Dashboard：左侧导航 + 顶栏 + 视图切换
   设计系统与 team.css 同源：深海军蓝 / 科技蓝 / 青色 + 荧光绿/明亮黄点缀
   白色卡片、蓝色渐变、轻玻璃质感、柔和光晕；圆角 16–20px
   ============================================================ */

:root {
  /* 色板（与 team.css 一致） */
  --navy-950: #04101f;
  --navy-900: #071a33;
  --navy-800: #0b2547;
  --navy-700: #113362;
  --navy-600: #17457f;
  --blue-600: #1d63f2;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --green-400: #34d399;
  --green-500: #10b981;
  --yellow-400: #fbbf24;

  --ink: #0a1f3c;
  --copy: #43618c;
  --muted: #7d93b6;

  --bg: #f2f6fc;
  --bg-soft: #e9f0fa;
  --card: #ffffff;
  --line: #dde8f6;
  --line-strong: #c6d7f0;
  --red: #ef4565;

  --grad-primary: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  --grad-navy: linear-gradient(158deg, #061527 0%, #0a2242 52%, #10315e 100%);
  --grad-text: linear-gradient(115deg, var(--cyan-300), var(--blue-500));

  --radius: 18px;
  --radius-sm: 13px;
  --radius-xs: 10px;
  --shadow-sm: 0 4px 14px rgba(10, 31, 60, 0.06);
  --shadow: 0 12px 34px rgba(10, 31, 60, 0.10);
  --shadow-lg: 0 26px 70px rgba(6, 21, 39, 0.18);

  --font: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --sidebar-w: 248px;
}

/* Match the public KOL site with a brighter blue/cyan workspace. */
:root {
  --bg: #f5faff; --bg-soft: #eaf5ff; --line: #d7e9fb; --line-strong: #b9d9f5;
  --grad-primary: linear-gradient(135deg, #087ff5 0%, #05b9d8 100%);
  --grad-navy: linear-gradient(165deg, #061457 0%, #073eae 58%, #048fb9 100%);
}
.ta-sidebar { background: linear-gradient(165deg,#061457 0%,#073eae 58%,#048fb9 100%); box-shadow: 12px 0 35px rgba(4,42,112,.12); }
.ta-side-nav button.is-active { background: linear-gradient(135deg,#087ff5,#05b9d8); box-shadow: 0 10px 24px rgba(8,127,245,.34); }
.ta-panel, .ta-card, .ta-stats article { border-color: #d7e9fb; box-shadow: 0 12px 32px rgba(14,91,160,.07); }
.ta-btn-primary { background: linear-gradient(135deg,#087ff5,#05b9d8); box-shadow: 0 12px 26px rgba(8,127,245,.26); }
.ta-progress > i, .ta-kpi-progress > i { background: linear-gradient(90deg,#087ff5,#05b9d8,#8edb49); }
.ta-table tbody tr:hover { background: #f0f9ff; }

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body.ta-page {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--copy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.ta-page h1, body.ta-page h2, body.ta-page h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
body.ta-page p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ===== 布局骨架 ===== */
.ta-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ===== 侧边栏 ===== */
.ta-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  background: var(--grad-navy);
  color: #c9dcf7;
  overflow-y: auto;
  z-index: 80;
}
.ta-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 2px 6px; }
.ta-brand-mark {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(103, 232, 249, 0.3);
  color: var(--cyan-300);
  font-size: 20px; font-weight: 900;
}
.ta-brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ta-brand-copy strong { color: #fff; font-size: 15.5px; white-space: nowrap; }
.ta-brand-copy small { color: #7d9cc9; font-size: 9.5px; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; }

.ta-side-nav { display: grid; gap: 4px; }
.ta-side-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: #b7cdec;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.ta-side-nav button i {
  font-style: normal;
  width: 20px; text-align: center;
  color: #7d9cc9;
  transition: color 0.2s;
}
.ta-side-nav button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.ta-side-nav button:hover i { color: var(--cyan-300); }
.ta-side-nav button.is-active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 99, 242, 0.35);
}
.ta-side-nav button.is-active i { color: #fff; }

.ta-side-foot { margin-top: auto; display: grid; gap: 10px; }
.ta-side-wallet {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(103, 232, 249, 0.16);
}
.ta-side-wallet > span { font-size: 10.5px; color: #7d9cc9; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.ta-side-wallet strong { font-family: var(--mono); font-size: 13px; color: #e3eeff; font-weight: 700; word-break: break-all; }
.ta-auth-state { display: inline-flex; align-items: center; gap: 6px; color: #7d9cc9; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ta-auth-state b { font: inherit; }
.ta-auth-state i { width: 7px; height: 7px; border-radius: 50%; background: #5b739a; flex: 0 0 auto; }
.ta-auth-state.is-loading { color: var(--yellow-400); }
.ta-auth-state.is-loading i { background: var(--yellow-400); box-shadow: 0 0 8px rgba(251, 191, 36, 0.7); animation: ta-blink 1s infinite; }
.ta-auth-state.is-verified { color: var(--green-400); }
.ta-auth-state.is-verified i { background: var(--green-400); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.ta-auth-state.is-warn { color: #fda4af; }
.ta-auth-state.is-warn i { background: #fb7185; }
@keyframes ta-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ta-side-back {
  display: flex; align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(103, 232, 249, 0.22);
  color: #cfe4ff;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ta-side-back:hover { background: rgba(34, 211, 238, 0.1); color: var(--cyan-300); border-color: var(--cyan-400); }

.ta-sidebar-mask {
  position: fixed; inset: 0;
  z-index: 75;
  background: rgba(4, 16, 31, 0.55);
  backdrop-filter: blur(2px);
}

/* ===== 顶栏 ===== */
.ta-body { display: flex; flex-direction: column; min-width: 0; }
.ta-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(14px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.ta-page-title { font-size: 17px; font-weight: 800; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-account { display: flex; align-items: center; gap: 10px; }
.ta-wallet-chip {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ta-logout { color: var(--muted); font-size: 13px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.ta-logout:hover { color: var(--red); }

/* 语言切换（与官网同款） */
.tm-lang {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: #e8eff9;
  border: 1px solid var(--line);
}
.tm-lang button {
  min-height: 30px;
  padding: 3px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
}
.tm-lang button[aria-pressed="true"] {
  background: var(--grad-navy);
  color: #fff;
  box-shadow: 0 4px 10px rgba(11, 37, 71, 0.25);
}

/* 汉堡（仅移动端） */
.ta-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
}
.ta-burger i, .ta-burger i::before, .ta-burger i::after {
  content: "";
  position: absolute; left: 11px; right: 11px;
  height: 2px; border-radius: 2px;
  background: var(--ink);
}
.ta-burger i { top: 20px; }
.ta-burger i::before { left: 0; right: 0; top: -6px; }
.ta-burger i::after { left: 0; right: 0; top: 6px; }

/* ===== 主区 ===== */
.ta-main { flex: 1; padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 40px) calc(48px + env(safe-area-inset-bottom)); min-width: 0; }

/* ===== 门状态 ===== */
.ta-gate {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.ta-gate-card {
  width: min(480px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 34px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.ta-gate-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-primary);
}
.ta-gate-icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29, 99, 242, 0.1), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 27px;
}
.ta-gate-card h1 { font-size: 21px; font-weight: 800; margin-top: 18px; }
.ta-gate-card p { margin-top: 10px; font-size: 14px; }
.ta-gate-card .ta-btn-primary { margin-top: 22px; min-width: 200px; }

/* ===== 视图头 ===== */
.ta-view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ta-eyebrow {
  color: var(--blue-600);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ta-view-head h2 { font-size: 23px; font-weight: 800; margin-top: 5px; }
.ta-view-head h2::after {
  content: "";
  display: block;
  width: 38px; height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--grad-primary);
}
.ta-view-head p:last-child { margin-top: 8px; font-size: 13.5px; max-width: 620px; }

/* ===== 概览：档案卡 + KPI 进度 ===== */
.ta-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow-sm);
}
.ta-panel + .ta-panel, .ta-cards + .ta-panel, .ta-panel + .ta-cards, .ta-stats + .ta-panel { margin-top: 16px; }
.ta-panel-label { font-size: 13px; font-weight: 700; color: var(--copy); }
.ta-panel-label b { color: var(--ink); }
.ta-panel-label em { font-style: normal; color: var(--blue-600); font-weight: 800; margin-left: 6px; }
.ta-panel-hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.ta-profile { background: linear-gradient(135deg, #ffffff 55%, #eef5ff); position: relative; overflow: hidden; }
.ta-profile::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 65%);
  pointer-events: none;
}
.ta-profile-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  position: relative;
}
.ta-profile-level span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.ta-profile-level strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 进度条（KPI） */
.ta-progress {
  height: 12px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ta-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-primary);
  box-shadow: 0 0 12px rgba(29, 99, 242, 0.45);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ta-progress-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ===== 概览数据卡 ===== */
.ta-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.ta-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.ta-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0.45;
}
.ta-card.is-accent { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 12px 30px rgba(34, 211, 238, 0.14); }
.ta-card.is-accent::before { opacity: 1; }
.ta-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ta-card span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ta-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  color: var(--ink);
  font-weight: 800;
  word-break: break-word;
}
.ta-card.is-accent strong {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ta-card small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); word-break: break-word; }

/* ===== 月份选择 ===== */
.ta-month-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}
.ta-month-pick select {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.ta-month-pick select:focus { outline: none; border-color: var(--blue-500); }

/* ===== 月度结算 ===== */
.ta-settle-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 20px;
}
.ta-settle-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ta-meta-item { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ta-meta-item strong { color: var(--ink); font-size: 14px; }
.ta-settle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ta-settle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: #fbfdff;
}
.ta-settle-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }

/* 数字格（结算卡 / 余额卡共用） */
.ta-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ta-nums > div {
  padding: 12px;
  border-radius: var(--radius-xs);
  background: #fff;
  border: 1px solid var(--line);
}
.ta-nums span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ta-nums strong {
  display: block;
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 800;
  word-break: break-word;
}
.ta-nums .is-hot {
  background: linear-gradient(135deg, rgba(29, 99, 242, 0.09), rgba(34, 211, 238, 0.1));
  border-color: rgba(29, 99, 242, 0.35);
}
.ta-nums .is-hot strong { color: var(--blue-600); }

/* ===== 成员/统计 ===== */
.ta-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.ta-stats article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.ta-stats span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ta-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 23px;
  color: var(--ink);
  font-weight: 800;
}

/* ===== 面板标题行 ===== */
.ta-panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 12px 6px;
}
.ta-panel-title-row h3 { font-size: 16px; font-weight: 800; }
.ta-panel-title-row .ta-panel-hint { margin-top: 4px; }

/* ===== 订单筛选 ===== */
.ta-order-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ta-order-filters input, .ta-order-filters select {
  min-height: 38px;
  max-width: 190px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.ta-order-filters input:focus, .ta-order-filters select:focus { outline: none; border-color: var(--blue-500); }

/* ===== 表格（桌面） / 卡片（移动） ===== */
.ta-table-panel { padding: 8px; }
.ta-table-scroll { overflow-x: auto; }
.ta-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ta-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ta-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef3fa;
  color: var(--copy);
  white-space: nowrap;
}
.ta-table tbody tr:last-child td { border-bottom: 0; }
.ta-table tbody tr:hover td { background: #f7faff; }
.ta-table .ta-empty { text-align: center; color: var(--muted); padding: 28px 16px; white-space: normal; }
.ta-wallet-cell { font-family: var(--mono); color: var(--ink); font-weight: 700; font-size: 12.5px; }
.ta-perf-cell { color: var(--blue-600); font-weight: 800; }
.ta-hash-cell { font-family: var(--mono); font-size: 12px; color: var(--copy); }
.ta-reason-cell { white-space: normal; max-width: 220px; color: var(--red); font-size: 12.5px; overflow-wrap: anywhere; }
.ta-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px 6px;
  flex-wrap: wrap;
}
.ta-pager { display: inline-flex; align-items: center; gap: 10px; }
.ta-pager span { font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* ===== 邀请 ===== */
.ta-invite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ta-invite-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 14px;
  background: #fbfdff;
}
.ta-invite-grid span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.ta-invite-grid strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font-size: 16px; color: var(--ink); }
.ta-invite-link-row { display: flex; gap: 8px; }
.ta-invite-link-row + .ta-invite-link-row { margin-top: 10px; }
.ta-invite-tag {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 0 10px; border-radius: var(--radius-xs);
  background: var(--line); color: var(--ink);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.ta-invite-link-row input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: #fbfdff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ===== 提现 ===== */
.ta-wd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ta-wd-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.ta-wd-card .ta-nums { grid-template-columns: repeat(2, 1fr); }

/* 提现表单 */
.ta-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: end; }
.ta-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}
.ta-form-tip { font-style: normal; color: var(--muted); font-weight: 500; font-size: 11px; }
.ta-form select,
.ta-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
}
.ta-form select:focus,
.ta-form input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(29, 99, 242, 0.12); }
.ta-form > button { grid-column: 1 / -1; }

/* 提现摘要条：来源月份 / 类别 / 可提现 */
.ta-wd-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, rgba(29, 99, 242, 0.06), rgba(34, 211, 238, 0.08));
  border: 1px dashed rgba(29, 99, 242, 0.3);
}
.ta-wd-summary span { display: grid; gap: 3px; min-width: 0; }
.ta-wd-summary b { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.ta-wd-summary strong { font-size: 14.5px; color: var(--ink); font-weight: 800; word-break: break-word; }

/* ===== 状态标签 ===== */
.ta-chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--copy);
  white-space: nowrap;
}
.ta-chip.open { background: rgba(52, 211, 153, 0.13); color: #047857; }
.ta-chip.closed { background: var(--bg-soft); color: var(--copy); }
.ta-chip.self { background: rgba(29, 99, 242, 0.1); color: var(--blue-600); }
.ta-chip.layer { background: rgba(34, 211, 238, 0.12); color: #0e7490; }
.ta-chip.pending { background: rgba(251, 191, 36, 0.15); color: #a16207; }
.ta-chip.approved { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.ta-chip.paid { background: rgba(52, 211, 153, 0.14); color: #047857; }
.ta-chip.rejected,
.ta-chip.failed { background: rgba(239, 69, 101, 0.11); color: var(--red); }

/* ===== 按钮 ===== */
.ta-btn-primary {
  min-height: 46px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 14.5px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(29, 99, 242, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.ta-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(29, 99, 242, 0.42); }
.ta-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.ta-btn-ghost {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px; font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.ta-btn-ghost:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-600); }
.ta-btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 确认弹窗 ===== */
.ta-modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 18px; }
.ta-modal-mask { position: absolute; inset: 0; background: rgba(4, 16, 31, 0.58); backdrop-filter: blur(3px); }
.ta-modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  animation: ta-pop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ta-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.ta-modal-card h3 { font-size: 17px; font-weight: 800; padding-left: 12px; }
.ta-modal-card h3::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 4px; background: var(--grad-primary); }
.ta-modal-body { margin-top: 14px; display: grid; gap: 8px; }
.ta-modal-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-soft);
}
.ta-modal-row b { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.ta-modal-row strong { font-size: 14px; color: var(--ink); font-weight: 800; word-break: break-word; text-align: right; }
.ta-modal-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.ta-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.ta-modal-actions .ta-btn-ghost { flex: 1; }
.ta-modal-actions .ta-btn-primary { flex: 1.4; }

/* ===== Toast ===== */
.ta-toast {
  position: fixed;
  left: 50%;
  bottom: calc(34px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 200;
  max-width: min(92vw, 520px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(4, 16, 31, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.ta-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.ta-toast.is-error { background: var(--red); }

/* ===== 空态/加载态 ===== */
.ta-empty { min-height: 48px; }
.ta-empty[data-state="error"] { color: var(--red); background: rgba(239, 69, 101, 0.06); border-radius: var(--radius-xs); }

/* ============================================================
   响应式
   ============================================================ */

/* 平板：侧边栏收窄 */
@media (max-width: 1024px) {
  :root { --sidebar-w: 210px; }
  .ta-cards { grid-template-columns: repeat(2, 1fr); }
  .ta-form { grid-template-columns: 1fr 1fr; }
}

/* 手机：侧边栏 → 抽屉 */
@media (max-width: 860px) {
  .ta-layout { grid-template-columns: 1fr; }
  .ta-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(300px, 84vw);
    transform: translateX(-102%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
  }
  .ta-sidebar.is-open { transform: none; box-shadow: 30px 0 70px rgba(4, 16, 31, 0.4); }
  .ta-burger { display: block; }
  .ta-topbar { padding-top: 10px; padding-bottom: 10px; }
  .ta-gate { min-height: 0; align-items: flex-start; padding: 24px 0 48px; }
  .ta-gate-card { padding: 28px 22px 26px; border-radius: 16px; }
  .ta-gate-card .ta-btn-primary { width: min(100%, 260px); }
  .ta-settle-top { grid-template-columns: 1fr; }
  .ta-settle-meta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
  .ta-settle-grid, .ta-wd-cards { grid-template-columns: 1fr; }
  .ta-nums { grid-template-columns: repeat(2, 1fr); }
  .ta-stats { grid-template-columns: 1fr; }
  .ta-form { grid-template-columns: 1fr; }
  .ta-wd-summary { grid-template-columns: 1fr; }
  .ta-profile-row { grid-template-columns: 1fr; gap: 18px; }
  .ta-invite-grid { grid-template-columns: 1fr; }
  .ta-invite-link-row { flex-direction: column; }
  .ta-order-filters { width: 100%; }
  .ta-order-filters input, .ta-order-filters select, .ta-order-filters button { width: 100%; max-width: none; }
  .ta-orders-head { flex-direction: column; align-items: stretch; }
}

/* 小屏手机 */
@media (max-width: 560px) {
  .ta-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ta-card { padding: 14px; }
  .ta-card strong { font-size: 19px; }
  .ta-nums { grid-template-columns: 1fr 1fr; }
  .ta-panel { padding: 16px; border-radius: 16px; }
  .ta-wallet-chip { max-width: 120px; padding: 7px 10px; font-size: 11.5px; }
  .ta-logout { font-size: 12px; }
  .tm-lang button { padding: 3px 9px; font-size: 11.5px; }
  .ta-page-title { font-size: 15px; }
  .ta-view-head h2 { font-size: 20px; }

  /* 表格 → 标签化卡片（data-label 由 JS 按 i18n 注入） */
  .ta-table-scroll { overflow: visible; }
  .ta-mobile-cards,
  .ta-mobile-cards tbody,
  .ta-mobile-cards tr,
  .ta-mobile-cards td { display: block; width: 100%; }
  .ta-mobile-cards thead { display: none; }
  .ta-mobile-cards tr {
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(10, 31, 60, 0.06);
  }
  .ta-mobile-cards td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    white-space: normal;
    text-align: right;
  }
  .ta-mobile-cards td::before {
    flex: 0 0 auto;
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
  }
  .ta-mobile-cards td:first-child { color: var(--ink); font-weight: 800; }
  .ta-mobile-cards .ta-empty { text-align: center; }
  .ta-table-foot { align-items: stretch; }
  .ta-table-foot .ta-pager { width: 100%; justify-content: space-between; }
  .ta-table-foot .ta-pager .ta-btn-ghost { min-height: 44px; }
  .ta-modal-actions { flex-direction: column-reverse; }
  .ta-modal-actions .ta-btn-primary, .ta-modal-actions .ta-btn-ghost { width: 100%; min-height: 48px; }
}

/* 超小屏（375） */
@media (max-width: 400px) {
  .ta-cards { grid-template-columns: 1fr; }
  .ta-stats strong { font-size: 20px; }
  .ta-main { padding-inline: 12px; }
}
