/* ============================================================
   enhance.css — Bright Future 品牌增强层 v2
   融合官网 brightfuture.com.hk 设计语言：
   - 品牌红 #DC1A22 / #D80015（按钮、高亮、强调）
   - 深蓝紫 #232F84（标题、主文字、深色背景）
   - 灰阶 #F3F3F3 / #EFEFEF（背景分区）/ #4A4A4A（正文）
   - 橙色 #F7941D（点缀、通知）
   - STHeiti 字体 / Bootstrap 网格 / 4px 基准圆角
   - 官网标志性 7px 红色底边标题条
   ============================================================ */

/* === 1. 全局品牌变量 === */
:root {
    /* Bright Future 官方色板 */
    --bf-red: #DC1A22;
    --bf-red-dark: #B0151B;
    --bf-red-bright: #D80015;
    --bf-blue: #232F84;
    --bf-blue-deep: #1A2358;
    --bf-blue2: #2C2E92;
    --bf-orange: #F7941D;
    --bf-text: #232F84;
    --bf-text-grey: #4A4A4A;
    --bf-text-mid: #696969;
    --bf-bg: #FFFFFF;
    --bf-bg-grey: #F3F3F3;
    --bf-bg-grey-light: #EFEFEF;
    --bf-bg-warm: #FBFAFA;
    --bf-border: #CCC5C5;
    --bf-shadow-red: rgba(220, 26, 34, 0.25);
    --bf-shadow-blue: rgba(35, 47, 132, 0.25);

    /* 语义别名（沿用原变量名，兼容现有组件） */
    --brand: var(--bf-blue);
    --brand-light: var(--bf-blue2);
    --brand-dark: var(--bf-blue-deep);
    --brand-glow: var(--bf-shadow-blue);
    --accent: var(--bf-red);
    --paper: var(--bf-bg-grey);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(35, 47, 132, 0.12);
    --shadow-brand: 0 4px 20px var(--bf-shadow-blue);
    --shadow-red: 0 4px 20px var(--bf-shadow-red);

    /* 官网字体 */
    --font-bf: 'STHeiti', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* 圆角 — 官网基准 4px */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* 动效 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 0.15s;
    --dur-mid: 0.3s;
    --dur-slow: 0.5s;
}

/* === 2. 全局字体与色彩基调 === */
body, uni-app, uni-page {
    font-family: var(--font-bf) !important;
    color: var(--bf-text) !important;
    -webkit-font-smoothing: antialiased;
}

uni-page, uni-view, uni-text, uni-button, uni-input {
    transition-timing-function: var(--ease-out) !important;
}

/* 主题文字 — 深蓝紫（仅作用于浅底容器，深色容器内不覆写） */
.text, .title, .label {
    color: var(--bf-text) !important;
}

/* 深色底容器内的文字一律继承其自身的浅色设定，禁止被全局深蓝覆盖。
   .market-summary / .profile / .hero / .panel 等深底区块由各自规则决定颜色。 */
.market-summary uni-text,
.market-summary span,
.market-summary b,
.profile uni-text,
.profile span,
.profile b,
.hero uni-text,
.hero span,
.login .panel uni-text,
.login .panel span,
.dark-surface uni-text,
.dark-surface span {
    color: inherit !important;
}

/* === 3. 官网风格分区标题 — 左侧 7px 红条（官网 .index-title::after 同款） === */
.section-title, .nav-title, .page-title, h1, h2, h3 {
    color: var(--bf-blue) !important;
    font-family: var(--font-bf) !important;
    letter-spacing: 0.5px;
}

/* 官网签名: 标题左侧 7px 红条 (index-title::after) */
.section-header::before,
.section-head::before,
.index-title::before,
.list-title::before,
.table-head::before {
    content: '' !important;
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-right: 8px;
    vertical-align: -0.12em;
    background: var(--bf-red);
    border-radius: 1px;
}

/* 保留底部 7px 红条签名于 hero/横幅（官网 home-banner .content） */
.login .hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 7px;
    background: var(--bf-red);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* === 3b. 官网"了解更多"链接 — 红字 active 变蓝（inner-session a.link 同款） === */
a.link, .link-btn, .more-link,
.section-head .muted, .section-head uni-text.muted {
    color: var(--bf-red) !important;
    transition: color var(--dur-fast) linear;
}
a.link:active, .link-btn:active, .more-link:active,
.section-head .muted:active {
    color: var(--bf-blue) !important;
}

/* === 3c. 官网 swiper 分页点 — 蓝底红 active === */
uni-swiper .uni-swiper-dot {
    width: 14px !important;
    height: 14px !important;
    background: rgba(35, 47, 132, 0.3) !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
    transition: background var(--dur-fast);
}
uni-swiper .uni-swiper-dot-active {
    background: var(--bf-red) !important;
}

