/* 号码核对台 — light console. Cache stamp 20261030ui.
   One palette for login, match, records, membership, and admin.
   Tokens match the membership page: white cards, slate text, blue accent. */
:root {
  --bg: #F6F8FC;
  --card: #FFFFFF;
  --card2: #F8FAFC;
  --acc: #2563EB;
  --acc-hover: #1D4ED8;
  --hover: #1D4ED8;
  --selected: #EFF6FF;
  --blue-line: #BFDBFE;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --text: #0F172A;
  --body: #334155;
  --dim: #64748B;
  --dim2: #64748B;
  --ok: #15803D;
  --ok-bg: #F0FDF4;
  --ok-line: #BBF7D0;
  --bad: #B91C1C;
  --bad-bg: #FEF2F2;
  --bad-line: #FECACA;
  --warn: #92400E;
  --warn-bg: #FFFBEB;
  --warn-line: #FDE68A;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .05);
  --focus: 0 0 0 3px rgba(37, 99, 235, .22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
.dim { color: var(--dim); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.warn { color: var(--warn); font-weight: 600; }
.nowrap { white-space: nowrap; }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.hr { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; color: var(--dim); }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.skip:focus { top: 8px; text-decoration: none; }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 64px;
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.2px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--acc);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--card2); text-decoration: none; }
.nav a.on { color: var(--acc); background: var(--selected); font-weight: 600; }
.nav a.dim { color: var(--dim); font-weight: 500; }
.nav a.dim:hover { color: var(--text); }

.memberbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--body);
}
.memberbar.is-member { background: var(--ok-bg); border-bottom-color: var(--ok-line); }
.memberbar.is-guest { background: var(--warn-bg); border-bottom-color: var(--warn-line); }
.memberbar .wrap { padding-top: 8px; padding-bottom: 8px; line-height: 1.5; }
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}
.dot.ok { background: var(--ok); }
.dot.bad { background: #D97706; }
.warn-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 8px;
  padding: 0 2px;
  color: var(--acc);
  font-weight: 600;
}
.warn-link:hover { text-decoration: underline; }

main.wrap {
  padding-top: 24px;
  padding-bottom: max(40px, calc(28px + env(safe-area-inset-bottom)));
}

.pagehead { margin: 2px 0 18px; }
.pagehead h1,
.card h1,
.auth-card h1 {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.4px;
}
.pagehead p { margin: 6px 0 0; max-width: 42em; color: var(--dim); font-size: 14px; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--acc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.card h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.2px;
}
.card h3 { margin: 0 0 8px; font-size: 14px; color: var(--dim); font-weight: 600; }
.card p { margin: 0 0 14px; }
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cardhead h2 { margin: 0; }
.cardhead a.dim { color: var(--acc); font-weight: 600; }
.cardhead a.dim:hover { text-decoration: underline; }

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}
form > label:first-of-type { margin-top: 4px; }

input[type=text],
input[type=password],
input[type=number],
input[type=search],
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  outline: none;
}
textarea { min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; resize: vertical; }
select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--acc);
  box-shadow: var(--focus);
}
::placeholder { color: #94A3B8; }

button, input, select, textarea { font-family: inherit; }
a, button { -webkit-tap-highlight-color: rgba(37, 99, 235, .15); }

:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--acc);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--acc-hover); color: #fff; text-decoration: none; }
.btn:active { background: #1E40AF; }
.btn:visited,
a.btn,
a.btn:visited { color: #fff; }
.btn[disabled],
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.ghost,
.btn.ghost:visited,
a.btn.ghost,
a.btn.ghost:visited {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--body);
}
.btn.ghost:hover { background: var(--card2); border-color: #94A3B8; color: var(--text); }
.btn.small { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn.danger,
.btn.danger:visited,
a.btn.danger {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: var(--bad-line);
}
.btn.danger:hover { background: #FEE2E2; color: var(--bad); }
.btn.ok,
.btn.ok:visited,
a.btn.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-line);
}
.btn.ok:hover { background: #DCFCE7; color: var(--ok); }

.flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--warn-line);
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
}
.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  background: var(--selected);
  color: var(--body);
  font-size: 14px;
}
.warnbox {
  padding: 14px;
  border: 1px solid var(--warn-line);
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
}
.warnbox b { color: #7C2D12; }
.contact {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card2);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
  user-select: all;
}
.foot { border-top: 1px solid var(--line); padding: 18px 0 30px; color: var(--dim); font-size: 12px; line-height: 1.7; }

.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) {
  .g3, .g2 { grid-template-columns: 1fr; }
}

.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.stat b {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--dim); font-size: 12px; }

