/* Theme Variables */
:root {
    --home-accent: #16c6c0;
    --home-accent-dark: #0b9c98;
    --home-nav-height: 50px;
    --home-top-nav-height: 58px;
    --home-divider-light: #d1d5db;
    --home-divider-dark: rgba(255, 255, 255, 0.35);
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --text-main: #FFFFFF;
    --text-sub: #AAAAAA;
    --primary: #FE2C55;
    --nav-bg: #1E1E1E;
    --nav-text: #AAAAAA;
    --nav-active: #FFFFFF;
    --border-color: #333;
    --input-bg: #2C2C2C;
    --assets-bg: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    --menu-header-bg: linear-gradient(90deg, #111, #333);
    --menu-header-text: #FFFFFF;
    --theme-btn-bg: #000000;
    --theme-nav-title-color: #FFFFFF;
}

[v-cloak] {
    display: none !important;
}

[data-theme="blue"] {
    --home-accent: #16c6c0;
    --home-accent-dark: #0b9c98;
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-sub: #666666;
    --primary: #007AFF;
    --nav-bg: #007AFF;
    --nav-text: rgba(255, 255, 255, 0.7);
    --nav-active: #FFFFFF;
    --border-color: #EBEDF0;
    --input-bg: #F5F7FA;
    --assets-bg: linear-gradient(135deg, #007AFF, #5AC8FA);
    --menu-header-bg: linear-gradient(90deg, #007AFF, #0056b3);
    --menu-header-text: #FFFFFF;
    --theme-btn-bg: var(--primary);
    --theme-nav-title-color: var(--primary);
}

[data-theme="orange"] {
    --home-accent: #16c6c0;
    --home-accent-dark: #0b9c98;
    --bg-color: #FFF5F0;
    --card-bg: #FFFFFF;
    --text-main: #333333;
    --text-sub: #999999;
    --primary: #FF5500;
    --nav-bg: #FF5500;
    --nav-text: rgba(255, 255, 255, 0.7);
    --nav-active: #FFFFFF;
    --border-color: #EBEDF0;
    --input-bg: #FFF5F0;
    --assets-bg: linear-gradient(135deg, #FF5500, #FF9500);
    --menu-header-bg: linear-gradient(90deg, #FF5500, #e64a19);
    --menu-header-text: #FFFFFF;
    --theme-btn-bg: var(--primary);
    --theme-nav-title-color: var(--primary);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
    margin: 0;
    padding-bottom: 0; /* 底部留白由 .app-main 负责，避免 body 产生上下深色条 */
    transition: all 0.3s ease;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-new(root) {
    z-index: 2147483646;
}

::view-transition-old(root) {
    z-index: 2147483645;
}

/* 暗色下顶部/底部露出的“深色块”来自 body 的 --bg-color(#121212)，与导航/底栏的 --nav-bg(#1E1E1E) 不一致，统一为 nav 色去掉该块 */
html[data-theme="dark"] body,
html:not([data-theme="blue"]):not([data-theme="orange"]) body {
    background-color: var(--nav-bg);
}

.page-container {
    padding: 16px;
}

/* Home Page (target tipkip.top/home) */
.app-main {
    overflow-x: hidden;
}
/* 首页时消除 app-main 上下灰条：去掉底部 padding，背景与渐变边缘衔接 */
.app-main--home {
    padding-bottom: 0 !important;
    background-color: #f7f8fa;
}
html[data-theme="dark"] .app-main--home,
html:not([data-theme="blue"]):not([data-theme="orange"]) .app-main--home {
    background-color: var(--nav-bg);
}
.app-main--trade {
    padding-bottom: 0 !important;
    background-color: #f4fafc;
}
html[data-theme="dark"] .app-main--trade,
html:not([data-theme="blue"]):not([data-theme="orange"]) .app-main--trade {
    background-color: #0d171b;
}
.app-main--home .van-nav-bar.home-nav-bar,
.app-main--home .van-nav-bar {
    background: #ffffff !important;
    --van-nav-bar-background: #ffffff !important;
    --van-nav-bar-title-text-color: #101828 !important;
    box-shadow: none !important;
    height: var(--home-top-nav-height) !important;
    min-height: var(--home-top-nav-height);
    /* 明系：顶栏分割线为灰色 */
    border-bottom: 1px solid var(--home-divider-light) !important;
}
.app-main--home .van-nav-bar .van-nav-bar__content {
    height: var(--home-top-nav-height) !important;
    min-height: var(--home-top-nav-height) !important;
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    align-items: center;
}
.app-main--home .van-nav-bar .van-nav-bar__left,
.app-main--home .van-nav-bar .van-nav-bar__right {
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    transform: none !important;
}
.app-main--home .van-nav-bar .van-nav-bar__left > *,
.app-main--home .van-nav-bar .van-nav-bar__right > * {
    height: 100%;
    display: inline-flex;
    align-items: center;
}
.app-main--home .van-nav-bar::after,
.app-main--home .van-nav-bar::before,
.app-main--home .van-nav-bar .van-nav-bar__content::after,
.app-main--home .van-nav-bar .van-nav-bar__content::before {
    display: none !important;
    content: none !important;
}
html[data-theme="dark"] .app-main--home .van-nav-bar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .app-main--home .van-nav-bar {
    background: var(--nav-bg) !important;
    --van-nav-bar-background: var(--nav-bg) !important;
    /* 暗色：顶栏分割线为白色 */
    border-bottom: 1px solid var(--home-divider-dark) !important;
}
.home-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}
.home-nav-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}
.home-nav-title {
    display: inline-flex;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    color: #101828;
}
html[data-theme="dark"] .app-main--home .home-nav-title {
    color: #ffffff;
}
.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}
.home-nav-actions .van-popover__wrapper {
    display: inline-flex;
    align-items: center;
    height: 100%;
}
.home-nav-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.home-nav-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* 轮播图圆角、边距与今日畅销一致 */
.home-banner-full {
    margin: 0 4px 16px;
    border-radius: 12px;
    overflow: hidden;
}
.home-banner-swipe {
    width: 100%;
    border-radius: 12px;
}
.home-banner-swipe .van-swipe-item {
    width: 100%;
}
.home-banner-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.home-start-btn-wrap {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}
.home-start-btn-wrap .home-start-btn {
    width: 100%;
}

.home-hots-wrap {
    margin: 0 4px 16px;
}
.home-hots-card {
    margin-bottom: 0 !important;
    background-color: #ffffff;
}
html[data-theme="dark"] .home-hots-card {
    background-color: var(--card-bg) !important;
}
.home-hots-header {
    border-radius: 12px 12px 0 0;
}

/* 首页内容区背景：渐变 */
.home-page {
    min-height: calc(100vh - 56px);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(166, 226, 229, 0.35) 0%, rgba(166, 226, 229, 0.32) 30%, rgba(166, 226, 229, 0.28) 70%, rgba(166, 226, 229, 0.25) 92%, #f7f8fa 98%, #f7f8fa 100%);
}
html[data-theme="dark"] .home-page,
html:not([data-theme="blue"]):not([data-theme="orange"]) .home-page {
    background: linear-gradient(180deg, rgba(1, 23, 24, 0.55) 0%, rgba(1, 23, 24, 0.5) 30%, rgba(1, 23, 24, 0.45) 70%, rgba(1, 23, 24, 0.4) 92%, var(--nav-bg) 98%, var(--nav-bg) 100%);
}

.home-hero-wrap {
    text-align: center;
    margin: 28px 0 30px;
    padding: 0 15px;
    background: transparent;
}
.home-page .home-hero-title { font-size: 26px; font-weight: 700; color: var(--home-accent); margin: 0; }
.home-page .home-hero-subtitle { font-size: 20px; color: #475467; margin: 5px 0 0; }
html[data-theme="dark"] .home-page .home-hero-subtitle { color: #94a3b8; }

/* Features：每块独立圆角灰色边框 */
.home-features-section {
    padding: 40px 16px 0;
    text-align: center;
    background: transparent;
}
.home-feature-card {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 14px;
    text-align: center;
}
html[data-theme="dark"] .home-feature-card {
    border-color: rgba(255, 255, 255, 0.25);
}
.home-feature-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.home-feature-card-title {
    color: #000;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 12px;
}
.home-feature-card-title.h4 { font-size: 20px; margin-bottom: 10px; }
.home-feature-card-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}
html[data-theme="dark"] .home-feature-card-title { color: #f1f5f9; }
html[data-theme="dark"] .home-feature-card-desc { color: #94a3b8; }

/* Partner 栏：明色淡绿底，暗色黑底；页底截止滚动 */
.home-partner-bar {
    margin: 0 -16px 0;
    padding: 48px 24px calc(80px + env(safe-area-inset-bottom, 0));
    background: #e8f6ee;
}
html[data-theme="dark"] .home-partner-bar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .home-partner-bar {
    background: #000000;
}
.home-partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.home-partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(202, 227, 213, 0.9);
}
.home-partner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
html[data-theme="dark"] .home-partner-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .home-partner-card {
    background: rgba(18, 30, 34, 0.9);
    border-color: rgba(70, 104, 109, 0.72);
}
.home-partner-title {
    color: #1a3d2e;
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 32px;
}
html[data-theme="dark"] .home-partner-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .home-partner-title {
    color: #ffffff;
}
/* 开始按钮、今日畅销：绿色向蓝色渐变 */
.home-page .home-start-btn.van-button--primary {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 25%, #06b6d4 60%, #3b82f6 100%) !important;
    border: none !important;
    border-radius: 12px;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
}
.home-page .home-hots-header {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 25%, #06b6d4 60%, #3b82f6 100%);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}
.home-page .home-hots-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-page .home-hots-title-text { flex: 0 0 auto; }
.home-hots-icon,
.home-hots-refresh {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.home-hots-refresh { width: 20px; height: 20px; opacity: 0.95; }
.home-hots-list {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
}
html[data-theme="dark"] .home-hots-list {
    background-color: var(--card-bg) !important;
}
.home-page .home-product-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
html[data-theme="dark"] .home-page .home-product-card {
    background: var(--card-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* 暗黑模式下今日畅销列表内除日增长率数值外全部白色 */
html[data-theme="dark"] .home-page .home-product-card .text-main,
html[data-theme="dark"] .home-page .home-product-card .text-sub {
    color: #ffffff !important;
}
.home-product-name { font-size: 12px !important; }
.home-page .home-product-card .product-img { border-radius: 8px; width: 90px; height: 90px; }
.van-tabbar-item__icon { font-size: 22px; }
.van-tabbar-item__text { font-size: 11px; }

/* Tabbar 固定底部始终显示，去掉顶部分割线（与内容区衔接无横条） */
.van-tabbar.van-tabbar--fixed {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    min-height: var(--home-nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-top: 1px solid var(--home-divider-light) !important;
}
.van-tabbar::before,
.van-tabbar::after {
    display: none !important;
}
.app-main {
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0));
}
.home-page {
    padding-bottom: 0 !important;
}

/* Trade Page */
.trade-page {
    min-height: calc(100vh - 50px);
    padding-top: 14px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
    background:
        radial-gradient(circle at top center, rgba(214, 244, 247, 0.9) 0%, rgba(241, 251, 252, 0.92) 34%, rgba(244, 250, 252, 0.96) 100%);
}
html[data-theme="dark"] .trade-page,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-page {
    background:
        radial-gradient(circle at top center, rgba(23, 68, 74, 0.9) 0%, rgba(16, 32, 35, 0.94) 38%, rgba(13, 23, 27, 0.98) 100%);
}
.trade-page-header {
    margin: 2px 4px 16px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
}
html[data-theme="dark"] .trade-page-header,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-page-header {
    color: #f8fafc;
}
.trade-notice-card,
.trade-assets-panel,
.trade-match-card,
.trade-status-card {
    border-radius: 16px;
    border: 1px solid rgba(164, 217, 222, 0.55);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(31, 74, 80, 0.08);
    backdrop-filter: blur(10px);
}
html[data-theme="dark"] .trade-notice-card,
html[data-theme="dark"] .trade-assets-panel,
html[data-theme="dark"] .trade-match-card,
html[data-theme="dark"] .trade-status-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-notice-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-assets-panel,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-match-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-status-card {
    border-color: rgba(72, 114, 120, 0.75);
    background: rgba(22, 38, 42, 0.86);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}
.trade-notice-card {
    height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.trade-notice-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #11b8bf;
    background: rgba(17, 184, 191, 0.12);
    flex: 0 0 auto;
}
.trade-notice-container {
    position: relative;
    flex: 1;
    height: 22px;
    overflow: hidden;
}
.trade-notice-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: #1f2937;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html[data-theme="dark"] .trade-notice-text,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-notice-text {
    color: #f8fafc;
}
.trade-assets-panel {
    padding: 12px;
    margin-bottom: 14px;
}
.trade-assets-summary {
    padding: 11px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(225, 248, 250, 0.98) 0%, rgba(221, 245, 248, 0.85) 100%);
    border: 1px solid rgba(161, 218, 223, 0.65);
}
html[data-theme="dark"] .trade-assets-summary,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-assets-summary {
    background: linear-gradient(180deg, rgba(28, 70, 76, 0.98) 0%, rgba(21, 50, 55, 0.88) 100%);
    border-color: rgba(79, 128, 135, 0.7);
}
.trade-assets-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #344054;
}
html[data-theme="dark"] .trade-assets-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-assets-label {
    color: #d5eef0;
}
.trade-assets-crown {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.trade-assets-total {
    font-size: 17px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}
.trade-assets-total span,
.trade-assets-metric-value span {
    color: #11b8bf;
    font-size: 0.88em;
    font-weight: 700;
}
html[data-theme="dark"] .trade-assets-total,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-assets-total {
    color: #f8fafc;
}
.trade-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.trade-assets-metric {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(222, 237, 240, 0.9);
}
html[data-theme="dark"] .trade-assets-metric,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-assets-metric {
    background: rgba(15, 28, 31, 0.92);
    border-color: rgba(72, 114, 120, 0.66);
}
.trade-assets-metric-label {
    margin-bottom: 6px;
    font-size: 13px;
    color: #667085;
}
.trade-assets-metric-value {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    word-break: keep-all;
    white-space: nowrap;
}
html[data-theme="dark"] .trade-assets-metric-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-assets-metric-label {
    color: #9fb6ba;
}
html[data-theme="dark"] .trade-assets-metric-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-assets-metric-value {
    color: #f8fafc;
}
.trade-match-card {
    padding: 10px 10px 10px;
    margin-bottom: 10px;
    text-align: center;
}
.trade-match-ring-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}
.trade-match-ring {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, rgba(255,255,255,0.95) 0 52%, transparent 53%),
        conic-gradient(from 210deg, #10a7b2 0deg, #10a7b2 245deg, #e8eef1 245deg, #e8eef1 360deg);
    animation: tradeRingSpin 2s linear infinite;
}
html[data-theme="dark"] .trade-match-ring,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-match-ring {
    background:
        radial-gradient(circle, rgba(17, 27, 31, 0.98) 0 52%, transparent 53%),
        conic-gradient(from 210deg, #18b7c1 0deg, #18b7c1 245deg, rgba(187, 204, 209, 0.18) 245deg, rgba(187, 204, 209, 0.18) 360deg);
}
.trade-match-logo-shell {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
    animation: tradeRingCounterSpin 2s linear infinite;
}
html[data-theme="dark"] .trade-match-logo-shell,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-match-logo-shell {
    background: #10181c;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.trade-match-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.trade-match-title {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}
.trade-match-subtitle {
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.45;
    color: #667085;
}
html[data-theme="dark"] .trade-match-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-match-title {
    color: #f8fafc;
}
html[data-theme="dark"] .trade-match-subtitle,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-match-subtitle {
    color: #9fb6ba;
}
.trade-match-products-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #344054;
}
.trade-match-products-title .van-icon {
    color: #12b8bf;
}
html[data-theme="dark"] .trade-match-products-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-match-products-title {
    color: #d5eef0;
}
.trade-products-shell {
    margin-bottom: 6px;
    border-radius: 14px;
    border: 1px solid rgba(219, 235, 238, 0.85);
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}
html[data-theme="dark"] .trade-products-shell,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-products-shell {
    border-color: rgba(72, 114, 120, 0.66);
    background: rgba(13, 26, 29, 0.86);
}
.trade-page .trade-scrolling-container {
    padding: 4px 0;
}
.trade-page .trade-scrolling-content {
    animation-duration: 16s;
}
.trade-page .trade-scrolling-item {
    width: 64px;
    margin-right: 5px;
    padding: 5px 4px 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 236, 239, 0.9);
}
html[data-theme="dark"] .trade-page .trade-scrolling-item,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-page .trade-scrolling-item {
    background: rgba(18, 33, 37, 0.95);
    border-color: rgba(72, 114, 120, 0.66);
}
.trade-page .trade-scrolling-img {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 7px;
    background-size: cover;
    background-color: #f8fafc;
}
.trade-page .trade-scrolling-name {
    height: 18px;
    margin-top: 0;
    font-size: 8px;
    line-height: 1.2;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
html[data-theme="dark"] .trade-page .trade-scrolling-name,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-page .trade-scrolling-name {
    color: #f8fafc;
}
.trade-scrolling-price {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    color: #11b8bf;
}
.trade-action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.trade-primary-btn {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    color: #ffffff;
    background: linear-gradient(135deg, #11b8bf 0%, #1097a5 100%);
    box-shadow: 0 10px 24px rgba(17, 184, 191, 0.28);
    appearance: none;
    -webkit-appearance: none;
    gap: 8px;
    padding: 0 16px;
}

.trade-primary-btn .van-icon,
.trade-secondary-btn .van-icon,
.trade-primary-btn .van-loading,
.trade-secondary-btn .van-loading {
    font-size: 18px;
    flex-shrink: 0;
}
.trade-secondary-btn {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(188, 212, 217, 0.9);
    background: rgba(255, 255, 255, 0.92);
    color: #344054;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    gap: 8px;
    padding: 0 16px;
}
html[data-theme="dark"] .trade-secondary-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-secondary-btn {
    border-color: rgba(72, 114, 120, 0.75);
    background: rgba(20, 35, 39, 0.9);
    color: #e6f8f9;
}

.trade-primary-btn:disabled,
.trade-secondary-btn:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.trade-btn-text {
    display: inline-block;
    line-height: 1.1;
    white-space: nowrap;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}
.trade-current-card {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid rgba(164, 217, 222, 0.55);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(31, 74, 80, 0.08);
    backdrop-filter: blur(10px);
}
html[data-theme="dark"] .trade-current-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-current-card {
    border-color: rgba(72, 114, 120, 0.75);
    background: rgba(22, 38, 42, 0.86);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}
.trade-current-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.trade-current-title {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}
.trade-current-head-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.trade-current-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cf7f2b;
    flex: 0 0 8px;
}
.trade-current-order-chip {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    color: #4b6470;
    background: rgba(17, 184, 191, 0.12);
    white-space: nowrap;
}
.trade-current-status {
    margin-top: 10px;
    color: #8a4b12;
    font-size: 14px;
    line-height: 1.2;
}
.trade-current-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
}
.trade-current-thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    border: 1px solid rgba(224, 234, 238, 0.9);
}
.trade-current-main {
    min-width: 0;
    flex: 1;
}
.trade-current-name {
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trade-current-meta {
    margin-top: 6px;
    color: #475467;
    font-size: 14px;
    line-height: 1.35;
}
.trade-current-time {
    margin-top: 10px;
    color: #667085;
    font-size: 14px;
    line-height: 1.35;
}
.trade-current-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
html[data-theme="dark"] .trade-current-title,
html[data-theme="dark"] .trade-current-name,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-current-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-current-name {
    color: #f8fafc;
}
html[data-theme="dark"] .trade-current-meta,
html[data-theme="dark"] .trade-current-time,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-current-meta,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-current-time {
    color: #9fb6ba;
}
html[data-theme="dark"] .trade-current-order-chip,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-current-order-chip {
    color: #d5eef0;
    background: rgba(17, 184, 191, 0.18);
}
html[data-theme="dark"] .trade-current-status,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-current-status {
    color: #f4bf7a;
}
.trade-status-card {
    padding: 16px 16px 12px;
}
.trade-progress-block {
    padding: 2px 0 14px;
}
.trade-progress-head,
.trade-progress-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.trade-progress-foot {
    margin-top: 8px;
}
.trade-progress-current {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}
.trade-progress-foot .trade-status-row-label:last-child {
    flex: 0 0 auto;
}
.trade-progress-bar {
    margin-top: 10px;
    height: 8px;
    border-radius: 999px;
    background: rgba(214, 226, 230, 0.9);
    overflow: hidden;
}
.trade-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #12b8bf 0%, #10a7b2 100%);
    transition: width 0.3s ease;
}
html[data-theme="dark"] .trade-progress-bar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-progress-bar {
    background: rgba(70, 91, 98, 0.72);
}
.trade-status-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.trade-status-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
}
.trade-status-subtitle {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: #475467;
    font-weight: 500;
}
html[data-theme="dark"] .trade-status-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-status-title {
    color: #f8fafc;
}
html[data-theme="dark"] .trade-status-subtitle,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-status-subtitle {
    color: #b8c8cb;
}
.trade-status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.trade-status-badge {
    min-width: 44px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(17, 184, 191, 0.1);
    color: #10a7b2;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    font-weight: 600;
}

.trade-status-badge--complete {
    padding-left: 10px;
    padding-right: 10px;
}
.trade-status-metrics {
    border-top: 1px solid rgba(218, 231, 234, 0.88);
    padding-top: 8px;
}
html[data-theme="dark"] .trade-status-metrics,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-status-metrics {
    border-top-color: rgba(72, 114, 120, 0.56);
}
.trade-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(235, 240, 242, 0.88);
}
.trade-status-row:last-child {
    border-bottom: none;
    padding-bottom: 6px;
}
html[data-theme="dark"] .trade-status-row,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-status-row {
    border-bottom-color: rgba(72, 114, 120, 0.38);
}
.trade-status-row-label {
    color: #475467;
    font-size: 15px;
    line-height: 1.3;
}
.trade-status-row-value {
    color: #111827;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}
.trade-status-credit-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.trade-status-help,
.trade-status-credit {
    color: #11b8bf !important;
}
html[data-theme="dark"] .trade-status-row-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-status-row-label {
    color: #9fb6ba;
}
html[data-theme="dark"] .trade-status-row-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-status-row-value {
    color: #f8fafc;
}
.trade-records-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(164, 217, 222, 0.55);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(31, 74, 80, 0.08);
    backdrop-filter: blur(10px);
}
html[data-theme="dark"] .trade-records-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-records-card {
    border-color: rgba(72, 114, 120, 0.75);
    background: rgba(22, 38, 42, 0.86);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}
.trade-records-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.trade-records-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.trade-records-badge {
    min-width: 56px;
    padding: 6px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    line-height: 1;
    color: #10a7b2;
    background: rgba(17, 184, 191, 0.12);
}
html[data-theme="dark"] .trade-records-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-records-title {
    color: #f8fafc;
}
.trade-records-empty {
    padding: 16px 0 8px;
    color: #667085;
    font-size: 14px;
}
html[data-theme="dark"] .trade-records-empty,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-records-empty {
    color: #9fb6ba;
}
.trade-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.trade-record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.trade-record-item:focus-visible {
    outline: 2px solid rgba(17, 184, 191, 0.35);
    outline-offset: 4px;
    border-radius: 12px;
}
.trade-record-thumb {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    border: 1px solid rgba(224, 234, 238, 0.9);
}
.trade-record-main {
    min-width: 0;
    flex: 1;
}
.trade-record-name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trade-record-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #98a2b3;
}
.trade-record-time {
    margin-top: 3px;
    font-size: 12px;
    color: #98a2b3;
}
.trade-record-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #16c784;
}
html[data-theme="dark"] .trade-record-name,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-record-name {
    color: #f8fafc;
}
html[data-theme="dark"] .trade-record-meta,
html[data-theme="dark"] .trade-record-time,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-record-meta,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-record-time {
    color: #9fb6ba;
}
.trade-records-btn {
    width: 100%;
    margin-top: 14px;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(188, 212, 217, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #344054;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    cursor: pointer;
}
html[data-theme="dark"] .trade-records-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-records-btn {
    border-color: rgba(72, 114, 120, 0.75);
    background: rgba(20, 35, 39, 0.9);
    color: #e6f8f9;
}
.records-page {
    min-height: 100vh;
    padding-bottom: 80px;
    background: var(--bg-color);
}
.records-nav-bar {
    background: transparent !important;
    --van-nav-bar-background: transparent !important;
    --van-nav-bar-title-text-color: #111827 !important;
    box-shadow: none !important;
}
.records-nav-bar::after,
.records-nav-bar::before {
    display: none !important;
}
.records-nav-bar .van-nav-bar__content {
    height: 48px;
    padding: 0 4px;
}
.records-nav-bar .van-nav-bar__title,
.records-nav-bar .van-icon,
.records-nav-icon {
    color: #111827 !important;
}
.records-list-card {
    border-radius: 18px;
    border: 1px solid rgba(164, 217, 222, 0.55);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(31, 74, 80, 0.08);
    overflow: hidden;
}
.records-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(223, 234, 238, 0.9);
}
.records-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.records-list-badge {
    min-width: 54px;
    padding: 6px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    line-height: 1;
    color: #10a7b2;
    background: rgba(17, 184, 191, 0.12);
}
.records-empty-state {
    padding: 36px 16px;
    text-align: center;
    color: #667085;
    font-size: 14px;
}
.records-list-wrap {
    display: flex;
    flex-direction: column;
}
.records-list-item {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid rgba(223, 234, 238, 0.9);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.records-list-item:last-child {
    border-bottom: none;
}
.records-list-item:focus-visible {
    outline: 2px solid rgba(17, 184, 191, 0.35);
    outline-offset: -2px;
}
.records-item-thumb {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    border: 1px solid rgba(224, 234, 238, 0.9);
}
.records-item-main {
    min-width: 0;
    flex: 1;
}
.records-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.records-item-name {
    min-width: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.records-item-status {
    flex-shrink: 0;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
}
.records-item-status--pending {
    color: #b54708;
    background: rgba(255, 151, 106, 0.14);
}
.records-item-status--completed {
    color: #027a48;
    background: rgba(7, 193, 96, 0.12);
}
.records-item-order {
    margin-top: 4px;
    font-size: 12px;
    color: #667085;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.records-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    color: #10a7b2;
    font-weight: 600;
}
.records-item-time {
    margin-top: 5px;
    font-size: 12px;
    color: #98a2b3;
}
.records-item-arrow {
    flex-shrink: 0;
    color: #98a2b3;
    font-size: 16px;
}
html[data-theme="dark"] .records-list-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-list-card {
    border-color: rgba(72, 114, 120, 0.75);
    background: rgba(22, 38, 42, 0.86);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}
html[data-theme="dark"] .records-nav-bar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-nav-bar {
    --van-nav-bar-title-text-color: #f8fafc !important;
}
html[data-theme="dark"] .records-nav-bar .van-nav-bar__title,
html[data-theme="dark"] .records-nav-bar .van-icon,
html[data-theme="dark"] .records-nav-icon,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-nav-bar .van-nav-bar__title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-nav-bar .van-icon,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-nav-icon {
    color: #f8fafc !important;
}
html[data-theme="dark"] .records-list-head,
html[data-theme="dark"] .records-list-item,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-list-head,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-list-item {
    border-bottom-color: rgba(72, 114, 120, 0.4);
}
html[data-theme="dark"] .records-list-title,
html[data-theme="dark"] .records-item-name,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-list-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-item-name {
    color: #f8fafc;
}
html[data-theme="dark"] .records-empty-state,
html[data-theme="dark"] .records-item-order,
html[data-theme="dark"] .records-item-time,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-empty-state,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-item-order,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-item-time {
    color: #9fb6ba;
}
html[data-theme="dark"] .records-item-thumb,
html:not([data-theme="blue"]):not([data-theme="orange"]) .records-item-thumb {
    border-color: rgba(72, 114, 120, 0.5);
    background-color: rgba(15, 28, 31, 0.92);
}
.trade-back-top {
    position: fixed;
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0));
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #11b8bf 0%, #1097a5 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(17, 184, 191, 0.34);
    z-index: 1001;
    cursor: pointer;
}
.trade-back-top .van-icon {
    font-size: 24px;
}

