/* ============================================================
   JL Platform — 金芯财富 Dark-Amber Tech Theme
   深褐底 + 琥珀橙发光 + 电路板 HUD 科技风
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --amber:        #e8a030;
    --amber-light:  #f5c842;
    --amber-dim:    #c8872a;
    --amber-deep:   #9a5c10;
    --orange:       #e86020;
    --bg-deep:      #0c0300;
    --bg-dark:      #180700;
    --bg-mid:       #260e00;
    --bg-card:      rgba(26, 8, 0, 0.88);
    --bg-overlay:   rgba(22, 7, 0, 0.65);
    --text-label:   #8a6840;
    --white:        #ffffff;
    --text-amber:   #e8c070;
    --border-amber: rgba(200, 130, 40, 0.38);
    --border-radius: 10px;
    --btn-radius: 8px;
    --btn-radius-pill: 18px;
    --btn-py: 9px;
    --btn-px: 14px;
    --btn-font: 14px;
    --btn-font-sm: 12px;
    --btn-font-xs: 11px;
    --nav-bg:       #090200;
    --danger:       #ff5050;
    --success:      #52c41a;
    /* backward-compat aliases */
    --gold:         var(--amber);
    --gold-border:  var(--amber-light);
    --dark-green:   var(--bg-deep);
    --cyan:         var(--amber);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #0c0300; }