/* === 4. 卡片 — 官网白色卡片 + 蓝色阴影 === */
.card, .chart-card, .panel, .hero, .product-card, .item-card {
    background: var(--bf-bg) !important;
    border: 1px solid var(--bf-bg-grey-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 12px rgba(35, 47, 132, 0.08), 0 0 0 1px rgba(35, 47, 132, 0.03) !important;
    transition: box-shadow var(--dur-mid) var(--ease-out),
                transform var(--dur-mid) var(--ease-spring) !important;
}

.card:active, .item-card:active {
    transform: scale(0.98) !important;
    box-shadow: 0 4px 24px rgba(35, 47, 132, 0.15) !important;
}

/* 卡片顶部红色装饰线 — 官网卡片风格 */
.card::before, .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--bf-red), transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--dur-mid);
}
.card:active::before, .product-card:active::before {
    opacity: 1;
}

/* === 5. 按钮增强 — 官网红蓝双色系 === */
uni-button, .btn, button {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-bf) !important;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all var(--dur-fast) var(--ease-spring) !important;
}

/* 主按钮 — 官网品牌红 */
uni-button[type=primary], .btn-primary, .btn[primary] {
    background: linear-gradient(135deg, var(--bf-red) 0%, var(--bf-red-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px var(--bf-shadow-red) !important;
}

uni-button[type=primary]:active, .btn-primary:active {
    background: linear-gradient(135deg, var(--bf-red-dark) 0%, #9A1217 100%) !important;
    transform: scale(0.96) !important;
    box-shadow: 0 2px 10px var(--bf-shadow-red) !important;
}

/* 次按钮 — 官网深蓝紫 */
.btn-secondary, .btn[secondary] {
    background: var(--bf-blue) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px var(--bf-shadow-blue) !important;
}

/* 描边按钮 — 官网白底蓝边 */
.btn-outline, .btn[outline] {
    background: var(--bf-bg) !important;
    color: var(--bf-blue) !important;
    border: 1px solid var(--bf-blue) !important;
}

/* 涟漪效果 */
uni-button::after, .btn::after, button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
    transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

uni-button:active::after, .btn:active::after, button:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

/* === 5b. 触摸目标规范 — WCAG 2.5.5 最小 44px 热区 === */
uni-button, .btn, button {
    min-height: 44px !important;
    min-width: 44px !important;
}

/* 链接/文本按钮/可点击行 也给足热区 */
.links uni-text,
.login .links uni-text,
uni-view.clickable,
.cell, .list-item, uni-view[onclick] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* 登录页两个文本链接铺满高度 */
.login .links {
    align-items: stretch;
}
.login .links uni-text {
    padding: 8px 2px;
}

/* 导航返回键 */
.back, .nav-back, .nav .back {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === 5c. 表单可用性 — 16px 字号防 iOS 缩放 + input 撑满 === */
uni-input input, .field input, input[type=text], input[type=password], input[type=tel], input[type=number] {
    font-size: 16px !important;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}

/* 去掉 iOS 输入框圆角系统样式 */
input[type=text], input[type=password], input[type=tel], input[type=number] {
    -webkit-appearance: none;
    appearance: none;
}

/* 占位符颜色统一 */
uni-input input::placeholder, input::placeholder, textarea::placeholder {
    color: #A0A6B8;
    opacity: 1;
}

/* === 6. 输入框 — 官网白底蓝focus === */
uni-input, input, textarea {
    border-radius: var(--radius-sm) !important;
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out) !important;
}

uni-input:focus-within, input:focus, textarea:focus {
    border-color: var(--bf-blue) !important;
    box-shadow: 0 0 0 3px rgba(35, 47, 132, 0.12) !important;
}

/* === 7. 页面切换动画 === */
uni-page-wrapper {
    animation: pageEnter var(--dur-mid) var(--ease-out) both;
}

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

uni-page-wrapper.page-leaving {
    animation: pageLeave var(--dur-fast) var(--ease-out) both;
}

@keyframes pageLeave {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* === 8. 列表交错入场 — 仅限登录页 hero/panel 首屏，避免全局闪侧移 === */
.login .hero > uni-view:nth-child(1) { animation: staggerIn var(--dur-mid) var(--ease-out) 0.00s both; }
.login .hero > uni-view:nth-child(2) { animation: staggerIn var(--dur-mid) var(--ease-out) 0.05s both; }
.login .hero > uni-view:nth-child(3) { animation: staggerIn var(--dur-mid) var(--ease-out) 0.10s both; }
.login .panel > uni-view:nth-child(1) { animation: staggerIn var(--dur-mid) var(--ease-out) 0.15s both; }
.login .panel > uni-view:nth-child(n+2) { animation: staggerIn var(--dur-mid) var(--ease-out) 0.22s both; }
.detail-page .summary > uni-view:nth-child(1) { animation: staggerIn var(--dur-mid) var(--ease-out) 0.05s both; }
.detail-page .summary > uni-view:nth-child(2) { animation: staggerIn var(--dur-mid) var(--ease-out) 0.10s both; }

@keyframes staggerIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === 9. 页面背景 — 官网浅灰白 === */
.page, .detail-page {
    background: linear-gradient(180deg, var(--bf-bg) 0%, var(--bf-bg-warm) 30%, var(--bf-bg-grey) 100%) !important;
    min-height: 100vh;
}

/* === 10. 登录页 — 官网深蓝紫主背景 === */
.login {
    background:
        radial-gradient(ellipse at 20% 10%, rgba(220, 26, 34, 0.18) 0%, transparent 50%),
        linear-gradient(160deg, var(--bf-blue-deep) 0%, var(--bf-blue) 45%, var(--bf-blue2) 100%) !important;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* 登录页 hero 副标题可读性 — 56% 白太虚 */
.login .hero .copy, .login .hero .eyebrow {
    letter-spacing: 0.16em;
}
.login .hero .copy {
    color: rgba(255, 255, 255, 0.78) !important;
}
.login .hero .eyebrow {
    color: #FCC877 !important;
    font-weight: 600;
}
.login .hero .headline {
    font-size: 7.2vw !important;
    text-shadow: 0 2px 12px rgba(20, 24, 63, 0.35);
}

.login::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 148, 29, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: floatSlow 8s ease-in-out infinite;
}

.login::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 26, 34, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: floatSlow 10s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -10px) scale(1.05); }
}

/* 登录面板 — 白色磨砂玻璃 */
.login .panel {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 16px 48px rgba(26, 35, 88, 0.35), 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* 登录页文字 — 官网深蓝 */
.login .panel .title, .login .panel uni-text {
    color: var(--bf-blue) !important;
}

/* 在线人数卡 — 深底浅字，修对比度 */
.login .login-online, .login-online {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #E4E4E4 !important;
}
.login .online-label, .login .online-status, .login-online .online-label, .login-online .online-status {
    color: var(--bf-text-grey) !important;
}
.login .online-status, .login-online .online-status {
    width: 2.8vw !important;
    height: 2.8vw !important;
    min-width: 8px !important;
    min-height: 8px !important;
    background: #E5484D !important;
    color: transparent !important;
    animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* hero 图上文字全白(对比深蓝底) */
.login .hero, .login .hero uni-text {
    color: #fff !important;
}

/* 登录页品牌顶部装饰 — 官网红色条 */
.login .hero::before, .login .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, var(--bf-red), var(--bf-orange), var(--bf-red));
    border-radius: 0 0 4px 4px;
    opacity: 0.9;
}

/* === 11. K线图 — 官网红蓝配色 === */
.chart-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md) !important;
    background: linear-gradient(135deg, rgba(35, 47, 132, 0.02), rgba(255, 255, 255, 0.9)) !important;
    border: 1px solid var(--bf-bg-grey-light) !important;
}