@keyframes tradeRingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes tradeRingCounterSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* Common Components */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.text-main { color: var(--text-main); }
.text-sub { color: var(--text-sub); }
.text-primary { color: var(--primary); }

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* Form Elements */
.input-field {
    background-color: var(--input-bg);
    border: none;
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.input-field:focus {
    outline: 1px solid var(--primary);
}

/* Vant Overrides */
.van-nav-bar {
    background-color: var(--nav-bg);
    color: white;
}
.van-nav-bar__title {
    color: white;
}
.van-tabbar {
    background-color: var(--nav-bg);
    min-height: var(--home-nav-height);
    border-top: 1px solid var(--home-divider-light) !important;
}
.van-tabbar-item {
    color: var(--nav-text);
    background-color: var(--nav-bg);
    min-height: var(--home-nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
}
.van-tabbar-item--active {
    color: var(--nav-active);
    background-color: var(--nav-bg);
}
.van-cell {
    background-color: var(--card-bg);
    color: var(--text-main);
}
.van-cell::after {
    border-bottom-color: var(--border-color);
}

/* Language switcher popover */
.van-popover__content {
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.van-popover__action {
    min-height: 48px;
    padding: 0 16px;
    white-space: nowrap;
}

/* Page Specific */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.logo { font-weight: bold; font-size: 18px; }

.product-item {
    display: flex;
    margin-bottom: 12px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 8px;
}
.product-img {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    margin-right: 10px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Receipt Card Style */
.receipt-card {
    background: #fcfcfc; /* Very light gray/white */
    margin-bottom: 16px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden; /* Prevent stamp from sticking out */
    border: 1px dashed #d0d0d0; /* Dashed border for ticket look */
}
.receipt-header {
    background: #f9f9f9; /* Match card background */
    padding: 12px 16px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.receipt-body {
    padding: 16px;
    position: relative;
}
.receipt-product {
    display: flex;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e0e0e0;
}
.receipt-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    margin-right: 12px;
    background-size: cover;
    background-position: center;
    background-color: #fff; /* White background for image container */
    flex-shrink: 0;
    border: 1px solid #eee;
}
.receipt-product-info {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 80px;
}
.receipt-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.receipt-qty {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Receipt Details Layout */
.receipt-details-container {
    display: flex;
    position: relative;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee; /* Divider below product */
}
.receipt-col-left {
    flex: 0 0 30%; /* Fixed width for labels */
    padding-right: 12px;
    border-right: 1px dashed #eee; /* Vertical divider */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.receipt-col-right {
    flex: 1;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    position: relative; /* Context for absolute children if needed */
}
.receipt-label {
    font-size: 12px;
    color: #333; /* Darker labels */
    padding-bottom: 6px;
}

.receipt-col-value {
    text-align: right;
    padding-bottom: 8px;
    font-weight: bold; /* Bold values */
}
.text-green { color: #00b5b5 !important; font-weight: bold; } /* Teal color */
.text-blue { color: #1989fa !important; font-weight: normal; font-size: 12px; }

.stamp-icon {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 90px;
    height: 90px;
    z-index: 1; /* Lower z-index */
    transform: rotate(-15deg);
    pointer-events: none;
    opacity: 0.8;
}

.assets-card {
    background: var(--assets-bg);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}
/* Theme overrides handled by --assets-bg variable */

.mine-page {
    position: relative;
    min-height: calc(100vh - 50px);
    background: #f6f7fb;
}

.mine-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(180deg, #101010 0%, #1b1b1b 100%);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.mine-page > * {
    position: relative;
    z-index: 1;
}

.mine-subpage {
    position: relative;
    background: #f6f7fb;
    --bg-color: #f6f7fb;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --text-main: #1f2937;
    --text-sub: #6b7280;
    --border-color: #e9edf5;
    --theme-nav-title-color: #ffffff;
}

.mine-subpage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, #101010 0%, #1b1b1b 100%);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

.mine-subpage > * {
    position: relative;
    z-index: 1;
}

.mine-subpage .card {
    background: #ffffff;
    border: 1px solid #e9edf5;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.mine-subpage .input-field {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e9edf5;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.02);
}

.mine-subpage .text-main {
    color: #1f2937;
}

.mine-subpage .text-sub {
    color: #6b7280;
}

.mine-subpage .menu-item {
    border-bottom: 1px solid #eef2f7;
}

.mine-subpage .menu-item:active {
    background-color: #f7f9fc;
}

.finance-page {
    background: #f8fafc;
    padding-top: 10px;
    padding-bottom: 28px;
}

.finance-page::before {
    display: none;
}

.finance-page .van-nav-bar {
    background: transparent !important;
    --van-nav-bar-background: transparent !important;
    --van-nav-bar-title-text-color: #111827 !important;
    box-shadow: none !important;
}

.finance-page .van-nav-bar::after,
.finance-page .van-nav-bar::before {
    display: none !important;
}

.finance-page .van-nav-bar .van-nav-bar__content {
    height: 48px;
    padding: 0;
}

.finance-page .van-nav-bar .van-nav-bar__title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.finance-nav-link {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f9fa7;
    cursor: pointer;
}

.finance-flow-card,
.finance-section-card,
.finance-balance-card,
.finance-bind-card,
.finance-tips-card {
    background: #ffffff;
    border: 1px solid #e7edf4;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.finance-flow-card {
    padding: 18px 18px 16px;
    margin-bottom: 16px;
}

.finance-flow-title {
    font-size: 13px;
    line-height: 1.5;
    color: #475467;
    margin-bottom: 14px;
}

.finance-step-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 150px;
    margin-left: auto;
    margin-bottom: 10px;
}

.finance-step-track--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 96px;
}

.finance-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #98a2b3;
    background: #eef4f7;
}

.finance-step-dot--active {
    color: #0f9fa7;
    background: rgba(15, 159, 167, 0.14);
}

.finance-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.finance-progress--half {
    grid-template-columns: 1fr;
}

.finance-progress--two {
    grid-template-columns: repeat(2, 1fr);
}

.finance-progress-bar {
    height: 5px;
    border-radius: 999px;
    background: #dbe8ed;
}

.finance-progress-bar--active {
    background: linear-gradient(90deg, #12b8bf 0%, #0f9fa7 100%);
}

.finance-balance-card {
    padding: 18px;
    margin-bottom: 16px;
}

.finance-balance-label {
    font-size: 14px;
    color: #475467;
    margin-bottom: 10px;
}

.finance-balance-value {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    color: #101828;
}

.finance-balance-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.finance-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
}

.finance-pill--soft {
    color: #0f9fa7;
    background: rgba(15, 159, 167, 0.12);
}

.finance-bind-card,
.finance-section-card,
.finance-tips-card {
    padding: 16px;
    margin-bottom: 16px;
}

.finance-bind-title,
.finance-tips-title {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 10px;
}

.finance-bind-text {
    font-size: 14px;
    line-height: 1.6;
    color: #667085;
    margin-bottom: 14px;
}

.finance-bind-btn,
.finance-inline-copy {
    border: none;
    background: linear-gradient(135deg, #12b8bf 0%, #0f9fa7 100%);
    color: #ffffff;
    height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.finance-inline-copy {
    width: 100%;
    margin-top: 12px;
}

.finance-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #101828;
}

.finance-step-subtitle {
    margin-top: -6px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #667085;
}

.finance-inline-link {
    border: none;
    background: transparent;
    padding: 0;
    color: #0f9fa7;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.finance-channel-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 159, 167, 0.12);
    color: #0f9fa7;
    font-size: 12px;
    font-weight: 700;
}

.finance-wallet-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.finance-bind-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(63, 98, 229, 0.12);
}

.finance-bind-notice-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    background: #3f66e5;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
}

.finance-bind-notice-text {
    font-size: 14px;
    line-height: 1.6;
    color: #3156d3;
}

.finance-wallet-grid {
    display: grid;
    gap: 10px;
}

.finance-wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.finance-wallet-row--stack {
    align-items: flex-start;
    flex-direction: column;
}

.finance-wallet-label {
    font-size: 13px;
    color: #667085;
}

.finance-wallet-value {
    font-size: 14px;
    color: #101828;
    font-weight: 600;
    text-align: right;
}

.finance-wallet-value--mono {
    width: 100%;
    word-break: break-all;
    text-align: left;
    font-family: Consolas, monospace;
}

.finance-option-list {
    display: grid;
    gap: 12px;
}

.finance-option-item {
    border: none;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid #eef2f6;
}

.finance-option-item:last-child {
    border-bottom: none;
}

.finance-option-item--active .finance-option-title {
    color: #0f9fa7;
}

.finance-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 20px;
    font-weight: 700;
}

.finance-option-icon--image {
    background: #ffffff;
    border: 1px solid #e7edf4;
    overflow: hidden;
}

.finance-option-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.finance-option-icon--native {
    position: relative;
    width: 46px;
    height: 42px;
    background: transparent;
    overflow: visible;
}

.finance-native-icon {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.finance-native-icon--first {
    left: 0;
    top: 8px;
    z-index: 1;
}

.finance-native-icon--second {
    left: 10px;
    top: 0;
    z-index: 2;
}

.finance-native-icon--third {
    left: 20px;
    top: 10px;
    z-index: 3;
}

.finance-option-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.finance-option-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.finance-option-sub {
    font-size: 13px;
    color: #667085;
    word-break: break-word;
}

.finance-network-list {
    display: grid;
    gap: 12px;
}

.finance-network-card {
    width: 100%;
    border: 1px solid #d7e9ec;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.finance-network-card--active {
    border-color: #4cc7cf;
    box-shadow: 0 0 0 2px rgba(76, 199, 207, 0.12);
}

.finance-network-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e7edf4;
    overflow: hidden;
}

.finance-network-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.finance-network-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.finance-network-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
}

.finance-network-sub {
    font-size: 13px;
    color: #667085;
}

.finance-option-arrow {
    font-size: 16px;
    color: #c0c7d1;
}

.finance-chip-row,
.finance-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.finance-choice-chip,
.finance-quick-chip {
    border: 1px solid #d7e1e7;
    background: #f8fafc;
    color: #334155;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.finance-choice-chip--active,
.finance-quick-chip--accent {
    border-color: rgba(15, 159, 167, 0.16);
    background: rgba(15, 159, 167, 0.12);
    color: #0f9fa7;
}

.finance-empty-box {
    border: 1px dashed #d6e1e7;
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
    color: #667085;
    font-size: 14px;
}

.finance-empty-box--card {
    background: #ffffff;
}

.finance-section-card--qr {
    text-align: center;
}

.finance-qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.finance-qr-image {
    width: 182px;
    height: 182px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.finance-address-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    text-align: left;
}

.finance-address-text {
    min-width: 0;
    flex: 1;
    word-break: break-all;
    font-size: 13px;
    color: #101828;
    font-family: Consolas, monospace;
}

.finance-copy-icon {
    border: none;
    background: transparent;
    color: #0f9fa7;
    font-size: 20px;
    cursor: pointer;
}

.finance-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.finance-action-btn {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #d8e2ea;
    background: #f8fafc;
    color: #0f9fa7;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.finance-amount-block {
    margin-top: 16px;
}

.finance-amount-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid #d8e2ea;
    background: #ffffff;
}

.finance-currency-prefix {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: #101828;
}

.finance-amount-input {
    width: 100%;
    border: none;
    background: transparent;
    color: #101828;
    font-size: 24px;
    font-weight: 700;
    outline: none;
}

.finance-password-input {
    margin-bottom: 14px;
}

.finance-submit-btn {
    height: 46px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #12b8bf 0%, #0f9fa7 100%) !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.finance-tips-card--compact {
    margin-top: 14px;
    margin-bottom: 0;
}

.finance-collapse-head {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #101828;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.finance-tips-list {
    margin: 0;
    padding-left: 18px;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

html[data-theme="dark"] .finance-page,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-page {
    background: #0d171b;
}

html[data-theme="dark"] .finance-page .van-nav-bar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-page .van-nav-bar {
    --van-nav-bar-title-text-color: #f8fafc !important;
}

html[data-theme="dark"] .finance-page .van-nav-bar .van-nav-bar__title,
html[data-theme="dark"] .finance-nav-link,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-page .van-nav-bar .van-nav-bar__title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-nav-link {
    color: #f8fafc;
}

html[data-theme="dark"] .finance-flow-card,
html[data-theme="dark"] .finance-section-card,
html[data-theme="dark"] .finance-balance-card,
html[data-theme="dark"] .finance-bind-card,
html[data-theme="dark"] .finance-tips-card,
html[data-theme="dark"] .finance-empty-box--card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-flow-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-section-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-balance-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-bind-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-tips-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-empty-box--card {
    background: rgba(20, 35, 39, 0.96);
    border-color: rgba(72, 114, 120, 0.66);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .finance-flow-title,
html[data-theme="dark"] .finance-balance-label,
html[data-theme="dark"] .finance-bind-text,
html[data-theme="dark"] .finance-step-subtitle,
html[data-theme="dark"] .finance-bind-notice-text,
html[data-theme="dark"] .finance-wallet-label,
html[data-theme="dark"] .finance-option-sub,
html[data-theme="dark"] .finance-network-sub,
html[data-theme="dark"] .finance-empty-box,
html[data-theme="dark"] .finance-tips-list,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-flow-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-balance-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-bind-text,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-step-subtitle,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-bind-notice-text,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-wallet-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-option-sub,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-network-sub,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-empty-box,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-tips-list {
    color: #9fb6ba;
}

html[data-theme="dark"] .finance-bind-title,
html[data-theme="dark"] .finance-tips-title,
html[data-theme="dark"] .finance-section-head,
html[data-theme="dark"] .finance-collapse-head,
html[data-theme="dark"] .finance-balance-value,
html[data-theme="dark"] .finance-wallet-value,
html[data-theme="dark"] .finance-option-title,
html[data-theme="dark"] .finance-network-title,
html[data-theme="dark"] .finance-address-text,
html[data-theme="dark"] .finance-currency-prefix,
html[data-theme="dark"] .finance-amount-input,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-bind-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-tips-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-section-head,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-collapse-head,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-balance-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-wallet-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-option-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-network-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-address-text,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-currency-prefix,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-amount-input {
    color: #f8fafc;
}

html[data-theme="dark"] .finance-wallet-row,
html[data-theme="dark"] .finance-choice-chip,
html[data-theme="dark"] .finance-quick-chip,
html[data-theme="dark"] .finance-action-btn,
html[data-theme="dark"] .finance-network-card,
html[data-theme="dark"] .finance-address-box,
html[data-theme="dark"] .finance-amount-box,
html[data-theme="dark"] .finance-empty-box,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-wallet-row,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-choice-chip,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-quick-chip,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-action-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-network-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-address-box,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-amount-box,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-empty-box {
    background: rgba(15, 28, 31, 0.92);
    border-color: rgba(72, 114, 120, 0.56);
    color: #f8fafc;
}

html[data-theme="dark"] .finance-network-card--active,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-network-card--active {
    border-color: rgba(79, 181, 188, 0.88);
    box-shadow: 0 0 0 2px rgba(79, 181, 188, 0.16);
}

html[data-theme="dark"] .finance-wallet-status-badge,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-wallet-status-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

html[data-theme="dark"] .finance-bind-notice,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-bind-notice {
    background: rgba(79, 112, 222, 0.18);
}

html[data-theme="dark"] .finance-bind-notice-text,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-bind-notice-text {
    color: #c8d6ff;
}

html[data-theme="dark"] .finance-network-icon-wrap,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-network-icon-wrap {
    border-color: rgba(72, 114, 120, 0.66);
    background: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .finance-channel-badge,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-channel-badge {
    background: rgba(79, 181, 188, 0.18);
    color: #9de7eb;
}

html[data-theme="dark"] .finance-option-icon--image,
html:not([data-theme="blue"]):not([data-theme="orange"]) .finance-option-icon--image {
    border-color: rgba(72, 114, 120, 0.66);
    background: rgba(255, 255, 255, 0.96);
}

.mine-header-row .text-main {
    color: #ffffff;
}

.mine-header-row .text-sub {
    color: rgba(255, 255, 255, 0.72);
}

.action-btn {
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

.mine-page .action-btn {
    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid #eceef3 !important;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.mine-user-meta {
    min-width: 0;
}

.mine-user-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 20px;
}

.mine-menu-card {
    background: #ffffff;
    border: 1px solid #eceef3;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.mine-menu-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    color: #1f2937;
    border-bottom: 1px solid #f0f2f6;
}

.mine-menu-body {
    background: #ffffff;
}

.mine-page .menu-item {
    border-bottom: 1px solid #f0f2f6;
}

.mine-page .menu-item:active {
    background-color: #f7f9fc;
}

.mine-page .menu-text {
    color: #1f2937;
}

.mine-page .logout-btn {
    background: #ffffff !important;
    color: #222222 !important;
    border: 1px solid #eceef3 !important;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

/* Mine Page Refresh */
.mine-page {
    min-height: calc(100vh - 50px);
    padding-top: 4px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
    background:
        radial-gradient(circle at top center, rgba(214, 244, 247, 0.95) 0%, rgba(242, 250, 252, 0.97) 34%, rgba(246, 248, 251, 1) 100%);
}
.mine-page::before {
    display: none;
}
html[data-theme="dark"] .mine-page,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-page {
    background:
        radial-gradient(circle at top center, rgba(22, 60, 66, 0.96) 0%, rgba(14, 26, 30, 0.98) 42%, rgba(11, 18, 22, 1) 100%);
}
.mine-topbar {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -4px -16px 14px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--home-divider-light, #d1d5db);
}
.mine-topbar-title {
    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
}
.mine-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mine-topbar-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    cursor: pointer;
}
.mine-topbar-btn .van-icon {
    font-size: 22px;
}
html[data-theme="dark"] .mine-topbar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-topbar {
    background: rgba(14, 26, 30, 1);
    border-bottom-color: var(--home-divider-dark, rgba(255, 255, 255, 0.35));
}
html[data-theme="dark"] .mine-topbar-title,
html[data-theme="dark"] .mine-topbar-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-topbar-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-topbar-btn {
    color: #f8fafc;
}
.mine-profile-card,
.mine-assets-card,
.mine-banner-card,
.mine-menu-card--new {
    border-radius: 16px;
    border: 1px solid rgba(164, 217, 222, 0.55);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(31, 74, 80, 0.08);
    backdrop-filter: blur(10px);
}
html[data-theme="dark"] .mine-profile-card,
html[data-theme="dark"] .mine-assets-card,
html[data-theme="dark"] .mine-banner-card,
html[data-theme="dark"] .mine-menu-card--new,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-profile-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-assets-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-banner-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-menu-card--new {
    border-color: rgba(72, 114, 120, 0.72);
    background: rgba(22, 38, 42, 0.9);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}
.mine-profile-card {
    padding: 14px;
    margin-bottom: 12px;
}
.mine-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.mine-profile-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mine-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}
html[data-theme="dark"] .mine-profile-avatar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-profile-avatar {
    background: #10181c;
}
.mine-profile-avatar-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.mine-profile-meta {
    min-width: 0;
}
.mine-profile-name {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}
.mine-profile-sub {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.2;
    color: #667085;
}
.mine-credit-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    color: #ad6a00;
    background: linear-gradient(180deg, #ffe9a9 0%, #ffc953 100%);
}
.mine-invite-card {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(160, 218, 223, 0.68);
    background: linear-gradient(180deg, rgba(241, 252, 252, 0.95) 0%, rgba(246, 252, 253, 0.9) 100%);
}
.mine-invite-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.mine-invite-card-copy {
    min-width: 0;
}
.mine-invite-card-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}
.mine-invite-card-subtitle {
    margin-top: 4px;
    color: #5b6678;
    font-size: 12px;
    line-height: 1.5;
}
.mine-invite-preview-btn {
    flex-shrink: 0;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(17, 184, 191, 0.22);
    background: rgba(255, 255, 255, 0.78);
    color: #0f8a93;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
html[data-theme="dark"] .mine-invite-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-invite-card {
    border-color: rgba(72, 114, 120, 0.66);
    background: rgba(16, 30, 33, 0.95);
}
.mine-invite-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(12, 108, 115, 0.12);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.mine-invite-code-icon {
    color: #10a7b2;
}
.mine-invite-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.mine-invite-btn {
    min-height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.mine-invite-btn--filled {
    border: none;
    color: #0f8a93;
    background: linear-gradient(135deg, rgba(17, 184, 191, 0.18) 0%, rgba(17, 184, 191, 0.1) 100%);
}
.mine-invite-btn--ghost {
    border: 1px solid #11b8bf;
    color: #0f8a93;
    background: rgba(255, 255, 255, 0.92);
}
html[data-theme="dark"] .mine-profile-name,
html[data-theme="dark"] .mine-invite-code-row,
html[data-theme="dark"] .mine-invite-card-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-profile-name,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-invite-card-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-invite-code-row {
    color: #f8fafc;
}
html[data-theme="dark"] .mine-profile-sub,
html[data-theme="dark"] .mine-invite-card-subtitle,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-profile-sub {
    color: #9fb6ba;
}
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-invite-card-subtitle {
    color: #9fb6ba;
}
html[data-theme="dark"] .mine-invite-btn--filled,
html[data-theme="dark"] .mine-invite-btn--ghost,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-invite-btn--filled,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-invite-btn--ghost {
    color: #9de7eb;
}
html[data-theme="dark"] .mine-invite-preview-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-invite-preview-btn {
    background: rgba(19, 34, 37, 0.94);
    border-color: rgba(79, 181, 188, 0.4);
    color: #9de7eb;
}
html[data-theme="dark"] .mine-invite-btn--ghost,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-invite-btn--ghost {
    background: rgba(19, 34, 37, 0.94);
    border-color: rgba(79, 181, 188, 0.65);
}
.mine-assets-card {
    padding: 12px;
    margin-bottom: 12px;
}
.mine-assets-summary {
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(225, 248, 250, 0.98) 0%, rgba(221, 245, 248, 0.85) 100%);
    border: 1px solid rgba(161, 218, 223, 0.65);
}
.mine-assets-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #344054;
}
.mine-assets-label .van-icon {
    color: #10a7b2;
}
.mine-assets-total {
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}
.mine-assets-total span,
.mine-assets-metric-value span {
    color: #11b8bf;
    font-size: 0.88em;
}
.mine-assets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.mine-assets-metric {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(222, 237, 240, 0.9);
}
.mine-assets-metric-label {
    margin-bottom: 6px;
    font-size: 13px;
    color: #667085;
}
.mine-assets-metric-value {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}
html[data-theme="dark"] .mine-assets-summary,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-assets-summary {
    background: linear-gradient(180deg, rgba(28, 70, 76, 0.98) 0%, rgba(21, 50, 55, 0.88) 100%);
    border-color: rgba(79, 128, 135, 0.7);
}
html[data-theme="dark"] .mine-assets-label,
html[data-theme="dark"] .mine-assets-total,
html[data-theme="dark"] .mine-assets-metric-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-assets-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-assets-total,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-assets-metric-value {
    color: #f8fafc;
}
html[data-theme="dark"] .mine-assets-metric,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-assets-metric {
    background: rgba(15, 28, 31, 0.92);
    border-color: rgba(72, 114, 120, 0.66);
}
html[data-theme="dark"] .mine-assets-metric-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-assets-metric-label {
    color: #9fb6ba;
}
.mine-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.mine-action-btn {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(229, 236, 239, 0.9);
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}
.mine-action-btn .van-icon {
    font-size: 18px;
}
html[data-theme="dark"] .mine-action-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-action-btn {
    border-color: rgba(72, 114, 120, 0.66);
    background: rgba(20, 35, 39, 0.94);
    color: #f8fafc;
}
.mine-banner-card {
    overflow: hidden;
    margin-bottom: 12px;
}
.mine-banner-img {
    width: 100%;
    display: block;
    height: auto;
}
.mine-menu-card--new {
    overflow: hidden;
}
.mine-menu-card--new .mine-menu-body {
    background: transparent;
}
.mine-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(180, 192, 198, 0.85);
    cursor: pointer;
}
.mine-menu-item:last-child {
    border-bottom: none;
}
.mine-menu-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
}
.mine-menu-item-icon--pink {
    background: linear-gradient(180deg, #ffe4e8 0%, #ffd3de 100%);
    color: #ef5f7a;
}
.mine-menu-item-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.2;
    color: #111827;
}
.mine-menu-item-arrow {
    color: #98a2b3;
    font-size: 16px;
}
html[data-theme="dark"] .mine-menu-item,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-menu-item {
    border-bottom-color: rgba(72, 114, 120, 0.38);
}
html[data-theme="dark"] .mine-menu-item-text,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-menu-item-text {
    color: #f8fafc;
}
.mine-support-float {
    position: fixed;
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0));
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b8bf 0%, #0d9aa5 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(16, 184, 191, 0.32);
    z-index: 1001;
    cursor: pointer;
}
.mine-support-float .van-icon {
    font-size: 28px;
}

