:root {
  --bg: #08080a;
  --card: #131316;
  --card-2: #1a1a1f;
  --line: #2a2a31;
  --txt: #f4f4f6;
  --muted: #9b9ba6;
  --red: #e1252f;
  --red-d: #b2131c;
  --green: #2ecc71;
  --amber: #f0a020;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 420px at 20% -10%, rgba(225, 37, 47, .18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(225, 37, 47, .08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--red);
  font-weight: 800;
  letter-spacing: -1px;
  font-size: 14px;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 13px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
}
.brand-text span {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 12px;
}

.topbar-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.topbar-link:hover { color: var(--txt); border-color: #4a4a55; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 18px 60px;
}

.card {
  background: linear-gradient(180deg, var(--card), #101013);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 0 0 4px; }
h3 { font-size: 15px; margin: 0 0 10px; }

.sub { color: var(--muted); margin: 0 0 4px; font-size: 13.5px; }

.field { margin-top: 18px; }
.label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }

.input {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 37, 47, .16); }
.input::placeholder { color: #5d5d68; }

.pw { position: relative; }
.pw .input { padding-right: 62px; }
.pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 8px;
}
.pw-toggle:hover { color: var(--txt); background: #26262d; }

.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.seg button {
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.seg button:hover { color: var(--txt); border-color: #45454f; }
.seg button.on {
  background: rgba(225, 37, 47, .14);
  border-color: var(--red);
  color: #ffdada;
  font-weight: 600;
}

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.agree input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; }

.btn-primary {
  width: 100%;
  margin-top: 18px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn-primary:hover { background: #ef3540; }
.btn-primary:active { transform: scale(.995); }
.btn-primary:disabled { background: #3a3a42; color: #7c7c86; cursor: not-allowed; }

.btn-ghost {
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--txt); border-color: #4a4a55; }

.footnote { color: #6f6f7a; font-size: 12px; margin: 12px 0 0; line-height: 1.6; }

.hint { color: #7c7c86; font-size: 12px; margin: 0 0 10px; line-height: 1.6; }
.hint.warn { color: #c99a4a; margin: 10px 0 0; }

.epic-block {
  padding: 14px;
  border: 1px dashed #35353d;
  border-radius: 12px;
  background: rgba(255, 255, 255, .015);
}
.epic-block .input + .input { margin-top: 8px; }

.alert {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(225, 37, 47, .12);
  border: 1px solid rgba(225, 37, 47, .4);
  color: #ffb3b7;
  font-size: 13.5px;
}

/* 黄色警示：执行器没在跑这类「能提交但跑不动」的情况 */
.alert.warn {
  background: rgba(240, 160, 32, .1);
  border-color: rgba(240, 160, 32, .38);
  color: #f5c26b;
  line-height: 1.6;
}

.alert code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .25);
}

/* 行内文字按钮（例如「重新打开」验证码窗口） */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  font: inherit;
  color: #ffb3b7;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: #fff; }

/* ---------- 进行中 ---------- */

.prog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.meta {
  display: flex;
  justify-content: space-between;
  color: #6f6f7a;
  font-size: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.prog-actions { margin-top: 18px; display: flex; justify-content: flex-end; }

.spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(225, 37, 47, .22);
  border-top-color: var(--red);
  animation: spin .8s linear infinite;
  flex: 0 0 auto;
}
.spinner.big { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.shots img {
  width: 108px; height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #0d0d10;
}

/* ---------- 结果 ---------- */

.verdict {
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--card-2);
}
.verdict.ok { border-color: rgba(46, 204, 113, .45); background: rgba(46, 204, 113, .08); }
.verdict.blocked { border-color: rgba(225, 37, 47, .5); background: rgba(225, 37, 47, .09); }
.verdict.done { border-color: rgba(46, 204, 113, .45); background: rgba(46, 204, 113, .08); }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: #2a2a31;
  color: var(--muted);
}
.verdict.ok .badge { background: rgba(46, 204, 113, .16); color: #7ff0b0; }
.verdict.blocked .badge { background: rgba(225, 37, 47, .18); color: #ff9aa0; }
.verdict.done .badge { background: rgba(46, 204, 113, .16); color: #7ff0b0; }

.account {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
}
.avatar {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), #7a0d13);
  font-weight: 800;
  font-size: 18px;
  flex: 0 0 auto;
}
.account-name { font-size: 17px; font-weight: 700; word-break: break-all; }
.account-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; word-break: break-all; }

.sec-title { margin: 22px 0 10px; color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; }

.plat-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plat-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
}
.plat-list li:last-child { border-bottom: 0; }
.plat-list li.is-target { background: rgba(240, 160, 32, .07); }
.plat-list li.is-target.is-bound { background: rgba(46, 204, 113, .07); }

.picon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #0b0b0d;
  flex: 0 0 auto;
}
.pname { flex: 1; font-size: 14px; }
.pname small { display: block; color: #6f6f7a; font-size: 11.5px; font-weight: 400; }
.pstate { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; }
.pstate.on { background: rgba(46, 204, 113, .14); color: #7ff0b0; }
.pstate.off { background: #26262d; color: #86868f; }
.pstate.target-off { background: rgba(240, 160, 32, .16); color: #ffc46b; font-weight: 700; }
.pstate.target-on { background: rgba(225, 37, 47, .16); color: #ff9aa0; font-weight: 700; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--card-2);
}

.shot-wrap { margin-top: 6px; }
.result-actions { display: flex; gap: 10px; margin-top: 22px; }
.result-actions .btn-primary { margin-top: 0; flex: 1; }
.result-actions .btn-ghost { flex: 0 0 auto; }

.fail-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(225, 37, 47, .15);
  color: #ff9aa0;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
}

/* ---------- 弹窗 ---------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 18px;
}
.modal[hidden] { display: none; }

.modal-box {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  position: relative;
}

/* 右上角「长按 2 秒关闭」——防误触，所以要求按住不放 */
.modal-hold {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #6b6b74;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.modal-hold .hold-x { font-size: 21px; line-height: 1; font-weight: 300; }
.modal-hold .hold-hint {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  font-size: 8px;
  text-align: center;
  opacity: 0;
  white-space: nowrap;
  transition: opacity .15s;
}
.modal-hold:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.modal-hold:hover .hold-hint { opacity: .55; }
.modal-hold.holding {
  color: #fff;
  border-color: rgba(225, 37, 47, .6);
  background: rgba(225, 37, 47, .18);
}
.modal-hold.holding .hold-hint { opacity: 1; }

/* 按住时底部进度条从左填到右，填满即触发关闭 */
.modal-hold::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--p, 0) * 100%);
  background: var(--red);
  transition: width .05s linear;
}

.busy-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  min-width: 280px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.busy-box h3 { font-size: 16px; margin: 4px 0 0; }
.busy-box .sub { font-size: 13px; }

.code-input {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  text-align: center;
  font-size: 26px;
  letter-spacing: 10px;
  font-variant-numeric: tabular-nums;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--txt);
  outline: none;
}
.code-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 37, 47, .16); }
.code-input::placeholder { letter-spacing: 6px; color: #4d4d57; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  background: #f4f4f6;
  color: #0b0b0d;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 80;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.toast[hidden] { display: none; }

/* ---------- 小屏 ---------- */

@media (max-width: 560px) {
  .card { padding: 18px; border-radius: 12px; }
  .seg { grid-template-columns: repeat(3, 1fr); }
  .seg button { font-size: 12.5px; }
  .result-actions { flex-direction: column; }
  .shots img { width: 92px; height: 58px; }
  h1 { font-size: 19px; }
}

/* ---------- 登录渠道 / 绑定账号 ---------- */

.seg.two { grid-template-columns: repeat(2, 1fr); }

.bind-block {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .015);
}

.bind-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--txt);
  font-weight: 600;
}
.bind-note { font-weight: 400; color: #7c7c86; font-size: 11.5px; }

.bind-group + .bind-group { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #2c2c33; }

.bind-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.bind-title em {
  font-style: normal;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(46, 204, 113, .14);
  color: #7ff0b0;
  margin-left: 2px;
}
.bind-title em.alt { background: #2a2a31; color: #9b9ba6; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ms { background: #3ecf4c; }
.dot.epic { background: #c7c7c7; }

.bind-group .input + .input { margin-top: 8px; }

.bind-info {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-2);
  font-size: 13px;
  color: var(--muted);
}
.bind-info.ok { border-color: rgba(46, 204, 113, .4); background: rgba(46, 204, 113, .08); color: #b8f5d0; }
.bind-info b { color: #fff; }

.verdict.no_pool { border-color: rgba(240, 160, 32, .45); background: rgba(240, 160, 32, .08); }
.verdict.no_pool .badge { background: rgba(240, 160, 32, .16); color: #ffc46b; }

/* 绑定成功后目标行用绿色，而不是警示红 */
.plat-list li.is-bound { background: rgba(46, 204, 113, .07); }

/* ---------- 绑定位（查号结果里的两个位） ---------- */

.slot-list { display: flex; flex-direction: column; gap: 10px; }

.slot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.slot-row.can-bind { border-color: rgba(46, 204, 113, .38); background: rgba(46, 204, 113, .05); }
.slot-row.is-bound { border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .015); }
.slot-row.no-pool { border-color: rgba(240, 160, 32, .32); background: rgba(240, 160, 32, .05); }

/* ---------- 号池档位面板（点「选择档位绑定」后展开） ---------- */

.tier-box {
  margin: -4px 0 2px;
  padding: 12px 14px 14px;
  border-radius: 0 0 12px 12px;
  border: 1px solid var(--line);
  border-top: none;
  background: rgba(255, 255, 255, .015);
}
.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.tier-box .tier-tip {
  margin: 0;
  font-size: 12px;
  color: #9b9ba6;
}
/* 「刷新库存」：表格里补完号不用重新查号，点一下就重读余量 */
.tier-refresh {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #cfcfd6;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.tier-refresh:hover:not(:disabled) {
  border-color: rgba(46, 204, 113, .6);
  background: rgba(46, 204, 113, .08);
  color: #6ee7a0;
}
.tier-refresh:disabled { cursor: default; opacity: .6; }
.tier-refresh.is-busy { padding-left: 24px; }
.tier-refresh.is-busy::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  animation: spin .7s linear infinite;
}
.tier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--txt);
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tier-chip b { font-size: 13px; font-weight: 650; }
.tier-chip i {
  font-style: normal;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(46, 204, 113, .16);
  color: #6ee7a0;
}
.tier-chip:hover:not(:disabled) { border-color: rgba(46, 204, 113, .7); background: rgba(46, 204, 113, .1); }
.tier-chip.is-empty {
  cursor: not-allowed;
  opacity: .45;
}
.tier-chip.is-empty i { background: rgba(240, 160, 32, .16); color: #f0b45c; }

.slot-row .sicon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #111;
}

.slot-row .sinfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.slot-row .sinfo b { font-size: 14px; font-weight: 650; }
.slot-row .sinfo small { font-size: 11.5px; color: #7c7c86; }

.slot-row .sact { flex: 0 0 auto; }

.btn-mini {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(46, 204, 113, .5);
  background: rgba(46, 204, 113, .14);
  color: #7fe3a6;
  transition: background .15s, border-color .15s;
}
.btn-mini:hover { background: rgba(46, 204, 113, .24); border-color: rgba(46, 204, 113, .8); }

/* 绑定二次确认弹窗的两个按钮 */
.confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.confirm-actions .btn-primary { margin-top: 0; flex: 1; }
.confirm-actions .btn-ghost { flex: 0 0 auto; margin-top: 0; }

/* ---------- 同步状态 ---------- */

.pstate-wrap { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }

.sync-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.sync-chip.on { background: rgba(46, 204, 113, .16); color: #6ef0a4; }
.sync-chip.doing { background: rgba(240, 160, 32, .16); color: #ffc46b; }
.sync-chip.off { background: rgba(225, 37, 47, .16); color: #ff8a90; }

.bind-info.warn { border-color: rgba(225, 37, 47, .42); background: rgba(225, 37, 47, .08); color: #ffd7d9; }
.sync-reason { margin-top: 6px; font-size: 12px; color: #ffb4b8; }

/* 已绑定但未同步：琥珀色，和「失败」区分开 */
.verdict.sync_failed { border-color: rgba(240, 160, 32, .45); background: rgba(240, 160, 32, .08); }
.verdict.sync_failed .badge { background: rgba(240, 160, 32, .16); color: #ffc46b; }
.verdict.sync_failed h2 { color: #ffd79a; }

/* ---------- 订单完成弹窗（同步图 + 充值图） ---------- */

.done-box {
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75);
  position: relative;
}

.done-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.done-x:hover { color: var(--txt); background: var(--card-2); }

.done-head { text-align: center; margin-bottom: 18px; }
.done-check {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #6ef0a4;
  background: rgba(46, 204, 113, .14);
  border: 1px solid rgba(46, 204, 113, .4);
}
.done-head h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: .5px; }
.done-head .sub { margin: 0; font-size: 13px; color: var(--muted); }

.done-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 620px) {
  .done-shots { grid-template-columns: 1fr 1fr; }
}
.done-shots figure {
  margin: 0;
  background: #0b0c10;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.done-shots img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: #0b0c10;
}
.done-shots figure.placeholder {
  min-height: 140px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  padding: 20px;
  text-align: center;
}
.done-shots figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.done-shots figcaption b { color: var(--txt); font-weight: 600; }

.done-tip { margin: 12px 0 0; font-size: 12px; color: var(--amber); text-align: center; }

.done-actions { margin-top: 18px; display: flex; justify-content: center; }
.done-actions .btn-primary { margin-top: 0; min-width: 220px; }

/* ---------------- 最近提交记录 ---------------- */
.recent-list { list-style: none; margin: 14px 0 0; padding: 0; }
.recent-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.recent-list li:first-child { padding-top: 0; }
.recent-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-num {
  font-size: 13.5px;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recent-tag {
  font-size: 11.5px;
  line-height: 1.7;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}
.recent-tag.tier { color: var(--amber); border-color: rgba(240, 160, 32, .35); }
.recent-state {
  font-size: 11.5px;
  line-height: 1.7;
  padding: 0 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.recent-state.ok { color: var(--green); background: rgba(46, 204, 113, .12); }
.recent-state.bad { color: #f87171; background: rgba(248, 113, 113, .12); }
.recent-state.wait { color: var(--muted); background: rgba(155, 155, 166, .12); }
.recent-time { font-size: 11.5px; color: var(--muted); margin-left: auto; white-space: nowrap; }
