:root {
  /* 与 yg.yari01.cn 一致的蓝色主操作体系：蓝 / 浅灰 / 白。 */
  --green: #007aff;
  --green-dark: #0062cc;
  --mint: #e6f3ff;
  --gold: #ffbe00;
  --ink: #353535;
  --muted: #777;
  --line: #e5e5e5;
  --paper: #fff;
  --danger: #c74b4b;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f3f6f4;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #f7f7f7; cursor: default; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }
/* 订单详情等弹框挂在 body 下，不继承 .app-shell 的光标规则；非编辑控件一律不显示插入光标。 */
button, [role="button"], .modal-card { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }
.app-shell { max-width: 540px; min-height: 100vh; margin: auto; background: #f8f8f8; padding-bottom: calc(78px + env(safe-area-inset-bottom)); overflow: hidden; caret-color: transparent; }
.app-shell input, .app-shell textarea { caret-color: auto; cursor: text; pointer-events: auto; touch-action: manipulation; user-select: text; -webkit-user-select: text; }
.app-shell select { caret-color: auto; cursor: pointer; pointer-events: auto; touch-action: auto; user-select: text; -webkit-user-select: text; }
.page { min-height: 100vh; }
.auth-page { min-height: 100vh; padding: max(38px, env(safe-area-inset-top)) 24px 36px; background: linear-gradient(160deg, #0062cc 0%, #007aff 58%, #10aeff 100%); color: white; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 18px; color: #fee7aa; font-family: Georgia, serif; font-size: 28px; background: rgba(255,255,255,.09); box-shadow: inset 0 1px rgba(255,255,255,.2); }
.auth-page h1 { margin: 27px 0 7px; font-size: 31px; letter-spacing: 2px; }
.auth-page .sub { margin: 0 0 25px; color: rgba(255,255,255,.7); font-size: 14px; }
.auth-card { background: var(--paper); color: var(--ink); border-radius: 25px; padding: 24px 20px 22px; box-shadow: 0 20px 45px rgba(3,41,33,.24); }
.auth-card h2 { margin: 0 0 8px; font-size: 21px; }
.helper { margin: 0 0 20px; line-height: 1.6; color: var(--muted); font-size: 13px; }
.field { display: block; margin-top: 15px; }
.field span { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.field input, .field select { width: 100%; height: 48px; padding: 0 13px; outline: none; border: 1px solid #dae3de; border-radius: 12px; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s; }
.field input:focus, .field select:focus { border-color: #007aff; box-shadow: 0 0 0 3px #e6f3ff; }
.code-row { display: flex; gap: 9px; }
.code-row input { min-width: 0; }
.code-row button { flex: 0 0 105px; color: var(--green); background: var(--mint); border-radius: 12px; font-size: 13px; font-weight: 700; }
.primary { width: 100%; min-height: 49px; margin-top: 22px; border-radius: 14px; color: white; background: linear-gradient(100deg, #0062cc, #007aff); box-shadow: 0 8px 16px rgba(0,122,255,.22); font-weight: 700; letter-spacing: .5px; }
.primary:active { transform: translateY(1px); }
.primary[disabled] { color: #89928e; background: #e5e9e7; box-shadow: none; cursor: not-allowed; }
.auth-footer { margin: 19px 5px 0; color: rgba(255,255,255,.8); text-align: center; font-size: 13px; }
.text-button { color: inherit; background: none; text-decoration: underline; text-underline-offset: 3px; }
.agreement { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; color: #6c7a74; font-size: 11px; line-height: 1.55; }
.agreement input { accent-color: var(--green); margin-top: 2px; }
.agreement-link { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; color: #176dbe; background: transparent; -webkit-appearance: none; appearance: none; text-decoration: none; font: inherit; }
.agreement-link:visited, .agreement-link:hover, .agreement-link:active { color: #176dbe; background: transparent; }
.topbar { display: flex; align-items: center; min-height: 58px; padding: max(12px, env(safe-area-inset-top)) 19px 0; background: var(--paper); caret-color: transparent; cursor: default; user-select: none; -webkit-user-select: none; }
.topbar h1 { flex: 1; margin: 0; font-size: 18px; text-align: center; }
.topbar button { width: 42px; color: var(--ink); background: transparent; font-size: 25px; line-height: 1; }
.topbar button[data-back] { display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 3px; border: 0; border-radius: 0; color: #176ecd; background: transparent; box-shadow: none; font-size: 32px; font-weight: 400; }
.topbar button[data-back] svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.topbar button[data-back]:active { transform: scale(.96); }
.topbar-spacer { flex: 0 0 42px; width: 42px; }
.content { padding: 15px 16px 24px; }
.home-page { background: linear-gradient(160deg, #0062cc 0, #007aff 135px, #f7f7f7 330px); }
.home-page .topbar { color: #fff; background: transparent; }
.home-page .topbar h1 { color: inherit; }
.home-page .content { padding-top: 8px; }
.exchange-page { background: linear-gradient(160deg, #0062cc 0, #007aff 135px, #f7f7f7 330px); }
.exchange-page .topbar { color: #fff; background: transparent; }
.exchange-page .topbar h1 { color: inherit; }
.exchange-page .content { padding-top: 8px; }
.records-page .topbar, .wallets-page .topbar { position: relative; min-height: calc(86px + env(safe-area-inset-top)); padding: max(12px, env(safe-area-inset-top)) 19px 12px; color: #fff; background: linear-gradient(110deg, #0062cc, #087ff3 58%, #20b7ff); box-shadow: 0 5px 15px rgba(0,107,225,.14); }
.records-page .topbar h1, .wallets-page .topbar h1 { position: absolute; z-index: 0; inset: 0; display: grid; place-items: center; padding: 0 61px; color: inherit; pointer-events: none; }
.wallets-page .topbar button[data-back], .records-page .topbar-spacer, .wallets-page .topbar-spacer { position: relative; z-index: 1; color: inherit; }
.hero { position: relative; overflow: hidden; min-height: 199px; padding: 23px 21px; border-radius: 23px; color: #fff; background: linear-gradient(126deg, #0055bb 0%, #007aff 52%, #21b8ff 100%); box-shadow: 0 13px 28px rgba(0,91,202,.27); }
.hero::after { position: absolute; top: -73px; right: -70px; width: 204px; height: 204px; content: ""; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.04), 0 0 0 53px rgba(255,255,255,.04); }
.balance-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; min-height: 19px; color: rgba(231,246,255,.82); font-size: 13px; line-height: 19px; }
.balance-heading b { padding: 1px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; color: #eaf8ff; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 600; line-height: 17px; }
.balance { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 52px; margin-top: 8px; }
.balance strong { display: block; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 40px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.7px; line-height: 1; }
.balance span { display: block; padding-top: 6px; color: #c9efff; font-size: 13px; font-weight: 600; line-height: 1; }
.frozen { position: relative; z-index: 1; margin-top: 11px; color: #d9efff; font-size: 12px; }
.updated { position: relative; z-index: 1; margin-top: 23px; color: rgba(255,255,255,.65); font-size: 11px; }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 16px 0 23px; }
.quick-action { min-height: 94px; padding: 7px 1px 5px; color: var(--ink); background: transparent; text-align: center; }
.quick-icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin: auto auto 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 18px; color: #1578e8; background: linear-gradient(145deg, #e1f1ff, #b9dcff); box-shadow: 0 7px 15px rgba(24,122,225,.19), inset 0 1px rgba(255,255,255,.82); transition: transform .18s ease, box-shadow .18s ease; }
.quick-icon::after { position: absolute; top: -13px; right: -8px; width: 35px; height: 35px; content: ""; border-radius: 50%; background: rgba(255,255,255,.38); }
.quick-icon svg { position: relative; z-index: 1; width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.quick-wallet .quick-icon { color: #c48724; background: linear-gradient(145deg, #fff0d2, #f6cf8b); box-shadow: 0 7px 15px rgba(195,135,33,.19), inset 0 1px rgba(255,255,255,.82); }
.quick-records .quick-icon { color: #5d78cc; background: linear-gradient(145deg, #e8ebff, #c9d2ff); box-shadow: 0 7px 15px rgba(82,107,190,.19), inset 0 1px rgba(255,255,255,.82); }
.quick-rules .quick-icon { color: #a35a9c; background: linear-gradient(145deg, #fde6f7, #edbee0); box-shadow: 0 7px 15px rgba(159,80,148,.18), inset 0 1px rgba(255,255,255,.82); }
.quick-action:active .quick-icon { transform: translateY(1px) scale(.96); box-shadow: 0 3px 8px rgba(24,122,225,.16), inset 0 1px rgba(255,255,255,.9); }
.quick-action small { display: block; color: #434b58; font-size: 12px; font-weight: 600; letter-spacing: .1px; line-height: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 12px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading button { color: var(--muted); background: none; font-size: 12px; }
.wallets-page .section-heading { align-items: center; }
.wallets-page .section-heading button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #168bff, #0071e8); box-shadow: 0 6px 12px rgba(0,105,222,.22); font-size: 12px; font-weight: 700; }
.wallets-page .section-heading button::before { margin-right: 4px; content: "+"; font-size: 16px; font-weight: 400; line-height: 1; }
.wallets-page .section-heading button:active { transform: translateY(1px) scale(.97); box-shadow: 0 3px 7px rgba(0,105,222,.2); }
.card { padding: 17px; border: 1px solid rgba(224,232,227,.8); border-radius: 17px; background: white; box-shadow: 0 5px 20px rgba(35,66,55,.035); }
.notice { display: flex; align-items: flex-start; gap: 11px; }
.wallets-page .notice { padding: 14px; border: 1px solid #e3e7d9; border-radius: 14px; background: linear-gradient(135deg, #e9f5ff 0%, #fff5df 100%); }
.notice-mark { flex: 0 0 auto; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #bd872d; background: #f9f1df; font-size: 14px; }
.notice strong { display: block; margin: 1px 0 5px; font-size: 14px; }
.notice p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.notice p { white-space: pre-wrap; word-break: break-word; }
.bottom-nav { position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; max-width: 540px; min-height: calc(68px + env(safe-area-inset-bottom)); margin: auto; padding: 6px 12px env(safe-area-inset-bottom); border-top: 1px solid #eaf0f5; background: rgba(255,255,255,.96); box-shadow: 0 -5px 18px rgba(34,72,109,.04); backdrop-filter: blur(14px); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 1px 0; color: #87919e; background: transparent; }
.nav-icon { display: grid; place-items: center; width: 34px; height: 29px; border-radius: 11px; transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-item small { display: block; font-size: 10px; font-weight: 500; line-height: 15px; }
.nav-item.active { color: var(--green); }
.nav-item.active .nav-icon { color: #fff; background: linear-gradient(135deg, #168bff, #0071e8); box-shadow: 0 5px 10px rgba(0,122,255,.25); }
.nav-item.active small { font-weight: 700; }
.nav-item:active .nav-icon { transform: scale(.92); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; color: #a66f18; background: #fbf3e3; font-size: 11px; }
.status-pill::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: currentColor; }
.exchange-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 2px 0 13px; padding: 4px; border: 1px solid #f0dfbc; border-radius: 14px; background: #fbf3e3; }
.exchange-tab { height: 42px; min-width: 0; padding: 0; border-radius: 10px; color: #a66f18; background: transparent; font-size: 14px; font-weight: 600; }
.exchange-tab.active { color: #a66f18; background: #fff; box-shadow: 0 3px 9px rgba(139,96,23,.13); }
.exchange-card { margin-bottom: 12px; padding: 19px; border-radius: 18px; background: #fff; border: 1px solid #e6ece9; }
.exchange-card .title-line { display: flex; align-items: center; justify-content: space-between; }
.exchange-card h2 { margin: 0; font-size: 18px; }
.exchange-card p { margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.power-available-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 0 4px; padding: 14px 15px; overflow: hidden; border: 1px solid #8fc5ff; border-radius: 14px; color: #fff; background: linear-gradient(120deg, #087ff3, #16a9ff); box-shadow: 0 8px 18px rgba(0,112,230,.22); }
.power-available-balance > div { min-width: 0; }
.power-available-balance span, .power-available-balance small { display: block; }
.power-available-balance span { font-size: 13px; font-weight: 700; }
.power-available-balance small { margin-top: 3px; color: rgba(235,248,255,.84); font-size: 11px; }
.power-available-balance strong { flex: 0 0 auto; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.power-available-balance em { margin-left: 4px; color: #dff4ff; font-size: 11px; font-style: normal; font-weight: 600; }
.power-live-price { flex: 0 0 100%; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); }
.power-live-price span { color: #dff4ff; font-size: 11px; font-weight: 600; }
.power-live-price b { min-width: 0; color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.power-live-price small { grid-column: 1 / -1; margin-top: 3px; color: rgba(235,248,255,.78); font-size: 10px; }
.metric { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.metric span { color: var(--muted); }
.metric strong { color: var(--green-dark); }
.outline-button { width: 100%; min-height: 43px; margin-top: 13px; border: 1px solid #c8d8d1; border-radius: 12px; color: var(--green); background: #fff; font-size: 13px; font-weight: 700; }
.outlined-warning { border-color: #ead3a9; color: #a67727; }
.form-card { padding: 18px; border-radius: 18px; background: #fff; }
.amount-control { width: 100%; }
.amount-row { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 13px; border: 1px solid #dae3de; border-radius: 12px; background: #fff; transition: border .2s, box-shadow .2s; }
.amount-row:focus-within { border-color: #007aff; box-shadow: 0 0 0 3px #e6f3ff; }
.amount-row input { width: 100%; height: 46px; padding: 0; outline: none; border: 0; background: transparent; color: #273849; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 46px; }
.amount-row input:focus { outline: none; border: 0; background: transparent; box-shadow: none; }
.amount-row input::placeholder { color: #b7c0cb; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 12px; font-weight: 400; }
.exchange-submit { margin-top: 14px; }
.wallet-select-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 8px 12px; border: 1px solid #b9d9f6; border-radius: 12px; color: #24577f; background: #eff8ff; text-align: left; }
.wallet-select-button > span { min-width: 0; }
.wallet-select-button b, .wallet-select-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-select-button b { color: #24577f; font-size: 13px; line-height: 18px; }
.wallet-select-button small { margin-top: 1px; color: #6685a0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 15px; }
.wallet-select-button > i { display: grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px; margin-left: 10px; color: #4387c0; font-style: normal; }
.wallet-select-button > i svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.wallet-select-button:active { border-color: #007aff; background: #fff; }
.wallet-selection-note, .wallet-selection-empty { margin: 15px 0 0; padding: 11px 12px; border-radius: 11px; color: #718096; background: #f3f7fa; font-size: 12px; line-height: 1.45; }
.wallet-selection-empty { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-selection-empty button { flex: 0 0 auto; padding: 5px 9px; border-radius: 8px; color: #176dbe; background: #e5f1ff; font-size: 12px; font-weight: 700; }
.wallet-summary-address { color: #176dbe !important; font-size: 13px !important; }
.summary-box { margin-top: 13px; padding: 13px; border-radius: 13px; background: #f3f8f5; }
.summary-box .metric { padding: 5px 0; border: none; }
.rules { margin: 13px 3px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.quote-cancel { margin-top: 9px; border-color: #d7e3ed; color: #607386; }
.quote-confirm-modal .modal-card { max-width: 400px; border-radius: 18px; padding: 22px 20px; }
.quote-confirm-details { margin: 16px 0 4px; padding: 3px 13px; border-radius: 13px; background: #f3f8fc; }
.quote-confirm-details div { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 42px; border-bottom: 1px solid #dfeaf3; font-size: 12px; }
.quote-confirm-details div:last-child { border-bottom: 0; }
.quote-confirm-details span { color: #718096; }
.quote-confirm-details strong { min-width: 0; overflow: hidden; color: #24577f; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.empty { margin-top: 20px; padding: 46px 20px; color: var(--muted); text-align: center; }
.empty i { display: grid; place-items: center; width: 52px; height: 52px; margin: auto auto 13px; border-radius: 18px; color: #91aaa0; background: #edf4f0; font-size: 23px; font-style: normal; }
.empty p { margin: 0; font-size: 13px; }
.empty-action { width: 100%; border: 0; background: transparent; cursor: pointer; }
.empty-action small { display: block; margin-top: 7px; color: var(--green); font-size: 12px; }
.empty-action:active i { transform: scale(.95); }
.profile-head { position: relative; min-height: 180px; padding: 25px 20px 22px; overflow: hidden; color: white; background: linear-gradient(135deg, #075dbf 0%, #087ff3 52%, #2bc2ff 100%); }
.profile-head::before, .profile-head::after { position: absolute; content: ""; border-radius: 50%; pointer-events: none; }
.profile-head::before { top: -78px; right: -51px; width: 205px; height: 205px; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 0 0 26px rgba(255,255,255,.055), 0 0 0 55px rgba(255,255,255,.035); }
.profile-head::after { bottom: -91px; left: -45px; width: 176px; height: 176px; background: rgba(1,61,151,.13); }
.profile-head .user, .profile-balance { position: relative; z-index: 1; }
.profile-head .user { display: flex; align-items: center; gap: 13px; }
.avatar { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid rgba(255,255,255,.3); border-radius: 17px; color: #294033; background: linear-gradient(135deg, #d7c78f 0%, #639277 100%); box-shadow: inset 0 1px rgba(255,255,255,.25), 0 6px 14px rgba(36,91,64,.18); font-family: Georgia, serif; font-size: 21px; }
.account-details { min-width: 0; }
.profile-head .account-details b { display: block; overflow: hidden; color: #fff; font-size: 16px; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
.profile-head .account-details small { display: block; overflow: hidden; margin-top: 5px; color: #d9efff; font-size: 12px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.profile-balance { display: flex; align-items: baseline; gap: 7px; margin-top: 23px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; background: linear-gradient(115deg, #0758ad 0%, #087bda 50%, #1aa7df 100%); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 7px 16px rgba(2,74,155,.25); }
.profile-balance span { margin-right: auto; color: #d9efff; font-size: 12px; }
.profile-balance strong { color: #fff; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; line-height: 1; }
.profile-balance em { color: #d9efff; font-size: 12px; font-style: normal; }
.menu-card { margin-top: 14px; padding: 0 16px; border-radius: 17px; background: white; }
.menu-item { display: flex; align-items: center; width: 100%; min-height: 57px; padding: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.menu-item:last-child { border-bottom: 0; }
.menu-item > i { width: 29px; color: var(--green); font-style: normal; font-size: 18px; }
.menu-item span { flex: 1; font-size: 14px; }
.menu-item b { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; color: #aeb8c1; }
.menu-item b svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.record-list { padding: 0 16px; }
.record-item { display: flex; align-items: center; width: 100%; min-height: 68px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.record-item:last-child { border-bottom: 0; }
.record-summary { min-width: 0; flex: 1; }
.record-summary b, .record-summary small { display: block; }
.record-summary .record-type { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 24px; }
.record-summary .record-type.is-csph { color: #176dbe; background: #e7f2ff; }
.record-summary .record-type.is-power { color: #a66f18; background: #fff1d8; }
.record-summary small { margin-top: 3px; color: #778493; font-size: 12px; line-height: 18px; }
.record-summary small strong { margin-left: 3px; color: #176dbe; font-size: inherit; font-weight: 700; }
.record-state { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; min-width: 84px; margin-left: 8px; font-style: normal; }
.record-state b, .record-state small { display: block; }
.record-state b { padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 16px; white-space: nowrap; }
.record-state small { margin-top: 5px; color: #8994a0; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 14px; white-space: nowrap; }
.record-state.is-pending b, .order-status.is-pending { color: #a66f18; background: #fff2d9; }
.record-state.is-delivery b, .order-status.is-delivery { color: #176dbe; background: #e7f2ff; }
.record-state.is-completed b, .order-status.is-completed { color: #197550; background: #e5f6ec; }
.record-state.is-rejected b, .order-status.is-rejected { color: #bb4a4a; background: #ffebeb; }
.record-state.is-unknown b, .order-status.is-unknown { color: #687788; background: #edf1f4; }
.record-item > em { display: grid; flex: 0 0 auto; place-items: center; width: 19px; height: 19px; margin-left: 4px; color: #aeb8c1; font-style: normal; }
.record-item > em svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.profile-menu .menu-item { min-height: 65px; }
.profile-menu .menu-icon { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 11px; border-radius: 12px; color: #1278dc; background: #dceeff; }
.profile-menu .menu-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.profile-menu .menu-wallet { color: #b97715; background: #ffedc9; }
.profile-menu .menu-records { color: #5476c9; background: #e2e8ff; }
.profile-menu .menu-rules { color: #2e9b78; background: #d9f4e9; }
.profile-menu .menu-privacy { color: #9b5bab; background: #f2e1f7; }
.wallet-address-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.wallet-address { min-width: 0; padding: 0; overflow: hidden; color: var(--muted); background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 17px; }
.copy-address { display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 7px; color: #2f7fd7; background: #e9f3ff; }
.copy-address svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.copy-address:active { transform: scale(.91); }
.wallet-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wallet-row:last-child { border-bottom: 0; }
.wallet-chain { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: #e8b641; background: #fff6dd; font-size: 12px; font-weight: 700; }
.wallet-detail { flex: 1; min-width: 0; }
.wallet-detail strong { display: block; margin-bottom: 4px; font-size: 13px; }
.wallet-label-row { display: flex; align-items: center; min-width: 0; margin-bottom: 4px; }
.wallet-label-row strong { min-width: 0; margin-bottom: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-wallet-label, .delete-wallet { display: grid; flex: 0 0 auto; place-items: center; width: 23px; height: 23px; margin-left: 5px; padding: 0; border-radius: 7px; }
.edit-wallet-label { color: #5a7898; background: #eef4fa; }
.delete-wallet { color: #c85c5c; background: #fff0f0; }
.edit-wallet-label svg, .delete-wallet svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.edit-wallet-label:active, .delete-wallet:active { transform: scale(.91); }
.delete-wallet.is-disabled { color: #aeb7c0; background: #f1f3f5; }
.wallet-state { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; box-sizing: border-box; width: 94px; min-height: 28px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.wallet-state.is-csph { color: #176dbe; background: #e7f2ff; }
.wallet-state.is-power { color: #197550; background: #e5f6ec; }
.wallet-state.wait { color: #ac7a26; background: #fff4dc; }
.toast { position: fixed; z-index: 8; bottom: 92px; left: 50%; max-width: calc(100vw - 42px); padding: 11px 15px; border-radius: 12px; color: #fff; background: rgba(20,35,29,.9); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s ease; text-align: center; font-size: 13px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.pull-refresh { --pull-distance: 0px; position: fixed; z-index: 5; top: max(5px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(194,207,198,.85); border-radius: 99px; color: #53665a; background: rgba(255,255,255,.96); box-shadow: 0 6px 17px rgba(31,64,48,.13); opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% + var(--pull-distance))); transition: transform .16s ease, opacity .16s ease; font-size: 12px; font-weight: 600; }
.pull-refresh.is-visible { opacity: 1; }
.pull-refresh-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; color: #5b8d70; line-height: 1; }
.pull-refresh-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.pull-refresh.is-ready .pull-refresh-icon { color: #3f7157; }
.pull-refresh.is-refreshing .pull-refresh-icon { animation: pull-refresh-spin .8s linear infinite; }
.pull-refresh.is-complete .pull-refresh-icon { color: #32805b; }
@keyframes pull-refresh-spin { to { transform: rotate(360deg); } }
.modal { position: fixed; z-index: 6; inset: 0; display: flex; align-items: center; justify-content: center; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: rgba(4,23,18,.45); }
.modal-card { width: min(100%, 420px); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); margin: 0; padding: 22px 20px; overflow-y: auto; border-radius: 18px; background: white; box-shadow: 0 18px 48px rgba(10,38,61,.25); }
.modal-card[aria-label="修改钱包备注"] { max-width: 380px; }
.modal-card[aria-label="添加钱包"] { max-width: 440px; }
.modal-card[aria-label="确认兑换申请"] { max-width: 400px; }
.wallet-picker { max-width: 420px; padding: 14px 13px 13px; }
.wallet-picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 2px 9px; }
.modal-card.wallet-picker .wallet-picker-heading h2 { margin: 0; font-size: 15px; }
.modal-card.wallet-picker .wallet-picker-heading p { margin: 3px 0 0; color: #788694; font-size: 11px; }
.wallet-picker-heading button { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; padding: 0; border-radius: 8px; color: #718096; background: #f1f5f8; font-size: 17px; line-height: 1; }
.wallet-picker-list { overflow: hidden; border: 1px solid #dce9f3; border-radius: 13px; }
.wallet-picker-option { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 6px 10px; border-bottom: 1px solid #e4edf3; color: #38536b; background: #fff; text-align: left; }
.wallet-picker-option:last-child { border-bottom: 0; }
.wallet-picker-option > span { min-width: 0; }
.wallet-picker-option b, .wallet-picker-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-picker-option b { color: #344c62; font-size: 12px; line-height: 16px; }
.wallet-picker-option small { margin-top: 1px; color: #7a8d9d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 14px; }
.wallet-picker-option > i { display: grid; flex: 0 0 18px; place-items: center; margin-left: 8px; color: #1680dc; font-style: normal; }
.wallet-picker-option > i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.1; }
.wallet-picker-option.is-selected { background: #edf7ff; }
.wallet-picker-option.is-selected b { color: #1269b7; }
.wallet-picker-option:active { background: #e5f2fc; }
.modal-card h2 { margin: 0 0 9px; font-size: 18px; }
.modal-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.modal-card .notice-content { white-space: pre-wrap; word-break: break-word; }
.modal-card .primary { margin-top: 10px; }
.order-detail-modal .modal-card { width: min(100%, 440px); max-height: min(calc(100vh - 36px), 720px); max-height: min(calc(100dvh - 36px), 720px); padding: 22px 20px; border-radius: 18px; }
.order-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.order-detail-heading > div > span { display: block; margin-bottom: 4px; color: #7d8a96; font-size: 12px; }
.order-detail-heading h2 { margin: 0; color: #273849; font-size: 20px; }
.order-status { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 27px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.order-detail-grid { overflow: hidden; border: 1px solid #e5edf2; border-radius: 15px; background: #f9fbfd; }
.order-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 49px; padding: 0 14px; border-bottom: 1px solid #e8eef3; font-size: 13px; }
.order-detail-row.is-wallet-address, .order-detail-row.is-delivery-proof { display: block; padding-top: 12px; padding-bottom: 12px; }
.order-detail-row.is-wallet-address > span, .order-detail-row.is-delivery-proof > span { display: block; margin-bottom: 7px; }
.order-copyable-value { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid #e1eaf1; border-radius: 10px; background: #fff; }
.order-copyable-text { flex: 1 1 auto; min-width: 0; padding: 0; overflow: hidden; color: #273f59; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.45; }
.order-copyable-text:active { opacity: .65; }
.order-copyable-value .copy-address { flex: 0 0 auto; }
.wallet-delete-address { margin: 13px 0 2px; padding: 10px 12px; overflow-wrap: anywhere; border-radius: 10px; color: #536579; background: #f3f6f8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; }
.delete-confirm { background: linear-gradient(135deg, #d85c5c, #bf4141) !important; }
.order-detail-row:last-child { border-bottom: 0; }
.order-detail-row > span { flex: 0 0 auto; color: #788694; }
.order-detail-row > strong { min-width: 0; color: #273f59; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; word-break: break-all; }
.order-detail-row.is-order-no > strong { color: #176dbe; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.order-order-no { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.order-order-no strong { min-width: 0; overflow: hidden; color: #176dbe; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-variant-numeric: tabular-nums; }
.order-review-reason { margin-top: 12px; padding: 12px 14px; border: 1px solid #f1dfbe; border-radius: 13px; background: #fff9ed; }
.order-review-reason span { display: block; color: #a66f18; font-size: 12px; font-weight: 700; }
.order-review-reason p { margin: 5px 0 0; color: #715d40; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.wallet-purpose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wallet-purpose-option { min-height: 72px; padding: 11px; border: 1px solid #d8e2ec; border-radius: 13px; color: #536579; background: #f8fafc; text-align: left; }
.wallet-purpose-option b, .wallet-purpose-option small { display: block; }
.wallet-purpose-option b { margin-bottom: 5px; color: #34465a; font-size: 13px; }
.wallet-purpose-option small { color: #8190a0; font-size: 11px; line-height: 1.35; }
.wallet-purpose-option.active { border-color: #1976d2; background: #edf6ff; box-shadow: inset 0 0 0 1px #1976d2; }
.wallet-purpose-option.active b { color: #0d67c0; }
@media (min-width: 541px) { body { background: #e6ece8; } .app-shell { box-shadow: 0 0 45px rgba(19,58,46,.12); } }
