/* 幻墨电竞 · 三端共用 Pro 皮肤
   只动视觉：中性色、描边、圆角、阴影、间距；品牌粉不变。
   用于 user.html / boss.html；staff-pro.html 继续用 staff-pro.css。 */

body.pro-theme {
  --pro-line: rgba(232, 103, 140, .20);
  --pro-line-soft: rgba(232, 103, 140, .10);
  --pro-shadow: 0 8px 24px rgba(107, 91, 110, .08);
  --border: #F0D3E1;
  --border-soft: #F8E8F0;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(107, 91, 110, .08);
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 6% -12%, rgba(232, 103, 140, .09), transparent 62%),
    radial-gradient(760px 460px at 100% 2%, rgba(247, 168, 194, .09), transparent 58%);
  background-attachment: fixed;
}
html[data-theme="dark"] body.pro-theme {
  --pro-line: rgba(232, 168, 194, .16);
  --pro-line-soft: rgba(232, 168, 194, .09);
  --border: rgba(232, 168, 194, .18);
  --border-soft: rgba(232, 168, 194, .10);
  --pro-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  --shadow: 0 12px 34px rgba(0, 0, 0, .35);
}

/* ---------------- 外壳 ---------------- */
body.pro-theme .app { background: transparent; }
body.pro-theme .sidenav {
  width: 214px;
  background: var(--surface);
  border-right: 1px solid var(--pro-line);
  padding: 18px 12px;
}
body.pro-theme .brand { border-bottom: 1px solid var(--pro-line-soft); padding: 4px 6px 14px; }
body.pro-theme .brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--pro-line);
  background: var(--card);
}
body.pro-theme .brand-name { font-size: 16px; font-weight: 900; letter-spacing: .02em; }
body.pro-theme .brand-sub { font-size: 11px; color: var(--muted); font-weight: 700; }
body.pro-theme .nav { gap: 4px; }
body.pro-theme .nav a {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  transform: none;
}
body.pro-theme .nav a:hover {
  background: var(--card2);
  color: var(--accent);
  transform: none;
}
body.pro-theme .nav a.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: none;
  transform: none;
}
body.pro-theme .nav a .nav-ico { width: 22px; height: 22px; object-fit: contain; }
body.pro-theme .nav-footer { border-top: 1px solid var(--pro-line-soft); padding-top: 12px; }
body.pro-theme .me .avatar { border: 1px solid var(--pro-line); background: var(--card2); }

body.pro-theme .content {
  padding: 22px 24px 48px;
  background: transparent;
}
body.pro-theme.user-pro .h5-wrap { max-width: 860px; }
body.pro-theme.boss-pro .content { max-width: none; }
body.pro-theme .page-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
body.pro-theme .page-title .sub { font-size: 12px; color: var(--muted); font-weight: 600; }

body.pro-theme .tabbar {
  background: var(--surface);
  border-top: 1px solid var(--pro-line);
}
body.pro-theme .tabbar a { color: var(--muted); }
body.pro-theme .tabbar a.active { color: var(--accent); }

/* ---------------- 卡片 ---------------- */
body.pro-theme .card,
body.pro-theme .order-card,
body.pro-theme .player-card,
body.pro-theme .hero,
body.pro-theme .price-board,
body.pro-theme .today-strip,
body.pro-theme .fb-admin-kpi {
  background: var(--card);
  border: 1px solid var(--pro-line);
  border-radius: var(--radius);
  box-shadow: var(--pro-shadow);
}
body.pro-theme .card { padding: 18px; }
body.pro-theme .card h3 { font-size: 14px; font-weight: 900; }
body.pro-theme .card h3 .right { font-size: 12px; color: var(--muted); font-weight: 600; }
body.pro-theme .order-card { padding: 14px 16px; }
body.pro-theme .order-card .oc-title { font-size: 14px; font-weight: 800; }
body.pro-theme .player-card { padding: 14px; }
body.pro-theme .today-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.pro-theme .today-chip {
  background: var(--card);
  border: 1px solid var(--pro-line);
  border-radius: 12px;
  padding: 10px 12px;
}
body.pro-theme .tc-t { font-size: 11px; color: var(--muted); font-weight: 700; }
body.pro-theme .tc-v { font-size: 18px; font-weight: 900; }