body {
    background-color: #0c0300;
    background-image:
        radial-gradient(ellipse 95% 55% at 50% 115%, rgba(190, 75, 5, 0.28) 0%, transparent 52%),
        radial-gradient(ellipse 60% 40% at 88% 8%,   rgba(155, 62, 4, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse 50% 35% at 8%  72%,  rgba(125, 50, 4, 0.09) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

/* 电路板网格纹理 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(200, 100, 10, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 100, 10, 0.024) 1px, transparent 1px);
    background-size: 44px 44px;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 3, 0, 0.85) 0%, rgba(18, 6, 0, 0.90) 100%);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.7), 0 0 120px rgba(180, 70, 0, 0.05);
}

/* ====== Loading ====== */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.loading-overlay.show { opacity: 1; pointer-events: auto; }
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(232, 160, 48, 0.15);
    border-top-color:  var(--amber);
    border-right-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== Toast ====== */
.toast-msg {
    position: fixed;
    top: 80px; left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(20, 6, 0, 0.95);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
    max-width: 82%;
    text-align: center;
    border: 1px solid rgba(200, 130, 40, 0.42);
    box-shadow: 0 0 24px rgba(180, 80, 0, 0.15);
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-msg.error   { border-color: var(--danger); box-shadow: 0 0 20px rgba(255, 70, 70, 0.12); }
.toast-msg.success { border-color: rgba(82, 196, 26, 0.5); }

/* ====== 连接/绑定推荐人 遮罩 ====== */
.connect-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0c0300;
    background-image:
        radial-gradient(ellipse at 50% 28%, rgba(200, 80, 0, 0.20) 0%, transparent 52%),
        radial-gradient(ellipse at 50% 115%, rgba(230, 100, 0, 0.22) 0%, transparent 48%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    text-align: center;
    padding: 24px 22px;
}
.connect-overlay .logo-big {
    font-size: 44px;
    font-weight: 800;
    font-style: italic;
    color: var(--amber);
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 32px rgba(232, 160, 48, 0.55);
}
.connect-overlay p {
    color: #9a7040;
    margin-bottom: 20px;
    font-size: 15px;
    max-width: 320px;
    line-height: 1.7;
}
.connect-overlay p strong { color: var(--white); }
.connect-overlay .connect-btn {
    background: linear-gradient(135deg, #f0a830 0%, #c87020 60%, #a05810 100%);
    border: 1px solid rgba(240, 180, 60, 0.45);
    border-radius: var(--btn-radius);
    padding: 8px 12px;
    min-width: 120px;
    max-width: 200px;
    width: 100%;
    font-size: var(--btn-font-sm);
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.28);
    box-shadow: 0 2px 12px rgba(200, 100, 20, 0.28), 0 0 20px rgba(200, 100, 20, 0.06);
    transition: all 0.2s;
}
.connect-overlay .connect-btn i { margin-right: 6px; font-size: 12px; }
.connect-overlay .connect-btn-outline {
    background: transparent;
    border: 1px solid rgba(232, 211, 158, 0.75);
    color: #E8D39E;
    box-shadow: none;
}
.connect-overlay .connect-btn-outline:active {
    background: rgba(232, 211, 158, 0.08);
}
.connect-overlay .connect-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 14px rgba(200, 100, 20, 0.3);
}

/* 绑定推荐人 输入框继承 input-group 样式，覆盖一下外边距 */
#referrerBindOverlay .input-group { margin-bottom: 0; }

/* ====== Header ====== */
#top-header {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background: rgba(10, 3, 0, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(200, 120, 30, 0.26);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.logo { display: flex; align-items: center; }
.logo img { height: 32px; object-fit: contain; }
.logo-text {
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    margin-left: 8px;
    letter-spacing: 1px;
    color: var(--amber);
    text-shadow: 0 0 18px rgba(232, 160, 48, 0.45);
}
.header-right { display: flex; align-items: center; gap: 10px; }
.wallet-address {
    border: 1px solid rgba(200, 130, 40, 0.52);
    color: var(--amber-light);
    background: rgba(200, 100, 20, 0.09);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.4px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(200, 130, 40, 0.1);
}

/* ====== Main Content ====== */
#main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 64px;
}
#main-content::-webkit-scrollbar { display: none; }
#main-content { -ms-overflow-style: none; scrollbar-width: none; }

.page { display: none; padding: 14px; animation: fadeIn 0.28s; }
.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====== 工具类 ====== */
.mb-1  { margin-bottom: 1px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-0  { margin-bottom: 0 !important; }
.mt-5  { margin-top: 5px; }
.mt-6  { margin-top: 6px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.pt-24 { padding-top: 24px; }
.pt-30 { padding-top: 30px; }
.pb-20 { padding-bottom: 20px; }
.pb-24 { padding-bottom: 24px; }
.text-white  { color: var(--white) !important; }
.text-black  { color: #000; }
.text-label  { color: var(--text-label); font-size: 14px; }
.f-12        { font-size: 12px; }
.f-14        { font-size: 14px; }
.text-center { text-align: center; }
.text-usdt   { color: #26A17B; font-size: 24px; }

/* ====== Banner ====== */
.banner {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(200, 130, 40, 0.38);
    background: rgba(26, 8, 0, 0.6);
    min-height: 120px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 24px rgba(180, 80, 0, 0.1);
}
.banner-img { width: 100%; display: block; object-fit: cover; }

/* ====== Card ====== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-amber);
    border-radius: var(--border-radius);
    padding: 16px;
    position: relative;
    backdrop-filter: blur(6px);
    box-shadow:
        inset 0 0 50px rgba(200, 80, 0, 0.035),
        0 4px 28px rgba(0, 0, 0, 0.38);
}
/* HUD 角标 */
.card::before, .card::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    pointer-events: none;
}
.card::before {
    top: 5px; left: 5px;
    border-top:  1.5px solid rgba(232, 160, 48, 0.68);
    border-left: 1.5px solid rgba(232, 160, 48, 0.68);
}
.card::after {
    bottom: 5px; right: 5px;
    border-bottom: 1.5px solid rgba(232, 160, 48, 0.68);
    border-right:  1.5px solid rgba(232, 160, 48, 0.68);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--amber-light);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.card-title::before {
    content: '';
    width: 3px; height: 16px;
    background: linear-gradient(180deg, var(--orange), var(--amber));
    border-radius: 2px;
    flex-shrink: 0;
}

.page-sec-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--amber-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-sec-title::before {
    content: '';
    width: 3px; height: 15px;
    background: linear-gradient(180deg, var(--orange), var(--amber));
    border-radius: 2px;
    flex-shrink: 0;
}

.gold-shop-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-amber);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    margin-bottom: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.gold-shop-link::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px;
    width: 10px; height: 10px;
    border-top:  1.5px solid rgba(232, 160, 48, 0.55);
    border-left: 1.5px solid rgba(232, 160, 48, 0.55);
}
.gold-shop-link:active { border-color: var(--amber); background: rgba(200, 100, 20, 0.12); }
.gold-shop-link .forward-btn { font-size: 14px; color: var(--amber); }

/* 首页行情条（首饰黄金 / JXL） */
.home-market-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid var(--border-amber);
    background: linear-gradient(135deg, rgba(30, 22, 10, 0.95) 0%, rgba(18, 28, 18, 0.92) 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.home-market-item {
    flex: 1;
    padding: 12px 14px;
    min-width: 0;
}
.home-market-divider {
    width: 1px;
    background: rgba(232, 160, 48, 0.2);
    margin: 10px 0;
}
.home-market-label {
    font-size: 12px;
    color: var(--text-muted, #9ca89c);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-market-label i { color: var(--amber); font-size: 11px; }
.home-market-jxl-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: contain;
}
.home-market-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--amber-light, #f0c060);
    line-height: 1.25;
    word-break: break-all;
}
.home-market-price sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted, #9ca89c);
    margin-left: 2px;
}
.home-market-chg {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}
.home-market-chg.up { color: #4ade80; }
.home-market-chg.down { color: #f87171; }
.home-market-chg.flat { color: var(--text-muted, #9ca89c); }

/* ====== Input ====== */
.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-amber);
    border-radius: var(--border-radius);
    padding: 10px 14px;
    margin-bottom: 14px;
    background: rgba(20, 6, 0, 0.55);
    transition: border-color 0.3s;
}
.input-group:focus-within {
    border-color: var(--amber);
    box-shadow: 0 0 14px rgba(200, 120, 20, 0.16);
}
.input-group input, .input-group select {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 16px;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.input-group input::placeholder { color: rgba(138, 104, 64, 0.75); }
.input-group .currency { color: var(--amber-light); font-weight: 700; margin-left: 10px; white-space: nowrap; }

.input-styled, .input-with-btn {
    border: 1px solid rgba(200, 130, 40, 0.22);
    border-radius: var(--border-radius);
    padding: 12px 14px;
    background: rgba(20, 6, 0, 0.55);
    font-size: 14px;
    color: var(--white);
    word-break: break-all;
}
.input-with-btn {
    display: flex;
    justify-content: space-between;
    padding: 5px 5px 5px 14px;
    align-items: center;
}
.input-with-btn input {
    background: transparent; border: none; color: var(--white);
    width: 100%; outline: none; text-overflow: ellipsis; font-size: 13px;
}
.copy-btn {
    background: linear-gradient(135deg, var(--amber), var(--amber-dim));
    color: #0c0200;
    border: none;
    width: 28px; height: 28px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 12px;
    transition: opacity 0.2s;
    box-shadow: 0 0 8px rgba(200, 130, 40, 0.24);
}
.copy-btn:active { opacity: 0.75; }

/* ====== Buttons ====== */
.gold-btn {
    display: block;
    width: auto;
    min-width: 120px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0a830 0%, #c87020 52%, #a05810 100%);
    border: 1px solid rgba(240, 180, 60, 0.32);
    border-radius: var(--btn-radius);
    color: #fff;
    font-size: var(--btn-font-sm);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    box-shadow: 0 2px 12px rgba(200, 100, 20, 0.28), 0 0 20px rgba(200, 100, 20, 0.06);
    transition: all 0.15s;
}
.gold-btn-compact { /* 兼容旧类名，样式已并入 .gold-btn */ }
.small-btn {
    border: 1px solid rgba(200, 130, 40, 0.32);
    background: rgba(200, 100, 20, 0.08);
    color: var(--amber-light);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-sm);
    font-weight: 500;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.small-btn:active { background: rgba(200, 100, 20, 0.18); }
.gold-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 8px rgba(200, 100, 20, 0.22);
}
.gold-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ====== Buy Section ====== */
.buy-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.balance-info { font-size: 13px; color: var(--text-label); margin-bottom: 14px; line-height: 1.9; }
.highlight-val { color: var(--amber-light); font-weight: 600; }
.center-balance { text-align: center; color: var(--text-label); font-size: 14px; }
.center-balance span { color: var(--amber-light); font-weight: 600; }
.info-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.text-value { color: var(--amber-light); font-weight: 500; }

/* ====== Partners ====== */
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.partner-card {
    border: 1px solid rgba(200, 130, 40, 0.18);
    border-radius: 8px;
    padding: 14px 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(22, 8, 0, 0.65);
    min-height: 50px;
    color: var(--text-label);
    font-size: 13px;
    transition: border-color 0.2s;
}
.partner-card:active { border-color: var(--amber-dim); }
.partner-card img { max-width: 95%; max-height: 80px; object-fit: contain; }

/* ====== Footer ====== */
.social-footer { text-align: center; margin-top: 28px; margin-bottom: 20px; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 14px; }
.social-icons i { font-size: 24px; color: var(--amber); cursor: pointer; transition: all 0.2s; }
.social-icons i:active { opacity: 0.7; color: var(--amber-light); }
.copyright, .base-chain { color: var(--amber-deep); font-size: 13px; margin-bottom: 5px; opacity: 0.8; }

/* ====== Swap ====== */
.swap-disabled-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(180, 120, 20, 0.12);
    border: 1px solid rgba(200, 140, 40, 0.35);
    color: #e8c878;
    font-size: 14px;
}
.nav-item.nav-disabled { opacity: 0.45; }
.swap-card {
    background: rgba(18, 5, 0, 0.78);
    border-radius: 12px;
    padding: 16px;
    backdrop-filter: blur(6px);
}
.pt-top-card {
    border: 1px solid var(--border-amber);
    margin-bottom: -18px;
    padding-bottom: 34px;
    z-index: 1;
    position: relative;
    box-shadow: 0 4px 22px rgba(0,0,0,0.32);
}
.swap-bottom-card {
    border: 1px solid var(--border-amber);
    z-index: 1;
    position: relative;
    box-shadow: 0 -4px 22px rgba(0,0,0,0.22);
}
.swap-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.coin-info { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--amber-light); }
.small-icon { width: 24px; height: 24px; border-radius: 50%; }
.huge-input {
    width: 100%;
    background: transparent; border: none;
    color: var(--white);
    font-size: 30px; font-weight: 700;
    text-align: right;
    outline: none;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 130, 40, 0.2);
    font-variant-numeric: tabular-nums;
}
.percent-buttons { display: flex; gap: 6px; margin-top: 12px; justify-content: flex-end; }
.percent-buttons button {
    background: rgba(200, 100, 20, 0.07);
    border: 1px solid rgba(200, 130, 40, 0.32);
    color: var(--amber-light);
    border-radius: 10px;
    padding: 3px 10px;
    font-size: var(--btn-font-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.percent-buttons button:active { background: rgba(200, 100, 20, 0.24); border-color: var(--amber); }
.percent-buttons button:disabled { opacity: 0.4; cursor: not-allowed; }
.huge-input:disabled { opacity: 0.5; cursor: not-allowed; }
.swap-icon-center {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
    margin-top: -15px; margin-bottom: -15px;
}
.swap-icon-center i {
    width: 44px; height: 44px;
    background: #120500;
    border: 1px solid var(--amber-dim);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: var(--amber);
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 18px rgba(200, 130, 40, 0.22);
    font-size: 16px;
}
.swap-icon-center i:active { transform: rotate(180deg); }
.swap-icon-static { pointer-events: none; }
.swap-icon-static i { cursor: default !important; }

/* ====== Team ====== */
.data-grid-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.data-item {
    display: flex; flex-direction: column;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(200, 130, 40, 0.08);
}
.data-item:nth-child(odd) { border-right: 1px solid rgba(200, 130, 40, 0.08); }
.data-item .text-label { margin-bottom: 5px; font-size: 12px; }
.val-cyan {
    color: var(--amber-light);
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 0 10px rgba(232, 160, 48, 0.3);
}

/* ====== Table ====== */
.table-card {
    background: rgba(18, 5, 0, 0.68);
    border: 1px solid rgba(200, 130, 40, 0.18);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    background: rgba(200, 100, 20, 0.08);
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--amber-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td { padding: 12px 8px; border-bottom: 1px solid rgba(200, 130, 40, 0.05); font-size: 12px; }
.no-data { color: var(--text-label); text-align: center !important; padding: 30px 10px !important; }

/* ====== Profile ====== */
.earnings-grid { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.huge-val {
    font-size: 22px; font-weight: 700;
    color: var(--amber-light);
    margin-bottom: 5px;
    text-shadow: 0 0 14px rgba(232, 160, 48, 0.28);
}
.empty-card {
    text-align: center; color: var(--text-label);
    padding: 40px 15px;
    background: rgba(18, 5, 0, 0.55);
    border: 1px solid rgba(200, 130, 40, 0.1);
    border-radius: var(--border-radius);
}

/* ====== 矿机卡片 ====== */
.miner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-amber);
    border-radius: var(--border-radius);
    padding: 14px 14px 12px;
    margin-bottom: 12px;
    backdrop-filter: blur(6px);
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.32), inset 0 0 35px rgba(200, 80, 0, 0.03);
}
.miner-card::before, .miner-card::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    pointer-events: none;
}
.miner-card::before {
    top: 5px; left: 5px;
    border-top:  1.5px solid rgba(232, 160, 48, 0.58);
    border-left: 1.5px solid rgba(232, 160, 48, 0.58);
}
.miner-card::after {
    bottom: 5px; right: 5px;
    border-bottom: 1.5px solid rgba(232, 160, 48, 0.58);
    border-right:  1.5px solid rgba(232, 160, 48, 0.58);
}
.miner-card .miner-header {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(200, 130, 40, 0.12);
}
.miner-header-left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.miner-header-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.miner-card .miner-value {
    font-size: 20px; font-weight: 700;
    color: var(--amber-light);
    line-height: 1.2; letter-spacing: 0.02em;
    text-shadow: 0 0 12px rgba(232, 160, 48, 0.32);
}
.miner-tag {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600; line-height: 1.2;
    padding: 3px 8px; border-radius: 4px;
    white-space: nowrap; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis;
}
.miner-tag--source {
    background: rgba(200, 130, 40, 0.1);
    color: var(--amber);
    border: 1px solid rgba(200, 130, 40, 0.32);
}
.miner-tag--rate {
    background: rgba(230, 160, 20, 0.1);
    color: var(--amber-light);
    border: 1px solid rgba(230, 160, 20, 0.28);
}
.miner-tag--ok {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.22);
}
.miner-tag--warn {
    background: rgba(249, 115, 22, 0.12);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.28);
}
.miner-card .miner-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.miner-card .miner-info-item {
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; min-height: 62px;
    padding: 10px 8px; box-sizing: border-box;
    background: rgba(20, 6, 0, 0.48);
    border: 1px solid rgba(200, 130, 40, 0.1);
    border-radius: 8px;
}
.miner-card .miner-info-item .label {
    font-size: 11px; color: var(--text-label);
    margin: 0; line-height: 1.3; width: 100%;
}
.miner-card .miner-info-item .value {
    font-size: 14px; color: var(--white); font-weight: 600;
    line-height: 1.25; width: 100%; word-break: break-all;
}
.miner-card .miner-info-item .value--compact { font-size: 12px; font-weight: 500; }
.miner-card .miner-jl-live {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.03em;
    font-size: 15px;
    color: var(--amber-light);
    text-shadow: 0 0 9px rgba(232, 160, 48, 0.28);
}
.miner-card .miner-pct-live { font-variant-numeric: tabular-nums; }
.miner-card .miner-progress-bar { margin-top: 10px; }