svg.chart {
    width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 2px 8px rgba(35, 47, 132, 0.08));
}

/* 网格 */
.grid line {
    stroke: rgba(35, 47, 132, 0.08) !important;
    stroke-width: 1 !important;
    stroke-dasharray: 4 6 !important;
}

/* 涨蜡烛 — 官网红（港股/国际惯例红涨） */
.candle-up line {
    stroke: var(--bf-red) !important;
    stroke-width: 1.5 !important;
}
.candle-up rect {
    fill: var(--bf-red) !important;
    rx: 1 !important;
    ry: 1 !important;
}

/* 跌蜡烛 — 深蓝绿 */
.candle-down line {
    stroke: #16A085 !important;
    stroke-width: 1.5 !important;
}
.candle-down rect {
    fill: #16A085 !important;
    rx: 1 !important;
    ry: 1 !important;
}

/* 价格线 — 官网橙色虚线 */
.price-line {
    stroke: var(--bf-orange) !important;
    stroke-width: 1.2 !important;
    stroke-dasharray: 6 4 !important;
    animation: pricePulse 2s var(--ease-smooth) infinite;
}

@keyframes pricePulse {
    0%, 100% { stroke-opacity: 0.5; }
    50% { stroke-opacity: 1; }
}

/* 空图表 */
.empty-chart {
    color: rgba(35, 47, 132, 0.3) !important;
    font-size: 14px !important;
    padding: 3rem !important;
    text-align: center;
}

/* 图表tab — 官网胶囊蓝 */
.chart-tabs uni-text {
    transition: all var(--dur-fast) var(--ease-spring) !important;
    border-radius: var(--radius-pill) !important;
    padding: 4px 14px !important;
    color: var(--bf-text) !important;
}
.chart-tabs uni-text.active {
    background: var(--bf-blue) !important;
    color: #fff !important;
    box-shadow: 0 3px 12px var(--bf-shadow-blue) !important;
    transform: scale(1.05);
}

/* === 12. TabBar — 官网白底磨砂 + 红色激活 === */
uni-tabbar .uni-tabbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--bf-bg-grey-light) !important;
    box-shadow: 0 -2px 20px rgba(35, 47, 132, 0.08) !important;
}

uni-tabbar .uni-tabbar__item {
    transition: transform var(--dur-fast) var(--ease-spring) !important;
}

uni-tabbar .uni-tabbar__item:active {
    transform: scale(0.92);
}

uni-tabbar .uni-tabbar__icon {
    transition: transform var(--dur-fast) var(--ease-spring) !important;
}

uni-tabbar .uni-tabbar__item.uni-tabbar__item--active .uni-tabbar__icon {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 2px 6px var(--bf-shadow-red));
}