/* 旧版套餐块（当前购买页不用，样式保留为浅色） */
.plan {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.plan.sel { border-color: var(--acc); background: var(--selected); box-shadow: var(--focus); }
.plan .nm { margin: 0; color: var(--dim); font-size: 13px; }
.plan .pr { margin: 3px 0 4px; color: var(--text); font-size: 23px; font-weight: 700; }
.plan .dy { margin: 0; color: var(--dim); font-size: 12px; }
.sum { padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.sumrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.sumrow > span:first-child { white-space: nowrap; flex: 0 0 auto; }
.sumrow b { font-size: 18px; white-space: nowrap; }
.qr {
  display: block;
  width: 230px;
  max-width: 100%;
  margin: 12px auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* 上传 */
.filebox {
  padding: 18px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--card2);
  color: var(--dim);
  text-align: center;
}
label.filebox,
#filebox {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 176px;
  padding: 28px 18px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.filebox:hover,
.filebox.dragover {
  border-color: var(--acc);
  background: var(--selected);
  color: var(--text);
}
.filebox.has {
  border-style: solid;
  border-color: var(--blue-line);
  background: var(--selected);
  color: var(--text);
}
#filebox:focus-within {
  border-color: var(--acc);
  box-shadow: var(--focus);
}
.filebox input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.filebox input[type=file]:focus,
.filebox input[type=file]:focus-visible { outline: none; box-shadow: none; }
.dropicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--acc);
}
.drop-title { color: var(--text); font-size: 15px; font-weight: 600; }
.filemeta {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  background: #fff;
}
.filemeta b { font-size: 14px; word-break: break-all; }
.parsed { margin-top: 8px; color: var(--dim); }
.parsed b { color: var(--text); }
.notice-line { margin-top: 12px; color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.notice-line a { font-weight: 600; }
.cd {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 13px;
}
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

.prog {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card2);
}
.prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
#progpct { color: var(--acc); font-variant-numeric: tabular-nums; }
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #E2E8F0;
}
.bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--acc);
  transition: width .25s ease;
}
.bar.small { height: 6px; margin-top: 10px; }
.errbox {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--bad-line);
  border-radius: 10px;
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 13px;
}

/* 任务 */
.joblist { display: flex; flex-direction: column; gap: 10px; }
.jobline {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card2);
}
.jrow { display: flex; align-items: flex-start; gap: 10px; }
.jname {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  word-break: break-all;
}
.jmeta { margin-top: 4px; }
.jstat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jstat span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--dim);
  font-size: 12.5px;
}
.jstat b { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.jexpire { margin-top: 8px; color: var(--dim); }
.jerr { margin-top: 8px; color: var(--bad); }
.dlrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.empty {
  padding: 28px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--card2);
  color: var(--dim);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
th {
  background: var(--card2);
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
td.cellname { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td a { font-weight: 600; }
td a + a { margin-left: 12px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (hover: hover) {
  tbody tr:hover td { background: #F8FAFC; }
}

.only-mobile { display: none; }
.only-desk { display: block; }
@media (max-width: 760px) {
  .only-mobile { display: block; }
  .only-mobile.joblist { display: flex; }
  .only-desk { display: none; }
  .dlrow .btn { flex: 1 1 140px; }
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.tag.done { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.tag.run,
.tag.pending { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.tag.fail { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }

.filterbar { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filterbar input[type=text] { flex: 1 1 180px; min-width: 0; }
.filterbar select { flex: 0 1 160px; width: auto; min-width: 128px; }
.filter-clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 13.5px;
  font-weight: 600;
}
@media (max-width: 560px) {
  .filterbar { align-items: stretch; }
  .filterbar input[type=text],
  .filterbar select,
  .filterbar .btn { width: 100%; flex: 1 1 100%; }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }

.auth-page main.wrap { max-width: 440px; padding-top: max(28px, 7vh); }
.auth-card { padding: 28px 24px 20px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 28px; }
.card p.eyebrow { margin: 0 0 6px; }
.card p.auth-lead { margin: 8px 0 4px; color: var(--dim); font-size: 14px; }
.card p.auth-switch {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13.5px;
  text-align: center;
}
.auth-switch a { font-weight: 700; }
.state-card { padding: 28px 24px; }
.state-card h1 { margin-bottom: 10px; font-size: 24px; }
.state-card .btn { margin-top: 6px; }

@media (max-width: 720px) {
  .topbar .wrap { flex-wrap: wrap; row-gap: 2px; }
  .nav { width: 100%; justify-content: space-between; margin: 0 -4px; }
  .nav a { flex: 1 1 auto; padding: 0 8px; }
  .pagehead h1 { font-size: 24px; }
  .card { padding: 16px; border-radius: 14px; }
  .auth-card, .state-card { padding: 22px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