/* ====== Progress Bar ====== */
.progress-bar {
    width: 100%; height: 6px;
    background: rgba(200, 130, 40, 0.1);
    border-radius: 3px;
    overflow: hidden; margin-top: 8px;
}
.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c87020, var(--amber-light));
    border-radius: 3px;
    transition: width 0.5s;
    box-shadow: 0 0 9px rgba(200, 130, 40, 0.42);
}

/* ====== bg-gold-border ====== */
.bg-gold-border { border-color: rgba(200, 130, 40, 0.42) !important; }

/* ====== Bottom Nav ====== */
#bottom-nav {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 480px;
    height: 54px;
    background: linear-gradient(180deg, rgba(28, 14, 4, 0.98) 0%, rgba(12, 6, 2, 0.99) 100%);
    backdrop-filter: blur(14px);
    display: flex;
    border-top: 1px solid rgba(240, 190, 90, 0.35);
    z-index: 100;
    box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.45);
}
.nav-item {
    flex: 1;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    color: #f5e6b8;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 2px;
    border-radius: 10px 10px 0 0;
    margin: 4px 2px 0;
}
.nav-item i {
    font-size: 17px;
    margin-bottom: 2px;
    color: #ffdc82;
    transition: color 0.2s, transform 0.2s;
}
.nav-item:active:not(.active) { opacity: 0.85; }
.nav-item.active {
    color: #1a0a00;
    font-weight: 700;
    background: linear-gradient(180deg, #ffb830 0%, #f5920a 100%);
    box-shadow: 0 -2px 16px rgba(255, 160, 30, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.nav-item.active i {
    color: #2a1200;
    transform: scale(1.06);
    text-shadow: none;
    filter: none;
}

/* ====== 确认弹窗 ====== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    padding: 20px;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-box {
    background: linear-gradient(165deg, #1e0900 0%, #120500 100%);
    border: 1px solid rgba(200, 130, 40, 0.42);
    border-radius: 14px;
    padding: 24px;
    width: 100%; max-width: 360px;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 0 55px rgba(180, 80, 0, 0.13), 0 20px 65px rgba(0, 0, 0, 0.55);
    position: relative;
}
.modal-box::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px;
    width: 14px; height: 14px;
    border-top:  1.5px solid rgba(232, 160, 48, 0.65);
    border-left: 1.5px solid rgba(232, 160, 48, 0.65);
}
.modal-box::after {
    content: '';
    position: absolute;
    bottom: 5px; right: 5px;
    width: 14px; height: 14px;
    border-bottom: 1.5px solid rgba(232, 160, 48, 0.65);
    border-right:  1.5px solid rgba(232, 160, 48, 0.65);
}
.modal-overlay.show .modal-box { transform: scale(1); }
.shop-modal-box { max-width: 420px; max-height: 92vh; overflow: hidden; padding: 14px 12px 12px; }
.shop-modal-head { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 8px; }
.shop-modal-head-right { display: flex; gap: 8px; align-items: center; }
.shop-order-btn {
    border: 1px solid rgba(200, 130, 40, 0.36);
    background: rgba(200, 100, 20, 0.1);
    color: var(--amber-light);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: var(--btn-font-xs); font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
}
.shop-close-btn {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(200, 130, 40, 0.3);
    background: rgba(200, 100, 20, 0.1);
    color: var(--amber-light);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.shop-product-image-wrap { margin-bottom: 8px; padding: 6px; }
.shop-product-image-wrap img { max-height: 118px; object-fit: cover; }
.shop-buy-section { font-size: 12px; }
.shop-buy-section .info-row { margin-bottom: 6px; font-size: 12px; }
.shop-buy-section .text-label,
.shop-buy-section .text-value,
.shop-buy-section .balance-info { font-size: 12px; line-height: 1.45; }
.shop-buy-section .input-group { padding: 7px 10px; margin-bottom: 8px; }
.shop-buy-section .input-group input,
.shop-buy-section .input-group select { font-size: 13px; }
.shop-qty-group { gap: 8px; }
.shop-qty-group input#shopQuantity { text-align: center; width: 70px; flex: 0 0 70px; }
.shop-qty-btn {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(200, 130, 40, 0.36);
    background: rgba(200, 100, 20, 0.1);
    color: var(--amber);
    font-size: 14px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; cursor: pointer;
}
.shop-buy-section .gold-btn { margin-top: 8px !important; }
.shop-region-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-region-row .input-group { margin-bottom: 0; }

/* ====== 省市底部弹层 ====== */
.region-sheet-overlay {
    position: fixed; inset: 0;
    z-index: 10100;
    display: flex; flex-direction: column; justify-content: flex-end;
    pointer-events: none;
    visibility: hidden; opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
}
.region-sheet-overlay.show { pointer-events: auto; visibility: visible; opacity: 1; }
.region-sheet-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); }
.region-sheet-panel {
    position: relative; z-index: 2;
    width: 100%; max-height: 88vh;
    display: flex; flex-direction: column;
    background: #140500;
    border: 1px solid rgba(200, 130, 40, 0.38);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.28s ease-out;
}
.region-sheet-overlay.show .region-sheet-panel { transform: translateY(0); }
.region-sheet-head {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 12px 10px;
    border-bottom: 1px solid rgba(200, 130, 40, 0.12);
    flex-shrink: 0;
}
.region-sheet-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; color: var(--amber-light); }
.region-sheet-back,
.region-sheet-close {
    min-width: 36px; min-height: 36px;
    padding: 0 8px;
    border: none;
    background: rgba(200, 100, 20, 0.08);
    color: var(--amber-light);
    border-radius: 6px;
    font-size: var(--btn-font-sm); cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.region-sheet-close { font-size: 18px; line-height: 1; }
.region-sheet-list {
    flex: 1; min-height: 180px; max-height: calc(88vh - 130px);
    overflow-y: scroll; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; touch-action: pan-y;
}
.region-picker-item {
    display: block; width: 100%;
    padding: 16px 18px;
    font-size: 16px; line-height: 1.4; text-align: left;
    color: var(--white); border: none;
    border-bottom: 1px solid rgba(200, 130, 40, 0.06);
    background: transparent; cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(200, 130, 40, 0.15);
    user-select: none; -webkit-user-select: none;
    box-sizing: border-box;
}
.region-picker-item:last-child { border-bottom: none; }
.region-picker-item:active { background: rgba(200, 100, 20, 0.14); }
.region-picker-item.active { background: rgba(200, 130, 40, 0.18); color: var(--amber-light); font-weight: 600; }
.region-sheet-foot {
    flex-shrink: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(200, 130, 40, 0.12);
    display: flex;
    justify-content: center;
}
.region-sheet-confirm {
    width: auto;
    min-width: 120px;
    max-width: 200px;
    padding: 8px 12px;
    font-size: var(--btn-font-sm);
    font-weight: 600;
}
body.region-sheet-open { overflow: hidden; touch-action: none; }
.region-select-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 0; margin: 0; border: none;
    background: transparent; color: var(--white); font-size: 13px;
    text-align: left; cursor: pointer; touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(200, 130, 40, 0.15);
    min-height: 22px;
}
.region-select-trigger .region-select-text { flex: 1; color: var(--white); }
.region-select-trigger .region-select-text.is-placeholder { color: rgba(138, 104, 64, 0.8); }
.region-select-trigger i { color: var(--amber); font-size: 12px; flex-shrink: 0; }
.region-select-trigger:disabled { opacity: 0.45; cursor: not-allowed; }
.region-select-trigger:disabled i { color: rgba(200, 130, 40, 0.4); }

