/* ================= CF 抢昵称 · 暗色主题 ================= */
/* 只覆盖样式，不动任何逻辑；删掉这行 link 即可还原 */

:root {
  --bg: #0a0e13;
  --panel: #121a24;
  --card: #121a24;
  --card-hi: #1a2430;
  --line: #22303f;
  --line2: #32465b;
  --fg: #e6edf5;
  --dim: #93a5b8;
  --dim2: #6b7f93;
  --pri: #ff6a00;
  --pri2: #ff8f2b;
  --cyan: #19c2d8;
  --ok: #35d07f;
  --warn: #ffb020;
  --err: #ff4d4f;
  --gold: #ffc84a;
}

html, body {
  background: #0a0e13 !important;
  color: var(--fg) !important;
}

body {
  background-image:
    radial-gradient(900px 420px at 78% -8%, rgba(255,106,0,.10), transparent 62%),
    radial-gradient(700px 380px at 8% 12%, rgba(25,194,216,.05), transparent 60%),
    repeating-linear-gradient(135deg, #0e141b 0 2px, #0a0e13 2px 6px) !important;
  background-attachment: fixed !important;
}

/* 背景水印 */
body::after {
  content: "CF";
  position: fixed;
  right: 2vw; bottom: -6vh;
  font: 900 42vh/1 "Impact", "Microsoft YaHei", sans-serif;
  color: rgba(255,106,0,.035);
  letter-spacing: .06em;
  pointer-events: none;
  z-index: 0;
}

/* ---------- 顶栏 ---------- */
.nav, .bnav {
  background: linear-gradient(180deg, #101821, #0c1219) !important;
  border-bottom: 2px solid #ff6a00 !important;
  box-shadow: 0 2px 18px rgba(255,106,0,.14) !important;
  height: 60px !important;
}
.nav .brand, .bnav div:first-child, .brand {
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav a, .bnav a { color: #cfdae6 !important; }
.nav a.router-link-active, .bnav a.router-link-active {
  color: #ff8f2b !important;
  border-bottom: 2px solid #ff6a00;
}
.nav .right, .nav .who { color: var(--dim) !important; }

/* ---------- 主体 ---------- */
.main, .bmain { position: relative; z-index: 1; }
h1, h2, h3 { color: #f2f7fc !important; letter-spacing: .02em; }
h1::before {
  content: "";
  display: inline-block;
  width: 4px; height: 18px;
  margin-right: 10px;
  vertical-align: -2px;
  background: linear-gradient(180deg, #ff8f2b, #ff4d00);
  box-shadow: 0 0 10px rgba(255,106,0,.7);
}
.ph-l p, .sub, .label, .tip, p { color: var(--dim) !important; }

/* ---------- 卡片 / 统计 ---------- */
.card, .stat, .panel, .box, .authCard, .modal-box, .wrap {
  background: linear-gradient(180deg, #141d28, #101720) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 22px rgba(0,0,0,.35) !important;
}
.card:hover { border-color: #32465b !important; }
.stat .num, .stat b, .card .num {
  color: #ff8f2b !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}
.stat .label, .stat > div:first-child, .card .label {
  color: var(--dim) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px !important;
}

/* ---------- 账号卡片内部 ---------- */
.cdata, .cell, .cmeta, .cprog { background: transparent !important; }
.cell {
  background: #0e141b !important;
  border: 1px solid #1e2a37 !important;
  border-radius: 6px !important;
}
.cell b, .cell strong { color: #ffb057 !important; }
.qq, .zone { color: var(--fg) !important; }
.zone {
  background: #1a2430 !important;
  border: 1px solid #2b3d50 !important;
  border-radius: 4px !important;
  color: #cfdae6 !important;
}
.pill, .pillok, .p-run, .p-win, .p-warn, .p-err, .p-idle {
  border-radius: 4px !important;
  background: #1a2430 !important;
  border: 1px solid #2b3d50 !important;
}
.p-run { color: #ff8f2b !important; border-color: #5a3312 !important; background: #241605 !important; }
.p-win { color: #35d07f !important; border-color: #17452c !important; background: #0b1f16 !important; }
.p-err { color: #ff6b6b !important; border-color: #4a1d1d !important; background: #1e0f0f !important; }

.bar { background: #1a2430 !important; height: 7px !important; }
.bar i {
  background: linear-gradient(90deg, #ff8f2b, #ff4d00) !important;
  box-shadow: 0 0 10px rgba(255,106,0,.55) !important;
}
.pct, .frac { color: var(--dim) !important; }
.clog {
  background: #0b1017 !important;
  border: 1px solid #1b2531 !important;
  border-radius: 6px !important;
  color: #b9c8d8 !important;
}
.cacts { border-top: 1px solid var(--line) !important; }

/* ---------- 按钮 ---------- */
.btn, .pbtn, button.btn {
  background: #18222e !important;
  border: 1px solid #2b3d50 !important;
  color: #dbe6f1 !important;
  border-radius: 5px !important;
  transition: all .15s;
}
.btn:hover, .pbtn:hover { border-color: #ff6a00 !important; color: #ffb057 !important; background: #1d2836 !important; }
.btn.primary, .submit, button.submit {
  background: linear-gradient(180deg, #ff9a3c, #e05700) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(255,106,0,.35) !important;
  font-weight: 700;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.gray { background: #141c26 !important; color: #9fb3c6 !important; }
.btn[disabled], .btn:disabled { opacity: .45 !important; }
.btn.danger, .op[class*="del"] { color: #ff6b6b !important; border-color: #4a1d1d !important; }

/* ---------- 弹层 ---------- */
.ov { background: rgba(3,6,10,.72) !important; backdrop-filter: blur(3px); }
.modal-box, .box {
  border-radius: 10px !important;
  border: 1px solid #2b3d50 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.6) !important;
}
.x { color: #7f92a6 !important; }
.x:hover { color: #ff6a00 !important; }

/* ---------- 表单 ---------- */
input, textarea, select, .pager-sel {
  background: #0c1218 !important;
  border: 1px solid var(--line) !important;
  color: var(--fg) !important;
  border-radius: 5px !important;
}
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: #ff6a00 !important;
  box-shadow: 0 0 0 2px rgba(255,106,0,.15) !important;
}
input::placeholder, textarea::placeholder { color: #55697d !important; }
.checks label, label { color: var(--dim) !important; }

/* ---------- 日志区 ---------- */
.logs, .lbody, .lhead {
  background: #0b1017 !important;
  border-color: #1b2531 !important;
  color: #b9c8d8 !important;
}
.lhead { border-bottom: 1px solid #1b2531 !important; color: #8fa3b7 !important; }
.logs .ok, .lbody .ok { color: #4ade80 !important; }
.logs .err, .lbody .err { color: #ff6b6b !important; }
.logs .warn, .lbody .warn { color: #ffb020 !important; }

/* ---------- 表格（站长端） ---------- */
table { background: transparent !important; }
th { color: #7f92a6 !important; font-weight: 500 !important; border-bottom: 1px solid var(--line) !important; }
td { color: #cfdae6 !important; border-bottom: 1px solid #16202b !important; }
tr:hover td { background: #131b25 !important; }
.tag.ok { background: #0b1f16 !important; color: #35d07f !important; }
.tag.err { background: #1e0f0f !important; color: #ff6b6b !important; }
.tag.stop { background: #241605 !important; color: #ffb020 !important; }

/* ---------- 登录页 ---------- */
.authWrap { background: transparent !important; }
.hero {
  background: linear-gradient(160deg, #101821, #0a0e13) !important;
  border-right: 1px solid var(--line) !important;
}
.hlogo, .mlogo {
  background: linear-gradient(180deg, #ff8f2b, #e05700) !important;
  color: #fff !important;
  border-radius: 6px !important;
  box-shadow: 0 0 18px rgba(255,106,0,.5) !important;
}
.hero h2 { color: #fff !important; }
.hero li { color: #9fb3c6 !important; }
.seg { background: #0e141b !important; border: 1px solid var(--line) !important; }
.seg button { color: #93a5b8 !important; }
.seg button.on { background: #ff6a00 !important; color: #fff !important; }

/* ---------- 细节 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0b1017; }
::-webkit-scrollbar-thumb { background: #24313f; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #33465a; }
::selection { background: rgba(255,106,0,.35); }

/* 实时抢号面板跟着主题走 */
#cfid-live-slot > div {
  border-color: #2b3d50 !important;
  background: #0b1017 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.5) !important;
}

/* ---------- 卡片操作按钮（.op 是 scoped 样式，必须压过 data-v） ---------- */
.op, .op[data-v-316a6f5b] {
  background: #141c26 !important;
  border: 1px solid #2b3d50 !important;
  color: #c3d2e0 !important;
}
.op:hover { border-color: #ff6a00 !important; color: #ffb057 !important; background: #1b2531 !important; }
.op.primary[data-v-316a6f5b], .op.primary {
  background: linear-gradient(180deg, #ff9a3c, #e05700) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 12px rgba(255,106,0,.3) !important;
}
.op.soft[data-v-316a6f5b], .op.soft {
  background: #241605 !important;
  border-color: #5a3312 !important;
  color: #ffb020 !important;
}
.nav .logout {
  background: #18222e !important;
  border: 1px solid #2b3d50 !important;
  color: #c3d2e0 !important;
}
.nav .logout:hover { color: #ff6b6b !important; border-color: #6b2a2a !important; }

/* 登录/注册切换 */
.seg button { background: transparent !important; }
.seg button.on { background: linear-gradient(180deg, #ff9a3c, #e05700) !important; color: #fff !important; }

/* 原生控件统一字体 */
button, input, select, textarea { font-family: inherit; }

/* ---------- 顶部宣传条 ---------- */
#cfid-ticker {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 36px;
  background: linear-gradient(90deg, #170d02, #2a1400 40%, #341900 60%, #170d02);
  border-bottom: 1px solid #5a3312;
  color: #ffb057;
  font-size: 13px;
  letter-spacing: .12em;
  text-shadow: 0 0 12px rgba(255,106,0,.45);
  overflow: hidden;
}
#cfid-ticker b {
  color: #ff8f2b;
  font-weight: 800;
  letter-spacing: .14em;
}
#cfid-ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,138,31,.16) 50%, transparent 80%);
  transform: translateX(-60%);
  animation: cfid-sheen 5.5s linear infinite;
}
@keyframes cfid-sheen {
  0%   { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}
.tk-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff6a00;
  box-shadow: 0 0 10px #ff6a00;
  animation: cfid-pulse 1s steps(1, end) infinite;
}
@keyframes cfid-pulse {
  0%, 49%   { opacity: 1;   transform: scale(1); }
  50%, 100% { opacity: .12; transform: scale(.8); }
}
.tk-text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96vw;
}
#cfid-ticker em {
  font-style: normal;
  color: #ffd08a;
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: 0 0 10px rgba(255,208,138,.45);
}
@media (max-width: 720px) {
  #cfid-ticker { font-size: 11px; letter-spacing: .04em; height: 32px; }
  #cfid-ticker b, #cfid-ticker em { letter-spacing: .05em; }
}

/* ---------- 宣传条第二行 ---------- */
#cfid-ticker-sub {
  position: relative;
  z-index: 29;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background: #0c1218;
  border-bottom: 1px solid #1b2430;
  color: #8fa3b7;
  font-size: 12px;
  letter-spacing: .09em;
}
#cfid-ticker-sub b {
  color: #ffb057;
  font-weight: 700;
  margin: 0 3px;
  text-shadow: 0 0 8px rgba(255,176,87,.35);
}
#cfid-ticker-sub i {
  font-style: normal;
  color: #4ec9a8;
  margin-left: 8px;
  letter-spacing: .06em;
}
@media (max-width: 720px) {
  #cfid-ticker-sub { font-size: 11px; letter-spacing: .03em; height: 28px; }
}

/* 第二行右侧时钟 */
#cfid-ticker-sub { position: relative; }
#cfid-clock-wrap {
  position: absolute;
  right: 26px;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tk-dot2 { width: 6px; height: 6px; }
#cfid-clock {
  font-family: Consolas, Menlo, monospace;
  font-size: 12px;
  color: #ffb057;
  letter-spacing: .16em;
  text-shadow: 0 0 8px rgba(255,176,87,.4);
  min-width: 74px;
  text-align: right;
}
@media (max-width: 720px) {
  #cfid-clock-wrap { right: 10px; }
  #cfid-clock { font-size: 11px; min-width: 66px; }
  #cfid-sub-text { max-width: 72vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* 第二行：已扫描次数 */
#cfid-ticker-sub .tk-sep { color: #3d4b5b; margin: 0 7px; }
#cfid-ticker-sub .tk-cnt {
  color: #4ec9a8;
  font-variant-numeric: tabular-nums;
  min-width: 3.6em;
  display: inline-block;
  text-align: right;
  text-shadow: 0 0 9px rgba(78,201,168,.45);
}

/* ---------- 每张账号卡片下面的实时日志 ---------- */
.cfid-card-log {
  margin-top: 14px;
  border: 1px solid #1b2531;
  border-radius: 8px;
  background: #0b1017;
  overflow: hidden;
}
.cfid-card-log .h {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: #0f1a24;
  border-bottom: 1px solid #1b2531;
  font-size: 11px;
  color: #8fa3b7;
  letter-spacing: .06em;
}
.cfid-card-log .d {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ff6a00;
  box-shadow: 0 0 8px #ff6a00;
  animation: cfid-pulse 1s steps(1, end) infinite;
}
.cfid-card-log .b {
  height: 130px;
  overflow-y: auto;
  padding: 7px 10px;
  font: 11px/1.65 Consolas, Menlo, monospace;
  color: #b9c8d8;
}
.cfid-card-log .b .ok   { color: #4ade80; }
.cfid-card-log .b .err  { color: #ff6b6b; }
.cfid-card-log .b .warn { color: #ffb057; }

/* ---------- 抢到提示 ---------- */
#cfid-toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cfid-toast {
  min-width: 260px;
  padding: 14px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b1206, #120c05);
  border: 1px solid #ff6a00;
  box-shadow: 0 0 24px rgba(255, 106, 0, .45), 0 10px 30px rgba(0, 0, 0, .6);
  color: #ffd9a8;
  font-size: 13px;
  line-height: 1.6;
  animation: cfid-toast-in .28s ease-out;
}
.cfid-toast b {
  display: block;
  color: #ff8f2b;
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: .04em;
}
.cfid-toast.out {
  opacity: 0;
  transform: translateX(20px);
  transition: all .5s ease;
}
@keyframes cfid-toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