/* === 13. 骨架屏 === */
.skeleton {
    background: linear-gradient(90deg, var(--bf-bg-grey) 25%, var(--bf-bg-grey-light) 50%, var(--bf-bg-grey) 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm) !important;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* === 14. Toast — 深蓝紫磨砂 === */
uni-toast, .uni-toast {
    background: rgba(35, 47, 132, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    animation: toastIn var(--dur-mid) var(--ease-spring) both;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === 15. 数字滚动 — 红涨蓝跌 === */
.num-animate {
    display: inline-block;
    transition: transform var(--dur-mid) var(--ease-spring);
}

.num-animate.flash-up {
    animation: flashUp 0.4s var(--ease-out);
    color: var(--bf-red) !important;
}

.num-animate.flash-down {
    animation: flashDown 0.4s var(--ease-out);
    color: #16A085 !important;
}

@keyframes flashUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

@keyframes flashDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(4px); }
    100% { transform: translateY(0); }
}

/* === 16. 弹窗 === */
uni-modal, .uni-modal {
    animation: modalIn var(--dur-mid) var(--ease-spring) both;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* === 17. 导航栏 — 官网白底 + 红色顶条 === */
.nav, .navbar, .header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 3px solid var(--bf-red) !important;
    box-shadow: 0 2px 12px rgba(35, 47, 132, 0.06) !important;
}

/* === 18. 防洪护盾 — 深蓝紫品牌 === */
.flood-shield {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(220, 26, 34, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--bf-blue-deep), var(--bf-blue));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    animation: shieldIn 0.4s var(--ease-out);
}

@keyframes shieldIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.flood-shield .shield-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(220, 26, 34, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: shieldPulse 2s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 26, 34, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(220, 26, 34, 0); }
}

.flood-shield .shield-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 2px;
    color: #fff !important;
}

.flood-shield .shield-desc {
    font-size: 14px;
    opacity: 0.75;
    max-width: 280px;
    line-height: 1.7;
    color: #fff !important;
}

.flood-shield .shield-count {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.5;
    color: #fff !important;
}

/* === 19. 性能优化 === */
.card, .panel, .chart-wrap, uni-tabbar, .nav, .login .hero {
    transform: translateZ(0);
    will-change: transform;
}

uni-scroll-view {
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
}

/* === 20. 暗色模式 === */
@media (prefers-color-scheme: dark) {
    :root {
        --bf-bg: #14161F;
        --bf-bg-grey: #1B1E29;
        --bf-bg-grey-light: #252936;
        --paper: #1B1E29;
    }
    .page, .detail-page {
        background: linear-gradient(180deg, #14161F 0%, #181B26 50%, #1B1E29 100%) !important;
    }
    .card, .panel, .chart-card {
        background: #1E2230 !important;
        border-color: rgba(255, 255, 255, 0.06) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
    }
    .card uni-text, .panel uni-text {
        color: #C8CDE0 !important;
    }
    .nav, .navbar, .header {
        background: rgba(20, 22, 31, 0.92) !important;
        border-bottom-color: var(--bf-red) !important;
    }
    uni-toast, .uni-toast {
        background: rgba(27, 30, 41, 0.95) !important;
    }
}

/* === 21. 无障碍 === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === 22. 产品列表 — 官网商品卡片风格 === */
.product-item, .goods-item {
    background: var(--bf-bg) !important;
    border: 1px solid var(--bf-bg-grey-light) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    margin-bottom: 10px !important;
    transition: all var(--dur-fast) var(--ease-out) !important;
}

.product-item:active, .goods-item:active {
    border-color: var(--bf-red) !important;
    box-shadow: 0 2px 12px var(--bf-shadow-red) !important;
}

/* 价格 — 涨红跌绿 */
.price-up { color: var(--bf-red) !important; }
.price-down { color: #16A085 !important; }

/* === 23. 分隔线 === */
uni-view.divider, .divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bf-bg-grey-light), transparent) !important;
}

/* === 24. 官网品牌角标 === */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: rgba(220, 26, 34, 0.08);
    color: var(--bf-red) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.brand-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bf-red);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============================================================
   === 25. 官网深度适配 v3 — brightfuture.com.hk 签名还原 ===
   ============================================================ */

/* --- 25a. 顶部横幅区 — 官网 home-banner 白底 + 7px 红底边 --- */
.page .top {
    background: rgba(255, 255, 255, 0.76) !important;
    border-bottom: 7px solid var(--bf-red) !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    margin-bottom: 6px !important;
}

/* --- 25b. dock 导航 — 官网导航激活红色签名 --- */
.dock .item.on uni-text,
.dock .item.on span {
    color: var(--bf-red) !important;
    font-weight: 700 !important;
}
.dock .item.on::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 4px;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: var(--bf-red);
}
.dock .item {
    position: relative;
}

/* --- 25c. 快捷入口 — 官网图标按钮红 accent --- */
.quick .quick-item .quick-icon {
    border-radius: var(--radius-md) !important;
}
.quick .quick-item:active {
    transform: scale(0.95);
    transition: transform var(--dur-fast) var(--ease-spring);
}

/* --- 25d. 在线人数卡 — 官网蓝底白字 badge --- */
.online-card .online-number {
    color: var(--bf-blue) !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
}

/* --- 25e. 官网 footer 签名 — 浅灰底 + 蓝字链接 --- */
.dock {
    background: var(--bf-bg-grey) !important;
    border-top: 5px solid var(--bf-red) !important;
}
.dock .item uni-text,
.dock .item span {
    color: var(--bf-blue) !important;
    font-size: 11px !important;
}
.dock .item.on uni-text,
.dock .item.on span {
    color: var(--bf-red) !important;
}