/* ====== Modal 内容样式 ====== */
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; text-align: center; color: var(--amber-light); }
.modal-body { font-size: 14px; color: var(--text-label); margin-bottom: 20px; line-height: 1.8; }
.modal-body .highlight { color: var(--amber-light); font-weight: 700; }
.modal-btns { display: flex; gap: 8px; justify-content: center; }
.modal-btns .btn-cancel {
    flex: 0 1 auto;
    min-width: 88px;
    max-width: 120px;
    padding: 8px 12px;
    border: 1px solid rgba(200, 130, 40, 0.28);
    background: rgba(200, 100, 20, 0.04);
    color: var(--text-label);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-sm); font-weight: 500; cursor: pointer;
    transition: all 0.2s;
}
.modal-btns .btn-cancel:active { background: rgba(200, 100, 20, 0.12); color: var(--white); }
.modal-btns .btn-confirm {
    flex: 0 1 auto;
    min-width: 88px;
    max-width: 120px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e8a030, #c87020);
    border: 1px solid rgba(240, 180, 60, 0.32);
    color: #fff; border-radius: var(--btn-radius);
    font-size: var(--btn-font-sm); font-weight: 600; cursor: pointer;
    box-shadow: 0 2px 12px rgba(200, 100, 20, 0.24);
    transition: all 0.15s;
}
.modal-btns .btn-confirm:active { transform: scale(0.97); }