.settings-page {
    background: #f8fafc;
    padding-top: 10px;
    padding-bottom: 32px;
}

.settings-page::before {
    display: none;
}

.settings-nav-bar {
    background: transparent !important;
    --van-nav-bar-background: transparent !important;
    --van-nav-bar-title-text-color: #111827 !important;
    box-shadow: none !important;
}

.settings-nav-bar::after,
.settings-nav-bar::before {
    display: none !important;
}

.settings-nav-bar .van-nav-bar__content {
    height: 48px;
    padding: 0;
}

.settings-nav-bar .van-nav-bar__title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.settings-page-desc {
    margin-bottom: 22px;
    color: #475467;
    font-size: 15px;
    line-height: 1.6;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section-title {
    margin-bottom: 12px;
    color: #101828;
    font-size: 18px;
    font-weight: 700;
}

.settings-current-lang {
    margin-bottom: 10px;
    color: #667085;
    font-size: 14px;
}

.settings-card,
.mine-info-card,
.mine-metric-card {
    background: #ffffff;
    border: 1px solid #e7edf4;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.settings-card {
    padding: 14px;
}

.settings-card--stack {
    display: grid;
    gap: 12px;
}

.settings-card--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.settings-row-copy {
    min-width: 0;
    flex: 1;
}

.settings-row-title {
    color: #101828;
    font-size: 15px;
    font-weight: 700;
}

.settings-row-desc {
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.settings-theme-btn,
.settings-action-btn,
.settings-link-btn {
    width: 100%;
    border: 1px solid #d8e2ea;
    background: #ffffff;
    border-radius: 14px;
    min-height: 46px;
    padding: 0 16px;
    color: #101828;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.settings-theme-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-theme-value {
    color: #667085;
    font-weight: 500;
}

.settings-select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d8e2ea;
    border-radius: 14px;
    background: #ffffff;
    color: #101828;
    font-size: 15px;
    outline: none;
}

.settings-link-list {
    display: grid;
    gap: 12px;
}

.settings-primary-btn {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #12b8bf 0%, #0f9fa7 100%);
    color: #ffffff;
    min-height: 46px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.mine-info-list {
    display: grid;
    gap: 14px;
}

.mine-policy-list {
    display: grid;
    gap: 14px;
}

.mine-info-card {
    padding: 16px;
}

.mine-policy-card {
    padding: 18px 16px;
}

.mine-info-title {
    color: #101828;
    font-size: 16px;
    font-weight: 700;
}

.mine-info-desc {
    margin-top: 8px;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}

.mine-info-desc--policy + .mine-info-desc--policy {
    margin-top: 10px;
}

.mine-metric-grid {
    display: grid;
    gap: 14px;
}

.mine-metric-card {
    padding: 16px;
}

.mine-metric-title {
    color: #667085;
    font-size: 14px;
}

.mine-metric-value {
    margin-top: 8px;
    color: #101828;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.mine-subpage-hero {
    margin-bottom: 18px;
    padding: 18px 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(21, 184, 191, 0.15) 0%, rgba(68, 214, 199, 0.06) 100%);
    border: 1px solid rgba(17, 184, 191, 0.16);
}
.mine-subpage-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #0f8a93;
    font-size: 12px;
    font-weight: 700;
}
.mine-subpage-title {
    margin-top: 12px;
    color: #101828;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}
.mine-subpage-copy {
    margin-top: 8px;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}
.mine-subpage-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.mine-segmented {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.mine-segmented--wide {
    margin-bottom: 16px;
}
.mine-segmented-btn,
.mine-toolbar-btn,
.mine-team-action-btn,
.mine-notice-card {
    appearance: none;
    -webkit-appearance: none;
}
.mine-segmented-btn {
    min-height: 42px;
    border: 1px solid #d7e4ea;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    color: #475467;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.mine-segmented-btn--active {
    border-color: rgba(17, 184, 191, 0.3);
    background: linear-gradient(135deg, #14b8bf 0%, #0fa2aa 100%);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 162, 170, 0.2);
}
.mine-toolbar-btn {
    flex-shrink: 0;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d7e4ea;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    color: #101828;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.mine-info-list--notice {
    gap: 12px;
}
.mine-notice-card {
    width: 100%;
    border: 1px solid #e7edf4;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
}
.mine-notice-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.mine-notice-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17, 184, 191, 0.12);
    color: #0f8a93;
    font-size: 12px;
    font-weight: 700;
}
.mine-notice-time {
    color: #98a2b3;
    font-size: 12px;
}
.mine-highlight-grid,
.mine-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.mine-highlight-card,
.mine-analysis-card {
    padding: 16px 14px;
    border-radius: 18px;
    border: 1px solid #e7edf4;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.mine-highlight-label,
.mine-analysis-label {
    color: #667085;
    font-size: 13px;
}
.mine-highlight-value,
.mine-analysis-value {
    margin-top: 10px;
    color: #101828;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.mine-section-label {
    margin: 16px 0 10px;
    color: #101828;
    font-size: 16px;
    font-weight: 800;
}
.mine-metric-grid--team {
    margin-bottom: 16px;
}
.mine-team-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.mine-team-action-btn {
    min-height: 74px;
    padding: 12px 10px;
    border-radius: 18px;
    border: 1px solid #e7edf4;
    background: #ffffff;
    color: #101828;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.mine-team-action-btn .van-icon {
    font-size: 20px;
    color: #12b8bf;
}
.mine-team-rules-card {
    padding: 16px;
}
.mine-team-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}
.mine-team-rule-item + .mine-team-rule-item {
    margin-top: 10px;
}
.mine-team-rule-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 999px;
    background: #12b8bf;
    flex-shrink: 0;
}
.mine-help-collapse {
    margin-bottom: 16px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e7edf4;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.mine-help-collapse .van-collapse-item {
    background: transparent;
}
.mine-help-collapse .van-cell {
    padding: 16px;
    background: transparent;
}
.mine-help-collapse .van-cell__title {
    color: #101828;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}
.mine-help-collapse .van-collapse-item__content {
    padding: 0 16px 16px;
    background: transparent;
}
.mine-help-answer {
    color: #667085;
    font-size: 14px;
    line-height: 1.7;
}
.mine-help-support-card {
    padding: 18px 16px;
}
.mine-help-support-card .settings-primary-btn {
    margin-top: 0;
}

@media (max-width: 420px) {
    .trade-match-card {
        padding: 8px 8px 8px;
    }

    .trade-match-ring {
        width: 62px;
        height: 62px;
        padding: 6px;
    }

    .trade-match-logo-shell {
        width: 26px;
        height: 26px;
    }

    .trade-match-logo {
        width: 16px;
        height: 16px;
    }

    .trade-match-products-title {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .trade-page .trade-scrolling-item {
        width: 58px;
        margin-right: 4px;
        padding: 4px 3px 4px;
    }

    .trade-page .trade-scrolling-img {
        width: 44px;
        height: 44px;
    }

    .trade-page .trade-scrolling-name {
        height: 16px;
        font-size: 7px;
    }

    .trade-scrolling-price {
        font-size: 8px;
    }
}

html[data-theme="dark"] .settings-page,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-page {
    background: #0d171b;
}

html[data-theme="dark"] .settings-nav-bar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-nav-bar {
    --van-nav-bar-title-text-color: #f8fafc !important;
}

html[data-theme="dark"] .settings-nav-bar .van-nav-bar__title,
html[data-theme="dark"] .settings-section-title,
html[data-theme="dark"] .settings-row-title,
html[data-theme="dark"] .settings-theme-btn,
html[data-theme="dark"] .settings-action-btn,
html[data-theme="dark"] .settings-link-btn,
html[data-theme="dark"] .settings-select,
html[data-theme="dark"] .mine-info-title,
html[data-theme="dark"] .mine-subpage-title,
html[data-theme="dark"] .mine-metric-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-nav-bar .van-nav-bar__title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-section-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-row-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-theme-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-action-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-link-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-select,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-info-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-subpage-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-metric-value {
    color: #f8fafc;
}

html[data-theme="dark"] .settings-page-desc,
html[data-theme="dark"] .settings-current-lang,
html[data-theme="dark"] .settings-row-desc,
html[data-theme="dark"] .settings-theme-value,
html[data-theme="dark"] .mine-info-desc,
html[data-theme="dark"] .mine-subpage-copy,
html[data-theme="dark"] .mine-highlight-label,
html[data-theme="dark"] .mine-analysis-label,
html[data-theme="dark"] .mine-metric-title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-page-desc,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-current-lang,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-row-desc,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-theme-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-info-desc,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-subpage-copy,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-highlight-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-analysis-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-metric-title {
    color: #9fb6ba;
}

html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .mine-info-card,
html[data-theme="dark"] .mine-metric-card,
html[data-theme="dark"] .mine-highlight-card,
html[data-theme="dark"] .mine-analysis-card,
html[data-theme="dark"] .mine-team-action-btn,
html[data-theme="dark"] .mine-help-collapse,
html[data-theme="dark"] .mine-notice-card,
html[data-theme="dark"] .mine-toolbar-btn,
html[data-theme="dark"] .mine-segmented-btn,
html[data-theme="dark"] .settings-theme-btn,
html[data-theme="dark"] .settings-action-btn,
html[data-theme="dark"] .settings-link-btn,
html[data-theme="dark"] .settings-select,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-info-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-metric-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-highlight-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-analysis-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-team-action-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-help-collapse,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-notice-card,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-toolbar-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-segmented-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-theme-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-action-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-link-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .settings-select {
    background: rgba(20, 35, 39, 0.96);
    border-color: rgba(72, 114, 120, 0.66);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .mine-subpage-badge,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-subpage-badge {
    background: rgba(13, 23, 27, 0.54);
    color: #9de7eb;
}

html[data-theme="dark"] .mine-subpage-hero,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-subpage-hero {
    background: linear-gradient(135deg, rgba(22, 80, 85, 0.82) 0%, rgba(17, 34, 37, 0.88) 100%);
    border-color: rgba(79, 181, 188, 0.22);
}

html[data-theme="dark"] .mine-notice-tag,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-notice-tag {
    background: rgba(17, 184, 191, 0.2);
    color: #9de7eb;
}

html[data-theme="dark"] .mine-highlight-value,
html[data-theme="dark"] .mine-analysis-value,
html[data-theme="dark"] .mine-section-label,
html[data-theme="dark"] .mine-toolbar-btn,
html[data-theme="dark"] .mine-team-action-btn,
html[data-theme="dark"] .mine-help-collapse .van-cell__title,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-highlight-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-analysis-value,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-section-label,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-toolbar-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-team-action-btn,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-help-collapse .van-cell__title {
    color: #f8fafc;
}

html[data-theme="dark"] .mine-team-action-btn .van-icon,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-team-action-btn .van-icon {
    color: #9de7eb;
}

html[data-theme="dark"] .mine-help-answer,
html[data-theme="dark"] .mine-team-rule-item,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-help-answer,
html:not([data-theme="blue"]):not([data-theme="orange"]) .mine-team-rule-item {
    color: #9fb6ba;
}

@media (max-width: 420px) {
    .mine-subpage-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mine-toolbar-btn {
        width: 100%;
    }

    .mine-highlight-grid,
    .mine-analysis-grid,
    .mine-team-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.scroll-notice {
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 12px;
    color: white;
}

/* Menu Items Custom Style */
.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}
.menu-item:active {
    background-color: rgba(0,0,0,0.05);
}
.menu-item:last-child {
    border-bottom: none;
}
.menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}
.menu-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-main);
}

/* Slide Up Animation for Notice */
.slide-up-enter-active,
.slide-up-leave-active {
  transition: all 0.5s ease;
}

.slide-up-enter-from {
  transform: translateY(20px);
  opacity: 0;
}

.slide-up-leave-to {
  transform: translateY(-20px);
  opacity: 0;
}

/* Ensure Tabbar Theme Adaptation（明色主题使用中性底栏；底栏顶部分割线与顶部一致） */
.van-tabbar {
    background-color: var(--nav-bg) !important;
    min-height: var(--home-nav-height);
    border-top: 1px solid var(--home-divider-light) !important;
    transition: background-color 0.3s, border-color 0.3s;
}
html[data-theme="dark"] .van-tabbar,
html:not([data-theme="blue"]):not([data-theme="orange"]) .van-tabbar {
    border-top: 1px solid var(--home-divider-dark) !important;
}
html[data-theme="blue"] .van-tabbar,
html[data-theme="orange"] .van-tabbar {
    background-color: #ffffff !important;
}
html[data-theme="blue"] .van-tabbar-item,
html[data-theme="orange"] .van-tabbar-item {
    background-color: #ffffff !important;
    color: #646566 !important;
}
html[data-theme="blue"] .van-tabbar-item--active,
html[data-theme="orange"] .van-tabbar-item--active {
    color: var(--primary) !important;
    background-color: rgba(17, 184, 191, 0.08) !important;
}

.van-tabbar-item {
    background-color: var(--nav-bg) !important;
    color: var(--nav-text) !important;
    min-height: var(--home-nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.van-tabbar-item--active {
    color: var(--nav-active) !important;
    background-color: var(--nav-bg) !important;
}
html[data-theme="blue"] .van-tabbar-item--active .van-tabbar-item__icon,
html[data-theme="orange"] .van-tabbar-item--active .van-tabbar-item__icon,
html[data-theme="blue"] .van-tabbar-item--active .van-tabbar-item__text,
html[data-theme="orange"] .van-tabbar-item--active .van-tabbar-item__text {
    color: var(--primary) !important;
}

/* Scrolling Background */
.scrolling-bg-container-white {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.scrolling-bg-content {
    display: flex;
    width: max-content;
    animation: scrollLeft 10s linear infinite;
}

.scrolling-item-large {
    width: 160px;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scrolling-img-large {
    width: 100%;
    height: 160px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f8f8f8;
}

.scrolling-name-large {
    font-size: 14px;
    color: #000;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: 5px;
    font-weight: 500;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.stop-animation {
    animation: none !important;
}

.trade-dialog-card {
    padding: 18px 18px 16px;
    background: var(--card-bg);
    max-height: min(82vh, 760px);
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
}

.trade-bottom-sheet {
    background: transparent;
}

.trade-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.trade-dialog-title,
.trade-dialog-order-no {
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    word-break: break-all;
}

.trade-dialog-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 32px;
}

.trade-dialog-close .van-icon {
    font-size: 24px;
}

.trade-dialog-summary-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trade-dialog-summary-thumb,
.trade-dialog-item-thumb {
    background-size: cover;
    background-position: center;
    background-color: #ffffff;
    border: 1px solid rgba(224, 234, 238, 0.9);
}

.trade-dialog-summary-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 10px;
}

.trade-dialog-summary-main {
    min-width: 0;
    flex: 1;
}

.trade-dialog-summary-name,
.trade-dialog-item-name {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.trade-dialog-summary-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trade-dialog-summary-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #9a5b1b;
    font-size: 14px;
}

.trade-dialog-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.trade-dialog-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17, 184, 191, 0.12);
    color: #10a7b2;
    font-size: 14px;
    line-height: 1;
}

.trade-dialog-time,
.trade-dialog-item-meta {
    margin-top: 8px;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.35;
}

.trade-dialog-section-title {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.trade-dialog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trade-dialog-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trade-dialog-item-thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 8px;
}

.trade-dialog-item-main {
    min-width: 0;
    flex: 1;
}

.trade-dialog-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-dialog-item-qty {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.2;
    flex: 0 0 auto;
}

.trade-dialog-summary--process .trade-dialog-item-meta {
    margin-top: 6px;
}

.trade-process-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-bottom: 10px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(220, 230, 234, 0.9);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    font-size: 15px;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.trade-process-step-icon {
    flex: 0 0 auto;
    font-size: 18px;
    color: #667085;
}

.trade-process-step-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}

.trade-process-step--active {
    border-color: rgba(17, 184, 191, 0.7);
    background: rgba(17, 184, 191, 0.12);
    color: #0d8f97;
    box-shadow: 0 0 0 2px rgba(17, 184, 191, 0.08) inset;
}

.trade-process-step--active .trade-process-step-icon {
    color: currentColor;
}

.trade-process-step--running {
    position: relative;
}

html[data-theme="dark"] .trade-dialog-summary-status,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-dialog-summary-status {
    color: #f4bf7a;
}

html[data-theme="dark"] .trade-dialog-chip,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-dialog-chip {
    background: rgba(17, 184, 191, 0.18);
    color: #7be4ea;
}

html[data-theme="dark"] .trade-process-step,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-process-step {
    border-color: rgba(72, 114, 120, 0.75);
    background: rgba(20, 35, 39, 0.9);
    color: #e6f8f9;
}

html[data-theme="dark"] .trade-process-step-icon,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-process-step-icon {
    color: #9fb6ba;
}

html[data-theme="dark"] .trade-process-step--active,
html:not([data-theme="blue"]):not([data-theme="orange"]) .trade-process-step--active {
    border-color: rgba(44, 202, 213, 0.78);
    background: rgba(17, 184, 191, 0.2);
    color: #b9fbff;
    box-shadow: 0 0 0 2px rgba(17, 184, 191, 0.14) inset;
}

.trade-process-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
    padding: 32px 16px 20px;
}

.trade-process-complete-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 184, 191, 0.12);
    color: #0ea5ad;
}

.trade-process-complete-icon .van-icon {
    font-size: 40px;
}

.trade-process-complete-title {
    margin-top: 18px;
    color: var(--text-main);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.trade-process-complete-desc {
    margin-top: 8px;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.5;
}