/* ============================================================
   === 26. 设计系统 v3 — 类型阶梯 / 间距刻度 / 组件规范 ===
   ------------------------------------------------------------
   重构目标：把散落的 12 种字号、非整数 vw 内边距、不一致的
   圆角与阴影，收敛为一套 8pt 网格 + 模块化类型阶梯。
   所有数值均以 390px 视口为基准（rem = 52px @390）。
   ============================================================ */

:root {
    /* --- 类型阶梯 (modular scale, ratio ≈1.2) --- */
    --t-caption: 11px;   /* 辅助说明 / 时间戳 */
    --t-label:   12px;   /* 字段标签 / tab 文字 */
    --t-body-s:  13px;   /* 次要正文 */
    --t-body:    15px;   /* 正文基准 */
    --t-body-l:  17px;   /* 强调正文 / 列表主标题 */
    --t-title-s: 19px;   /* 卡片标题 */
    --t-title:   22px;   /* 区块标题 */
    --t-display-s: 28px; /* 页面主数字 */
    --t-display: 34px;   /* 资产总额 / 大数字 */

    /* --- 间距刻度 (8pt grid) --- */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --s-10: 40px;

    /* --- 字重 --- */
    --w-reg: 400;
    --w-med: 500;
    --w-semi: 600;
    --w-bold: 700;

    /* --- 层级阴影 (三层，克制) --- */
    --e-1: 0 1px 2px rgba(26, 35, 88, 0.06), 0 1px 3px rgba(26, 35, 88, 0.04);
    --e-2: 0 2px 6px rgba(26, 35, 88, 0.08), 0 4px 12px rgba(26, 35, 88, 0.05);
    --e-3: 0 8px 24px rgba(26, 35, 88, 0.12), 0 2px 8px rgba(26, 35, 88, 0.06);
}