/* ====== 黄金券购买/提取 流程弹框 ====== */
.gold-flow-overlay {
    position: fixed; inset: 0;
    z-index: 10050;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.gold-flow-overlay.show { opacity: 1; pointer-events: auto; }
.gold-flow-backdrop {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200, 100, 20, 0.15) 0%, transparent 55%),
        rgba(8, 2, 0, 0.95);
    backdrop-filter: blur(9px);
}
.gold-flow-backdrop::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(200, 130, 40, 0.04) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: goldFlowShimmer 4s ease-in-out infinite;
}
@keyframes goldFlowShimmer {
    0%, 100% { background-position: 100% 0; }
    50%       { background-position: -100% 0; }
}
.gold-flow-card {
    position: relative;
    width: 100%; max-width: 380px;
    border-radius: 20px;
    padding: 28px 22px 24px;
    background: linear-gradient(165deg, #1e0900 0%, #120500 100%);
    border: 1px solid rgba(200, 130, 40, 0.42);
    box-shadow:
        0 0 0 1px rgba(200, 100, 20, 0.08),
        0 24px 50px rgba(0, 0, 0, 0.62),
        0 0 85px rgba(200, 100, 20, 0.08);
    transform: scale(0.88) translateY(24px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.4s ease;
}
.gold-flow-card::before {
    content: '';
    position: absolute; top: 5px; left: 5px;
    width: 16px; height: 16px;
    border-top:  1.5px solid rgba(232, 160, 48, 0.72);
    border-left: 1.5px solid rgba(232, 160, 48, 0.72);
}
.gold-flow-card::after {
    content: '';
    position: absolute; bottom: 5px; right: 5px;
    width: 16px; height: 16px;
    border-bottom: 1.5px solid rgba(232, 160, 48, 0.72);
    border-right:  1.5px solid rgba(232, 160, 48, 0.72);
}
.gold-flow-overlay.show .gold-flow-card { transform: scale(1) translateY(0); opacity: 1; }
.gold-flow-inner { min-height: 200px; }

/* 步骤条 */
.gfo-steps { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding: 0 4px; }
.gfo-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.gfo-step::after {
    content: '';
    position: absolute; top: 14px; left: 50%;
    width: 100%; height: 2px;
    background: rgba(200, 130, 40, 0.12); z-index: 0;
}
.gfo-step:last-child::after { display: none; }
.gfo-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(200, 100, 20, 0.08);
    border: 2px solid rgba(200, 130, 40, 0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--text-label);
    z-index: 1; transition: all 0.4s ease;
}
.gfo-step.active .gfo-step-dot {
    border-color: var(--amber); color: var(--amber-light);
    box-shadow: 0 0 22px rgba(200, 130, 40, 0.45);
    animation: gfoPulseDot 1.8s ease-in-out infinite;
}
.gfo-step.done .gfo-step-dot {
    background: linear-gradient(135deg, #8a5010, #c87020);
    border-color: var(--amber); color: #fff;
}
.gfo-step-label { font-size: 10px; color: var(--text-label); text-align: center; line-height: 1.2; max-width: 72px; }
.gfo-step.active .gfo-step-label { color: var(--amber); }
@keyframes gfoPulseDot {
    0%, 100% { box-shadow: 0 0 12px rgba(200, 130, 40, 0.3); }
    50%       { box-shadow: 0 0 28px rgba(200, 130, 40, 0.62); }
}

/* 加载轨道 */
.gfo-loader-wrap { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.gfo-orbit { position: relative; width: 88px; height: 88px; margin-bottom: 18px; }
.gfo-orbit-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--amber);
    border-right-color: rgba(200, 100, 20, 0.42);
    animation: gfoSpin 1.2s linear infinite;
}
.gfo-orbit-ring.r2 {
    inset: 10px;
    border-top-color: var(--orange);
    border-right-color: rgba(232, 160, 48, 0.3);
    animation-duration: 0.9s; animation-direction: reverse;
}
.gfo-orbit-ring.r3 {
    inset: 22px;
    border: 2px solid rgba(200, 130, 40, 0.18);
    border-top-color: rgba(232, 180, 80, 0.52);
    animation-duration: 1.6s;
}
.gfo-orbit-core {
    position: absolute; inset: 30px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(200, 130, 40, 0.32), transparent 70%);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    animation: gfoCorePulse 2s ease-in-out infinite;
}
@keyframes gfoSpin { to { transform: rotate(360deg); } }
@keyframes gfoCorePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: 0.85; }
}
.gfo-title  { font-size: 17px; font-weight: 700; text-align: center; color: var(--white); margin-bottom: 8px; letter-spacing: 0.5px; }
.gfo-sub    { font-size: 13px; color: var(--text-label); text-align: center; line-height: 1.55; margin-bottom: 6px; }
.gfo-hint   { font-size: 11px; color: rgba(138, 104, 64, 0.8); text-align: center; margin-top: 4px; }

