/* 赤兔下载 · 暖纸朱红主题（参考赤兔1108 UI） */
:root {
  --bg: #f5efe5;
  --card: #fffdf8;
  --ink: #2f1e17;
  --muted: #806d60;
  --line: #dfd1bd;
  --navy: #281812;
  --navy-2: #42261a;
  --blue: #c84b31;
  --blue-dark: #9e3422;
  --cyan: #f0b94e;
  --cyan-dark: #9b5c13;
  --ok: #237b54;
  --warn: #a4610b;
  --err: #b53d32;
  --soft: #f0e2cf;
  --shadow: 8px 8px 0 rgba(117, 65, 35, .08);
  --radius: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: "Aptos", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: linear-gradient(135deg, rgba(121, 78, 43, .035) 1px, transparent 1px);
  background-size: 30px 30px;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
}
::selection { color: #fff; background: var(--blue); }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }

/* ---------- 顶栏 ---------- */
.ct-topbar {
  position: sticky; z-index: 10; top: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 68px; padding: 10px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(14px);
}
.ct-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.ct-brand small { display: block; font-size: 9px; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
.ct-mark { width: 26px; height: 26px; border-radius: 5px; background: var(--blue); box-shadow: 3px 3px 0 rgba(93, 42, 24, .18); transform: rotate(45deg); flex: none; }
.ct-flow { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.ct-flow li { position: relative; display: flex; align-items: center; gap: 7px; color: #a99a88; font-size: 12px; }
.ct-flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + 9px); width: 12px; height: 1px; background: var(--line); }
.ct-flow li i { font-style: normal; width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 11px; font-weight: 700; }
.ct-flow li.active { color: var(--blue); }
.ct-flow li.active i { background: var(--blue); border-color: var(--blue); color: #fff; }
.ct-toplink { justify-self: end; font-size: 12px; color: var(--muted); }
.ct-toplink a { color: var(--blue); font-weight: 650; }
.ct-badge { justify-self: end; color: #7b4d28; border: 1px solid #e0c6a3; border-radius: 4px; background: #f4e4cf; padding: 6px 11px; font-size: 11px; font-weight: 650; }

/* ---------- 布局 ---------- */
.ct-main { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 44px; }
.ct-main.single { display: grid; grid-template-columns: minmax(0, 520px); justify-content: center; }
.ct-hero { margin: 8px 0 26px; }
.ct-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-dark); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.ct-hero .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); }
.ct-hero h1 { margin: 8px 0 10px; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.15; letter-spacing: -1px; }
.ct-hero h1 span { color: var(--blue); }
.ct-hero .lead { color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 560px; }
.ct-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ct-point { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 8px 14px; font-size: 12px; color: var(--muted); }
.ct-point b { color: var(--ok); }

/* ---------- 面板 ---------- */
.card {
  border: 1px solid #d8c5ac;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 26px;
}
.panel, .redeem-card, .result-card {
  border: 1px solid #d8c5ac;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 26px;
}
.card-kicker { margin-bottom: 6px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.redeem-card h2, .result-card h2 { margin-bottom: 8px; font-size: 23px; letter-spacing: -.4px; }
.sub { color: var(--muted); line-height: 1.75; font-size: 13px; }
.section-kicker { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; color: var(--cyan-dark); }
.soft-badge { color: #7b4d28; border: 1px solid #e0c6a3; border-radius: 4px; background: #f4e4cf; padding: 5px 10px; font-size: 11px; font-weight: 650; }

/* ---------- 按钮 ---------- */
.action-button, .refresh-button, .secondary-button, .btn, .dir-chip, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; border-radius: 5px; border: 1px solid rgba(67, 32, 20, .14);
  padding: 10px 18px; cursor: pointer; font-weight: 700; letter-spacing: .04em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.action-button, button:not(.ghost):not(.warn):not(.dir-chip):not(.login-tab), .share-go {
  background: var(--blue); color: #fff; box-shadow: 0 3px 0 rgba(92, 39, 23, .18);
}
.action-button:hover, button:hover:not(:disabled):not(.ghost):not(.warn):not(.dir-chip):not(.login-tab) {
  background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 5px 0 rgba(92, 39, 23, .16);
}
a.action-button { color: #fff; text-decoration: none; width: 100%; }
.refresh-button, .secondary-button, .btn.ghost, .dir-chip {
  background: #fffaf1; color: var(--ink); border-color: #cdb99e; box-shadow: none; font-weight: 650;
}
.refresh-button:hover, .secondary-button:hover, .btn.ghost:hover, .dir-chip:hover { background: #f4e5cf; border-color: #aa8b68; }
button.warn, .btn.warn { color: var(--err); background: #fff0e8; border-color: #e8b9a5; }
button.bad, .btn.bad { color: #fff; background: var(--err); border-color: var(--err); }
button:disabled { opacity: .45; cursor: not-allowed; }
.ghost { background: #fffaf1; color: var(--ink); border-color: #cdb99e; }

/* ---------- 表单 ---------- */
input, select, textarea {
  width: 100%; min-height: 42px; border: 1px solid #cdbba3; border-radius: 5px;
  background: #fffdf8; padding: 10px 12px; font-size: 13px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(200, 75, 49, .12); }
input::placeholder, textarea::placeholder { color: #b3a48f; }
label { display: block; margin-bottom: 6px; color: #6d584a; font-size: 12px; font-weight: 650; }
.err { min-height: 20px; color: var(--err); font-size: 12px; line-height: 1.6; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; }
.code-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 12px 14px; border: 1px dashed #cdb99e; border-radius: 6px; background: #fbf3e6; color: var(--muted); font-size: 12px; }
.code-chip strong { color: var(--ink); font-size: 14px; letter-spacing: 1px; }
.link-example { display: inline-block; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fbf5ea; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.secure-note { display: flex; gap: 8px; margin-top: 14px; color: #97826d; font-size: 11px; line-height: 1.65; }

/* ---------- 登录 ---------- */
.login-tabs { display: flex; gap: 4px; margin: 16px 0; padding: 4px; border-radius: 7px; background: var(--soft); }
.login-tab { flex: 1; min-height: 40px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-weight: 700; }
.login-tab.active { background: var(--card); color: var(--blue); box-shadow: 0 1px 3px rgba(47, 30, 23, .12); }
.qr-box { width: 216px; height: 216px; display: grid; place-items: center; margin: 14px auto; padding: 10px; border: 1px solid #d8c5ac; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.qr-box img { width: 192px; height: 192px; display: block; }
.qr-status { margin: 6px 0; text-align: center; color: var(--warn); font-size: 13px; font-weight: 700; }
.qr-count { margin: 2px 0; text-align: center; color: var(--muted); font-size: 12px; }
.qr-note { margin: 8px 0 14px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.status-panel { margin: 16px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #faf3e8; text-align: center; }
.status-icon { width: 40px; height: 40px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 10px; background: var(--soft); color: var(--blue); font-weight: 800; }
.status-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.progress-track { height: 5px; margin-top: 12px; border-radius: 99px; background: #eadcc8; overflow: hidden; }
.progress-fill { width: 45%; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); animation: ctprogress 1.6s ease-in-out infinite; }
@keyframes ctprogress { 0% { margin-left: -45%; } 100% { margin-left: 100%; } }

/* ---------- 文件面板 ---------- */
.acct-bar { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #faf3e8; }
.acct-name { font-size: 13px; color: #6d584a; text-align: left; }
.acct-name b { color: var(--ink); }
.quota-text { font-size: 12px; color: var(--muted); text-align: left; }
.quota-track { height: 6px; border-radius: 99px; background: #eadcc8; overflow: hidden; }
.quota-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .4s; }
.dir-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.dir-chip { min-height: 32px; padding: 5px 13px; border-radius: 999px; font-size: 12px; }
.dir-path { flex: 1; font-size: 12px; color: var(--muted); word-break: break-all; text-align: right; }
.share-bar { display: flex; gap: 8px; margin: 0 0 8px; }
.share-bar input { flex: 1; }
.share-bar .dir-chip { border-radius: 5px; padding: 0 16px; }
.share-go { background: var(--blue); color: #fff; border-color: transparent; }
.share-go:hover { background: var(--blue-dark); }
.file-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; overflow-y: auto; max-height: 330px; background: #fffdf8; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f0e6d6; font-size: 14px; cursor: pointer; background: transparent; text-align: left; }
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: #faf3e8; }
.file-row.sel { background: #fbe9df; box-shadow: inset 3px 0 0 var(--blue); }
.file-row.disabled { opacity: .55; cursor: not-allowed; }
.file-check { flex: none; width: 16px; height: 16px; border: 1.5px solid #cdb99e; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 11px; }
.file-row.sel .file-check { background: var(--blue); border-color: var(--blue); }
.file-row.sel .file-check::after { content: "✓"; }
.file-icon { flex: none; font-size: 15px; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex: none; font-size: 12px; color: #a08b74; }
.file-pad { padding: 12px 6px; margin: 0; }
.dl-bar { margin-top: 14px; padding: 14px; border: 1px dashed #cdb99e; border-radius: 8px; background: #fbf3e6; }
.dl-bar p { margin: 6px 0; font-size: 14px; text-align: left; }
.dl-note { font-size: 12px !important; color: var(--muted) !important; }
.dl-bar .action-button { margin-top: 10px; }

/* ---------- 弹层/杂项 ---------- */
.charge-mask { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(47, 30, 23, .45); }
.charge-box { width: min(320px, 86vw); padding: 26px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.spinner { width: 34px; height: 34px; margin: 0 auto 14px; border: 3px solid #eadcc8; border-top-color: var(--blue); border-radius: 50%; animation: ctspin .8s linear infinite; }
@keyframes ctspin { to { transform: rotate(360deg); } }
.result-symbol { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 16px; background: var(--ok); color: #fff; font-size: 26px; box-shadow: 4px 4px 0 rgba(35, 123, 84, .2); }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

/* ---------- 后台 ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.admin-side { border-right: 1px solid var(--line); background: #fbf3e6; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.admin-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 0 6px; }
.admin-logo { width: 34px; height: 34px; border-radius: 7px; background: var(--blue); box-shadow: 3px 3px 0 rgba(93, 42, 24, .18); transform: rotate(45deg); flex: none; }
.admin-brand strong { font-size: 14px; }
.admin-brand small { display: block; font-size: 8px; letter-spacing: 1.6px; color: var(--muted); font-weight: 700; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav button { justify-content: flex-start; min-height: 40px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 650; box-shadow: none; padding: 8px 12px; border-radius: 6px; }
.admin-nav button.on { background: var(--card); color: var(--blue); border-color: #e0c6a3; box-shadow: 0 2px 0 rgba(117, 65, 35, .08); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.admin-side-foot { margin-top: auto; font-size: 11px; color: var(--muted); padding: 10px 6px; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(35, 123, 84, .15); }
.admin-main { padding: 22px clamp(16px, 3vw, 36px); min-width: 0; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.4px; }
.admin-head p { margin: 0; color: var(--muted); font-size: 12px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head-actions .ghost, .head-actions .btn { min-height: 34px; padding: 6px 13px; font-size: 12px; }
.domain-chip { border: 1px solid #e0c6a3; border-radius: 4px; background: #f4e4cf; color: #7b4d28; padding: 6px 11px; font-size: 11px; font-weight: 650; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 17px; }
.section-head > span { color: var(--muted); font-size: 12px; }
.section-body { border: 1px solid #d8c5ac; border-left: 4px solid var(--blue); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 18px; }
.subsection-title { margin: 18px 0 10px; }
.subsection-title h3 { margin: 0 0 2px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 8px; }
.stat { border: 1px solid var(--line); border-radius: 7px; background: #fbf5ea; padding: 12px; }
.stat em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.stat strong { font-size: 21px; letter-spacing: -.4px; }
.tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.tools input, .tools select { width: auto; min-height: 36px; flex: none; }
.tools .grow { flex: 1; min-width: 140px; }
.tools button, .tools .btn { min-height: 36px; padding: 6px 14px; font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; }
.table-min { width: 100%; border-collapse: collapse; font-size: 12px; }
.table-min th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #eadcc8; color: var(--muted); font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.table-min td { padding: 9px 12px; border-bottom: 1px solid #f0e6d6; vertical-align: middle; }
.table-min tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); background: #fbf5ea; color: var(--muted); }
.pill.ok { color: var(--ok); border-color: #bfe0cf; background: #edf7f1; }
.pill.bad { color: var(--err); border-color: #ecc8c2; background: #fbeeec; }
.pill.warn { color: var(--warn); border-color: #e8d3ae; background: #fbf3e0; }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.pager button { min-height: 32px; padding: 5px 13px; font-size: 12px; }
.make-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.make-card { border: 1px solid #d8c5ac; border-left: 4px solid var(--blue); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 18px; }
.make-card h2 { margin: 0 0 6px; font-size: 16px; }
.make-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.make-card.danger-zone { border-left-color: var(--err); }
.batch-card { border: 1px solid var(--line); border-radius: 8px; background: #fbf5ea; padding: 16px; margin-top: 14px; }
textarea#batchCodes { min-height: 180px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.mask { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(47, 30, 23, .45); }
.mask.show { display: grid; }
.dialog { width: min(480px, 92vw); max-height: 86vh; overflow-y: auto; }
.dialog h1 { font-size: 18px; margin-bottom: 12px; }
.detail-list { display: grid; grid-template-columns: 110px 1fr; gap: 7px 12px; margin: 0 0 14px; font-size: 13px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; word-break: break-all; }
.event-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.event-item { border: 1px solid var(--line); border-radius: 7px; background: #fbf5ea; padding: 10px 12px; font-size: 12px; }
.event-item p { margin: 3px 0; color: var(--muted); }
.event-item small { color: #a08b74; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); z-index: 80; opacity: 0; pointer-events: none; padding: 11px 20px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 13px; transition: all .25s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: var(--err); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 13px; }
.loading { display: inline-block; width: 13px; height: 13px; margin-right: 7px; border: 2px solid #eadcc8; border-top-color: var(--blue); border-radius: 50%; animation: ctspin .8s linear infinite; vertical-align: -2px; }
.duration-value { font-weight: 700; }
.duration-end { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }

@media (max-width: 760px) {
  .ct-flow { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; align-items: center; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .admin-nav { flex-direction: row; }
  .admin-side-foot { display: none; }
  .ct-main.single { grid-template-columns: minmax(0, 1fr); }
}

/* 弹窗表单间距 */
.dialog label { margin-top: 12px; }
.dialog label:first-child { margin-top: 0; }
.dialog .row { margin-top: 14px; }
.dialog h2 { margin: 14px 0 6px; font-size: 15px; }

.batch-tip{margin:8px 2px 0;font-size:12px;color:#8a7a68;text-align:left}


/* ---------- 后台排版优化 ---------- */
.admin-head h1 { font-size: 26px; letter-spacing: -.6px; }
.admin-head { padding-bottom: 4px; }
.section-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.section-head h2 { letter-spacing: -.3px; }
.orders-table thead th { position: sticky; top: 0; z-index: 2; }
.table-min tbody tr:hover td { background: #f4f7ff; }
.dialog label { margin-top: 12px; }
.dialog label:first-child { margin-top: 0; }

.share-last{display:flex;align-items:center;gap:10px;margin:2px 0 8px}
.share-last .muted{font-size:12px}


/* ---------- 弹窗美化 ---------- */
.mask, .charge-mask { backdrop-filter: blur(10px); background: rgba(16, 22, 43, .48); }
.dialog { border-radius: 22px; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.65); box-shadow: 0 30px 80px rgba(92, 39, 23, .25); }
.dialog h1 { padding: 20px 24px 0; font-size: 18px; letter-spacing: -.3px; }
#dlgBody { padding: 4px 24px 0; }
.dialog .row { padding: 16px 24px 22px; justify-content: flex-end; gap: 10px; }
.dialog .row button { min-width: 104px; border-radius: 12px; }
.charge-box { border-radius: 24px; padding: 34px 30px; }
.charge-box h2 { font-size: 17px; margin-bottom: 6px; }
.charge-box .sub { font-size: 13px; }
.charge-box .progress-track { margin-top: 16px; height: 6px; border-radius: 99px; }

.stats-group{margin-bottom:16px}
.stats-group h3{margin:0 0 8px;font-size:13px;color:#66708c;letter-spacing:.06em}
.stat-sub{display:block;margin-top:4px;font-size:11px;color:#8b95b5;font-weight:400}

/* ---------- 勾选控件统一修正（赤兔） ---------- */
input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  flex: none;
  margin: 0;
}
label { cursor: pointer; }

/* 代理线路勾选卡片 */
.proxy-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
  transition: border-color .15s ease, background .15s ease;
}
.proxy-opt:hover { border-color: var(--blue); }
.proxy-opt:has(input:checked) {
  border-color: var(--blue);
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

/* 代理连通性测试结果 */
.proxy-test-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.proxy-test-row.ok { border-color: #b7dcc9; background: #eef7f1; }
.proxy-test-row.ok b { color: var(--ok); }
.proxy-test-row.bad { border-color: #eec5bf; background: #fbeeee; }
.proxy-test-row.bad b { color: var(--err); }
.proxy-test-row em { margin-left: auto; font-style: normal; color: var(--muted); white-space: nowrap; }

/* 文件选择勾选框放大修正 */
.file-check { width: 17px; height: 17px; }