/* --- 26a. 全局类型基准 — 统一行高与字距 --- */
body, uni-app, uni-page, uni-view, uni-text {
    font-family: var(--font-bf) !important;
    font-size: var(--t-body);
    line-height: 1.55;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

/* 数字统一等宽，避免跳动 */
.amount, .price, .num, b.amount, .online-number,
.balance, .profit, .quote b {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* --- 26b. 语义化文字层级 --- */
.eyebrow, .over, .caption, .hint, .time, .date {
    font-size: var(--t-caption) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: var(--w-med);
    opacity: 0.72;
}

.label, .field-label, .meta, .sub {
    font-size: var(--t-label) !important;
    font-weight: var(--w-med);
    letter-spacing: 0.02em;
}

.copy, .desc, .note, .tip {
    font-size: var(--t-body-s) !important;
    line-height: 1.65;
    opacity: 0.82;
}

/* 区块标题 — 22px，字距收紧，与红条对齐 */
.section-head, .section-title, .table-head, .index-title, .list-title {
    font-size: var(--t-title) !important;
    font-weight: var(--w-bold) !important;
    letter-spacing: -0.01em !important;
    color: var(--bf-blue) !important;
    line-height: 1.3;
}

/* 卡片标题 */
.card h3, .product .info b, .menu-item .menu-label {
    font-size: var(--t-body-l) !important;
    font-weight: var(--w-semi) !important;
    letter-spacing: -0.005em;
}

/* 页面主数字 — 大额资产 */
.balance-amount, .total-assets, .money-big {
    font-size: var(--t-display) !important;
    font-weight: var(--w-bold) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1;
}

/* --- 26c. 修复对比度：深色底上的文字必须为浅色 --- */
.market-summary {
    background: linear-gradient(135deg, var(--bf-blue-deep) 0%, var(--bf-blue) 100%) !important;
    color: #fff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--e-2) !important;
}
.market-summary uni-text,
.market-summary span {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: var(--t-label) !important;
    letter-spacing: 0.04em;
}
.market-summary b {
    color: #fff !important;
    font-size: var(--t-title-s) !important;
    font-weight: var(--w-bold) !important;
    font-variant-numeric: tabular-nums;
}
.market-summary b.up { color: #FF6B70 !important; }
.market-summary b.down { color: #4ADE80 !important; }

/* 筛选按钮 — 选中态实心红底白字（原为深蓝字压红底，2.33:1 不可读） */
.filters uni-text {
    padding: 6px 14px !important;
    border-radius: var(--radius-pill) !important;
    background: rgba(35, 47, 132, 0.06) !important;
    color: var(--bf-blue) !important;
    font-size: var(--t-label) !important;
    font-weight: var(--w-med) !important;
    transition: all var(--dur-fast) var(--ease-smooth);
}
.filters uni-text span,
.filters uni-text b {
    color: inherit !important;
    font-size: inherit !important;
}
.filters uni-text.on {
    background: var(--bf-red) !important;
    color: #fff !important;
    font-weight: var(--w-semi) !important;
    box-shadow: 0 2px 8px var(--bf-shadow-red) !important;
}

/* user 页深色 profile 卡内的浅色文字保护 */
.profile {
    background: linear-gradient(135deg, var(--bf-blue-deep) 0%, var(--bf-blue2) 60%, #3A3FA8 100%) !important;
    box-shadow: var(--e-3) !important;
}
.profile .name,
.profile .name uni-text,
.profile .name span {
    color: #fff !important;
    font-size: var(--t-title-s) !important;
    font-weight: var(--w-semi) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.profile .avatar {
    color: #fff !important;
    font-weight: var(--w-bold) !important;
    background: linear-gradient(135deg, var(--bf-orange), #E8720C) !important;
    box-shadow: 0 3px 12px rgba(247, 148, 29, 0.4);
}
/* 徽章：提高对比到可读 */
.profile .credit-badge {
    color: #FFE9C4 !important;
    background: rgba(247, 148, 29, 0.22) !important;
    border-color: rgba(247, 148, 29, 0.45) !important;
    font-size: var(--t-caption) !important;
    font-weight: var(--w-semi) !important;
}
.profile .opening-code {
    color: #FFF3DC !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
    font-size: var(--t-label) !important;
    font-weight: var(--w-semi) !important;
    letter-spacing: 0.03em;
}

/* 登录页深色 hero 文字保护 */
.login .hero {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.login .hero .headline {
    color: #fff !important;
    font-size: var(--t-display) !important;
    font-weight: var(--w-bold) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    text-shadow: 0 2px 12px rgba(12, 16, 44, 0.3);
}
.login .hero .eyebrow {
    color: #FCC877 !important;
    opacity: 1 !important;
    font-size: var(--t-caption) !important;
    letter-spacing: 0.14em !important;
}
.login .hero .copy {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: var(--t-body) !important;
    line-height: 1.6 !important;
}

/* 登录页在线状态 — 清除原模板绿色残留，统一品牌红 */
.login .login-online .online-status uni-text,
.login .login-online .online-status span {
    color: transparent !important;
    background: transparent !important;
}
.login .login-online .online-status {
    background: var(--bf-red) !important;
    box-shadow: 0 0 0 3px rgba(220, 26, 34, 0.18);
}
.login .login-online .online-label b,
.login .login-online .online-value b {
    color: var(--bf-blue) !important;
}
.login .login-online .online-label uni-text,
.login .login-online .online-label span {
    color: var(--bf-text-mid) !important;
}

/* --- 26d. 卡片体系统一 — 去掉杂乱的边框+阴影叠加 --- */
.card, .product.card, .item-card, .panel, .summary, .chart-card, .trade {
    background: var(--bf-bg) !important;
    border: 1px solid rgba(35, 47, 132, 0.07) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--e-1) !important;
    transition: box-shadow var(--dur-mid) var(--ease-out),
                transform var(--dur-mid) var(--ease-out) !important;
}
.card:active, .product.card:active, .item-card:active {
    transform: scale(0.988) !important;
    box-shadow: var(--e-2) !important;
}

/* 深色卡豁免：profile / market-summary 保持深底渐变，不被 .card 刷白 */
.profile.card,
.card.profile {
    background: linear-gradient(135deg, var(--bf-blue-deep) 0%, var(--bf-blue2) 60%, #3A3FA8 100%) !important;
    border-color: transparent !important;
    box-shadow: var(--e-3) !important;
}
.market-summary.card {
    background: linear-gradient(135deg, var(--bf-blue-deep) 0%, var(--bf-blue) 100%) !important;
    border-color: transparent !important;
}

/* 列表卡片内边距统一到 8pt 刻度 */
.product.card, .menu-item.card {
    padding: var(--s-3) var(--s-4) !important;
}
.product.card .info b {
    font-size: var(--t-body-l) !important;
    color: var(--bf-blue) !important;
}

/* --- 26e. 顶部导航统一 --- */
.nav {
    background: var(--bf-bg) !important;
    border-bottom: 1px solid rgba(35, 47, 132, 0.08) !important;
    padding: var(--s-3) var(--s-4) !important;
}
.nav .name {
    font-size: var(--t-title-s) !important;
    font-weight: var(--w-bold) !important;
    color: var(--bf-blue) !important;
    letter-spacing: -0.01em;
}
.nav .over {
    font-size: var(--t-caption) !important;
    color: var(--bf-text-mid) !important;
    opacity: 1 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    font-weight: var(--w-med);
}

/* --- 26f. 主按钮 — 统一高度、圆角、按压反馈 --- */
uni-button, .btn, button:not(.admin-btn) {
    min-height: 44px;
    border-radius: var(--radius-md) !important;
    font-size: var(--t-body-l) !important;
    font-weight: var(--w-semi) !important;
    letter-spacing: 0.02em;
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out),
                background var(--dur-fast) var(--ease-smooth) !important;
}
uni-button:active, .btn:active {
    transform: scale(0.97) !important;
}

/* --- 26g. 空态与加载 — 提升可读性 --- */
.empty {
    color: var(--bf-text-mid) !important;
    padding: var(--s-10) var(--s-4) !important;
}
.empty uni-view {
    color: rgba(35, 47, 132, 0.16) !important;
    font-size: 40px !important;
    line-height: 1 !important;
}
.empty uni-text, .empty span {
    font-size: var(--t-body-s) !important;
    color: var(--bf-text-mid) !important;
    letter-spacing: 0.02em;
}

/* --- 26h. 分隔与呼吸 --- */
.section, .list, .filters, .market-summary, .search, .table-head {
    margin-bottom: var(--s-4);
}

/* 页面左右留白统一 16px（原 15px + 各类 vw 混杂） */
.page, .detail-page, .market-page, .login {
    padding-left: var(--s-4) !important;
    padding-right: var(--s-4) !important;
    box-sizing: border-box;
}

/* dock 不被内容遮挡 */
.page, .detail-page, .market-page {
    padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
}

/* --- 26i. 减少动效偏好 --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   === 27. 类型阶梯归一化 — 消除 vw 换算产生的碎字号 ===
   ------------------------------------------------------------
   原样式用 vw 定义字号，在 390px 视口下产出
   18.7 / 19.8 / 20.8 / 21.8 / 23.9 / 25 / 28.1 / 29.1 等
   非整数且无系统的值。此处按语义归一到 26 节的刻度。
   ============================================================ */

/* 页面大标题（原 5.0667vw ≈ 19.8px）→ 19px */
.nav .name,
.name,
.page-title {
    font-size: var(--t-title-s) !important;
    font-weight: var(--w-bold) !important;
    color: var(--bf-blue) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.35 !important;
}

/* 首页问候语（原 5.0667vw ≈ 19.8px）→ 22px 提升为视觉锚点 */
.page .hello {
    font-size: var(--t-title) !important;
    font-weight: var(--w-bold) !important;
    color: var(--bf-blue) !important;
    letter-spacing: -0.015em !important;
    line-height: 1.25 !important;
}

/* 产品名（原 3.6vw ≈ 28.1px 过大）→ 17px */
.product-name,
.product .info b,
.product-grid .product .info b {
    font-size: var(--t-body-l) !important;
    font-weight: var(--w-semi) !important;
    color: var(--bf-blue) !important;
    letter-spacing: -0.005em !important;
}

/* 产品代码 / 次要标识（原 2.6667vw ≈ 20.8px 偏大）→ 11px */
.product-code,
.product .info uni-text span,
.product-grid .product .info uni-text {
    font-size: var(--t-caption) !important;
    letter-spacing: 0.06em !important;
    color: var(--bf-text-mid) !important;
    opacity: 1 !important;
    font-weight: var(--w-med) !important;
    text-transform: uppercase;
}

/* 价格数字（原 6.4vw ≈ 25px）→ 22px，等宽对齐 */
.amount,
.product .quote b,
.product-grid .amount {
    font-size: var(--t-title) !important;
    font-weight: var(--w-bold) !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
}

/* 余额宝总额（原 8.2667vw ≈ 64.5px 失控）→ 34px */
.total,
.balance-amount {
    font-size: var(--t-display) !important;
    font-weight: var(--w-bold) !important;
    letter-spacing: -0.025em !important;
    line-height: 1.1 !important;
    font-variant-numeric: tabular-nums;
}

/* 头像字母（原 5.3333vw ≈ 20.8px）→ 24px，视觉平衡 */
.avatar {
    font-size: 24px !important;
    font-weight: var(--w-bold) !important;
    line-height: 1 !important;
}

/* 列表箭头 / chevron（原 35.4px 过大且灰到 2.23:1）→ 18px 深色 */
.product .chev,
.list .chev,
uni-text.chev {
    font-size: 18px !important;
    color: var(--bf-text-mid) !important;
    opacity: 1 !important;
}

/* 菜单项标签统一 */
.menu-item .menu-label,
.menu-item b {
    font-size: var(--t-body) !important;
    font-weight: var(--w-med) !important;
    color: var(--bf-blue) !important;
}

/* 空态符号（原 40px 低对比）→ 提升到可辨识 */
.empty uni-view {
    color: rgba(35, 47, 132, 0.22) !important;
    font-size: 44px !important;
}

/* 表格头（product 页）*/
.table-head uni-text,
.table-head span {
    font-size: var(--t-label) !important;
    font-weight: var(--w-semi) !important;
    color: var(--bf-text-mid) !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
}

/* 搜索框 */
.search uni-input,
.search .uni-input-input,
.search .uni-input-placeholder {
    font-size: var(--t-body) !important;
    color: var(--bf-blue) !important;
}

/* --- 27b. 触控与可点击反馈统一 --- */
.clickable,
.dock .item,
.quick-item,
.menu-item,
.product.card {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
}
.clickable:active,
.quick-item:active,
.menu-item:active {
    background-color: rgba(35, 47, 132, 0.04) !important;
}

/* --- 27c. 键盘可达性 --- */
:focus-visible {
    outline: 2px solid var(--bf-red);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   === 28. 内边距刻度统一 — 消除 vw 残留的碎值 ===
   ------------------------------------------------------------
   原内边距为 13.52px / 14.04px / 15.08px / 18.72px / 20.8px
   等 vw 换算产物，破坏 8pt 节奏。统一到 --s-* 刻度。
   ============================================================ */

/* 标准内容卡：16px 四周（8pt 刻度） */
.card,
.product.card,
.item-card,
.menu-item.card,
.summary.card,
.trade.card {
    padding: var(--s-4) !important;
    box-sizing: border-box;
}

/* 列表型卡片（money 的流水列表等）：上下 12 左右 16 */
.card.logs,
.logs.card,
.card.list-card {
    padding: var(--s-3) var(--s-4) !important;
}

/* 深色 profile 卡：留出更多呼吸空间 */
.profile.card,
.card.profile {
    padding: var(--s-5) !important;
}

/* 图表卡内部由 svg 撑开，不留白 */
.chart-card.card,
.card.chart-card {
    padding: 0 !important;
    overflow: hidden;
}

/* 大数字卡（余额宝总额区） */
.asset-card,
.card.asset-card {
    padding: var(--s-5) var(--s-4) !important;
}

/* 区块标题左右留白与卡片对齐 */
.section-head,
.section-title,
.table-head {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: var(--s-3) !important;
}

/* --- 28b. 卡片间距节奏 --- */
.card + .card,
.product + .product,
.item-card + .item-card,
.menu-item + .menu-item {
    margin-top: var(--s-3) !important;
}

/* 列表容器内部不额外加 padding，交给卡片自身 */
.list,
.product-list {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* --- 28c. 输入框统一 --- */
.field,
.field uni-input {
    border-radius: var(--radius-md) !important;
    min-height: 48px;
}
.field .uni-input-input,
.field input {
    font-size: var(--t-body) !important;
    color: var(--bf-blue) !important;
}
.field .uni-input-placeholder,
.field .input-placeholder {
    color: rgba(35, 47, 132, 0.38) !important;
    font-size: var(--t-body) !important;
}

/* --- 28d. 底部安全区 — dock 高度对齐 --- */
.dock {
    height: calc(56px + env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
}

/* ============================================================
   === 29. 垂直节奏归一化 — 8pt 网格 ===
   ------------------------------------------------------------
   实测残留间距 9.4 / 10.4 / 12.4 / 17.6px 来自 vw 外边距，
   破坏网格。统一为 12 / 16 / 24 三档。
   ============================================================ */

/* --- 29a. 首页区块节奏 --- */
.page > .top,
.page > .service-entry,
.page > .online-card,
.page > .quick,
.page > .section,
.page > .notice-bar {
    margin-top: 0 !important;
    margin-bottom: var(--s-4) !important;
}
/* 顶部横幅与首块之间留 16px，其余 16px */
.page > .top { margin-bottom: var(--s-4) !important; }
/* 最后一区块与 dock 之间留足 24px */
.page > .section:last-of-type { margin-bottom: var(--s-6) !important; }

/* --- 29b. 产品页节奏 --- */
.market-page > .nav { margin-bottom: var(--s-3) !important; }
.market-page > .market-summary { margin: 0 0 var(--s-3) !important; }
.market-page > .search { margin: 0 0 var(--s-3) !important; }
.market-page > .filters { margin: 0 0 var(--s-3) !important; }
.market-page > .table-head { margin: 0 0 var(--s-2) !important; }
.market-page > .list { margin: 0 !important; }

/* --- 29c. 详情页节奏 --- */
.detail-page > .summary { margin: var(--s-4) 0 var(--s-3) !important; }
.detail-page > .chart-card { margin: 0 0 var(--s-3) !important; }
.detail-page > .trade { margin: 0 0 var(--s-4) !important; }

/* --- 29d. 用户页 / 余额宝页节奏 --- */
.page > .profile { margin: var(--s-4) 0 var(--s-4) !important; }
.page > .asset-card { margin: var(--s-4) 0 var(--s-3) !important; }
.page > .menu-grid,
.page > .menu-list { margin: 0 0 var(--s-4) !important; }

/* --- 29e. 深色卡内部微光，增加质感层次 --- */
.profile::after,
.market-summary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 88% 0%, rgba(255, 255, 255, 0.14), transparent 62%);
    pointer-events: none;
}
.profile,
.market-summary {
    position: relative;
    overflow: hidden;
}
.profile > *,
.market-summary > * {
    position: relative;
    z-index: 1;
}

/* --- 29f. 产品卡：价格区右对齐 + 涨跌色语义 --- */
.product.card {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.product.card .info {
    flex: 1 1 auto;
    min-width: 0;
}
.product.card .quote {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.product.card .quote b.up,
.product.card .quote .up {
    color: #E0342C !important;
}
.product.card .quote b.down,
.product.card .quote .down {
    color: #12924F !important;
}

/* --- 29g. 列表分隔：用留白而非边框，更现代 --- */
.product.card {
    border-color: transparent !important;
    box-shadow: var(--e-1) !important;
}
.product.card:active {
    border-color: rgba(220, 26, 34, 0.18) !important;
}

/* --- 29h. 收尾清理：所有 vw 残留 margin 归一到 8pt --- */
.nav {
    margin-bottom: var(--s-3) !important;   /* 原 12.48px */
}
.actions,
.action-row {
    margin-top: var(--s-3) !important;      /* 原 9.36px */
}
.wealth,
.asset-card,
.balance-card {
    margin-bottom: var(--s-3) !important;
}
.section {
    margin-bottom: var(--s-4) !important;
}
/* 页面顶部统一 16px 起 */
.nav + *,
.page > .nav + * {
    margin-top: 0 !important;
}
/* 所有区块的 vw 外边距一律归零，由上面语义规则接管 */
.page > *,
.detail-page > *,
.market-page > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}