/* ==========================================================================
   发财噜噜 · Ember Gold 主题（覆盖 style.css，最后加载）
   设计语言：obsidian 深底 + 鎏金/赤铜高光 + 玻璃拟态面板 + 细腻描边
   ========================================================================== */

:root {
  --ink: #07070b;
  --ink-2: #0b0c12;
  --surface: rgba(20, 21, 29, .82);
  --surface-2: rgba(28, 29, 39, .9);
  --surface-3: rgba(36, 37, 48, .92);
  --line: rgba(255, 255, 255, .07);
  --line-soft: rgba(255, 255, 255, .045);
  --line-gold: rgba(246, 198, 106, .3);

  --gold: #f6c66a;
  --gold-2: #dda43c;
  --gold-dim: rgba(246, 198, 106, .14);
  --ember: #ff5f4d;
  --ember-dim: rgba(255, 95, 77, .14);
  --sky: #5ec8ff;
  --mint: #4fe0b0;

  --bg: var(--ink);
  --bg2: var(--ink-2);
  --panel: var(--surface);
  --panel-b: var(--line);
  --txt: #f2f4f8;
  --txt-2: #a9b1c1;
  --txt-3: #717a8c;
  --blue: var(--gold);
  --cyan: var(--sky);
  --green: var(--mint);
  --gold-c: var(--gold);
  --pink: var(--ember);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- 基底 */
html { color-scheme: dark; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(255, 95, 77, .16), transparent 62%),
    radial-gradient(720px 460px at 96% 2%, rgba(246, 198, 106, .13), transparent 60%),
    radial-gradient(900px 700px at 50% 118%, rgba(120, 60, 220, .1), transparent 65%),
    linear-gradient(180deg, #07070b 0%, #08080d 45%, #06060a 100%);
  background-attachment: fixed;
  color: var(--txt);
  letter-spacing: .1px;
}

body::before {
  background-image:
    linear-gradient(rgba(246, 198, 106, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 198, 106, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 78%);
}

::selection { background: rgba(246, 198, 106, .28); color: #fff; }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12); border-radius: 99px;
  border: 2px solid transparent; background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(246, 198, 106, .38); background-clip: content-box; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  background: linear-gradient(180deg, rgba(16, 17, 24, .94), rgba(10, 10, 15, .78));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand .logo {
  width: 38px; height: 38px; border-radius: 12px; overflow: hidden;
  background: #b8171c;
  box-shadow: 0 0 0 1px rgba(246, 198, 106, .45), 0 8px 22px rgba(200, 30, 30, .45);
  display: flex; align-items: center; justify-content: center;
}
.brand .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.brand h1 {
  font-size: 16.5px; font-weight: 700; letter-spacing: .3px;
  background: linear-gradient(92deg, #fff 8%, #ffe6b3 52%, #f6c66a 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand h1 small {
  display: block; margin-top: 3px; font-size: 9.5px; font-weight: 600;
  letter-spacing: 1.6px; color: var(--txt-3); -webkit-text-fill-color: var(--txt-3);
  text-transform: uppercase;
}

.clock { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; color: var(--txt-2); }
.whoami { font-size: 12.5px; color: var(--txt-2); }
.whoami b { color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  --btn-bg: rgba(255, 255, 255, .05);
  --btn-fg: var(--txt);
  --btn-line: var(--line);
  border-radius: 11px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12.8px; font-weight: 600; letter-spacing: .2px;
  padding: 8px 14px;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(246, 198, 106, .28); }

.btn.primary {
  --btn-bg: linear-gradient(180deg, #ffd98a, #e9b24a);
  --btn-fg: #241703;
  --btn-line: rgba(255, 224, 160, .7);
  box-shadow: 0 10px 26px rgba(224, 168, 66, .32), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn.primary:hover { box-shadow: 0 14px 32px rgba(224, 168, 66, .42), inset 0 1px 0 rgba(255, 255, 255, .6); }

.btn.accent {
  --btn-bg: linear-gradient(180deg, rgba(255, 95, 77, .22), rgba(255, 95, 77, .12));
  --btn-fg: #ffd7d1;
  --btn-line: rgba(255, 95, 77, .45);
}

.btn.ghost {
  --btn-bg: rgba(255, 255, 255, .035);
  --btn-fg: var(--txt-2);
  --btn-line: var(--line);
}
.btn.ghost:hover { --btn-fg: #fff; --btn-line: rgba(246, 198, 106, .38); background: rgba(246, 198, 106, .08); }

.btn.mini { padding: 4px 10px; font-size: 11.5px; border-radius: 9px; }

.seg {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(12, 12, 17, .8);
  padding: 2px;
  gap: 2px;
}
.seg button {
  border-radius: 9px; font-size: 11.8px; font-weight: 600;
  color: var(--txt-3); padding: 5px 12px;
  transition: all .18s var(--ease);
}
.seg button:hover { color: var(--txt); }
.seg button.on {
  background: linear-gradient(180deg, rgba(246, 198, 106, .22), rgba(246, 198, 106, .1));
  color: #ffe1a8;
  box-shadow: inset 0 0 0 1px rgba(246, 198, 106, .3);
}

/* ---------------------------------------------------------------- 表单 */
input, select, textarea {
  background: rgba(10, 11, 16, .9);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--txt);
  font-size: 12.8px;
  padding: 9px 11px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
input::placeholder, textarea::placeholder { color: #5d6675; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .14); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(246, 198, 106, .55);
  box-shadow: 0 0 0 3px rgba(246, 198, 106, .14);
  background: rgba(14, 15, 21, .96);
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a9b1c1' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  padding-right: 28px;
}
label, .filters-v label { color: var(--txt-3); font-size: 11.5px; letter-spacing: .3px; }

/* ---------------------------------------------------------------- 面板/卡片 */
.card, .panel {
  background: linear-gradient(180deg, rgba(23, 24, 33, .86), rgba(13, 14, 20, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card-h { padding-bottom: 10px; }
.card-h h2, .card-h h3, .panel h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .4px; color: #f4f6fa;
}
.card-h h2::before, .card-h h3::before, .panel h2::before {
  content: "";
  display: inline-block; width: 3px; height: 13px; margin-right: 8px;
  border-radius: 2px; vertical-align: -2px;
  background: linear-gradient(180deg, var(--gold), var(--ember));
  box-shadow: 0 0 10px rgba(246, 198, 106, .5);
}
.hint, .hint-inline { color: var(--txt-3); font-size: 11.5px; }

/* ---------------------------------------------------------------- KPI */
.kpi-big {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(246, 198, 106, .1), transparent 55%),
    linear-gradient(165deg, rgba(26, 27, 37, .95), rgba(12, 13, 19, .96));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .05);
  position: relative; overflow: hidden;
}
.kpi-big::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 198, 106, .55), transparent);
}
.kpi-big .k-label { font-size: 12px; color: var(--txt-2); letter-spacing: .5px; }
.kpi-big .k-label i { box-shadow: 0 0 12px currentColor; }
.kpi-big .k-value {
  font-size: 34px; font-weight: 750; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #e6d3ae 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi-big .k-foot { color: var(--txt-3); font-size: 11.5px; }

.kpi-sub {
  background: linear-gradient(160deg, rgba(24, 25, 34, .9), rgba(12, 13, 19, .95));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.kpi-sub .k-value-s { font-size: 26px; font-weight: 720; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.kpi-sub .k-label { color: var(--txt-2); }

/* ---------------------------------------------------------------- 左栏筛选 */
.card-filters { padding: 14px; }
.card-filters input, .card-filters select { width: 100%; }
.applied {
  background: rgba(246, 198, 106, .06);
  border: 1px dashed rgba(246, 198, 106, .28);
  border-radius: 10px;
  color: #d9c9a4; font-size: 11.5px;
}
.clear-btn {
  border: 1px solid rgba(255, 95, 77, .4); border-radius: 11px;
  color: #ffb3a9; background: rgba(255, 95, 77, .1);
  transition: all .18s var(--ease);
}
.clear-btn:hover { background: rgba(255, 95, 77, .18); color: #ffd7d1; }

/* ---------------------------------------------------------------- 排行榜 */
.lb-row {
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all .18s var(--ease);
}
.lb-row:hover {
  background: rgba(246, 198, 106, .07);
  border-color: rgba(246, 198, 106, .3);
}
.lb-row .rk {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: rgba(255, 255, 255, .06);
  color: var(--txt-2); border-radius: 8px;
}
.lb-row .rk.top1 { background: linear-gradient(180deg, #ffd98a, #d89b32); color: #2a1a02; box-shadow: 0 0 14px rgba(246, 198, 106, .45); }
.lb-row .rk.top2 { background: linear-gradient(180deg, #e3e8f2, #a9b3c6); color: #1b2130; }
.lb-row .rk.top3 { background: linear-gradient(180deg, #f0b98a, #c07a44); color: #2b1608; }
.lb-row .nick { color: #f1f4fa; font-weight: 620; }
.lb-row .bar { background: rgba(255, 255, 255, .06); }
.lb-row .bar i {
  background: linear-gradient(90deg, #f6c66a, #ff9a5c);
  box-shadow: 0 0 12px rgba(246, 198, 106, .45);
}
.lb-row .amt { color: #ffe3b0; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-divider { color: #8d7a55; border-top: 1px dashed rgba(246, 198, 106, .22); }

/* ---------------------------------------------------------------- 按日期 */
.day-tip {
  background: rgba(246, 198, 106, .06);
  border: 1px dashed rgba(246, 198, 106, .26);
  color: #d8c8a2; border-radius: 10px;
}
.day-tip-link {
  background: rgba(246, 198, 106, .14);
  border: 1px solid rgba(246, 198, 106, .4);
  color: #ffe0a6;
}
.day-tip-link:hover { background: rgba(246, 198, 106, .24); color: #fff3d6; }

.day-item { border-radius: 12px; }
.day-head:hover { background: rgba(255, 255, 255, .035); }
.day-item.open { background: rgba(246, 198, 106, .04); box-shadow: inset 0 0 0 1px rgba(246, 198, 106, .16); }
.day-head .d { font-family: "SFMono-Regular", Consolas, monospace; color: #e9edf5; }
.day-head .r { color: #ffe3b0; font-weight: 700; }
.proj-row { border-radius: 10px; }
.proj-row:hover { background: rgba(246, 198, 106, .08); box-shadow: inset 0 0 0 1px rgba(246, 198, 106, .3); }
.proj-row .pid { color: var(--txt-3); }
.tag.imp { background: rgba(94, 200, 255, .14); color: #a7e4ff; }
.tag.demo { background: rgba(246, 198, 106, .16); color: #ffdfa0; }

/* ---------------------------------------------------------------- 明细表 */
.detail-card { border-radius: 18px; }
.d-tip { color: #8d815f; }
.dtable thead th {
  background: linear-gradient(180deg, #14151d, #101018);
  color: #b9a274; font-weight: 650; letter-spacing: .5px;
  border-bottom: 1px solid rgba(246, 198, 106, .2);
}
.dtable thead th.on { color: #ffdfa0; }
.dtable tbody td { color: #dfe5f0; border-bottom: 1px solid rgba(255, 255, 255, .045); }
.dtable tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .014); }
.dtable tbody tr:hover td { background: rgba(246, 198, 106, .07); }
.dtable td:first-child { color: #9aa3b5; }
.dtable td.num.money { color: #ffd98a; }
.dtable tbody td.dim { color: #5b6373; }

/* ---------------------------------------------------------------- 登录 */
.gate {
  background:
    radial-gradient(700px 420px at 50% -10%, rgba(255, 95, 77, .22), transparent 62%),
    radial-gradient(600px 400px at 88% 110%, rgba(246, 198, 106, .16), transparent 60%),
    #07070b;
}
.gate-card {
  width: 396px; padding: 34px 32px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 27, 37, .96), rgba(12, 13, 19, .98));
  border: 1px solid rgba(246, 198, 106, .22);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 70px rgba(246, 198, 106, .08);
  position: relative; overflow: hidden;
}
.gate-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 198, 106, .75), transparent);
}
.gate-ico {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 18px;
  background: url("/logo.jpg") center/cover, #b8171c;
  box-shadow: 0 0 0 1px rgba(246, 198, 106, .5), 0 14px 34px rgba(200, 30, 30, .5);
  font-size: 0; color: transparent; overflow: hidden;
}
.gate-card h2 {
  text-align: center; font-size: 19px; font-weight: 700; letter-spacing: .4px;
  background: linear-gradient(92deg, #fff, #ffe6b3 60%, #f6c66a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.gate-card p { text-align: center; color: var(--txt-3); font-size: 11.8px; line-height: 1.7; margin-bottom: 18px; }
.gate-card input { width: 100%; margin-bottom: 10px; padding: 11px 13px; font-size: 13px; }
.cap-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.cap-row img {
  height: 42px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #0a0b10;
}
.cap-math { flex: 1; color: #ffd98a; font-size: 13px; }
.gate-btn { width: 100%; margin-top: 6px; padding: 11px; font-size: 13.4px; }
.gate-err { color: #ff8f80; font-size: 12px; min-height: 16px; }

/* ---------------------------------------------------------------- 后台专属 */
.stat > div {
  background: linear-gradient(165deg, rgba(26, 27, 37, .92), rgba(12, 13, 19, .95));
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.stat > div span { color: var(--txt-3); font-size: 11.5px; letter-spacing: .3px; }
.stat > div b { color: #fff; font-variant-numeric: tabular-nums; }

.table-wrap table { font-size: 12.3px; }
.table-wrap thead th {
  background: linear-gradient(180deg, #14151d, #101018);
  color: #b9a274; font-weight: 650; letter-spacing: .4px;
  border-bottom: 1px solid rgba(246, 198, 106, .2);
}
.table-wrap tbody td { color: #dde3ee; border-bottom: 1px solid rgba(255, 255, 255, .045); }
.table-wrap tbody tr:hover td { background: rgba(246, 198, 106, .06); }

.mono { font-family: "SFMono-Regular", Consolas, monospace; color: #a8b6cc; }
.filelist { color: var(--txt-2); }
.filelist code { color: #ffdfa0; background: rgba(246, 198, 106, .1); border-radius: 5px; padding: 0 4px; }

.drop {
  border: 1px dashed rgba(246, 198, 106, .3);
  border-radius: 16px; color: var(--txt-2);
  background: rgba(246, 198, 106, .04);
  transition: all .2s var(--ease);
}
.drop:hover, .drop.hot {
  border-color: rgba(246, 198, 106, .65);
  background: rgba(246, 198, 106, .09);
  color: #ffe9c2;
}
.progress { background: rgba(255, 255, 255, .06); border-radius: 99px; }
.progress i { background: linear-gradient(90deg, var(--gold), var(--ember)); }

.import-box {
  background: linear-gradient(180deg, rgba(24, 25, 34, .92), rgba(12, 13, 19, .95));
  border: 1px solid var(--line); border-radius: 16px;
}

/* 状态色 */
.st-on { color: #6ee7b7; }
.st-off { color: #ff9d92; }
.warn { color: #ffb26b; }
.ok { color: #6ee7b7; }

/* ---------------------------------------------------------------- 弹窗/提示 */
.mask { background: rgba(4, 5, 9, .72); backdrop-filter: blur(6px); }
.modal, .acct-modal {
  background: linear-gradient(180deg, rgba(26, 27, 37, .98), rgba(12, 13, 19, .99));
  border: 1px solid rgba(246, 198, 106, .2);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .72);
}
.toast {
  background: rgba(24, 25, 34, .97);
  border: 1px solid rgba(246, 198, 106, .38);
  color: #ffe9c2;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.toast.err { border-color: rgba(255, 95, 77, .5); color: #ffc4bb; }

/* 水印：更克制的金色 */
.wm-layer, .watermark, .wm { color: rgba(246, 198, 106, .085) !important; }


/* ---------------------------------------------------------------- 按钮：显式覆盖（优先于 style.css 的 .btn.primary） */
.btn.primary {
  background: linear-gradient(180deg, #ffd98a, #e9b24a);
  border-color: rgba(255, 224, 160, .7);
  color: #251803;
  box-shadow: 0 10px 26px rgba(224, 168, 66, .3), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #ffe2a2, #eebc5b);
  box-shadow: 0 14px 34px rgba(224, 168, 66, .42), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn.ghost {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .09);
  color: #a9b1c1;
}
.btn.ghost:hover {
  background: rgba(246, 198, 106, .1);
  border-color: rgba(246, 198, 106, .38);
  color: #ffe9c2;
}
.btn.accent {
  background: linear-gradient(180deg, rgba(255, 95, 77, .24), rgba(255, 95, 77, .12));
  border-color: rgba(255, 95, 77, .45);
  color: #ffd7d1;
}
.btn.accent:hover { background: linear-gradient(180deg, rgba(255, 95, 77, .34), rgba(255, 95, 77, .18)); }

/* 主按钮里的高光字 */
.btn.primary, .btn.primary:hover { text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
/* 明细表：视频ID 完整展示（自动换行，不截断），双击复制 */
.dtable td.vid {
  white-space: normal;
  word-break: break-all;
  line-height: 1.35;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 10.8px;
  color: #b6c6dd;
  cursor: copy;
  transition: color .15s, background .15s;
}
.dtable td.vid:hover { color: #ffe0a6; background: rgba(246, 198, 106, .08); }
.dtable td.vid:active { background: rgba(246, 198, 106, .16); }
.dtable td.vid { font-size: 10.6px; }
/* 明细表「视频号」列：ID 主显 + 昵称小字 */
.dtable td.acct { white-space: normal; line-height: 1.3; }
.dtable td.acct .aid {
  display: block; font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 10.8px; color: #cfe0f5; letter-spacing: .1px;
}
.dtable td.acct .anick { display: block; font-size: 10.4px; color: #7c8798; margin-top: 1px; }
.dtable td.acct:hover .aid { color: #ffe0a6; }
.dtable { min-width: 1280px; }
.dtable td.vid.nid { white-space: nowrap; word-break: normal; font-size: 10.4px; }
/* 视频号ID / 视频ID 单元格：等宽 + 双击复制反馈 */
.dtable td.vid {
  white-space: normal; word-break: break-all; line-height: 1.35;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 10.6px; color: #b6c6dd; cursor: copy;
  transition: color .15s, background .15s;
}
.dtable td.vid:hover { color: #ffe0a6; background: rgba(246, 198, 106, .08); }
.dtable td.vid:active { background: rgba(246, 198, 106, .18); }
.dtable { min-width: 1160px; }
.dtable td.vid { font-size: 10.2px; }
/* 明细表铺满卡片宽度（不再右侧留白），日期列完整显示 */
.dtable { width: 100%; min-width: 960px; table-layout: fixed; }
.dtable th:first-child, .dtable td:first-child {
  font-size: 11px; letter-spacing: -.2px; white-space: nowrap;
}