/* ---------------- KPI ---------------- */
body.pro-theme .grid.kpis { gap: 12px; }
body.pro-theme .kpi {
  background: var(--card);
  border: 1px solid var(--pro-line);
  border-radius: var(--radius);
  box-shadow: var(--pro-shadow);
  padding: 14px 16px;
}
body.pro-theme .kpi .label { font-size: 12px; color: var(--muted); font-weight: 700; }
body.pro-theme .kpi .value { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
body.pro-theme .kpi .value.gold { color: #D9942E; }
html[data-theme="dark"] body.pro-theme .kpi .value.gold { color: #E8B45A; }

/* ---------------- 表格 ---------------- */
body.pro-theme .table-wrap {
  border: 1px solid var(--pro-line);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--card);
  box-shadow: var(--pro-shadow);
}
body.pro-theme .tbl { border-collapse: separate; border-spacing: 0; }
body.pro-theme .tbl th {
  background: var(--card2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid var(--pro-line);
}
body.pro-theme .tbl td { border-bottom: 1px solid var(--pro-line-soft); }
body.pro-theme .tbl tr:last-child td { border-bottom: 0; }

/* ---------------- 表单/按钮 ---------------- */
body.pro-theme .btn {
  border-radius: 10px;
  border: 1px solid var(--pro-line);
  box-shadow: none;
  font-weight: 800;
}
body.pro-theme .btn:not(.ghost) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.pro-theme .btn.ghost { background: var(--card); color: var(--text); }
body.pro-theme .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
body.pro-theme .input,
body.pro-theme .select,
body.pro-theme .textarea {
  border-radius: 10px;
  border: 1px solid var(--pro-line);
  background: var(--card);
  color: var(--text);
}
body.pro-theme .input:focus,
body.pro-theme .select:focus,
body.pro-theme .textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------------- Tabs/Chips ---------------- */
body.pro-theme .tabs { gap: 4px; border-bottom: 0; }
body.pro-theme .tab {
  border-radius: 9px;
  padding: 7px 13px;
  font-weight: 800;
  color: var(--muted);
}
body.pro-theme .tab.active {
  background: var(--accent);
  color: #fff;
}
body.pro-theme .cats { gap: 6px; }
body.pro-theme .chip {
  border: 1px solid var(--pro-line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
}
body.pro-theme .chip.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
body.pro-theme .tag,
body.pro-theme .badge {
  border-radius: 999px;
  font-weight: 800;
}

/* ---------------- 弹窗/聊天 ---------------- */
body.pro-theme .modal {
  border-radius: 16px;
  border: 1px solid var(--pro-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  background: var(--card);
}
body.pro-theme .modal h3 { font-size: 16px; font-weight: 900; }
body.pro-theme .chat-win {
  border-radius: 16px;
  border: 1px solid var(--pro-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  background: var(--card);
}
body.pro-theme .chat-item {
  border: 1px solid var(--pro-line-soft);
  border-radius: 12px;
  background: var(--card);
}

/* ---------------- 用户端 ---------------- */
body.pro-theme .hero { overflow: hidden; }
body.pro-theme .hero img.bg { border-radius: 0; }
body.pro-theme .price-board { overflow: hidden; }
body.pro-theme .site-footer { color: var(--muted); }
body.pro-theme .brand-bar,
body.pro-theme .redeem-card,
body.pro-theme .prod-card,
body.pro-theme .fun-card,
body.pro-theme .me-card,
body.pro-theme .vip-card,
body.pro-theme .home-custom,
body.pro-theme .growth-hero,
body.pro-theme .home-notice-board {
  background: var(--card);
  border: 1px solid var(--pro-line);
  border-radius: var(--radius);
  box-shadow: var(--pro-shadow);
}
body.pro-theme .brand-bar { padding: 14px 16px; }
body.pro-theme .redeem-card { padding: 14px 16px; }
body.pro-theme .prod-card { overflow: hidden; }
body.pro-theme .prod-card:hover { border-color: var(--accent); }
body.pro-theme .fun-card { padding: 12px; }
body.pro-theme .me-card { padding: 16px; }

/* ---------------- 空态 ---------------- */
body.pro-theme .empty::before { display: none; content: none; }
body.pro-theme .empty { padding: 26px 14px; color: var(--muted); font-size: 13px; }

/* ---------------- 登录页 ---------------- */
body.pro-theme .login-card {
  border: 1px solid var(--pro-line);
  border-radius: 20px;
  box-shadow: var(--pro-shadow);
  background: var(--card);
}
body.pro-theme .login-card .input { border-radius: 10px; }

/* ---------------- 老板端 ---------------- */
body.pro-theme .shop-pane { border-radius: var(--radius); }
body.pro-theme .fb-admin-kpi { padding: 14px; }
body.pro-theme .fb-admin-kpi .fb-k-num { font-size: 26px; }
body.pro-theme .cmd-box { border-radius: 16px; border: 1px solid var(--pro-line); }
body.pro-theme .stats-card,
body.pro-theme .traffic-card { border-radius: var(--radius); }

/* ---------------- 培训内容（老板端弹窗） ---------------- */
body.pro-theme .lesson-list {
  background: var(--card);
  border: 1px solid var(--pro-line);
  border-radius: var(--radius);
  overflow: hidden;
}
body.pro-theme .lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pro-line-soft);
}
body.pro-theme .lesson-row:last-child { border-bottom: 0; }
body.pro-theme .lesson-row:hover { background: var(--card2); }
body.pro-theme .lesson-no {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
body.pro-theme .lesson-main { flex: 1; min-width: 0; }
body.pro-theme .lesson-title { font-size: 13px; font-weight: 800; }
body.pro-theme .lesson-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
body.pro-theme .quiz-list { display: flex; flex-direction: column; gap: 10px; }
body.pro-theme .quiz-item { border: 1px solid var(--pro-line); border-radius: 12px; padding: 12px; }
body.pro-theme .quiz-q { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
body.pro-theme .cert-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(232, 163, 61, .4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 163, 61, .14), transparent);
}
body.pro-theme .cert-title { font-size: 15px; font-weight: 900; color: #D9942E; }
body.pro-theme .cert-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 900px) {
  body.pro-theme .sidenav { display: none; }
  body.pro-theme.boss-pro .sidenav { display: none; }
  body.pro-theme .content { padding: 14px 14px 96px; height: auto; }
  body.pro-theme .h5-wrap { max-width: none; }
  body.pro-theme .today-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.pro-theme .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.pro-theme .tabbar { display: flex; }
}
@media (max-width: 560px) {
  body.pro-theme .card { padding: 14px; }
  body.pro-theme .kpi .value { font-size: 22px; }
  body.pro-theme .page-title { font-size: 17px; }
}

/* ---------------- 打手管理：展开对账明细 ---------------- */
body.pro-theme tr.p-row { cursor: pointer; }
body.pro-theme tr.p-row:hover > td { background: var(--card2); }
body.pro-theme tr.p-row.open > td { background: rgba(232, 103, 140, .06); }
body.pro-theme .p-name-cell { white-space: nowrap; }
body.pro-theme .p-expand {
  display: inline-block;
  margin-right: 4px;
  color: var(--muted);
  font-size: 13px;
  transition: transform .16s ease, color .16s ease;
}
body.pro-theme tr.p-row.open .p-expand { transform: rotate(90deg); color: var(--accent); }
body.pro-theme .pstmt-row > td { padding: 0 !important; background: var(--card2); }
body.pro-theme .pstmt { padding: 16px 15px 18px; border-top: 1px solid var(--pro-line); }
body.pro-theme .pstmt-top {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
body.pro-theme .pstmt-title { font-size: 13px; font-weight: 900; }
body.pro-theme .pstmt-title .small { font-weight: 600; margin-left: 5px; }
body.pro-theme .pstmt-summary {
  margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 11px;
}
body.pro-theme .pstmt-summary b { color: var(--text); font-size: 12px; }
body.pro-theme .pstmt-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 12px; }
body.pro-theme .pstmt-panel { min-width: 0; background: var(--card); border: 1px solid var(--pro-line); border-radius: 12px; padding: 10px; }
body.pro-theme .pstmt-panel-title { font-size: 11px; font-weight: 900; color: var(--muted); margin: 2px 2px 8px; letter-spacing: .06em; }
body.pro-theme .pstmt-tbl { font-size: 11px; }
body.pro-theme .pstmt-tbl th { white-space: nowrap; padding: 6px 7px; }
body.pro-theme .pstmt-tbl td { padding: 7px; vertical-align: top; }
body.pro-theme .pstmt-loading { padding: 18px; color: var(--muted); font-size: 12px; text-align: center; }
body.pro-theme .pstmt-loading.err { color: var(--red); }
@media (max-width: 920px) {
  body.pro-theme .pstmt-top { flex-direction: column; gap: 6px; }
  body.pro-theme .pstmt-summary { margin-left: 0; }
  body.pro-theme .pstmt-grid { grid-template-columns: 1fr; }
}
