/* ============ 全局重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[v-cloak] { display: none !important; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-size: 14px; color: #333; background: #F5F0EB; -webkit-font-smoothing: antialiased; }
input, button, select { font-family: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }

:root {
    --primary: #FF6B00;
    --primary-light: #FFF0E5;
    --primary-border: #FFD9B3;
    --primary-grad-from: #FF5A00;
    --primary-grad-to: #FF8A3D;
    --primary-shadow: rgba(255,107,0,0.28);
    --bg: #F5F0EB;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #999;
    --text-gray: #666;
    --val-pos: #e74c3c;
    --val-neg: #27ae60;
}

#app { max-width: 430px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); padding-bottom: 60px; }

/* ============ 通用 ============ */
.page { min-height: 100vh; padding-bottom: 80px; }
.card { background: var(--card-bg); border-radius: 10px; margin: 10px 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.val-pos { color: var(--val-pos) !important; }
.val-neg { color: var(--val-neg) !important; }
.val-zero { color: var(--text-sub) !important; }
.val-dim { color: #ccc !important; }
.pcm-label-dim { color: var(--text-gray) !important; }
.pcm-label-highlight { color: var(--primary) !important; font-weight: 500; }

/* ============ 导航栏 ============ */
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, var(--primary-grad-from) 0%, var(--primary-grad-to) 100%); border-radius: 0 0 18px 18px; box-shadow: 0 4px 14px var(--primary-shadow); position: sticky; top: 0; z-index: 100; }
.nav-brand { display: flex; align-items: center; gap: 8px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-brand svg { display: block; }
.nav-title { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 0.5px; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-back { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: -6px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; flex-shrink: 0; transition: background 0.15s; }
.nav-back:active { background: rgba(255, 255, 255, 0.34); }
.nav-back svg { display: block; }
/* 二级页面（产品管理等）标题绝对居中，与首页/详情页视觉一致，不再紧贴返回按钮 */
.nav-bar > .nav-title { position: absolute; left: 50%; transform: translateX(-50%); }

/* ============ 筛选标签 ============ */
.filter-bar { display: flex; justify-content: space-between; padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
.filter-group { display: flex; gap: 6px; }
.filter-tag { padding: 4px 12px; border-radius: 16px; font-size: 12px; color: var(--text-gray); background: #fff; border: 1px solid #eee; }
.filter-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-bank-group { flex-wrap: wrap; }

/* ============ 产品卡片列表 ============ */
.product-list { padding: 0 12px; }
.pc-swipe-wrapper { position: relative; margin-bottom: 10px; overflow: visible; }
.product-card { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); position: relative; z-index: 1; }
.pc-swipe-delete {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 76px;
    background: #e74c3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 10px 10px 0;
    z-index: 0;
    font-size: 15px;
    font-weight: 600;
}
.pc-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pc-name { font-size: 15px; font-weight: 700; color: var(--text-main); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-title-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; margin-left: 8px; }
.pc-risk { font-size: 10px; color: var(--primary); border: 1px solid var(--primary); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.pc-quota-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; white-space: nowrap; line-height: 1.4; }
.quota-ok { color: #27ae60; background: #E8F8F0; }
.quota-tight { color: #E67E22; background: #FDF2E9; }
.quota-out { color: #999; background: #F5F5F5; }

.pc-info-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-bank-tag { font-size: 10px; color: #fff; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.pc-agent-tag { font-size: 9px; color: #7B52D1; background: #F3EEFB; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.pc-code { font-size: 11px; color: var(--text-gray); }
.pc-rule { font-size: 11px; color: var(--text-gray); }
.pc-hold-period { font-size: 11px; color: var(--text-gray); }
.pc-hold-days { font-size: 11px; color: var(--primary); font-weight: 500; }
.pc-hold-days-dim { color: var(--text-gray) !important; font-weight: 400; }
.pc-in-transit { font-size: 10px; color: #E65100; background: #FFF3E0; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.pc-redeem-status { font-size: 10px; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.pc-redeem-status.can-redeem { color: var(--primary); background: var(--primary-light); }
.pc-redeem-status.cannot-redeem { color: var(--text-gray); background: #F0F0F0; }
.quota-sufficient { color: var(--primary); }
.quota-soldout { color: var(--text-sub); }

/* 5列收益数据 */
.pc-metrics { display: flex; justify-content: space-between; margin-bottom: 12px; }
.pc-metric { display: flex; flex-direction: column; flex: 1; align-items: center; }
.pcm-label { font-size: 10px; color: var(--text-gray); margin-bottom: 4px; white-space: nowrap; }
.pcm-value { font-size: 14px; font-weight: 700; color: var(--text-main); }

.pc-divider { height: 1px; background: #f0f0f0; margin: 0 -14px 10px; }

.pc-detail-row { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-sub); }
.pcd-item { white-space: nowrap; }
.pcd-more { margin-left: auto; color: var(--text-gray); }
.pcd-account { font-size: 11px; color: var(--text-gray); }
.pcd-more-btn { margin-left: auto; font-size: 16px; color: var(--text-sub); cursor: pointer; line-height: 1; padding: 0 2px; }

.pc-note { margin-top: 8px; font-size: 11px; color: var(--primary); }

/* ============ 产品详情页 ============ */
.detail-page { padding-bottom: 210px; }
.detail-nav { background: var(--primary); }

/* 产品信息卡片 */
.detail-info-card { padding: 16px; }
.dic-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dic-name { font-size: 16px; font-weight: 700; color: var(--text-main); flex: 1; }
.dic-note-btn { font-size: 12px; color: var(--primary); border: 1px solid var(--primary-border); background: #fff; padding: 3px 12px; border-radius: 6px; }
.dic-tags-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dic-bank-tag { font-size: 10px; color: #fff; padding: 2px 8px; border-radius: 4px; }
.dic-agent-tag { font-size: 10px; color: #7B52D1; background: #F3EEFB; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.dic-code { font-size: 11px; color: var(--text-sub); }
.dic-risk-tag { font-size: 10px; color: var(--text-gray); background: var(--primary-light); padding: 1px 6px; border-radius: 4px; }
.dic-rule { font-size: 11px; color: var(--text-gray); }
.dic-hold-period { font-size: 11px; color: var(--text-gray); }
.dic-cny { font-size: 11px; color: var(--text-gray); }
.dic-meta-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); }
.dic-note-display { margin-top: 8px; font-size: 12px; color: var(--primary); }

/* 持仓资产卡片 */
.detail-asset-card { padding: 16px; }
.dac-amount { text-align: center; margin-bottom: 16px; }
.dac-label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.dac-value { font-size: 28px; font-weight: 700; color: var(--text-main); }
.dac-metrics-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.dac-metric { display: flex; flex-direction: column; flex: 1; align-items: center; }
.dac-m-label { font-size: 11px; color: var(--text-sub); margin-bottom: 4px; }
.dac-m-value { font-size: 15px; font-weight: 600; color: var(--text-main); }
.dac-m-value-bold { font-size: 15px; font-weight: 700; color: var(--text-main); }

/* 交易明细卡片 */
.detail-trans-card { padding: 16px; }
.dtc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dtc-title-area { display: flex; align-items: center; gap: 8px; }
.dtc-title { font-size: 15px; font-weight: 600; }
/* 交易明细账户标签：背景固定用主题色（用户反馈：账户哈希配色池曾把"Lucky"等
   账户名撞色到橙色，与用户选择的主题色不一致，2026-10-12 改为主题色背景+白字） */
.dtc-account-tag { font-size: 11px; color: #fff; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--primary); }
.dtc-count { font-size: 13px; color: var(--text-sub); }
.dtc-add-btn { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* ===== 净值明细：手动录入净值 ===== */
.dnl-header { display: flex; align-items: center; justify-content: space-between; }
.dnl-add-btn { font-size: 12px; color: var(--primary); cursor: pointer; padding: 2px 8px; border: 1px solid var(--primary-border); border-radius: 6px; background: var(--primary-light); user-select: none; }
.dnl-add-form { display: flex; gap: 8px; padding: 10px 12px; align-items: center; }
.dnl-add-input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; }
.dnl-add-input:focus { outline: none; border-color: var(--primary); }
.dnl-add-submit { padding: 8px 16px; border: none; border-radius: 6px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.dnl-add-submit:disabled { opacity: 0.6; }

/* ===== 系统备份 ===== */
.bk-config-head { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.bk-refresh { font-size: 12px; color: var(--primary); cursor: pointer; font-weight: 400; }
.bk-time-input { max-width: 130px; }
.bk-days-input { max-width: 100px; }
.bk-actions { margin-top: 12px; }
.bk-btn { padding: 9px 22px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.bk-btn-primary { background: var(--primary); color: #fff; }
.bk-btn:disabled { opacity: 0.6; }
.bk-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid #f5f5f5; }
.bk-item:last-child { border-bottom: none; }
.bk-item-name { font-size: 14px; font-weight: 600; }
.bk-item-meta { display: block; font-size: 11px; color: var(--text-gray); margin-top: 2px; }
.bk-item-ops { display: flex; gap: 12px; align-items: center; }
.bk-op { font-size: 12px; color: var(--primary); cursor: pointer; text-decoration: none; user-select: none; }
.bk-op-danger { color: #e74c3c; }
.bk-note { font-size: 11px; color: var(--text-gray); padding: 6px 4px 2px; line-height: 1.6; }

.dtc-table { width: 100%; }
.dtc-thead, .dtc-row { display: grid; grid-template-columns: 0.8fr 1fr 1.2fr 1fr 1fr 0.6fr; gap: 4px; padding: 8px 0; font-size: 12px; align-items: center; }
.dtc-thead { color: var(--text-sub); border-bottom: 1px solid #f0f0f0; }
.dtc-row { border-bottom: 1px solid #f5f5f5; }
.dtc-row:last-child { border-bottom: none; }
.dtc-type { font-size: 11px; padding: 2px 6px; border-radius: 4px; text-align: center; }
.type-buy { background: #FFEBEE; color: var(--val-pos); }
.type-redeem { background: #E8F5E9; color: var(--val-neg); }
.dtc-date { color: var(--text-gray); }
.dtc-amount { color: var(--text-main); font-weight: 500; }
.dtc-edit { color: var(--primary); font-size: 12px; }
.dtc-actions { display: flex; gap: 8px; }
.dtc-delete { color: #e74c3c; font-size: 12px; }

/* 收益数据卡片 */
.detail-income-card { padding: 16px; }
.dic-income-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.dic-income-row:last-child { margin-bottom: 0; }
.dic-income-item { display: flex; flex-direction: column; flex: 1; align-items: center; }
.dii-label { font-size: 11px; color: var(--text-sub); margin-bottom: 4px; white-space: nowrap; }
.dii-value { font-size: 15px; font-weight: 700; color: var(--text-main); }

/* 阶段业绩表格（与银行官方一致） */
.dic-stage-table { margin-bottom: 12px; }
.dic-stage-header { display: flex; padding: 8px 0; border-bottom: 1px solid #eee; }
.dic-th-time { flex: 1; font-size: 12px; color: var(--text-sub); font-weight: 500; text-align: left; }
.dic-th-range { flex: 1; font-size: 12px; color: var(--text-sub); font-weight: 500; text-align: center; }
.dic-th-ann { flex: 1; font-size: 12px; color: var(--text-sub); font-weight: 500; text-align: center; }
.dic-stage-row { display: flex; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.dic-stage-row:last-child { border-bottom: none; }
.dic-td-time { flex: 1; font-size: 13px; color: var(--text-main); font-weight: 500; text-align: left; }
.dic-td-range { flex: 1; font-size: 13px; font-weight: 600; text-align: center; }
.dic-td-ann { flex: 1; font-size: 13px; font-weight: 600; text-align: center; }

/* 数据分析卡片 */
.detail-chart-card { padding: 16px; }
.dcc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dcc-title { font-size: 15px; font-weight: 600; }
.dcc-count { font-size: 12px; color: var(--text-sub); }

.dcc-chart-tabs { display: flex; gap: 4px; margin-bottom: 12px; overflow-x: auto; }
.dcc-chart-tab { padding: 4px 10px; font-size: 11px; color: var(--text-gray); border-radius: 4px; background: #f5f5f5; white-space: nowrap; }
.dcc-chart-tab.active { background: var(--primary-light); color: var(--primary); }

.dcc-chart-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); margin-bottom: 8px; }

.dcc-chart-container { position: relative; width: 100%; height: 200px; }
.dcc-chart-container canvas { width: 100%; height: 100%; }

.dcc-period-tabs { display: flex; gap: 4px; margin-top: 8px; }
.dcc-period-tab { padding: 4px 12px; font-size: 12px; color: var(--text-gray); border-radius: 4px; background: #f5f5f5; }
.dcc-period-tab.active { background: var(--primary-light); color: var(--primary); }

/* 净值明细列表 */
.detail-nav-list-card { padding: 16px; }
.dnl-header { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.dnl-table { width: 100%; }
.dnl-thead, .dnl-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr; gap: 4px; padding: 8px 0; font-size: 12px; align-items: center; }
.dnl-thead { color: var(--text-sub); border-bottom: 1px solid #f0f0f0; }
.dnl-row { border-bottom: 1px solid #f5f5f5; }
.dnl-row:last-child { border-bottom: none; }
/* "查看更多"按钮（净值明细底部，加载全量） */
.dnl-more { text-align: center; padding: 12px; font-size: 13px; color: var(--primary); cursor: pointer; border-top: 1px solid #f5f5f5; user-select: none; }
.dnl-more:active { background: var(--primary-light); }
.dnl-more-done { color: var(--text-gray); cursor: default; font-size: 12px; }
.dnl-more-done:active { background: transparent; }
.sortable { cursor: pointer; }
.sort-arrow { font-size: 10px; color: var(--text-sub); }

/* 赎回状态 */
.redeem-status-card { padding: 12px 16px; }
.redeem-status { display: flex; align-items: center; gap: 8px; }
.redeem-icon { font-size: 14px; font-weight: 600; color: var(--text-gray); }
.can-redeem .redeem-icon { color: var(--val-neg); }
.redeem-reason { font-size: 12px; color: var(--text-sub); }

/* 底部操作按钮（详情页）：悬浮胶囊风格，与底部Tab栏同宽对齐、留出间隙 */
.detail-bottom-actions { position: fixed; bottom: 80px; left: 12px; right: 12px; max-width: 406px; margin: 0 auto; padding: 10px; background: #fff; border-radius: 22px; display: flex; gap: 10px; z-index: 100; box-shadow: 0 2px 16px rgba(0,0,0,0.1); }
.dba-buy { flex: 1; padding: 12px 0; border-radius: 999px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; transition: transform .15s, opacity .15s; }
.dba-redeem { flex: 1; padding: 12px 0; border-radius: 999px; border: 1.5px solid var(--primary); color: var(--primary); background: #fff; font-size: 15px; font-weight: 700; transition: transform .15s, opacity .15s; }
.dba-redeem-all { flex: 1; padding: 12px 0; border-radius: 999px; background: #e74c3c; color: #fff; font-size: 15px; font-weight: 700; transition: transform .15s, opacity .15s; }
.dba-buy:active, .dba-redeem:active, .dba-redeem-all:active { transform: scale(0.96); opacity: 0.85; }

/* ============ 悬浮按钮 ============ */
/* 自适应定位：窄屏贴窗口右侧20px；宽屏贴430px内容区右边缘20px */
.fab-add {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--primary-shadow);
    z-index: 90;
    line-height: 1;
}
@media (min-width: 431px) {
    .fab-add { right: calc(50vw - 215px + 20px); }
}

/* ============ 收益日历 ============ */
/* ============ 收益概览卡片 ============ */
.calendar-overview { padding: 12px 16px; background: #fff; border-radius: 16px; margin: 10px 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.cal-ov-metrics { display: flex; gap: 0; }
.cal-ov-item { flex: 1; text-align: center; padding: 6px 4px; position: relative; }
.cal-ov-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: #f0f0f0; }
.co-label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; white-space: nowrap; }
.co-value { display: block; font-size: 17px; font-weight: 700; color: var(--text-main); }
/* 第5项（日万收）浅底区分 */
.cal-ov-item-dim { background: #F5F0EB; border-radius: 10px; }
.cal-ov-item-dim .co-value { font-size: 14px; }
.cal-ov-item-dim .co-label { font-size: 11px; }

/* ============ 日历主体卡片 ============ */
.calendar-body { background: #fff; border-radius: 16px; margin: 10px 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.cal-header { display: flex; align-items: center; margin-bottom: 16px; }
.cal-arrow { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f5f5f5; font-size: 18px; color: var(--text-gray); cursor: pointer; flex-shrink: 0; }
.cal-month-title { font-size: 20px; font-weight: 700; color: var(--text-main); margin: 0 auto; }
.cal-week-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 8px; }
.cal-week-header span { font-size: 13px; color: var(--text-sub); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; position: relative; padding: 2px; }
.cal-empty { background: transparent; cursor: default; }
.cal-empty .cal-day { color: #ccc; }
.cal-profit { background: #FFF2F2; }
.cal-profit .cal-income { color: var(--val-pos); }
.cal-loss { background: #F2F9F9; }
.cal-loss .cal-income { color: var(--val-neg); }
.cal-selected { border: 2px solid var(--primary); border-radius: 10px; }
.cal-pending::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); position: absolute; bottom: 4px; }
.cal-day { font-size: 14px; font-weight: 600; color: var(--text-main); }
.cal-income { font-size: 11px; margin-top: 2px; font-weight: 500; }
.cal-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--text-sub); }
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-dot.profit { background: #FFF2F2; border: 1px solid #FFD0D0; }
.legend-dot.loss { background: #F2F9F9; border: 1px solid #D0F0F0; }

/* ============ 日历收益明细 ============ */
.calendar-detail { background: #fff; border-radius: 16px; margin: 10px 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.cd-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; font-weight: 700; }
.cd-sort { font-size: 12px; font-weight: 500; color: var(--primary); background: var(--primary-light); padding: 4px 10px; border-radius: 8px; }
.cd-filter { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.cd-list { }
.cd-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.cd-item:last-child { border-bottom: none; }
.cd-item-left { display: flex; flex-direction: column; flex: 1; }
.cd-name { font-size: 14px; color: var(--text-main); }
.cd-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.cd-item-right { display: flex; align-items: center; gap: 12px; }
.cd-income { font-size: 15px; font-weight: 700; }
.cd-detail-btn { font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 4px 10px; border-radius: 12px; }
.cd-empty { text-align: center; padding: 30px; color: var(--text-sub); font-size: 14px; }
.cd-more { text-align: center; padding: 10px 0 4px; color: var(--primary); font-size: 13px; cursor: pointer; user-select: none; }
.cd-more:active { opacity: 0.6; }

/* ============ 底部Tab栏 ============ */
.tab-bar { position: fixed; bottom: 12px; left: 12px; right: 12px; max-width: 406px; margin: 0 auto; display: flex; background: #fff; border-radius: 24px; box-shadow: 0 2px 16px rgba(0,0,0,0.1); height: 56px; z-index: 200; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tab-item span { font-size: 11px; color: var(--text-sub); }
.tab-item.active span { color: var(--primary); }

/* ============ 弹窗 ============ */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: #fff; border-radius: 16px; width: 100%; max-width: 380px; max-height: 90vh; overflow-y: auto; }
.modal-title { padding: 16px; font-size: 16px; font-weight: 600; text-align: center; border-bottom: 1px solid #f0f0f0; }
.modal-title-product { font-weight: 600; }
.modal-body { padding: 16px; }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 13px; color: var(--text-gray); margin-bottom: 4px; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; }
.form-input:focus { border-color: var(--primary); }
.modal-btn { width: 100%; padding: 12px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; margin-top: 8px; }
.search-results { max-height: 200px; overflow-y: auto; }
.search-item { padding: 12px; border-bottom: 1px solid #f5f5f5; }
.search-item:active { background: #f9f9f9; }
.si-name { font-size: 14px; font-weight: 500; }
.si-info { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.search-empty { text-align: center; padding: 20px; color: var(--text-sub); font-size: 14px; }
.search-loading { text-align: center; padding: 20px; color: var(--primary); font-size: 14px; }
.search-fallback-hint { text-align: center; padding: 10px 16px; margin: 4px 0; background: #fff8e1; border-radius: 8px; color: #e65100; font-size: 12px; line-height: 1.5; }
.search-row { display: flex; gap: 8px; }
.search-input { flex: 1; }
.search-btn { padding: 10px 20px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.search-btn:disabled { opacity: 0.4; }
/* 手动添加产品入口 */
.manual-add-section { margin-top: 4px; border-top: 1px dashed #e0e0e0; padding-top: 16px; }
.manual-add-toggle { text-align: center; color: var(--primary); font-size: 14px; font-weight: 500; padding: 8px; cursor: pointer; user-select: none; }
.manual-add-toggle:active { opacity: 0.7; }
.manual-add-arrow { display: inline-block; transition: transform 0.2s; font-size: 12px; }
.manual-add-arrow.expanded { transform: rotate(180deg); }
.manual-add-form { padding: 4px 0; }
.manual-add-bank-display { display: inline-block; padding: 6px 14px; border-radius: 16px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; }
.manual-add-hint { font-size: 12px; color: var(--text-sub); margin: 4px 0 12px; }
.manual-add-btn { width: 100%; margin-top: 4px; }
.manual-add-btn:disabled { opacity: 0.5; }
.bank-select-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bank-chip { padding: 6px 14px; border-radius: 16px; border: 1.5px solid #e0e0e0; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; user-select: none; }
.bank-chip:hover { border-color: var(--primary); color: var(--primary); }
.bank-chip.active { color: #fff; font-weight: 600; }
/* 未开放银行：置灰不可点 */
.bank-chip.disabled { border-color: #e8e8e8; color: #bbb; background: #f7f7f7; cursor: not-allowed; }
.bank-chip.disabled:hover { border-color: #e8e8e8; color: #bbb; }
.chip-soon { font-size: 10px; color: #b3b3b3; margin-left: 4px; }
.search-bank-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.search-bank-filter .filter-tag { font-size: 11px; padding: 4px 10px; }
.si-bank-badge { font-size: 10px; color: #fff; padding: 1px 5px; border-radius: 3px; margin-right: 4px; }
.si-local-tag { font-size: 10px; color: var(--primary); background: var(--primary-light); padding: 1px 6px; border-radius: 3px; margin-left: 4px; }
.manual-add { margin-top: 16px; }
.manual-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-gray); }
.redeem-warning { background: #FFF3E0; color: #E65100; padding: 10px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.redeem-all-info { display: flex; justify-content: space-between; padding: 10px 12px; background: #f9f9f9; border-radius: 8px; font-size: 13px; color: var(--text-gray); margin-bottom: 16px; }

/* 快速申购弹窗 */
.quick-buy-info { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 10px; background: #f9f9f9; border-radius: 8px; }
.qb-code { font-size: 12px; color: var(--text-sub); }
.qb-risk { font-size: 11px; color: var(--text-gray); background: var(--primary-light); padding: 1px 6px; border-radius: 4px; }
.quick-buy-actions { display: flex; gap: 12px; margin-top: 8px; }
.modal-btn-secondary { flex: 1; padding: 12px; border-radius: 8px; border: 1px solid #ddd; background: #fff; color: var(--text-gray); font-size: 15px; font-weight: 600; }
.modal-btn-secondary + .modal-btn { flex: 1; margin-top: 0; }
.nav-note { font-size: 12px; color: var(--text-sub); margin-top: 4px; line-height: 1.4; }
/* 快速申购：净值获取中提示用主题色醒目显示（2026-10-13） */
.nav-note.nav-note-active { color: var(--primary); font-weight: 500; }
/* 快速申购：净值未获取到时的新发产品确认块（重试耗尽后显示） */
.nav-note.nav-note-confirm { background: rgba(255,107,0,.06); border: 1px dashed rgba(255,107,0,.45); border-radius: 6px; padding: 8px; color: var(--text-sub); }
.nav-new-confirm-btn { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; width: fit-content; }
/* 模态主按钮禁用态（净值获取中防误提交） */
.modal-btn:disabled { background: #c8c9ce; cursor: not-allowed; }

/* ============ Toast ============ */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 999; white-space: nowrap; }

/* ============ 微信兼容 ============ */
@media (min-resolution: 2dppx) { * { -webkit-font-smoothing: antialiased; } }
body { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
.log-message, .bm-fail-name, .bm-fail-code, .bm-fail-reason { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* ============ 资产总览卡片 ============ */
.overview-card { padding: 16px; }
.oc-top-row { position: relative; display: flex; justify-content: center; margin-bottom: 16px; }
.oc-amount { display: flex; flex-direction: column; align-items: center; }
.oc-amount-value { font-size: 28px; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.oc-amount-label { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.oc-icons { position: absolute; right: 0; top: 4px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.icon-eye { cursor: pointer; }
.oc-metrics { display: flex; justify-content: space-between; }
.oc-metric { display: flex; flex-direction: column; flex: 1; align-items: center; }
.ocm-value { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; white-space: nowrap; }
.ocm-label { font-size: 10px; color: var(--text-sub); white-space: nowrap; }

/* ============ 持仓分布卡片 ============ */
.distribution-card { padding: 10px 14px; }
.dc-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.dc-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.dc-arrow { font-size: 13px; color: var(--text-sub); transition: transform 0.2s; }
.dc-arrow-down { transform: rotate(180deg); }
.dc-body { margin-top: 8px; }
.dc-dim { margin-bottom: 10px; }
.dc-dim:last-child { margin-bottom: 0; }
.dc-dim-label { font-size: 12px; color: var(--text-gray); margin-bottom: 4px; }
.dc-bar { display: flex; height: 20px; border-radius: 4px; overflow: hidden; }
.dc-bar-seg { display: flex; align-items: center; justify-content: center; height: 100%; cursor: pointer; transition: filter 0.15s; }
.dc-bar-seg:hover { filter: brightness(0.92); }
.dc-bar-seg.dist-filter-active { box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--primary); z-index: 1; }
.dc-bar-text { font-size: 10px; color: #fff; white-space: nowrap; }
.dc-legend { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.dc-leg-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-sub); }
.dc-leg-clickable { cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background 0.15s; }
.dc-leg-clickable:hover { background: #f0f0f0; }
.dc-leg-clickable.active { background: var(--primary-light); color: var(--primary); }
.dc-leg-clickable.dist-filter-active { background: var(--primary); color: #fff; }
.dc-leg-clickable.dist-filter-active .dc-dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.6); }
.dc-filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px 0; }
.dc-filter-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 12px; }
.dc-filter-close { cursor: pointer; font-size: 13px; color: var(--primary); opacity: 0.7; }
.dc-filter-close:hover { opacity: 1; }
.dc-detail-list { margin-top: 6px; border-radius: 8px; background: #f9f9f9; overflow: hidden; }
.dc-detail-item { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.dc-detail-item:last-child { border-bottom: none; }
.dc-detail-item:active { background: #f0f0f0; }
.dcd-name { font-size: 12px; color: var(--text-main); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcd-info { font-size: 10px; color: var(--text-gray); }
.dcd-redeemable { color: var(--val-neg); }
.dcd-frozen { color: var(--text-sub); }
.dc-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.dc-compact { display: flex; flex-wrap: wrap; gap: 3px; font-size: 11px; color: var(--text-sub); margin-top: 6px; line-height: 1.4; }
.dc-compact-sep { color: #ddd; }

/* ============ 消息中心入口 ============ */
.message-center-card { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; cursor: pointer; }
.mc-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.mc-badge { font-size: 11px; color: var(--primary); }
.mc-arrow { font-size: 16px; color: var(--text-sub); }

/* ============ 账户筛选行 ============ */
.account-filter-bar { padding: 8px 12px; }
.af-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.af-account-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.af-acc-tag { padding: 4px 12px; border-radius: 16px; font-size: 12px; background: #f5f5f5; color: var(--text-gray); cursor: pointer; white-space: nowrap; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 2px; }
.af-acc-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; padding: 4px 6px; }
.af-acc-edit { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; font-size: 9px; flex-shrink: 0; }
.af-acc-edit:hover { background: rgba(255,255,255,0.4); }
.af-acc-add { padding: 4px 10px; border-radius: 16px; font-size: 11px; color: var(--primary); background: var(--primary-light); cursor: pointer; white-space: nowrap; }
.af-status-group { display: flex; gap: 6px; }
.bank-scroll-wrap { position: relative; }
.af-bank-row { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; align-items: center; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.af-bank-row::-webkit-scrollbar { display: none; }
.af-bank-label { font-size: 10px; color: var(--text-gray); flex-shrink: 0; margin-right: 2px; }
.af-bank-tag { padding: 4px 10px; border-radius: 16px; font-size: 11px; color: var(--text-gray); background: #fff; border: 1px solid #eee; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.af-bank-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.af-bank-tag-agent.active { background: var(--primary); border-color: var(--primary); }
/* 银行标签横向滑动指示器 */
.bank-scroll-indicator { position: absolute; right: 0; top: 0; bottom: 0; width: 32px; background: linear-gradient(to right, transparent, var(--bg) 65%); pointer-events: none; display: none; align-items: center; justify-content: flex-end; padding-right: 2px; z-index: 1; }
.bank-scroll-wrap.scroll-has-more .bank-scroll-indicator { display: flex; }
.bank-scroll-indicator::after { content: '\203A'; font-size: 18px; color: #aaa; font-weight: 600; }
/* PC端拖拽横滑光标：空白区显示抓手，拖拽中全局 grabbing 并禁止选中文本 */
.bank-scroll-wrap .af-bank-row,
.bank-scroll-wrap .pm-bank-row,
.bank-scroll-wrap .cal-bank-filter { cursor: grab; }
.bank-row-dragging, .bank-row-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }

/* ============ 账户管理弹窗 ============ */
.acc-manage-list { margin-bottom: 16px; border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; }
.acc-manage-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.15s; }
.acc-manage-item:last-child { border-bottom: none; }
.acc-manage-item:hover { background: #fafafa; }
.acc-manage-item.active { background: var(--primary-light); }
.acc-manage-item.editing { background: #fafafa; cursor: default; }
.acc-manage-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.acc-manage-name { font-size: 14px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.acc-manage-default { font-size: 10px; color: var(--primary); background: var(--primary-light); padding: 1px 6px; border-radius: 8px; }
.acc-manage-note { font-size: 11px; color: var(--text-gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-manage-actions { display: flex; gap: 6px; flex-shrink: 0; }
.acc-manage-action { padding: 4px 10px; border-radius: 6px; font-size: 11px; color: var(--text-sub); background: #f5f5f5; cursor: pointer; white-space: nowrap; }
.acc-manage-action:hover { background: #e8e8e8; }
.acc-manage-action.danger { color: #e74c3c; background: #fdecea; }
.acc-manage-action.danger:hover { background: #fbd5d0; }
.acc-manage-edit { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acc-manage-edit-actions { display: flex; gap: 8px; }
.acc-manage-edit-actions .modal-btn-secondary, .acc-manage-edit-actions .modal-btn { margin-top: 0; }
.acc-manage-empty { padding: 20px; text-align: center; font-size: 12px; color: var(--text-gray); }
.acc-manage-add { border-top: 1px solid #f0f0f0; padding-top: 14px; }

/* ============ 排序搜索栏 ============ */
.sort-search-bar { padding: 8px 12px; }
.ssb-sort-group { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.ssb-sort-group::-webkit-scrollbar { display: none; }
.ssb-sort-tag { padding: 4px 10px; font-size: 11px; color: var(--text-gray); background: #f5f5f5; border-radius: 4px; white-space: nowrap; cursor: pointer; }
.ssb-sort-tag.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.ssb-search { }
.ssb-search-input { width: 100%; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 13px; background: #f9f9f9; }

/* ============ 日历视图切换 ============ */
.cal-view-toggle { display: flex; gap: 2px; margin-left: 8px; }
.cvt-btn { padding: 4px 12px; font-size: 12px; border-radius: 8px; background: #f5f5f5; color: var(--text-sub); cursor: pointer; }
.cvt-btn.active { background: var(--primary); color: #fff; }

/* 年视图 */
.cal-year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 0; }
.cal-year-month { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; border-radius: 8px; background: #f9f9f9; cursor: pointer; }
.cym-label { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.cym-income { font-size: 12px; font-weight: 700; }

/* 日历今日高亮 */
.cal-today { background: var(--primary); border-radius: 50%; }
.cal-today .cal-day { color: #fff; }
.cal-today .cal-income { color: #fff; }

/* ============ 日历银行筛选 ============ */
.cal-bank-filter { display: flex; gap: 8px; padding: 0 12px; margin-bottom: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative; }
.cal-bank-filter::-webkit-scrollbar { display: none; }
.cal-bank-filter .filter-tag { border-radius: 20px; padding: 4px 16px; font-size: 12px; flex-shrink: 0; }

/* ============ 我的页面 ============ */
.profile-card { display: flex; align-items: center; gap: 16px; padding: 20px 16px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.profile-info { display: flex; flex-direction: column; gap: 4px; }
.profile-name { font-size: 16px; font-weight: 700; color: var(--text-main); }
.profile-sub { font-size: 12px; color: var(--text-sub); }
.profile-menu-card { padding: 0; }
.pm-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.pm-item:last-child { border-bottom: none; }
.pm-item span { font-size: 14px; color: var(--text-main); }
.pm-arrow { margin-left: auto; color: var(--text-sub); font-size: 18px; }
.pm-status-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.pm-status-grid { display: flex; justify-content: space-between; }
.pm-stat { display: flex; flex-direction: column; align-items: center; flex: 1; }
.pms-value { font-size: 20px; font-weight: 700; color: var(--primary); }
.pms-label { font-size: 11px; color: var(--text-sub); margin-top: 4px; }

/* ============ 空状态引导 ============ */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.empty-state-text { font-size: 16px; font-weight: 600; color: var(--text-gray); margin-top: 16px; }
.empty-state-sub { font-size: 13px; color: var(--text-sub); margin-top: 8px; }

/* ============ 登录/注册页 ============ */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); padding: 20px; }
.auth-container { width: 100%; max-width: 360px; background: #fff; border-radius: 16px; padding: 36px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.auth-title { text-align: center; font-size: 22px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.auth-subtitle { text-align: center; font-size: 14px; color: var(--text-sub); margin-bottom: 28px; }

/* 维护中横幅 */
.auth-maintenance-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #FFF4E5;
    color: #D46B08;
    border: 1px solid #FFD591;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin: 0 0 20px 0;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-input { height: 44px; font-size: 15px; }
.auth-captcha-group { display: flex; gap: 10px; align-items: center; }
.auth-captcha-input { flex: 1; height: 44px; font-size: 15px; }
.auth-captcha-img { width: 120px; height: 44px; border-radius: 8px; cursor: pointer; border: 1px solid #eee; }
.auth-btn { width: 100%; height: 44px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 16px; font-weight: 600; margin-top: 6px; }
.auth-btn:disabled { opacity: 0.6; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 16px; }
.auth-switch-link { color: var(--primary); cursor: pointer; font-weight: 500; }

/* ============ 我的页面扩展 ============ */
.profile-admin-tag { display: inline-block; background: var(--primary); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.profile-logout { color: #e74c3c; font-size: 13px; cursor: pointer; white-space: nowrap; }

/* ============ 邀请码注册相关样式 ============ */
.auth-links { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.auth-link { color: var(--text-gray); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.auth-link:hover { color: var(--primary); }
.auth-link-dot { color: #ccc; font-size: 10px; }
.auth-input-with-toggle { position: relative; }
.auth-toggle-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-sub); cursor: pointer; white-space: nowrap; user-select: none; }
.auth-tip-box { background: #FFF8F0; border: 1px solid var(--primary-border); border-radius: 6px; padding: 10px 12px; font-size: 12px; color: var(--text-gray); line-height: 1.6; }

/* ============ 邀请码管理模块 ============ */
.invite-card { margin-top: 10px; }
.invite-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.invite-header .pm-status-title { margin-bottom: 0; }
.invite-gen-btn { background: var(--primary); color: #fff; border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.invite-gen-btn:disabled { opacity: 0.6; }
.invite-tip { font-size: 12px; color: var(--text-sub); margin-bottom: 12px; }
.invite-list { display: flex; flex-direction: column; gap: 8px; }
.invite-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #FAFAFA; border-radius: 8px; border: 1px solid #F0F0F0; }
.invite-item.invite-used { background: #F9F9F9; opacity: 0.7; }
.invite-item-left { display: flex; align-items: center; gap: 8px; }
.invite-code-text { font-size: 15px; font-weight: 600; color: var(--text-main); font-family: 'SF Mono', 'Consolas', monospace; letter-spacing: 0.5px; cursor: pointer; }
.invite-copy-hint { font-size: 11px; color: var(--primary); }
.invite-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.invite-status-tag { font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.tag-unused { background: #E8F5E9; color: #2E7D32; }
.tag-used { background: #F5F5F5; color: #999; }
.invite-used-info { font-size: 11px; color: var(--text-sub); }
.invite-empty { text-align: center; padding: 20px; font-size: 13px; color: var(--text-sub); }

/* ============ 子页面通用 ============ */
.sub-page { padding-bottom: 30px; }

/* ============ 调度更新页面 ============ */
.schedule-intro { padding: 16px 16px 8px; font-size: 13px; color: var(--text-gray); line-height: 1.6; }
.schedule-card { margin: 8px 12px; }
.schedule-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.schedule-bank-tag { font-size: 12px; color: #fff; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.schedule-bank-name { font-size: 15px; font-weight: 600; color: var(--text-main); flex: 1; }
.schedule-toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.schedule-toggle input { opacity: 0; width: 0; height: 0; }
.schedule-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 22px; transition: 0.3s; }
.schedule-toggle-slider:before { content: ''; position: absolute; height: 18px; width: 18px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; transition: 0.3s; }
.schedule-toggle input:checked + .schedule-toggle-slider { background: var(--primary); }
.schedule-toggle input:checked + .schedule-toggle-slider:before { transform: translateX(18px); }
.schedule-times { display: flex; flex-direction: column; gap: 8px; }
.schedule-time-row { display: flex; align-items: center; gap: 10px; }
.schedule-time-input { width: 100px; height: 36px; border: 1px solid #eee; border-radius: 6px; font-size: 15px; padding: 0 8px; color: var(--text-main); background: #fff; font-family: inherit; outline: none; }
.schedule-time-input:focus { border-color: var(--primary); }
.schedule-time-remove { font-size: 12px; color: #e74c3c; cursor: pointer; }
.schedule-add-time { align-self: flex-start; background: #FFF0E5; color: var(--primary); border: 1px dashed var(--primary-border); border-radius: 6px; padding: 4px 12px; font-size: 13px; cursor: pointer; margin-top: 4px; }
.schedule-disabled-hint { font-size: 13px; color: var(--text-sub); padding: 4px 0; }
.schedule-last-update { font-size: 11px; color: var(--text-sub); margin-top: 8px; padding-top: 8px; border-top: 1px solid #f5f5f5; }
.schedule-loading { text-align: center; padding: 20px; font-size: 14px; color: var(--text-sub); }
.invite-gen-btn-top { background: var(--primary); color: #fff; border-radius: 6px; padding: 4px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.invite-gen-btn-top:disabled { opacity: 0.6; }

/* ============ 系统日志页面 ============ */
.log-filter-bar { display: flex; gap: 8px; padding: 12px 16px 8px; }
.log-filter-tag { padding: 4px 14px; font-size: 13px; border-radius: 16px; background: #f0f0f0; color: var(--text-gray); cursor: pointer; transition: all .2s; }
.log-filter-tag.active { background: var(--primary); color: #fff; }
.log-filter-tag.log-tag-high.active { background: #e74c3c; }
.log-filter-tag.log-tag-medium.active { background: var(--primary); }
.log-filter-tag.log-tag-low.active { background: #27ae60; }
.log-list { padding: 0 12px; }
.log-item { background: var(--card-bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.log-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.log-level-badge { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; font-size: 11px; font-weight: 600; color: #fff; }
.log-level-badge.level-high { background: #e74c3c; }
.log-level-badge.level-medium { background: var(--primary); }
.log-level-badge.level-low { background: #27ae60; }
.log-category { font-size: 12px; color: var(--text-gray); background: #f5f5f5; padding: 1px 6px; border-radius: 3px; }
.log-time { font-size: 11px; color: var(--text-sub); margin-left: auto; }
.log-message { font-size: 14px; color: var(--text-main); line-height: 1.5; }
.log-meta { display: flex; gap: 12px; margin-top: 4px; font-size: 11px; color: var(--text-sub); }
.log-empty { text-align: center; padding: 40px; font-size: 14px; color: var(--text-sub); }
.log-loading { text-align: center; padding: 20px; font-size: 14px; color: var(--text-sub); }
.log-date-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; }
.log-date-input { border: 1px solid #e0e0e0; border-radius: 8px; padding: 5px 10px; font-size: 13px; color: var(--text-main); background: #fff; outline: none; }
.log-date-input:focus { border-color: var(--primary); }
.log-date-clear { font-size: 12px; color: var(--primary); cursor: pointer; padding: 4px 6px; }
.log-date-count { font-size: 12px; color: var(--text-sub); margin-left: auto; }
.log-more { text-align: center; padding: 12px; font-size: 13px; color: var(--primary); cursor: pointer; user-select: none; }
.log-more:active { opacity: 0.6; }

/* ============ 产品排行榜页面 ============ */
.lb-scope-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.lb-scope-btn { padding: 5px 16px; font-size: 13px; border-radius: 16px; background: #f0f0f0; color: var(--text-gray); cursor: pointer; transition: all .2s; }
.lb-scope-btn.active { background: var(--primary); color: #fff; font-weight: 500; }
.lb-count { font-size: 12px; color: var(--text-sub); margin-left: auto; }
.lb-sort-bar { display: flex; align-items: center; gap: 6px; padding: 10px 16px; flex-wrap: nowrap; overflow-x: auto; }
.lb-sort-tag { padding: 4px 12px; font-size: 12px; border-radius: 14px; background: #f5f5f5; color: var(--text-gray); white-space: nowrap; cursor: pointer; transition: all .2s; }
.lb-sort-tag.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.lb-list-card { padding: 4px 14px; }
.lb-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.lb-item:last-child { border-bottom: none; }
.lb-item:active { background: #fafafa; }
.lb-rank { flex-shrink: 0; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; font-size: 13px; font-weight: 700; }
.lb-rank-1 { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); color: #fff; box-shadow: 0 2px 6px rgba(255,165,0,0.4); }
.lb-rank-2 { background: linear-gradient(135deg, #E8E8E8 0%, #B8B8B8 100%); color: #fff; box-shadow: 0 2px 6px rgba(160,160,160,0.35); }
.lb-rank-3 { background: linear-gradient(135deg, #EDB98A 0%, #CD7F32 100%); color: #fff; box-shadow: 0 2px 6px rgba(205,127,50,0.35); }
.lb-rank-n { background: #f5f5f5; color: #999; }
.lb-item-left { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lb-name { font-size: 14px; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.lb-holding-tag { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; color: var(--primary); background: var(--primary-light); border-radius: 3px; }
.lb-item-right { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.lb-value { font-size: 15px; font-weight: 700; }
.lb-metric-label { font-size: 11px; color: var(--text-sub); margin-top: 1px; }
/* 同款爆发预判标签：疑似要爆发=橙金渐变预警，收益抬升=红色（已发生） */
.lb-ai-tag { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; border-radius: 3px; background: #f0f0f0; color: #999; white-space: nowrap; }
.lb-ai-hot { background: linear-gradient(135deg, #F7971E 0%, #FFD200 100%); color: #fff; font-weight: 600; }
.lb-ai-rise { background: linear-gradient(135deg, #E74C3C 0%, #FF8A65 100%); color: #fff; font-weight: 600; }
/* 排行榜：产品名与 AI 标签同行（标签更显眼） */
.lb-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lb-name-row .lb-name { flex-shrink: 1; min-width: 0; }
.lb-name-row .lb-ai-tag { flex-shrink: 0; margin-left: 0; }
.lb-ai-filter { border: 1px dashed #F7971E; color: #E6880E; }
.lb-ai-filter.active { background: linear-gradient(135deg, #F7971E 0%, #FFD200 100%); color: #fff; border-style: solid; font-weight: 600; }
/* 详情页 AI 同款爆发预判（独立卡片） */
.dic-ai-card { padding: 12px 16px; background: linear-gradient(135deg, #FFF8F0 0%, #FFF3E6 100%); border: 1px solid #FFE3C2; }
.dic-ai-head { display: flex; align-items: center; gap: 8px; }
.dic-ai-head .lb-ai-tag { margin-left: 0; padding: 2px 10px; font-size: 12px; }
.dic-ai-series { font-size: 11px; color: #D08830; }
.dic-ai-detail { margin-top: 6px; font-size: 12px; color: #B26A00; line-height: 1.5; }

/* ============ 用户管理权限配置 ============ */
.settings-user-perms { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.settings-perm-tag { display: inline-block; padding: 3px 12px; font-size: 12px; border-radius: 4px; background: #f5f5f5; color: #999; cursor: pointer; user-select: none; transition: all .2s; }
.settings-perm-tag.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.settings-perm-tag.admin-lock { background: #f5f5f5; color: #bbb; cursor: not-allowed; }

/* ============ 二级子菜单 ============ */
.pm-sub-menu { padding: 0; }
.pm-sub-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.pm-sub-item:last-child { border-bottom: none; }
.pm-sub-item span { font-size: 14px; color: var(--text-main); }

/* ============ 产品管理页面 ============ */
.pm-bank-filter { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 6px; }
.pm-bank-filter::-webkit-scrollbar { display: none; }
.pm-bank-row { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; align-items: center; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pm-bank-row::-webkit-scrollbar { display: none; }
.pm-bank-label { font-size: 10px; color: var(--text-gray); flex-shrink: 0; margin-right: 2px; }
.pm-bank-tag { display: flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 16px; font-size: 12px; color: var(--text-gray); background: #fff; border: 1px solid #eee; white-space: nowrap; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.pm-bank-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pm-bank-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pm-bank-tag.active .pm-bank-dot { background: #fff !important; }
.pm-bank-tag-agent.active { background: #1890ff; border-color: #1890ff; }
.pm-search-bar { display: flex; gap: 8px; padding: 12px 16px 8px; }
.pm-search-input { flex: 1; height: 38px; border: 1px solid #eee; border-radius: 8px; padding: 0 12px; font-size: 14px; color: var(--text-main); background: #fff; outline: none; }
.pm-search-input:focus { border-color: var(--primary); }
.pm-search-btn { background: var(--primary); color: #fff; border-radius: 8px; padding: 0 16px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pm-product-list { padding: 4px 12px 16px; }
.pm-product-card { background: var(--card-bg); border-radius: 10px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); position: relative; z-index: 1; }
.pm-pc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.pm-pc-name { font-size: 15px; font-weight: 700; color: var(--text-main); flex: 1; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-pc-risk { font-size: 10px; color: var(--primary); border: 1px solid var(--primary); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.pm-pc-info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pm-pc-bank { font-size: 10px; color: #fff; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.pm-pc-issu { font-size: 10px; color: #fff; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.pm-pc-code { font-size: 11px; color: var(--text-sub); }
.pm-pc-type { font-size: 11px; color: var(--text-gray); }
.pm-pc-holding-tag { font-size: 10px; color: #27ae60; background: #E8F5E9; padding: 1px 6px; border-radius: 3px; }
.pm-pc-nav-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #f5f5f5; }
.pm-pc-nav-label { font-size: 12px; color: var(--text-sub); }
.pm-pc-nav-value { font-size: 16px; font-weight: 700; color: var(--text-main); }
.pm-pc-nav-date { font-size: 12px; color: var(--text-sub); margin-left: auto; }
.pm-pc-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--text-sub); margin-bottom: 8px; }
.pm-pc-actions { display: flex; justify-content: flex-end; }
.pm-pc-update-btn { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); border-radius: 6px; padding: 4px 14px; font-size: 13px; font-weight: 500; cursor: pointer; }
.pm-pc-update-btn:disabled { opacity: 0.6; }
.pm-product-empty { text-align: center; padding: 40px; font-size: 14px; color: var(--text-sub); }
.pm-product-loading { text-align: center; padding: 20px; font-size: 14px; color: var(--text-sub); }

/* ============ 系统设置页面 ============ */
.settings-section { padding-bottom: 20px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.settings-row-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.settings-row-title { font-size: 15px; font-weight: 600; color: var(--text-main); }
.settings-row-desc { font-size: 12px; color: var(--text-sub); line-height: 1.4; }
.settings-input { height: 36px; border: 1px solid #eee; border-radius: 6px; padding: 0 10px; font-size: 14px; color: var(--text-main); background: #fff; outline: none; }
.settings-input:focus { border-color: var(--primary); }
.settings-textarea { border: 1px solid #eee; border-radius: 6px; padding: 8px 10px; font-size: 12px; line-height: 1.5; color: var(--text-main); background: #fff; outline: none; resize: vertical; min-height: 72px; font-family: Consolas, Monaco, monospace; }
.settings-textarea:focus { border-color: var(--primary); }
.settings-user-list { padding: 4px 12px; }
.settings-user-card { margin-bottom: 10px; }
.settings-user-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.settings-user-name { font-size: 15px; font-weight: 700; color: var(--text-main); }
.settings-user-admin-tag { font-size: 10px; color: #fff; background: var(--primary); padding: 1px 6px; border-radius: 3px; }
.settings-user-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-sub); margin-bottom: 8px; }
.settings-reset-btn { background: #FFF0E5; color: var(--primary); border: 1px solid var(--primary-border); border-radius: 6px; padding: 4px 14px; font-size: 13px; cursor: pointer; }
.settings-user-btns { display: flex; gap: 10px; }
.settings-delete-user-btn { background: #FFF0F0; color: #C0392B; border: 1px solid #E8B4B4; border-radius: 6px; padding: 4px 14px; font-size: 13px; cursor: pointer; }
.settings-delete-user-btn:hover { background: #C0392B; color: #fff; border-color: #C0392B; }
.settings-db-item { display: flex; flex-direction: column; gap: 8px; }
.settings-db-label { font-size: 14px; font-weight: 600; color: var(--text-main); }
.settings-db-hint { font-size: 12px; color: var(--text-sub); margin-top: 8px; padding-top: 8px; border-top: 1px solid #f5f5f5; }

/* ============ 采集客户端管理 ============ */
.collector-status-card { margin-bottom: 12px; }
.collector-status-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.collector-status-title { font-size: 15px; font-weight: 600; color: var(--text-main); }
.collector-refresh-btn { font-size: 12px; color: var(--primary); cursor: pointer; padding: 2px 8px; border: 1px solid var(--primary-border); border-radius: 5px; }
.collector-status-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #fafafa; }
.collector-status-row:last-child { border-bottom: none; }
.collector-status-name { font-size: 13px; font-weight: 600; color: var(--text-main); min-width: 96px; }
.collector-status-val { font-size: 12px; color: var(--text-sub); flex: 1; text-align: right; }
.collector-val-bad { color: #e74c3c; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot-on { background: #2ecc71; box-shadow: 0 0 4px rgba(46, 204, 113, 0.6); }
.status-dot-off { background: #e74c3c; box-shadow: 0 0 4px rgba(231, 76, 60, 0.5); }
.collector-alert-card { margin-bottom: 12px; background: #FFF8F0; border: 1px solid #FFE0B2; }
.collector-alert-title { font-size: 13px; font-weight: 700; color: #E65100; margin-bottom: 4px; }
.collector-alert-text { font-size: 12px; color: #BF360C; line-height: 1.6; }
.collector-actions-card { margin-bottom: 12px; }
.collector-action-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.collector-action-divider { height: 1px; background: #f5f5f5; }
.collector-btn { background: #FFF0E5; color: var(--primary); border: 1px solid var(--primary-border); border-radius: 6px; padding: 6px 16px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.collector-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.collector-btn-danger { background: #FFF5F5; color: #e74c3c; border-color: #F5C6CB; }
.collector-help-text { font-size: 12px; color: var(--text-sub); line-height: 1.6; padding: 0 4px 10px; }

/* ============ 银行链路端到端测试 ============ */
.collector-e2e-card { margin-bottom: 12px; }
.collector-e2e-desc { font-size: 11px; color: var(--text-sub); line-height: 1.6; margin-bottom: 8px; }
.collector-e2e-actions { display: inline-flex; gap: 12px; }
.collector-e2e-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.collector-e2e-row:last-child { border-bottom: none; }
.collector-e2e-name { width: 92px; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.collector-e2e-status { flex: 1; font-size: 12px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.collector-e2e-headrow { padding: 4px 0 6px; border-bottom: 1px solid var(--border-light, #eee); }
.collector-e2e-headrow .collector-e2e-name,
.collector-e2e-headrow .collector-e2e-status { font-size: 11px; color: var(--text-sub); font-weight: 600; }
.collector-e2e-op { display: inline-flex; gap: 6px; flex-shrink: 0; }
.e2e-ok { color: #1E8449; font-weight: 500; }
.e2e-fail { color: #C0392B; font-weight: 500; }
.e2e-testing { color: var(--primary); }
.collector-btn-sm { padding: 3px 10px; font-size: 12px; border-radius: 5px; }
.collector-btn-alt { background: #EBF5FB; color: #2471A3; border-color: #A9CCE3; }

/* ============ 产品管理：单产品更新按钮 ============ */
.pm-pc-update-app { background: #E8F4FB; color: #0A4D9E; border-color: #A9CCE3; margin-left: 8px; }

/* ============ 产品管理：批量更新操作区 ============ */
.pm-batch-card { margin: 10px 12px; padding: 12px 16px; }
.pm-batch-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pm-batch-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.pm-batch-progress { font-size: 12px; color: var(--primary); font-weight: 600; }
/* 批量更新停止按钮（2026-10-14 用户需求：等待过久可中断） */
.pm-batch-stop-btn { margin-left: 8px; padding: 2px 10px; font-size: 12px; border: none; border-radius: 4px; background: #e74c3c; color: #fff; cursor: pointer; font-weight: 600; }
.pm-batch-stop-btn:active { opacity: 0.8; }
.pm-batch-btns { display: flex; gap: 10px; }
.pm-batch-btn { flex: 1; height: 34px; border: 1px solid var(--primary-border); background: #FFF0E5; color: var(--primary); border-radius: 7px; font-size: 13px; cursor: pointer; }
.pm-batch-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pm-batch-btn-app { background: #E8F4FB; color: #0A4D9E; border-color: #A9CCE3; }
.pm-batch-hint { font-size: 12px; color: var(--text-sub); margin-top: 8px; padding-top: 6px; border-top: 1px solid #f5f5f5; }

/* ============ 批量更新结果弹窗 ============ */
.bm-content { max-width: 400px; padding: 0 0 18px; position: relative; }
.bm-content .modal-close { position: absolute; top: 10px; right: 12px; transform: none; font-size: 22px; color: #bbb; cursor: pointer; line-height: 1; padding: 4px 8px; z-index: 5; }
.bm-content .modal-close:hover { color: #666; }
.bm-top { text-align: center; padding: 28px 20px 0; }
.bm-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.bm-icon-ok { background: var(--primary-light); color: var(--primary); }
.bm-icon-warn { background: #FFF7E6; color: #FA8C16; }
.bm-status { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.bm-status-ok { color: var(--primary); }
.bm-status-warn { color: #FA8C16; }
.bm-bank { font-size: 12px; color: var(--text-sub); margin-bottom: 18px; }
.bm-stats { display: flex; gap: 10px; padding: 0 20px; margin-bottom: 14px; }
.bm-stat { flex: 1; text-align: center; background: #f8f8f8; border-radius: 10px; padding: 10px 0 8px; }
.bm-stat-num { font-size: 20px; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.bm-stat-ok .bm-stat-num { color: var(--primary); }
.bm-stat-fail .bm-stat-num { color: #ff4d4f; }
.bm-stat-zero .bm-stat-num { color: #bbb; }
.bm-stat-label { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.bm-fail-block { border-top: 1px solid #f0f0f0; padding: 12px 20px 0; margin-top: 2px; max-height: 240px; overflow-y: auto; }
.bm-fail-title { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 8px; }
.bm-fail-item { background: #fff7f7; border: 1px solid #ffd6d6; border-radius: 7px; padding: 8px 10px; margin-bottom: 8px; }
.bm-fail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.bm-fail-name { font-size: 13px; font-weight: 600; color: var(--text-main); word-break: break-all; cursor: pointer; }
.bm-fail-code { font-size: 11px; color: var(--text-sub); background: #fff; border: 1px solid #f0f0f0; border-radius: 4px; padding: 1px 6px; cursor: pointer; flex-shrink: 0; }
.bm-fail-reason { font-size: 12px; color: #ff4d4f; line-height: 1.5; word-break: break-all; }
.bm-close-btn { display: block; margin: 16px 20px 0; width: calc(100% - 40px); padding: 11px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; border: none; cursor: pointer; }

/* ============ 修改密码弹窗提示 ============ */
.pwd-hint { font-size: 12px; color: var(--text-sub); margin: 4px 0 14px; line-height: 1.5; }

/* ============ 产品名 tooltip 美化 ============ */
.pc-name[title], .pm-pc-name[title] { cursor: pointer; }
.pc-name[title]:hover, .pm-pc-name[title]:hover { position: relative; }
.pc-name[title]::after, .pm-pc-name[title]::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: rgba(40, 40, 40, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    word-break: break-all;
    max-width: 240px;
    min-width: 80px;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1.4;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pc-name[title]:hover::after, .pm-pc-name[title]:hover::after {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.3s;
}
.pc-name[title]:hover::before, .pm-pc-name[title]:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(40, 40, 40, 0.92);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}
.pc-name[title]:hover::before, .pm-pc-name[title]:hover::before {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.3s;
}

/* ============ 主题色选择器 ============ */
.theme-color-card { padding: 16px; }
.theme-color-header { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.theme-color-info { display: flex; flex-direction: column; gap: 2px; }
.theme-color-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.theme-color-desc { font-size: 11px; color: var(--text-sub); }
.theme-color-divider { height: 1px; background: #f0f0f0; margin: 12px 0; }
.theme-color-picker { display: flex; justify-content: space-around; align-items: center; padding: 4px 0; }
.theme-color-dot {
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid transparent; transition: all 0.2s ease; flex-shrink: 0;
}
.theme-color-dot.selected { border-color: #ddd; transform: scale(1.05); }
.theme-color-dot:hover { transform: scale(1.1); }
.theme-color-dot.selected:hover { transform: scale(1.12); }

/* ============ 代销银行选择弹窗 ============ */
/* 弹窗头部：标题绝对居中，关闭按钮固定右上 */
.modal-header { position: relative; display: flex; align-items: center; justify-content: center; padding: 15px 16px 11px; }
.modal-header > span:first-child { font-size: 16px; font-weight: 600; color: #333; }
.modal-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #999; cursor: pointer; border-radius: 50%; transition: all .15s; line-height: 1; }
.modal-close:hover { background: #f2f2f2; color: #333; }
.pm-pc-bank-editable { cursor: pointer; }
.pm-pc-settlement { font-size: 10px; color: #555; padding: 1px 6px; border-radius: 3px; white-space: nowrap; background: #F5F5F7; border: 1px solid #E0E0E6; }
/* 产品名称：点击预览产品明细（只读），名称右侧笔形按钮单独触发编辑名称 */
.pm-pc-name-link { cursor: pointer; }
.pm-pc-name-link:hover { color: var(--primary); }
.pm-pc-name-edit { font-size: 13px; color: #bbb; cursor: pointer; padding: 1px 5px; border-radius: 4px; flex-shrink: 0; line-height: 1.3; -webkit-user-select: none; user-select: none; }
.pm-pc-name-edit:hover { color: var(--primary); background: var(--primary-light); }
/* 最短持有期标签（程序提取值，点击可修改） */
.pm-pc-hold { font-size: 10px; color: #b7791f; padding: 1px 6px; border-radius: 3px; white-space: nowrap; background: #FFF7E6; border: 1px solid #F0DFB2; }
/* 成立日期标签（点击可修改） */
.pm-pc-inception { font-size: 10px; color: #1d6fa5; padding: 1px 6px; border-radius: 3px; white-space: nowrap; background: #E8F4FC; border: 1px solid #BFDCEE; }
.inception-clear-row { padding: 8px 16px 14px; text-align: center; }
.inception-clear-btn { font-size: 12px; color: #C0392B; background: #FFF0F0; border: 1px solid #E8B4B4; border-radius: 6px; padding: 4px 14px; cursor: pointer; }
.inception-clear-btn:hover { background: #C0392B; color: #fff; border-color: #C0392B; }
.inception-clear-btn:disabled { opacity: 0.6; cursor: default; }
.pm-pc-bank-editable:hover .pm-pc-bank-edit-icon { color: var(--primary); }
.abm-content { max-width: 340px; width: 90%; }
.abm-product-name { font-size: 14px; font-weight: 700; color: var(--text-main); padding: 0 16px 9px; border-bottom: 1px solid #f0f0f0; line-height: 1.4; }
.abm-hint { font-size: 11px; color: #aaa; text-align: center; padding: 8px 16px 0; }
.abm-options { display: flex; flex-wrap: wrap; gap: 9px; padding: 12px 14px 16px; justify-content: center; }
.abm-option { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 20px; font-size: 13px; color: var(--text-gray); background: #fff; border: 1px solid #eee; cursor: pointer; white-space: nowrap; transition: all .15s; min-width: 70px; }
.abm-option:hover { border-color: #ccc; background: #fafafa; }
.abm-option.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.abm-option.active .abm-dot { background: #fff !important; }
.abm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
/* T+N 赎回规则选项：3列等宽网格，整齐均衡 */
.abm-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 12px 16px 18px; }
.abm-options-grid .abm-option { width: 100%; min-width: 0; }

/* ============ 产品代码修改弹窗 ============ */
.code-edit-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px 0; }
.code-edit-label { font-size: 12px; color: var(--text-sub); flex-shrink: 0; width: 60px; }
.code-edit-old { font-size: 13px; color: var(--text-main); font-weight: 600; font-family: monospace; background: #F5F5F7; padding: 4px 10px; border-radius: 4px; }
.code-edit-input { flex: 1; font-size: 14px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; outline: none; font-family: monospace; }
.code-edit-input:focus { border-color: var(--primary); }
.code-edit-actions { display: flex; gap: 10px; padding: 18px 16px 16px; justify-content: flex-end; }
.code-edit-cancel { padding: 8px 20px; border-radius: 6px; font-size: 14px; border: 1px solid #ddd; background: #fff; color: var(--text-sub); cursor: pointer; }
.code-edit-save { padding: 8px 20px; border-radius: 6px; font-size: 14px; border: none; background: var(--primary); color: #fff; cursor: pointer; font-weight: 500; }
.code-edit-save:disabled { opacity: 0.6; }

/* ============ 发行代销行管理弹窗（2026-10-15） ============ */
.abm-sub { font-size: 10px; color: #999; font-weight: 400; }
.ibc-content { max-width: 440px; width: 92%; display: flex; flex-direction: column; }
.ibc-tabs { display: flex; gap: 14px; padding: 12px 16px 0; }
.ibc-tab { font-size: 13px; color: var(--text-sub); padding-bottom: 6px; cursor: pointer; border-bottom: 2px solid transparent; }
.ibc-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.ibc-list { flex: 1; overflow-y: auto; padding: 8px 12px; min-height: 120px; max-height: 240px; }
.ibc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #f2f2f2; }
.ibc-row-info { min-width: 0; }
.ibc-key { font-size: 13px; color: var(--text-main); font-weight: 600; }
.ibc-sub { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.ibc-actions { display: flex; gap: 12px; flex-shrink: 0; }
.ibc-edit { font-size: 12px; color: var(--primary); cursor: pointer; }
.ibc-del { font-size: 12px; color: #e74c3c; cursor: pointer; }
.ibc-form { border-top: 1px solid #f0f0f0; padding: 12px 16px 16px; }
.ibc-form-title { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 10px; }
.ibc-form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ibc-form-row label { font-size: 11px; color: var(--text-sub); }
.ibc-form-row input { font-size: 13px; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; outline: none; }
.ibc-form-row input:focus { border-color: var(--primary); }
.ibc-form-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.ibc-btn { padding: 7px 18px; border-radius: 6px; font-size: 13px; cursor: pointer; border: none; }
.ibc-btn-cancel { background: #fff; color: var(--text-sub); border: 1px solid #ddd; }
.ibc-btn-save { background: var(--primary); color: #fff; font-weight: 500; }
