/* 账户页样式（对应 page-account.js，2026-10-10 Tab 版定稿）
   结构：摘要卡（常驻）+ Tab 卡（额度流水 / 邀请好友 / 安全与设置） */

/* ── 通用 ── */
.acc-card {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); margin-bottom: 16px;
}
.acc-sec-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.acc-btn {
  font-family: inherit; font-size: 12.5px; font-weight: 500; border-radius: 8px; cursor: pointer;
  padding: 7px 16px; border: 1px solid #E2E8F0; background: #fff; color: #475569;
  transition: all .15s; flex-shrink: 0; white-space: nowrap;
}
.acc-btn:hover { border-color: #2563EB; color: #2563EB; }
.acc-btn.primary { background: #2563EB; border-color: #2563EB; color: #fff; font-weight: 600; }
.acc-btn.primary:hover { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }
.acc-btn.danger { color: #DC2626; border-color: #FECACA; }
.acc-btn.danger:hover { background: #FEF2F2; border-color: #FCA5A5; color: #B91C1C; }
.acc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
  background: #F1F5F9; color: #64748B;
}
.acc-chip.blue { background: #EFF4FF; color: #2563EB; }
.acc-ok { color: #16A34A; font-size: 12px; }

/* ═══ 摘要卡（常驻） ═══ */
.acc-top { padding: 22px 24px 20px; }
.acc-top-row { display: flex; align-items: center; gap: 14px; }
.acc-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: #DBEAFE; color: #1D4ED8;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
}
.acc-top-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-all; }
.acc-top-mail { font-size: 12.5px; color: #64748B; margin-top: 2px; }
.acc-top-right { margin-left: auto; }
.acc-top-hr { border: none; border-top: 1px solid #F1F5F9; margin: 18px 0 16px; }

.acc-quota-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.acc-q-label { font-size: 12px; color: #94A3B8; margin-bottom: 6px; }
.acc-q-num {
  font-size: 38px; font-weight: 700; line-height: 1; color: #0F172A;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.acc-q-num span { font-size: 13px; font-weight: 400; color: #94A3B8; letter-spacing: 0; margin-left: 5px; }
.acc-q-sub { font-size: 12px; color: #94A3B8; padding-bottom: 4px; }
.acc-q-sub b { color: #475569; font-variant-numeric: tabular-nums; font-weight: 600; }
.acc-q-reset { margin-left: auto; font-size: 12px; color: #94A3B8; padding-bottom: 4px; }

.acc-bar { display: flex; gap: 3px; height: 8px; border-radius: 4px; overflow: hidden; background: #F1F5F9; margin-top: 14px; }
.acc-bar i { display: block; height: 100%; }
.acc-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.acc-legend .lg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94A3B8; }
.acc-legend .lg i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.acc-legend .lg b { color: #475569; font-variant-numeric: tabular-nums; font-weight: 600; }

/* 新人礼包待领取提示条 */
.acc-gift-tip {
  margin-top: 16px; padding: 10px 14px; border-radius: 9px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #FFFBEB; border: 1px solid #FDE68A;
  font-size: 12.5px; color: #92400E;
}
.acc-gift-tip .acc-btn { margin-left: auto; }

/* ═══ Tab 卡 ═══ */
.acc-tabs { display: flex; gap: 26px; padding: 0 24px; border-bottom: 1px solid #F1F5F9; }
.acc-tab {
  appearance: none; background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 13.5px; color: #64748B; padding: 13px 2px 11px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.acc-tab.on { color: #2563EB; font-weight: 600; border-bottom-color: #2563EB; }
.acc-tab:hover:not(.on) { color: #0F172A; }
.acc-tb { padding: 18px 24px 22px; display: none; }
.acc-tb.on { display: block; }

/* ── 流水：seg 筛选 ── */
.acc-seg { display: inline-flex; border: 1px solid #E2E8F0; border-radius: 8px; overflow: hidden; margin-bottom: 4px; }
.acc-seg button {
  border: none; background: #fff; padding: 5px 14px; font-size: 12px;
  color: #64748B; cursor: pointer; font-family: inherit;
}
.acc-seg button + button { border-left: 1px solid #E2E8F0; }
.acc-seg button.on { background: #EFF4FF; color: #2563EB; font-weight: 600; }

/* ── 表格（流水 + 邀请记录共用） ── */
.acc-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.acc-table th {
  text-align: left; font-size: 11.5px; font-weight: 500; color: #94A3B8;
  padding: 7px 8px; border-bottom: 1px solid #F1F5F9; white-space: nowrap;
}
.acc-table td { padding: 10px 8px; border-bottom: 1px solid #F1F5F9; font-size: 12.5px; color: #475569; }
.acc-table tbody tr:last-child td { border-bottom: none; }
.acc-table tbody tr:hover td { background: #FAFBFD; }
.acc-table td.t { white-space: nowrap; color: #94A3B8; font-variant-numeric: tabular-nums; }
.acc-table td.delta { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.acc-table td.delta.plus { color: #16A34A; }
.acc-table td.delta.minus { color: #64748B; font-weight: 500; }
.acc-tbl-empty { text-align: center; color: #94A3B8; font-size: 12px; padding: 26px 0 !important; }

/* ── 分页器 ── */
.acc-pager { display: flex; align-items: center; gap: 6px; border-top: 1px solid #F1F5F9; margin-top: 8px; padding-top: 14px; }
.acc-pager .total { font-size: 12px; color: #94A3B8; margin-right: auto; }
.pg-btn {
  min-width: 28px; height: 28px; border-radius: 6px; font-family: inherit;
  border: 1px solid #E2E8F0; background: #fff; color: #475569;
  font-size: 12.5px; cursor: pointer; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.pg-btn:hover:not(:disabled):not(.on) { border-color: #2563EB; color: #2563EB; }
.pg-btn.on { background: #2563EB; border-color: #2563EB; color: #fff; font-weight: 600; }
.pg-btn:disabled { color: #94A3B8; cursor: default; background: #F1F5F9; }
.pg-dots { color: #94A3B8; font-size: 12px; padding: 0 2px; }

/* ── 邀请 tab ── */
.acc-inv-grid { display: grid; grid-template-columns: 216px 1fr; gap: 28px; align-items: center; }
.acc-poster-col { text-align: center; }
.acc-poster { cursor: zoom-in; display: block; }
.acc-poster img {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: 1px solid #E2E8F0; box-shadow: 0 3px 14px rgba(15, 23, 42, .10);
}
.acc-poster-dl { margin-top: 12px; width: 100%; justify-content: center; }
.acc-poster-hint { margin-top: 7px; font-size: 11px; color: #94A3B8; }

.acc-link-row {
  display: flex; align-items: stretch; border: 1px solid #E2E8F0;
  border-radius: 8px; overflow: hidden; margin-bottom: 16px;
}
.acc-link-row code {
  flex: 1; min-width: 0; padding: 9px 12px; font-size: 12px; color: #475569;
  background: #FAFBFD; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-link-row .acc-btn { border: none; border-left: 1px solid #E2E8F0; border-radius: 0; }

.acc-inv-stats {
  display: flex; gap: 30px; flex-wrap: wrap; padding: 16px 18px 14px;
  border-radius: 10px; background: #FAFBFD; border: 1px solid #F1F5F9; margin-bottom: 18px;
}
.acc-inv-stats .st { font-size: 12px; color: #94A3B8; }
.acc-inv-stats .st b {
  display: block; font-size: 26px; font-weight: 700; color: #0F172A;
  font-variant-numeric: tabular-nums; line-height: 1.2; margin-bottom: 3px; letter-spacing: -.3px;
}
.acc-inv-stats .st em { font-style: normal; font-size: 14px; color: #64748B; font-weight: 600; }

.acc-rules { border: 1px solid #F1F5F9; border-radius: 10px; padding: 14px 16px 15px; background: #fff; }
.acc-rules-title { font-size: 12.5px; font-weight: 600; color: #475569; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.acc-rules-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: #2563EB; }
.acc-rules-list { margin: 0; padding: 0; list-style: none; }
.acc-rules-list li {
  position: relative; padding: 3px 0 3px 16px;
  font-size: 12px; color: #64748B; line-height: 1.7;
}
.acc-rules-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: #BFD4FA;
}
.acc-rules-list b { color: #475569; }
.acc-inv-sec { margin-top: 22px; }

/* ── 海报放大灯箱 ── */
.acc-lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, .72);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
  flex-direction: column;
}
.acc-lightbox img { max-height: 86vh; max-width: 420px; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.acc-lightbox .tip { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 12px; }

/* ── 安全与设置 ── */
.acc-set-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid #F1F5F9; }
.acc-set-row:last-child { border-bottom: none; padding-bottom: 0; }
.acc-set-row:first-child { padding-top: 0; }
.acc-set-icon {
  width: 34px; height: 34px; border-radius: 9px; background: #F1F5F9; color: #64748B;
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.acc-set-txt { flex: 1; min-width: 0; }
.acc-set-name { font-size: 13px; font-weight: 600; }
.acc-set-desc { font-size: 12px; color: #94A3B8; margin-top: 1px; word-break: break-all; }

/* ── 渠道化（2026-12-01）：摘要卡渠道分解 + 流水渠道列/筛选 ── */
.acc-seg-row { display: flex; align-items: center; gap: 8px; }
.acc-seg-row .spacer { flex: 1; }
.acc-seg.dim { opacity: .4; pointer-events: none; }
.acc-chan-head { display: flex; align-items: baseline; gap: 8px; }
.acc-chan-head .acc-q-label { margin-bottom: 0; }
.acc-chan-cards { display: flex; gap: 10px; margin-top: 10px; }
.acc-chan-card {
  flex: 1; border: 1px solid #E2E8F0; border-radius: 10px;
  padding: 10px 14px; background: #F8FAFC;
}
.acc-chan-name {
  font-size: 11.5px; color: #64748B; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.acc-chan-name::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: #CBD5E1; flex-shrink: 0; }
.acc-chan-card.boss .acc-chan-name::before { background: #2563EB; }
.acc-chan-card.liepin .acc-chan-name::before { background: #7C3AED; }
.acc-chan-card.unknown .acc-chan-name::before { background: #FDBA74; }
.acc-chan-num { font-size: 18px; font-weight: 700; color: #0F172A; margin-top: 4px; font-variant-numeric: tabular-nums; }
.acc-chan-num span { font-size: 11px; font-weight: 500; color: #94A3B8; margin-left: 3px; }
/* 流水渠道列：纯文字（2026-12-01 用户定案，原徽章样式已移除） */

@media (max-width: 720px) {
  .acc-inv-grid { grid-template-columns: 1fr; }
  .acc-poster-col { max-width: 220px; margin: 0 auto; }
  .acc-top-row { flex-wrap: wrap; }
  .acc-top-right { margin-left: 0; width: 100%; }
  .acc-tabs { gap: 18px; }
  .acc-chan-cards { flex-direction: column; }
}
