@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #080f1a;
  --panel: #111e2f;
  --surface: #0b1725;
  --border: #40566e;
  --line: #31465c;
  --text: #f1f5fa;
  --muted: #bdcad9;
  --teal: #24c6ad;
  --cyan: #69e0cd;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; transition: background .15s, border-color .15s; }
button:active:not(:disabled) { filter: brightness(.96); }
button:focus-visible, input:focus-visible { outline: 2px solid #75e9d7; outline-offset: 4px; }
[hidden] { display: none !important; }
.page { width: min(1012px, calc(100% - 48px)); margin: 38px auto 0; }
.workspace { border: 1px solid var(--border); border-radius: 20px; padding: 30px; background: var(--panel); }
.workspace-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 25px; margin-bottom: 26px; }
.brand { color: #69e0cd; font-size: 14px; letter-spacing: 1px; font-weight: 600; margin: 0 0 4px; }
h1 { font-size: 32px; line-height: 1.5; margin: 0; font-weight: 700; letter-spacing: 0; }
h2 { font-size: 21px; margin: 0; font-weight: 600; line-height: 1.5; }
nav { display: flex; gap: 20px; align-items: center; }
.text-button { background: none; border: 0; padding: 6px 0; color: #c5d4e5; font-size: 15px; white-space: nowrap; }
.text-button:hover:not(:disabled) { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
  border: 1px solid #59738c; border-radius: 8px; background: #263c53;
  color: #f1f5fa; font-size: 16px; font-weight: 500; line-height: 1.5; padding: 10px 16px; white-space: nowrap;
}
.button:hover:not(:disabled) { background: #35516e; border-color: #7f9bb6; }
.primary, .auth-button { background: #24c6ad; color: #06271f; border: 1px solid #57dbc6; font-weight: 600; box-shadow: none; }
.primary { display: flex; width: 100%; min-height: 52px; font-size: 18px; }
.primary:hover:not(:disabled), .auth-button:hover:not(:disabled) { background: #4edcc3; border-color: #82efdb; }
.secondary { background: #263c53; color: #f1f5fa; border-color: #59738c; font-weight: 500; }
.secondary:hover:not(:disabled) { background: #35516e; border-color: #7f9bb6; }
.danger { background: #482735; color: #ffd2da; border-color: #a5687c; }
.danger:hover:not(:disabled) { background: #653549; border-color: #ce8da2; }
button:disabled { cursor: not-allowed; opacity: 1; color: #8d9daf; }
.button:disabled { background: #1a2939; border-color: #34485d; color: #8d9daf; box-shadow: none; }
.auth-card { background: #0b1725; border: 1px solid var(--border); border-radius: 14px; padding: 23px; }
.auth-card label { display: block; color: #e6edf6; margin-bottom: 11px; font-size: 16px; font-weight: 500; }
.auth-row { display: flex; gap: 13px; }
input {
  min-width: 0; width: 100%; height: 58px; border: 2px solid #67839f; border-radius: 8px;
  padding: 0 16px; background: #080f1a; color: #f8fafc; font-size: 16px; line-height: 1.6; letter-spacing: .3px;
}
input::placeholder { color: #a5b6c9; font-size: 16px; letter-spacing: 0; }
input:focus { border-color: #49d7be; outline: 0; box-shadow: 0 0 0 3px #24c6ad26; }
.auth-button { min-width: 96px; font-size: 18px; }
.auth-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.balance { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; min-height: 50px; color: #d9e3f0; }
.balance>div { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 16px; }
.balance strong { color: #69e0cd; font-size: 32px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.balance small { font-size: 14px; color: var(--muted); }
.task-card { margin-top: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; overflow: hidden; }
.task-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; background: #1b3045; border-bottom: 1px solid var(--line); color: #e3fcf7; }
.task-header h2 { font-size: 18px; font-weight: 600; }
.task-header>span { font-size: 14px; font-weight: 500; color: #8bf0dc; }
.value-row { display: grid; grid-template-columns: 80px minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 75px; border-bottom: 1px solid var(--line); padding: 13px 17px; }
.field-label { color: #bdcad9; font-size: 15px; }
.value-row strong { color: #f6f9fc; font-size: 22px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#phone-display, .ready-phone { font-family: "Cascadia Mono", Consolas, "Microsoft YaHei UI", monospace; }
.value-row .is-code { font-family: "Cascadia Mono", Consolas, monospace; color: #7cebd1; font-size: 28px; font-weight: 600; letter-spacing: 3px; }
.copy-button { font-size: 16px; min-width: 66px; }
.task-detail { padding: 0 17px; }
.task-detail>p { font-size: 14px; line-height: 1.8; margin: 0; padding: 10px 0; color: #bddfdc; min-height: 36px; }
.task-detail>p:empty { display: none; }
.task-detail .swap-warning { color: #ffc4d0; }
.task-actions { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 16px 17px; }
.task-actions>.button { font-size: 16px; min-width: 68px; }
.task-actions .refresh-status { margin-left: auto; font-size: 14px; }
.control-feedback { padding: 11px 17px; margin: 0; border-bottom: 1px solid var(--line); color: #a1eddf; font-size: 14px; }
.error-message { padding: 12px 15px; border: 1px solid #a5687c; border-radius: 8px; background: #3d2330; color: #ffd2dc; font-size: 15px; margin: 16px 0; }
.result-message { color: #9de9d8; font-size: 15px; margin: 16px 0 0; }
.result-message:not([hidden])+.task-card { margin-top: 15px; }
.boot { color: var(--muted); font-size: 16px; padding: 35px 0; text-align: center; }
.history-card { margin-top: 22px; border: 1px solid var(--border); background: #111d2b; border-radius: 12px; padding: 25px; }
.history-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.history-header h2 { font-size: 22px; }
.history-header p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 8px 0 0; }
.history-header>.button { margin-top: 7px; font-size: 15px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; white-space: nowrap; }
thead { background: #1b2d40; }
th { text-align: left; font-weight: 500; color: #dce7f3; padding: 14px 12px; border-bottom: 1px solid #48617a; }
th:first-child { width: 36%; } th:nth-child(2) { width: 29%; }
td { border-bottom: 1px solid var(--line); padding: 15px 12px; color: #e0e8f1; vertical-align: middle; }
td.time-cell { font-variant-numeric: tabular-nums; font-size: 14px; }
td .history-code { display: block; color: #7cebd1; font-family: Consolas, monospace; font-size: 18px; letter-spacing: 2px; margin-top: 5px; }
td .received { color: #98edda; }
td.empty-state { text-align: center; color: var(--muted); font-size: 14px; padding: 33px 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.pagination>div { display: flex; gap: 9px; }
.pagination .button { min-height: 39px; font-size: 14px; padding: 8px 12px; }
.footer { text-align: center; color: #9baec3; font-size: 14px; padding: 24px 0 28px; letter-spacing: .3px; }
.footer>span { margin: 0 8px; color: #8297ad; }
dialog { background: #142234; border: 1px solid #5a7692; color: var(--text); border-radius: 16px; padding: 28px; width: min(548px,calc(100% - 32px)); max-height: 90vh; box-shadow: 0 20px 80px #0005; }
dialog::backdrop { background: #020811c9; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.dialog-header h2 { font-size: 24px; font-weight: 600; }
.icon-button { background: #263c53; border-color: #59738c; color: #f1f5fa; font-size: 24px; min-width: 44px; height: 46px; padding: 0; }
.dialog-header+p { font-size: 16px; color: #e0e8f1; margin: 0 0 17px; }
.ready-phone { background: #0a1523; border: 1px solid #53708b; border-radius: 9px; font-size: 28px; font-weight: 600; letter-spacing: 1px; padding: 16px; text-align: center; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dialog-hint { font-size: 15px; color: #d5e0ed; margin: 19px 0 0; }
.dialog-note { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 14px 0 0; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.dialog-actions .primary, .dialog-actions .secondary { min-height: 48px; font-size: 17px; }
dialog ol { padding-left: 23px; font-size: 16px; line-height: 2.1; margin: 0; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 30px); padding: 12px 23px; border: 1px solid #5caa9b; border-radius: 8px; background: #173e37; color: #e3fff5; font-size: 15px; text-align: center; box-shadow: 0 6px 30px #0005; }
@media(prefers-reduced-motion:reduce) { * { transition: none!important; scroll-behavior: auto!important; } }
@media(max-width:640px) {
  .page { width: calc(100% - 28px); margin-top: 18px; }
  .workspace { padding: 21px 17px; border-radius: 16px; }
  .workspace-header { gap: 15px; padding-bottom: 20px; margin-bottom: 21px; align-items: center; }
  h1 { font-size: 27px; } .brand { font-size: 14px; } nav { gap: 13px; }
  .text-button { font-size: 14px; } .auth-card { padding: 17px 14px; border-radius: 11px; }
  .auth-row { gap: 9px; } input { height: 52px; font-size: 16px; padding: 0 11px; }
  .auth-button { min-width: 70px; font-size: 17px; padding: 9px; }
  .auth-note { font-size: 14px; } .balance { margin-bottom: 17px; }
  .balance>div { gap: 3px; flex-direction: column; align-items: flex-start; }
  .balance>div>span { font-size: 16px; } .balance small { font-size: 14px; } .balance strong { font-size: 29px; }
  .primary { font-size: 17px; min-height: 49px; }
  .value-row { grid-template-columns: 59px minmax(0,1fr) auto; gap: 8px; padding: 12px; min-height: 72px; }
  .field-label { font-size: 14px; } .value-row strong { font-size: 20px; } .value-row .is-code { font-size: 27px; letter-spacing: 2px; }
  .copy-button { font-size: 15px; min-height: 40px; min-width: 52px; padding: 8px; }
  .task-header { padding: 12px; } .task-header h2 { font-size: 17px; } .task-header>span { font-size: 14px; }
  .task-detail { padding: 0 12px; } .task-detail>p { font-size: 14px; line-height: 1.8; }
  .task-actions { padding: 12px; gap: 9px; } .task-actions>.button { min-height: 42px; font-size: 16px; }
  .task-actions .refresh-status { font-size: 14px; } .control-feedback { font-size: 14px; padding: 10px 12px; }
  .history-card { padding: 19px 15px 16px; margin-top: 17px; }
  .history-header { gap: 10px; margin-bottom: 14px; } .history-header h2 { font-size: 20px; }
  .history-header p { font-size: 14px; } .history-header>.button { font-size: 14px; padding: 9px 11px; min-height: 40px; flex-shrink: 0; }
  table { font-size: 14px; min-width: 610px; } td.time-cell { font-size: 14px; } th,td { padding: 12px 10px; }
  .pagination { font-size: 14px; flex-wrap: wrap; gap: 12px; } .pagination .button { font-size: 14px; min-height: 38px; padding: 7px 11px; }
  .pagination>div { margin-left: auto; } .footer { font-size: 14px; }
  dialog { padding: 24px 20px; border-radius: 15px; } .dialog-header { margin-bottom: 19px; }
  .dialog-header h2 { font-size: 22px; } .dialog-header+p { font-size: 16px; }
  .ready-phone { font-size: 26px; padding: 14px 10px; } .dialog-hint { font-size: 15px; } .dialog-note { font-size: 14px; }
  .dialog-actions { margin-top: 28px; } .dialog-actions .primary,.dialog-actions .secondary { font-size: 16px; }
}
@media(max-width:380px) {
  .workspace-header { align-items: flex-start; } nav { flex-direction: column; align-items: flex-end; gap: 4px; }
  .value-row { grid-template-columns: 52px minmax(0,1fr) auto; gap: 6px; } .value-row strong { font-size: 18px; }
  .value-row .is-code { font-size: 25px; } .history-header { flex-wrap: wrap; }
  .history-header>.button { margin-top: 0; }
}

/* 强调主操作、输入边界和接码结果。 */
:root { --text:#f5f8ff; --muted:#b5cce2; --teal:#14b8cf; --cyan:#55e5fa; }
.workspace-header h1 { color:#ffffff; font-weight:700; }
.auth-card { max-width:560px; margin:26px auto 8px; padding:32px 34px 34px; background:#102037; border:1px solid #395675; border-radius:18px; }
.auth-title { color:#ffffff; font-size:30px; font-weight:700; line-height:1.4; margin:0 0 9px; }
.auth-description { color:#b5cce2; font-size:15px; line-height:1.7; margin:0 0 22px; }
.auth-card label { color:#f6f9ff; font-size:16px; font-weight:500; margin-bottom:8px; }
.auth-row { flex-direction:column; gap:13px; }
.auth-card input { height:50px; background:#07121f; color:#ffffff; border:1.5px solid #e1ebf6; border-radius:9px; font-size:16px; }
.auth-card input::placeholder { color:#a8bfd4; font-size:15px; }
.auth-card input:focus { border-color:#55e5fa; box-shadow:0 0 0 3px #14b8cf2b; }
.primary,.auth-button { background:#14b8cf; border:1px solid #14b8cf; color:#021820; font-weight:700; box-shadow:none; }
.auth-button { width:100%; min-height:50px; font-size:18px; border-radius:9px; }
.primary:hover:not(:disabled),.auth-button:hover:not(:disabled) { background:#37d3e6; border-color:#37d3e6; }
.button.copy-button:not(:disabled) { background:#214d6c; border-color:#7daccb; color:#ffffff; font-weight:600; }
.button.copy-button:hover:not(:disabled) { background:#2e6487; border-color:#b2d8f3; }
#phone-display { color:#ffffff; font-size:26px; font-weight:700; }
#code-display { color:#d9efff; font-weight:600; }
.value-row .is-code { color:#55e5fa; font-size:30px; font-weight:700; letter-spacing:4px; }
.task-header h2 { color:#effbff; font-weight:700; }
.balance strong { color:#55e5fa; font-weight:700; }
@media(max-width:640px) {
 .auth-card { max-width:none; margin:8px 0 0; padding:24px 20px 25px; border-radius:13px; }
 .auth-title { font-size:27px; }
 .auth-description { font-size:15px; margin-bottom:20px; }
 .auth-card input { height:49px; font-size:16px; }
 .auth-button { min-height:49px; font-size:17px; }
 #phone-display { font-size:22px; }
 .value-row .is-code { font-size:28px; }
}

/* 兑换页按参考图的布局、尺寸与留白还原。 */
:root { --bg:#07111e; }
.page { width:min(1024px,calc(100% - 48px)); margin:0 auto; }
.site-header { height:70px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-header .brand { display:inline-block; margin:0; color:#ffffff; font-family:"Segoe UI","Microsoft YaHei",sans-serif; font-size:22px; line-height:1.3; font-weight:700; letter-spacing:0; white-space:nowrap; text-decoration:none; }
.site-header .brand span { color:#13d3ef; }
.site-header nav { display:flex; flex-direction:row; align-items:center; gap:20px; }
.nav-link { color:#40ddf3; border:0; background:none; padding:6px 0; font-size:15px; font-weight:400; line-height:1.5; text-decoration:none; cursor:pointer; white-space:nowrap; }
.nav-link:hover:not(:disabled) { color:#9df2ff; }
.entry-intro { width:min(720px,100%); margin:0 auto; padding-top:32px; text-align:center; }
.entry-status { display:flex; align-items:center; justify-content:center; gap:7px; width:max-content; min-height:32px; padding:5px 11px; border:1px solid #28536c; border-radius:99px; color:#8ce9f5; background:#0f2232; font-size:13px; line-height:20px; font-weight:600; }
.status-dot { display:inline-block; height:8px; width:8px; border-radius:50%; background:#8eabc2; }
.status-dot.connected { background:#29d8a2; box-shadow:0 0 9px #29d8a24d; }
.entry-intro h1 { font-size:36px; font-weight:700; line-height:1.2; color:#eef5ff; margin:20px 0 0; letter-spacing:0; }
.entry-intro>p { font-size:15px; line-height:24px; color:#8eb8da; margin:4px 0 0; }
body[data-screen="entry"] .workspace { background:none; border:0; border-radius:0; padding:0; margin:0; box-shadow:none; }
body[data-screen="entry"] .auth-card { width:min(520px,100%); max-width:520px; margin:168px auto 48px; padding:36px; border:1px solid #243e5a; border-radius:22px; background:linear-gradient(135deg,#102138,#0c192b); box-shadow:0 20px 45px #00000014; }
body[data-screen="entry"] .auth-title { font-size:30px; line-height:36px; color:#f0f5ff; font-weight:700; margin:0 0 12px; }
body[data-screen="entry"] .auth-description { font-size:14px; line-height:21px; color:#8fb8dd; margin:0 0 14px; }
body[data-screen="entry"] .auth-card label { font-size:14px; line-height:22px; color:#eff5ff; font-weight:400; margin:0 0 6px; }
body[data-screen="entry"] .auth-row { display:flex; flex-direction:column; gap:13px; }
body[data-screen="entry"] .auth-card input { height:40px; border:1px solid #355773; background:#071422; border-radius:9px; color:#f3f7ff; padding:0 11px; font-family:"Segoe UI","Microsoft YaHei",sans-serif; font-size:14px; line-height:20px; }
body[data-screen="entry"] .auth-card input::placeholder { color:#8196a9; font-size:13px; }
body[data-screen="entry"] .auth-card input:focus { border-color:#39d8ec; box-shadow:0 0 0 3px #13b8ce20; }
body[data-screen="entry"] .auth-button { min-height:49px; width:100%; font-size:16px; line-height:24px; font-weight:700; color:#00171e; background:#13b7ca; border:1px solid #13b7ca; border-radius:10px; padding:11px 18px; }
body[data-screen="entry"] .auth-button:hover:not(:disabled) { background:#37cee0; border-color:#37cee0; }
body[data-screen="entry"] .auth-button:disabled { background:#1f5063; border-color:#356279; color:#a2c1d2; }
body[data-screen="entry"] .error-message { margin-bottom:0; }
body[data-screen="dashboard"] .workspace { margin-top:38px; }
.dashboard-heading { border-bottom:1px solid #31465c; margin-bottom:26px; padding-bottom:22px; }
.dashboard-heading h1 { font-size:30px; font-weight:700; line-height:1.4; }
.dashboard-heading p { color:var(--muted); font-size:14px; margin:7px 0 0; }
@media(max-width:640px) {
 .page { width:calc(100% - 36px); margin:0 auto; }
 .site-header { height:70px; gap:15px; }
 .site-header .brand { font-size:20px; }
 .site-header nav { gap:14px; }
 .nav-link { font-size:13px; }
 .entry-intro { padding-top:28px; }
 .entry-status { font-size:12px; min-height:30px; padding:4px 10px; }
 .entry-intro h1 { font-size:32px; margin-top:22px; }
 .entry-intro>p { font-size:14px; margin-top:7px; }
 body[data-screen="entry"] .auth-card { margin:94px auto 36px; padding:28px 26px; border-radius:19px; }
 body[data-screen="entry"] .auth-title { font-size:27px; line-height:34px; }
 body[data-screen="entry"] .auth-description { font-size:14px; }
 body[data-screen="entry"] .auth-card input { height:44px; font-size:16px; }
 body[data-screen="entry"] .auth-button { min-height:48px; font-size:16px; }
 body[data-screen="dashboard"] .workspace { margin-top:22px; }
}
@media(max-width:380px) { .site-header .brand{font-size:18px}.site-header nav{gap:11px}.nav-link{font-size:12px}body[data-screen="entry"] .auth-card{padding:26px 22px} }

/* 余额与主要操作集中到同一张卡片。 */
.quota-card { display:flex; justify-content:space-between; align-items:center; gap:24px; min-height:130px; padding:26px 28px; background:#0c1c2e; border:1px solid #223c58; border-radius:20px; margin-bottom:20px; }
.quota-summary { display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:0; }
.quota-label { color:#9fc3e1; font-size:13px; line-height:22px; }
.quota-summary>strong { color:#eef4ff; font-family:"Segoe UI","Microsoft YaHei",sans-serif; font-size:36px; font-weight:700; line-height:43px; font-variant-numeric:tabular-nums; }
.quota-summary>small { color:#9fb6cd; font-size:12px; line-height:18px; }
.quota-summary>small:empty { display:none; }
.quota-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-shrink:0; }
.quota-actions .button { min-height:39px; padding:10px 15px; border-radius:10px; font-size:14px; line-height:19px; font-weight:600; white-space:nowrap; }
.quota-actions .primary { display:inline-flex; width:auto; min-width:100px; color:#001b23; background:#13b7cb; border-color:#13b7cb; }
.quota-actions .primary:hover:not(:disabled) { background:#36d2e4; border-color:#36d2e4; }
.quota-actions .secondary { min-width:94px; background:#20364c; border:1px solid #20364c; color:#edf5ff; }
.quota-actions .secondary:hover:not(:disabled) { background:#2c4865; border-color:#365878; }
.quota-actions .button:disabled { background:#172d40; border-color:#284359; color:#839cb2; }
@media(max-width:640px) { .quota-card{padding:21px 20px;gap:15px;min-height:120px;border-radius:16px}.quota-actions{gap:8px}.quota-actions .button{font-size:13px;padding:10px 11px}.quota-actions .primary{min-width:90px}.quota-actions .secondary{min-width:82px}.quota-summary>strong{font-size:33px}.quota-label{font-size:12px} }
@media(max-width:390px) { .quota-card{align-items:flex-start;flex-direction:column;gap:16px}.quota-actions{width:100%;justify-content:flex-end}.quota-actions .button{flex:1} }
