           /* --- 基金理财模块样式 --- */
           .fund-item {
               background-color: white;
               border-radius: 12px;
               padding: 15px;
               margin-bottom: 12px;
               display: flex;
               justify-content: space-between;
               align-items: center;
               box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
               transition: transform 0.1s;
           }

           .fund-item:active {
               transform: scale(0.98);
               background-color: #f9f9f9;
           }

           .fund-info h4 {
               margin: 0 0 4px 0;
               font-size: 15px;
               font-weight: 600;
               color: #333;
           }

           .fund-tags {
               display: flex;
               gap: 5px;
           }

           .fund-tag {
               font-size: 10px;
               padding: 1px 4px;
               border-radius: 3px;
               background-color: #f0f2f5;
               color: #666;
           }

           .fund-tag.high-risk {
               background-color: #fff1f0;
               color: #ff4d4f;
           }

           .fund-data {
               text-align: right;
           }

           .fund-change {
               font-size: 18px;
               font-weight: 600;
               font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
           }

           /* 红涨绿跌 */
           .fund-up {
               color: #ff3b30;
           }

           .fund-down {
               color: #4cd964;
           }

           .fund-flat {
               color: #999;
           }

           .fund-nav {
               font-size: 12px;
               color: #999;
               margin-top: 2px;
           }

           /* 黑金模式适配 */
           #alipay-screen.theme-blackgold .alipay-grid-menu .alipay-menu-item {
               background-color: #1c1c1e;
               color: #e0e0e0;
               box-shadow: none;
               border: 1px solid #333;
           }

           #alipay-screen.theme-blackgold #fund-market-trend-preview {
               color: #d4af37 !important;
           }

           /* --- 支付宝布局修复：确保账单不被挤压 --- */
           #alipay-screen {
               display: flex;
               flex-direction: column;
               height: 100%;
               /* 强制占满屏幕 */
               overflow: hidden;
               /* 禁止整个屏幕滚动，只让内部区域滚动 */
           }

           /* 头部区域 (包含蓝色背景、余额、亲属卡、基金入口) */
           .alipay-header-area {
               flex-shrink: 0;
               /* 禁止头部被压缩 */
               background-color: var(--alipay-primary);
               /* 注意：这里去掉了 padding-bottom，由内容撑开 */
               padding-bottom: 20px;
               transition: background-color 0.5s;
           }

           /* 卡片容器 */
           .alipay-card-container {
               margin-top: 0;
               /* 调整间距 */
               padding: 0 15px;
           }

           /* --- 基金入口样式优化 (更紧凑) --- */
           .alipay-grid-menu {
               padding: 0 15px;
               margin-top: 10px;
               /* 与上方卡片保持距离 */
               margin-bottom: 10px;
               /* 与下方账单保持距离 */
           }

           .alipay-menu-item {
               background: white;
               padding: 12px 15px;
               /* 减小内边距，更扁平 */
               border-radius: 12px;
               display: flex;
               align-items: center;
               gap: 12px;
               box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
               cursor: pointer;
               transition: all 0.3s;
               border: 1px solid transparent;
               /* 预留边框位 */
           }

           .alipay-menu-item:active {
               transform: scale(0.98);
           }

           .menu-icon {
               width: 36px;
               height: 36px;
               background: #FFF5E5;
               border-radius: 8px;
               display: flex;
               align-items: center;
               justify-content: center;
               font-size: 20px;
           }

           .menu-info {
               flex-grow: 1;
           }

           .menu-title {
               font-weight: 600;
               font-size: 15px;
               color: #333;
           }

           .menu-trend {
               font-size: 11px;
               color: #ff3b30;
               margin-top: 2px;
           }

           .menu-arrow {
               color: #ccc;
               font-size: 18px;
               font-weight: 300;
           }

           /* --- 账单容器自适应 (关键！) --- */
           .alipay-bill-container {
               flex-grow: 1;
               /* 占据剩余所有空间 */
               min-height: 0;
               /* 允许 Flex 子元素收缩，防止溢出 */
               margin-top: 0;
               /* 紧贴上方 */
               background-color: var(--alipay-bill-bg);
               border-radius: 20px 20px 0 0;
               padding: 0;
               /* 内部元素处理 padding */
               display: flex;
               flex-direction: column;
               overflow: hidden;
               /* 容器本身不滚 */
               box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
               /* 增加顶部阴影，产生层次感 */
           }

           /* 账单列表滚动区域 */
           #bill-scroll-list {
               flex-grow: 1;
               overflow-y: auto;
               /* 只有这里滚动 */
               padding: 0 15px 20px 15px;
               -webkit-overflow-scrolling: touch;
           }


           /* --- 支付宝布局修复：确保账单不被挤压 --- */
           #alipay-screen {
               display: flex;
               flex-direction: column;
               height: 100%;
               /* 强制占满屏幕 */
               overflow: hidden;
               /* 禁止整个屏幕滚动，只让内部区域滚动 */
           }

           /* 头部区域 (包含蓝色背景、余额、亲属卡、基金入口) */
           .alipay-header-area {
               flex-shrink: 0;
               /* 禁止头部被压缩 */
               background-color: var(--alipay-primary);
               /* 注意：这里去掉了 padding-bottom，由内容撑开 */
               padding-bottom: 20px;
               transition: background-color 0.5s;
           }

           /* 卡片容器 */
           .alipay-card-container {
               margin-top: 0;
               /* 调整间距 */
               padding: 0 15px;
           }

           /* --- 基金入口样式优化 (更紧凑) --- */
           .alipay-grid-menu {
               padding: 0 15px;
               margin-top: 10px;
               /* 与上方卡片保持距离 */
               margin-bottom: 10px;
               /* 与下方账单保持距离 */
           }

           .alipay-menu-item {
               background: white;
               padding: 12px 15px;
               /* 减小内边距，更扁平 */
               border-radius: 12px;
               display: flex;
               align-items: center;
               gap: 12px;
               box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
               cursor: pointer;
               transition: all 0.3s;
               border: 1px solid transparent;
               /* 预留边框位 */
           }

           .alipay-menu-item:active {
               transform: scale(0.98);
           }

           .menu-icon {
               width: 36px;
               height: 36px;
               background: #FFF5E5;
               border-radius: 8px;
               display: flex;
               align-items: center;
               justify-content: center;
               font-size: 20px;
           }

           .menu-info {
               flex-grow: 1;
           }

           .menu-title {
               font-weight: 600;
               font-size: 15px;
               color: #333;
           }

           .menu-trend {
               font-size: 11px;
               color: #ff3b30;
               margin-top: 2px;
           }

           .menu-arrow {
               color: #ccc;
               font-size: 18px;
               font-weight: 300;
           }

           /* --- 账单容器自适应 (关键！) --- */
           .alipay-bill-container {
               flex-grow: 1;
               /* 占据剩余所有空间 */
               min-height: 0;
               /* 允许 Flex 子元素收缩，防止溢出 */
               margin-top: 0;
               /* 紧贴上方 */
               background-color: var(--alipay-bill-bg);
               border-radius: 20px 20px 0 0;
               padding: 0;
               /* 内部元素处理 padding */
               display: flex;
               flex-direction: column;
               overflow: hidden;
               /* 容器本身不滚 */
               box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
               /* 增加顶部阴影，产生层次感 */
           }

           /* 账单列表滚动区域 */
           #bill-scroll-list {
               flex-grow: 1;
               overflow-y: auto;
               /* 只有这里滚动 */
               padding: 0 15px 20px 15px;
               -webkit-overflow-scrolling: touch;
           }



           /* 1. 基金入口黑金化 */
           #alipay-screen.theme-blackgold .alipay-menu-item {
               background-color: #1c1c1e;
               /* 深色背景 */
               border: 1px solid #333;
               /* 微弱边框 */
               box-shadow: none;
           }

           #alipay-screen.theme-blackgold .menu-icon {
               background-color: #2c2c2e;
               /* 图标背景变深 */
               border: 1px solid #444;
           }

           #alipay-screen.theme-blackgold .menu-title {
               color: #e0e0e0;
               /* 标题变白/灰 */
           }

           #alipay-screen.theme-blackgold .menu-trend {
               color: #d4af37 !important;
               /* 涨跌幅变金色 */
           }

           #alipay-screen.theme-blackgold .menu-arrow {
               color: #666;
           }

           /* 2. 账单区域黑金化完善 */
           #alipay-screen.theme-blackgold .alipay-bill-container {
               background-color: #000000;
               /* 账单背景全黑 */
               border-top: 1px solid #222;
           }

           #alipay-screen.theme-blackgold #bill-scroll-list {
               background-color: #000000;
           }

           /* --- 基金页面主题适配 --- */

           /* 1. 默认蓝色主题 */
           .fund-header-area {
               background-color: #1677ff;
               color: white;
               border-bottom: none;
           }

           .fund-asset-card {
               background-color: #1677ff;
               color: white;
               padding: 10px 20px 40px 20px;
               /* 增加底部内边距 */
               margin-bottom: -20px;
               /* 让下方列表上浮覆盖 */
               transition: background-color 0.5s;
           }

           /* 2. 黑金模式适配 (当 fund-screen 拥有 .theme-blackgold 类时) */
           #fund-screen.theme-blackgold {
               background-color: #121212 !important;
           }

           #fund-screen.theme-blackgold .fund-header-area {
               background-color: #1a1a1a;
               /* 头部变深黑 */
               color: #d4af37;
               /* 金色文字 */
           }

           #fund-screen.theme-blackgold .fund-asset-card {
               background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
               /* 黑金渐变 */
               color: #d4af37;
           }

           #fund-screen.theme-blackgold .list-container {
               background-color: #121212 !important;
               /* 列表背景变黑 */
           }

           #fund-screen.theme-blackgold .frame-tabs {
               background-color: #1c1c1e !important;
               box-shadow: none;
               border: 1px solid #333;
           }

           #fund-screen.theme-blackgold .frame-tab {
               color: #888;
           }

           #fund-screen.theme-blackgold .frame-tab.active {
               background-color: #333 !important;
               color: #d4af37 !important;
           }

           #fund-screen.theme-blackgold .fund-item {
               background-color: #1c1c1e;
               border: 1px solid #2c2c2e;
               color: #e0e0e0;
           }

           #fund-screen.theme-blackgold .fund-info h4 {
               color: #e0e0e0;
           }

           /* --- 亲属卡标题适配 --- */
           .kinship-section-title {
               color: #333;
               /* 默认模式：深灰色 */
               transition: color 0.3s;
           }

           /* 黑金模式下，标题变金 */
           #alipay-screen.theme-blackgold .kinship-section-title {
               color: #d4af37 !important;
           }

           /* 黑金模式下，添加按钮也变金 */
           #alipay-screen.theme-blackgold #add-kinship-btn {
               color: #d4af37 !important;
           }


