/* TokenPocket Web - Mobile Wallet UI */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #2980FE;
    --blue-dark: #1a6fe0;
    --green: #52C41A;
    --green-dark: #45a816;
    --up: #00C087;
    --down: #FF4D4F;
    --bg: #ffffff;
    --card: #fff;
    --text: #1a1a1a;
    --text2: #999;
    --border: #eee;
    --nav-h: 50px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #ffffff;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
}

body.page-receive {
    background: #2980FE;
}

.phone-frame {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    overflow-x: hidden;
}

.has-bottom-nav .phone-frame { padding-bottom: var(--nav-h); }
.has-bottom-nav .main-scroll { padding-bottom: 16px; }
.has-action-bar .phone-frame { padding-bottom: 64px; }
.has-action-bar.has-bottom-nav .phone-frame { padding-bottom: calc(var(--nav-h) + 64px); }

/* ===== Bottom Tab (d1-d5 整图切换) ===== */
.bottom-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-h);
    background: #fff;
    z-index: 100;
    overflow: hidden;
}

.bottom-tab-image {
    border-top: none;
    padding: 0;
}

.bottom-tab-strip {
    display: block;
    width: 100%;
    height: var(--nav-h);
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.bottom-tab-hit {
    position: absolute;
    inset: 0;
    display: flex;
}

.tab-hit {
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

/* 旧版 SVG 按钮样式（已弃用，保留兼容） */
.bottom-tab:not(.bottom-tab-image) {
    border-top: 1px solid var(--border);
    display: flex;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: none;
    color: #999;
    font-size: 10px;
    cursor: pointer;
    padding: 6px 0 4px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tab-item.active {
    color: var(--blue);
}

.tab-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tab-icon .icon-svg {
    display: block;
    width: 24px;
    height: 24px;
}

.tab-label {
    line-height: 1;
    font-size: 10px;
    white-space: nowrap;
}

/* 资产：未选中=灰线框+灰菱形；选中=蓝底+白菱形 */
.tab-icon-asset .asset-ring {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}
.tab-icon-asset .asset-diamond {
    fill: currentColor;
}
.tab-item.active .tab-icon-asset .asset-ring {
    fill: var(--blue);
    stroke: var(--blue);
}
.tab-item.active .tab-icon-asset .asset-diamond {
    fill: #fff;
}

.tab-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 6px;
    height: 6px;
    background: var(--down);
    border-radius: 50%;
}

/* Tab panels */
.tab-panel {
    display: none;
    min-height: calc(100vh - var(--nav-h));
    overflow: hidden;
}
.tab-panel.active { display: block; }
.tab-panel[data-panel="3"] { background: #F2F3F7; }
.tab-panel.mine-page { background: #F2F3F7; overflow: visible; }
.tab-panel img.static-shot {
    display: block;
    width: calc(100% + 2px);
    max-width: none;
    margin-left: -1px;
    vertical-align: top;
}

/* ===== Home Header (tb.png 整图) ===== */
.home-header {
    padding: 0;
    background: #fff;
    line-height: 0;
}

.home-header-strip {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

.icon-btn {
    background: none;
    border: none;
    color: #333;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ===== Balance Card ===== */
.balance-card {
    margin: 0 16px 0;
    padding: 16px 18px 12px;
    background: #2980FE;
    border-radius: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.balance-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.wallet-name { display: flex; align-items: center; gap: 6px; }
.copy-icon {
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    line-height: 0;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
    color: #c8c8c8;
    cursor: pointer;
    vertical-align: middle;
}

.copy-icon-svg { display: block; }

.backup-btn {
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

.more-btn { background: none; border: none; color: #fff; position: relative; cursor: pointer; }
.more-btn .dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    background: var(--down);
    border-radius: 50%;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
}

.eye-btn { background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; padding: 4px; }

.balance-watermark {
    position: absolute;
    right: 16px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* ===== Quick Actions (zzz.png 整图 + 热区) ===== */
.quick-actions {
    position: relative;
    padding: 0 2px;
    margin: 6px 0 8px;
    line-height: 0;
}

.quick-actions-strip {
    display: block;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    object-position: center;
    -webkit-user-drag: none;
    user-select: none;
}

.quick-actions-hit {
    position: absolute;
    inset: 0 2px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.quick-hit {
    display: block;
    text-decoration: none;
}

.quick-hit-static {
    cursor: default;
}

/* ===== Asset Tabs ===== */
.section-tabs {
    display: flex;
    align-items: flex-end;
    padding: 0 16px 10px;
    margin-top: 0;
    gap: 20px;
}

.section-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--text2);
    background: none;
    border: none;
    padding: 0 0 6px;
    position: relative;
    flex-shrink: 0;
    line-height: 1.2;
    cursor: pointer;
}

.section-main.active {
    color: var(--text);
}

.section-main.active::after,
.section-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
}

.section-categories {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.section-tab {
    font-size: 16px;
    color: var(--text2);
    background: none;
    border: none;
    padding-bottom: 8px;
    cursor: pointer;
    position: relative;
}

.section-tab.active {
    color: var(--text);
    font-weight: 600;
}

.section-tabs .add-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
    cursor: pointer;
}

.section-tabs .add-btn img {
    display: block;
    width: 33px;
    height: 33px;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

/* ===== Asset List ===== */
.asset-list { background: var(--bg); }

.asset-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    background: var(--bg);
    border-bottom: 1px solid #f0f0f0;
}

.asset-item:active { background: #eee; }

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.asset-info { flex: 1; min-width: 0; }
.asset-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.asset-price-row { font-size: 12px; color: var(--text2); }
.asset-price-row .change.up { color: var(--up); margin-left: 6px; }
.asset-price-row .change.down { color: var(--down); margin-left: 6px; }

.asset-balance { text-align: right; flex-shrink: 0; }
.asset-balance-num { font-weight: 600; font-size: 15px; }
.asset-balance-usd { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* ===== Sub Pages ===== */
.sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sub-header h1 { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.back-btn { color: #333; text-decoration: none; display: flex; width: 40px; }
.sub-header-right {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.sub-header-info {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
}

.sub-header-info-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.sub-page { background: var(--bg); min-height: 100vh; padding-bottom: 80px; }

.page-asset .phone-frame,
.page-asset .sub-page {
    background: #F5F7FA;
}

.page-asset .sub-header {
    background: #F5F7FA;
}

/* Asset detail header */
.asset-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    background: #F5F7FA;
}

.asset-summary-left { display: flex; align-items: center; gap: 10px; }
.asset-summary-left img { width: 44px; height: 44px; border-radius: 50%; }
.asset-summary-name-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.asset-summary-name { font-size: 18px; font-weight: 600; }
.asset-summary-copy { color: #b0b0b0; }

.asset-summary-right { text-align: right; }
.asset-summary-balance { font-size: 28px; font-weight: 600; }
.asset-summary-usd { font-size: 13px; color: var(--text2); }

.asset-frozen-value {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
}

.market-card {
    margin: 0 16px 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    min-height: calc(28px + 16px * 1.3 + 2px + 12px * 1.3);
}

.market-card-label {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 400;
    flex-shrink: 0;
}

.market-card-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.market-card-prices {
    text-align: right;
}

.market-card-price {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.market-card-sub {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
    margin-top: 2px;
}

.market-change-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    color: #fff;
}

.market-change-badge.up { background: #24AF77; }
.market-change-badge.down { background: var(--down); }
.market-change-badge.flat { background: #B8BDC6; }

.market-card-arrow {
    display: flex;
    align-items: center;
    color: #C8C8C8;
    flex-shrink: 0;
}

/* Record tabs */
.record-tabs {
    display: flex;
    align-items: center;
    padding: 0 16px 12px;
    gap: 24px;
    border-bottom: 1px solid #E8E8E8;
    background: #F5F7FA;
}

.page-asset .record-list {
    background: #fff;
}

.page-asset .empty-state {
    background: #F5F7FA;
}

.record-tab {
    background: none;
    border: none;
    font-size: 15px;
    color: var(--text2);
    padding-bottom: 10px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.record-tab.active { color: var(--text); font-weight: 600; }
.record-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text);
}

.record-filter {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.record-filter-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

/* Record list */
.record-list { background: #fff; }

.record-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f5;
}

.record-item:active { background: #fafafa; }

.record-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.record-icon-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    display: block;
}

.record-item.type-out .record-icon,
.record-item.type-in .record-icon { background: transparent; }

.record-body { flex: 1; min-width: 0; }
.record-name { font-weight: 500; display: flex; align-items: center; gap: 4px; }
.record-type-label { font-size: 12px; color: var(--text2); margin-top: 2px; }

.record-right { text-align: right; flex-shrink: 0; }
.record-amount { font-weight: 600; color: var(--up); font-size: 15px; }
.record-amount.negative { color: var(--up); }
.record-amount.positive { color: var(--blue); }
.record-time { font-size: 11px; color: var(--text2); margin-top: 4px; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text2);
}

.empty-state svg { opacity: 0.3; margin-bottom: 16px; }
.empty-state p { margin-bottom: 8px; }
.empty-state a { color: var(--blue); text-decoration: none; }

/* Action bar (transfer/receive/swap) */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -1px 0 #F0F0F0;
    z-index: 50;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.action-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.action-transfer {
    flex: 1;
    background: #52C493;
    color: #fff;
}

.action-receive {
    flex: 1;
    background: #2B83F6;
    color: #fff;
}

.action-swap {
    flex: 0 0 68px;
    width: 68px;
    padding: 6px 4px;
    background: #fff;
    color: #333;
    border: 1px solid #E5E5E5;
}

.action-swap-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 36px;
    object-fit: contain;
    pointer-events: none;
}

.action-swap:disabled {
    opacity: 1;
    cursor: default;
}

.has-action-bar .action-bar { bottom: 0; }

/* ===== Transfer Page ===== */
.transfer-page { background: var(--bg); min-height: 100vh; padding-bottom: 100px; }

.page-transfer,
.page-transfer .phone-frame,
.page-transfer .transfer-page {
    background: #F5F7FA;
    min-height: 100vh;
}

.page-transfer .sub-header {
    background: #F5F7FA;
}

.page-transfer .sub-header h1 {
    font-size: 17px;
    font-weight: 600;
}

.transfer-form {
    padding: 8px 16px 24px;
}

.form-field-group {
    margin-bottom: 20px;
}

.form-field-group .form-box {
    margin-bottom: 0;
}

.transfer-advanced-link {
    margin-top: 10px;
    text-align: right;
}

.form-label-with-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.form-info-icon {
    display: inline-flex;
    align-items: center;
    color: #B0B0B0;
}

.transfer-subsidy-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--blue);
    text-decoration: none;
    font-size: 13px;
}

.transfer-fee-box {
    padding: 16px 14px;
}

.transfer-fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #1a1a1a;
}

.transfer-fee-value {
    color: #999;
    font-size: 15px;
}

.asset-picker-current {
    color: #999;
    font-size: 13px;
}

.btn-transfer-confirm {
    width: 100%;
    margin: 8px 0 0;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background: #2980FE;
}

.btn-transfer-confirm:active {
    background: var(--blue-dark);
}

.page-receive,
.page-receive .phone-frame,
.page-receive .receive-page {
    background: linear-gradient(180deg, #4A9EFF 0%, #2980FE 42%, #1E6FD4 100%);
    min-height: 100vh;
}
.page-receive .receive-page {
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}
.transfer-error {
    margin: 12px 16px 0;
    padding: 10px 12px;
    background: #fff1f0;
    color: #cf1322;
    border-radius: 8px;
    font-size: 13px;
}
.transfer-notice {
    margin: 12px 16px 0;
    padding: 10px 12px;
    background: #fffbe6;
    color: #ad6800;
    border-radius: 8px;
    font-size: 13px;
}
.link-muted { color: #999 !important; text-decoration: none; font-size: 13px; }
.asset-picker-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
}
.asset-picker-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 201;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.asset-picker-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}
.asset-picker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
}
.asset-picker-item.active { background: #f0f7ff; color: var(--blue); }
.asset-picker-balance { color: #999; font-size: 13px; }
.btn-primary[disabled] { opacity: 0.45; cursor: not-allowed; }

.form-section { padding: 16px; }

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.form-label-row a { color: var(--blue); text-decoration: none; font-size: 13px; }

.form-box {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-input {
    width: 100%;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.form-input::placeholder { color: #ccc; }

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

.input-row .form-input { flex: 1; }

.btn-all {
    border: 1px solid var(--blue);
    color: var(--blue);
    background: #fff;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #F0F0F0;
    font-size: 13px;
    color: #999;
}

.balance-row span:last-child {
    color: #666;
}

.fee-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fee-option {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
}

.fee-option.active { border-color: var(--blue); color: var(--blue); }
.fee-option .fee-title { font-weight: 600; margin-bottom: 4px; font-size: 12px; }
.fee-option .fee-time { color: var(--text2); margin-top: 4px; }

.btn-primary {
    display: block;
    width: calc(100% - 32px);
    margin: 24px 16px;
    padding: 14px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:active { background: var(--blue-dark); }

/* ===== Receive Page ===== */
.receive-header {
    background: transparent;
    color: #fff;
    padding-bottom: 24px;
}

.receive-header .sub-header { background: transparent; color: #fff; }
.receive-header .sub-header h1,
.receive-header .sub-header .back-btn,
.receive-header .sub-header-right { color: #fff; }

.receive-card {
    margin: 12px 16px 0;
    background: #fff;
    border-radius: 16px;
    padding: 20px 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.receive-warning {
    background: #FFF7E6;
    color: #E67E22;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.qr-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 8px;
}

.qr-wrap canvas, .qr-wrap img { max-width: 260px; }
.qr-wrap .receive-qr-img { width: 260px; height: 260px; object-fit: contain; }
.qr-wrap .qr-generated canvas { display: block; width: 260px !important; height: 260px !important; }

.qr-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.qr-center-tp {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #2980FE;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    line-height: 1;
}

.address-box {
    background: #F5F7F9;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.address-label {
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 8px;
}

.address-text {
    font-size: 13px;
    text-align: center;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
    font-family: monospace;
}

.receive-actions {
    position: relative;
    margin: 0 -20px;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.receive-actions-strip {
    display: block;
    width: 100%;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
}

.receive-actions-hit {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.receive-hit {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.receive-hit-static {
    cursor: default;
    pointer-events: none;
}

/* ===== Detail Page ===== */
.page-detail {
    background: #F2F3F7;
}

.page-detail .phone-frame {
    background: #F2F3F7;
    min-height: 100vh;
}

.page-detail .sub-header {
    background: #F2F3F7;
    padding: 10px 16px;
}

.page-detail .sub-header h1 {
    font-size: 17px;
}

.page-detail .sub-header-right:empty {
    width: 40px;
}

.page-detail .detail-page {
    background: #F2F3F7;
    min-height: calc(100vh - 52px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.detail-hero {
    text-align: center;
    padding: 6px 16px 14px;
}

.detail-success-icon {
    width: 52px;
    height: 52px;
    background: #00C087;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #fff;
}

.detail-success-icon svg {
    width: 28px;
    height: 28px;
}

.detail-success-text {
    color: #00C087;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
}

.detail-amount {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.detail-card {
    margin: 0 16px;
    background: #fff;
    border-radius: 14px;
    padding: 4px 16px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.detail-field {
    padding: 10px 0;
    border-bottom: 1px solid #F2F3F5;
}

.detail-field:last-of-type {
    border-bottom: none;
}

.detail-fee-info {
    display: inline-flex;
    color: #bbb;
    line-height: 0;
}

.detail-field-row,
.detail-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.detail-meta-left {
    flex: 1;
    min-width: 0;
}

.detail-copy-btn {
    flex-shrink: 0;
    padding: 1px;
    margin-top: 0;
}

.detail-field-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.detail-field-value,
.detail-meta-value {
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.45;
    word-break: break-all;
}

.detail-field-note {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

.detail-fee-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-fee-tag {
    background: #F5F6F8;
    color: #666;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
}

.detail-more-btn {
    border: none;
    background: none;
    color: #2980FE;
    font-size: 13px;
    padding: 8px 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    cursor: pointer;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid #F2F3F5;
}

.detail-meta-item {
    padding: 6px 0;
}

.detail-meta-label {
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.detail-meta-time {
    font-size: 13px;
    line-height: 1.45;
}

.detail-meta-right {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-qr-wrap {
    position: relative;
    width: 68px;
    height: 68px;
}

.detail-qr canvas,
.detail-qr img {
    width: 68px !important;
    height: 68px !important;
    display: block;
}

.detail-qr-img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    display: block;
}

.detail-qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #fff;
    background: #fff;
    object-fit: cover;
    pointer-events: none;
}

.detail-query-link {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 11px;
    white-space: nowrap;
    line-height: 1.3;
}

.detail-explorer-section {
    margin-top: 8px;
    padding: 0 16px 16px;
}

.detail-explorer-banner {
    position: relative;
    max-width: 320px;
    margin: -2px auto 0;
}

.detail-explorer-img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-explorer-hit {
    position: absolute;
    bottom: 0;
    width: 44%;
    height: 78%;
    text-decoration: none;
}

.detail-explorer-hit-left {
    left: 3%;
}

.detail-explorer-hit-right {
    right: 3%;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 200;
    pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hidden-balance { filter: blur(6px); user-select: none; }

/* ===== Mine Page (我的) ===== */
.mine-page {
    min-height: calc(100vh - var(--nav-h));
    padding-bottom: 8px;
}

.mine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: #F2F3F7;
}

.mine-header-spacer { width: 72px; flex-shrink: 0; }

.mine-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
}

.mine-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 72px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.mine-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: #333;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mine-dot,
.mine-item-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--down);
    border-radius: 50%;
}

.mine-icon-btn-badge .mine-dot {
    top: 0;
    right: 0;
}

.mine-scroll {
    padding: 0 16px 16px;
}

.mine-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mine-card:last-child { margin-bottom: 0; }

.mine-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #333;
    font-size: 15px;
    position: relative;
}

.mine-item:active { background: #fafafa; }

.mine-item-border {
    border-bottom: 1px solid #f0f0f0;
}

.mine-item-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.mine-item-label {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.mine-item-dot {
    position: static;
    margin-right: 4px;
    flex-shrink: 0;
}

.mine-item-arrow {
    color: #ccc;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