/* 成功 */
.gfo-success-icon {
    width: 72px; height: 72px; margin: 0 auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(82, 196, 26, 0.3), rgba(35, 120, 60, 0.2));
    border: 2px solid rgba(82, 196, 26, 0.52);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: #95de64;
    animation: gfoPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: scale(0);
}
@keyframes gfoPopIn { to { transform: scale(1); } }
.gfo-amount-box {
    text-align: center; padding: 16px 12px; margin: 14px 0;
    border-radius: 14px;
    background: rgba(20, 6, 0, 0.62);
    border: 1px solid rgba(200, 130, 40, 0.26);
}
.gfo-amount-num {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(180deg, #fff 0%, var(--amber) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; line-height: 1.2;
}
.gfo-amount-unit { font-size: 14px; color: var(--amber-dim); margin-top: 4px; }
.gfo-hash-row {
    margin-top: 12px; padding: 10px 12px; border-radius: 10px;
    background: rgba(20, 6, 0, 0.55);
    border: 1px solid rgba(200, 130, 40, 0.16);
    font-size: 11px; word-break: break-all;
    font-family: ui-monospace, monospace;
    color: var(--amber-light); line-height: 1.45;
}
.gfo-hash-label { color: var(--text-label); font-size: 10px; margin-bottom: 6px; display: block; }
.gfo-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    font-size: 12px; color: var(--amber);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 130, 40, 0.42);
}
.gfo-link:active { opacity: 0.8; }
.gfo-btn-done {
    display: block;
    width: auto;
    min-width: 120px;
    max-width: 200px;
    margin: 14px auto 0;
    padding: 8px 12px;
    border: 1px solid rgba(240, 180, 60, 0.32);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-sm);
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #e8a030, #c87020);
    color: #fff;
    box-shadow: 0 2px 12px rgba(200, 100, 20, 0.28);
    transition: transform 0.15s;
}
.gfo-btn-done:active { transform: scale(0.98); }
.gfo-error-icon {
    width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 77, 79, 0.12);
    border: 2px solid rgba(255, 77, 79, 0.42);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #ff7875;
    animation: gfoPopIn 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
    transform: scale(0);
}
.gfo-err-msg { font-size: 13px; color: #ffccc7; text-align: center; line-height: 1.5; margin-bottom: 8px; }
.gfo-fade-up { animation: gfoFadeUp 0.45s ease forwards; }
@keyframes gfoFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====== 商城 ====== */
.shop-header-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px 8px;
}
.shop-title { font-size: 16px; font-weight: 700; color: var(--amber); }
.shop-header-gold { flex: 1; text-align: center; font-size: 13px; color: var(--amber); font-weight: 600; }
.shop-back-btn {
    background: transparent; border: none; color: var(--amber);
    font-size: var(--btn-font-sm); cursor: pointer; padding: 2px 0;
    display: flex; align-items: center; gap: 3px;
}
.shop-back-btn:active { opacity: 0.7; }
.shop-cat-bar {
    display: flex; gap: 8px; padding: 0 16px 12px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.shop-cat-bar::-webkit-scrollbar { display: none; }
.shop-cat-btn {
    flex-shrink: 0; padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid rgba(200, 130, 40, 0.22);
    background: rgba(20, 6, 0, 0.55);
    color: var(--text-label); font-size: var(--btn-font-sm); cursor: pointer;
    transition: all 0.2s; white-space: nowrap;
}
.shop-cat-btn.active {
    background: rgba(200, 100, 20, 0.18);
    border-color: var(--amber);
    color: var(--amber-light); font-weight: 600;
}
.shop-cat-btn:active { transform: scale(0.96); }
.shop-product-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; padding: 0 12px 16px;
}
.shop-product-card {
    background: rgba(22, 7, 0, 0.72);
    border: 1px solid rgba(200, 130, 40, 0.18);
    border-radius: 12px;
    overflow: hidden; cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    display: flex; flex-direction: column;
}
.shop-product-card:active { transform: scale(0.97); border-color: var(--amber-dim); }
.shop-product-card-img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    display: block; background: rgba(20, 6, 0, 0.42);
}
.shop-product-card-img-placeholder {
    width: 100%; aspect-ratio: 1 / 1;
    background: rgba(200, 130, 40, 0.04);
    display: flex; align-items: center; justify-content: center;
    color: rgba(200, 130, 40, 0.25); font-size: 32px;
}
.shop-product-card-body { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.shop-product-card-name {
    font-size: 13px; font-weight: 600; color: var(--white); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-product-card-price { font-size: 12px; color: var(--amber); font-weight: 600; margin-top: auto; }
.shop-product-card-cat {
    font-size: 10px; color: var(--text-label);
    background: rgba(200, 130, 40, 0.07);
    border-radius: 4px; padding: 2px 6px;
    display: inline-block; width: fit-content;
}
.shop-product-card-btn {
    display: block;
    width: auto;
    min-width: 88px;
    max-width: 100%;
    margin: 5px auto 0;
    padding: 5px 10px;
    border: 1px solid rgba(200, 130, 40, 0.32);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-xs);
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #e8a030, #c87020);
    color: #fff;
    transition: opacity 0.15s;
}
.shop-product-card-btn:active { opacity: 0.8; }
.shop-desc-html {
    color: var(--text-label); font-size: 13px; line-height: 1.7; word-break: break-word;
}
.shop-desc-html p { margin-bottom: 6px; }
.shop-desc-html b, .shop-desc-html strong { color: var(--white); }
.shop-desc-html i, .shop-desc-html em { color: var(--amber); }
.shop-desc-html u { text-decoration: underline; }
.shop-desc-html ul, .shop-desc-html ol { padding-left: 18px; margin: 6px 0; }
.shop-desc-html li { margin-bottom: 3px; }
.shop-desc-html img { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; }

/* 商城订单 */
.shop-order-card {
    background: rgba(20, 6, 0, 0.68);
    border: 1px solid rgba(200, 130, 40, 0.15);
    border-radius: 12px; padding: 12px 14px;
    margin: 0 12px 10px;
}
.shop-order-status-badge {
    display: inline-block; font-size: 11px;
    padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.shop-order-status-badge.pending { background: rgba(250, 173, 20, 0.12); color: #faad14; border: 1px solid rgba(250, 173, 20, 0.28); }
.shop-order-status-badge.shipped { background: rgba(200, 130, 40, 0.1); color: var(--amber); border: 1px solid rgba(200, 130, 40, 0.26); }
.shop-order-status-badge.done    { background: rgba(82, 196, 26, 0.1); color: #95de64; border: 1px solid rgba(82, 196, 26, 0.25); }

.shop-modal-box #shopModalPanelProduct,
.shop-modal-box #shopModalPanelOrders {
    height: calc(92vh - 70px); overflow-y: auto; padding-right: 2px;
}
.shop-modal-box #shopModalPanelProduct::-webkit-scrollbar,
.shop-modal-box #shopModalPanelOrders::-webkit-scrollbar { width: 0; height: 0; }
