/* ==========================================
 * 板块 1：全局多端 App 主题变量与核心 Setup
 * ========================================== */
:root {
    --main-gradient: linear-gradient(135deg, #e60000, #aa0000);
    --main-color: #d60000;
    --main-hover: #b30000;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #8c96a0;
    --gold-color: #ffaa00;
    --gold-gradient: linear-gradient(135deg, #ffcc00, #ff9500);
    --glass-bg: rgba(255, 255, 255, 0.96);
    --border-color: #eaeaea;
}

/* 全局基础重置，强力消除移动端 H5 固有的触控高亮黑影 */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: var(--bg-color); 
    color: var(--text-dark); 
    line-height: 1.5; 
    padding-bottom: 80px; 
    -webkit-font-smoothing: antialiased; 
}

/* 🚀 核心优化补丁：当排行榜天梯被激活时，隐式抹除顶部 Header Banner 空间，回归纯净看板 */
body:has(#view-rank.active) header { 
    display: none !important; 
}

/* ==========================================
 * 板块 2：顶置粘性品牌导航栏与独立过渡视图
 * ========================================== */
header { 
    background: var(--main-gradient); 
    color: #fff; 
    padding: 14px 15px; 
    text-align: center; 
    box-shadow: 0 2px 10px rgba(214,0,0,0.12); 
    position: relative; 
    overflow: hidden; 
    display: block; 
    clear: both; 
    z-index: 100; 
}

header h1 { 
    font-size: 16px; 
    font-weight: 800; 
    margin-bottom: 0; 
    letter-spacing: 1.5px; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.15); 
    display: inline-block; 
}

/* 视图分流选项卡平滑渐显过渡层 */
.page-view { 
    display: none; 
    padding: 12px; 
    padding-top: 14px !important; 
    animation: fadeIn 0.2s ease-out; 
    position: relative; 
    clear: both;
}
.page-view.active { 
    display: block; 
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}
/* ==========================================
 * 板块 3：横向弹性滑动图片轮播图容器
 * ========================================== */
.swiper-view { 
    width: 100% !important; 
    height: 180px !important; 
    overflow-x: auto; 
    display: flex !important; 
    flex-direction: row !important;
    scroll-snap-type: x mandatory; 
    background: #f0f0f0; 
    position: relative;
    margin: 0 auto 12px auto !important;
    clear: both;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    -webkit-overflow-scrolling: touch;
}
.swiper-view::-webkit-scrollbar { display: none; }
.swiper-item { min-width: 100% !important; width: 100% !important; height: 180px !important; scroll-snap-align: start; flex-shrink: 0 !important; overflow: hidden; }
.swiper-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

/* ==========================================
 * 板块 4：零延迟硬件加速滚动跑马灯公告栏（带呼吸灯提示）
 * ========================================== */
@keyframes marquee { 
    0% { transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(-100%, 0, 0); } 
}
.notice-bar { background: #fff1f1; border-bottom: 1px solid #ffd1d1; color: var(--main-color); padding: 12px 16px; font-size: 13px; display: flex; align-items: center; position: relative; margin-bottom: 12px; border-radius: 8px; clear: both; cursor: pointer; }
.notice-label { font-weight: bold; margin-right: 12px; flex-shrink: 0; background: var(--main-gradient); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px; box-shadow: 0 2px 5px rgba(214,0,0,0.2); }
.notice-window { overflow: hidden; position: relative; flex-grow: 1; height: 18px; display: flex; align-items: center; margin-right: 70px; }
.notice-text { position: relative; white-space: nowrap; display: inline-block; padding-left: 100%; animation: marquee 16s linear infinite; font-weight: 600; }

.notice-btn { position: absolute; right: 12px; background: var(--main-gradient); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(214,0,0,0.3); animation: noticePulse 1.8s infinite ease-in-out; }
@keyframes noticePulse { 0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(214,0,0,0.3); } 50% { transform: scale(1.05); box-shadow: 0 2px 12px rgba(214,0,0,0.5); } }

/* ==========================================
 * 板块 5：菜单分类切换吸顶导航标签与大厅卡片流
 * ========================================== */
.tabs-container { display: flex; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin: 0 0 12px 0; border-radius: 10px; padding: 4px; border: 1px solid rgba(255,255,255,0.6); position: sticky; top: 0; z-index: 99; box-shadow: 0 8px 20px rgba(0,0,0,0.05); clear: both; }
.tab-btn { flex: 1; text-align: center; padding: 12px; font-size: 15px; font-weight: bold; border: none; background: none; color: #555; cursor: pointer; border-radius: 8px; transition: all 0.3s; }
.tab-btn.active { background: var(--main-gradient); color: #fff; box-shadow: 0 4px 12px rgba(214,0,0,0.25); }

.card { background: var(--card-bg); border-radius: 14px; padding: 18px; margin-bottom: 14px; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,0.03); overflow: hidden; border: 1px solid rgba(0,0,0,0.02); cursor: pointer; }
.author-box { display: flex; align-items: center; width: 100%; position: relative; margin-bottom: 14px; }
.avatar { width: 44px; height: 44px; background: var(--main-gradient); color: #fff; border-radius: 50%; text-align: center; line-height: 44px; font-weight: 800; font-size: 16px; margin-right: 12px; flex-shrink: 0; overflow: hidden; display: flex; justify-content: center; align-items: center; border: 2px solid #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-meta { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; position: relative; }
.author-meta h4 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; width: 100%; color: #111; }
.author-level { font-size: 10px; color: var(--main-color); background: #fff0f0; border: 1px solid rgba(214,0,0,0.25); padding: 1px 5px; border-radius: 4px; font-weight: 600; flex-shrink: 0; }
/* ==========================================
 * 🎯 终极封顶：基于您亲自微调的完美黄金视觉参数（长标题全展出版）
 * ========================================== */
.art-title { 
    /* 🚀 完美对齐：一比一强制锁定您调校出的最完美黄金感官数值 */
    font-size: 16px !important; 
    font-weight: 700 !important; 
    color: #222222 !important; 
    margin-top: 6px !important; 
    line-height: 1.45 !important; 
    word-break: break-all !important; 

    /* 🚀 核心纠偏：彻底洗刷掉历史 nowrap 和 ellipsis 限制，允许标题遇到边界自发向下自由折行展示 */
    white-space: normal !important;        
    display: block !important; 
    overflow: visible !important; 
    text-overflow: clip !important; 

    /* 🚀 绝杀排版：右侧内边距只留 15px 常规间距，文字会彻底打通，100% 灌满向右侧的所有空白处，绝不留白！ */
    padding-right: 15px !important; 
}

/* 🚀 配套加固：将右上角的红单/黑单钢印移到最外层（改为绝对定位的高层贴纸）
 * 这样文字即使换行占满了右侧空白，红单印章也会极其精美、极具立体感地凌空盖在标题右边，绝不重叠冲突！ */
.stamp-mark {
    position: absolute !important;
    top: 6px !important;
    right: 12px !important;
    z-index: 50 !important;
    pointer-events: none !important;
}

.top-right-price { margin-left: auto; color: var(--main-color); font-size: 16px; font-weight: 800; }

/* 红黑仿真微雕钢印防伪标签 */
.stamp-mark { position: absolute; right: 15px; top: 15px; width: 62px; height: 62px; border-radius: 50%; border: 2px dashed; text-align: center; line-height: 58px; font-weight: 900; font-size: 20px; transform: rotate(-18deg); pointer-events: none; z-index: 5; opacity: 0.85; }
/* ==========================================
 * 板块 6：全滑动内幕详情页弹出画布画布抽屉
 * ========================================== */
.sub-page-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 999; display: none; overflow-y: auto; padding-bottom: 50px; }
.sub-page-mask.active { display: block; }
.sub-header { background: #fff; padding: 16px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.back-btn { font-size: 22px; font-weight: bold; color: var(--main-color); cursor: pointer; padding: 0 8px; }
.sub-body { padding: 14px; }
.sub-card { background: #fff; border-radius: 14px; padding: 18px; margin-bottom: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.02); overflow: hidden; }
.disclaimer-box { background: #fff5f5; border: 1px dashed rgba(214,0,0,0.2); padding: 14px; border-radius: 8px; color: #555; font-size: 12px; text-align: justify; margin-top: 12px; line-height: 1.6; }
.content-box { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 18px; margin-top: 14px; min-height: 90px; border-left: 4px solid var(--main-color); }
.lock-tip { background: #fff5f5; border: 1px solid #ffe3e3; border-radius: 10px; padding: 25px 15px; text-align: center; cursor: pointer; }
.copy-btn { background: var(--main-gradient); color: #fff; border: none; padding: 12px 20px; font-size: 14px; font-weight: bold; border-radius: 8px; cursor: pointer; margin-top: 14px; width: 100%; display: block; text-align: center; box-shadow: 0 4px 15px rgba(214,0,0,0.2); }

/* 往期历史战绩走势跟踪清单 */
.history-title { font-size: 14px; font-weight: bold; color: #444; margin: 18px 4px 10px; display: flex; align-items: center; gap: 5px; }
.history-card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; position: relative; border: 1px solid #f0f0f0; }
.history-card.win-border { border-top: 3px solid #cc0000; }
.history-card.lose-border { border-top: 3px solid #4a5568; }
.history-art-title { font-size: 14px; font-weight: bold; color: #111; margin-bottom: 8px; padding-right: 75px; }

/* ==========================================
 * 板块 7：实时连中火爆天梯排行榜样式组件
 * ========================================== */
.rank-item { display: flex; align-items: center; background: #fff; padding: 18px 16px; margin-bottom: 12px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(0,0,0,0.02); position: relative; }
.rank-num { width: 36px; font-size: 15px; font-weight: 800; color: #8c96a0; text-align: center; }
.rank-item.rank-top-1 { background: linear-gradient(95deg, #fffdf2 0%, #ffffff 100%); border: 1px solid #f6e3b4; }
.rank-item.rank-top-1::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, #dfb966, #cda141); border-radius: 12px 0 0 12px; }
.rank-item.rank-top-2 { background: linear-gradient(95deg, #f8fafd 0%, #ffffff 100%); border: 1px solid #d0d7de; }
.rank-item.rank-top-2::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, #a8b4c0, #8a97a5); border-radius: 12px 0 0 12px; }
.rank-item.rank-top-3 { background: linear-gradient(95deg, #fdfaf7 0%, #ffffff 100%); border: 1px solid #e9d5c7; }
.rank-item.rank-top-3::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, #ce8f65, #b3734b); border-radius: 12px 0 0 12px; }
.streak-tag { margin-left: auto; background: var(--main-gradient); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: bold; }
.streak-tag.zero { background: #f0f0f2; color: #8a8a8f; font-weight: normal; }

/* ==========================================
 * 板块 8：个人财务卡片、菜单垂直列表与授权门禁
 * ========================================== */
.profile-card { background: linear-gradient(135deg, #d60000 0%, #700000 100%); color: #fff; border-radius: 16px; padding: 26px 20px; margin-bottom: 16px; text-align: center; position: relative; overflow: hidden; }
.profile-avatar { width: 72px; height: 72px; background: #fff; color: #d60000; border-radius: 50%; font-size: 30px; font-weight: 900; margin: 0 auto 14px; overflow: hidden; display: flex; justify-content: center; align-items: center; border: 3px solid rgba(255,255,255,0.25); }
.balance-box { background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; margin-top: 16px; width: 100%; }
.recharge-btn { background: linear-gradient(135deg, #ffcc00, #ff9500); color: #5c3a00; border: none; padding: 8px 18px; font-size: 12px; font-weight: 800; border-radius: 20px; cursor: pointer; }
.lock-login-panel { background: #fff; border-radius: 16px; padding: 45px 24px; text-align: center; border: 1px solid #f2f2f2; margin: 20px 14px; display: flex; flex-direction: column; align-items: center; }
.lock-icon-box { font-size: 48px; margin-bottom: 16px; }
.lock-login-panel h3 { font-size: 19px; font-weight: 800; color: #111; margin-bottom: 10px; }
.lock-login-panel p { font-size: 13px; color: #666; margin-bottom: 28px; }

.menu-list { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #eeeeee; margin-top: 12px; }
.menu-item { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #f7f7f7; cursor: pointer; font-size: 14px; font-weight: 600; color: #2c3238; background: #fff; align-items: center; }
.menu-item::after { content: '›'; color: #b0b5bc; font-size: 24px; font-weight: bold; margin-left: auto; }
.menu-item.no-arrow::after { display: none; }
.user-section { display: none; }
.expert-section { display: none; }

/* ==========================================
 * 板块 9：💎 曜石黑悬浮玻璃双选项卡对账中枢规范组件
 * ========================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6) !important; backdrop-filter: blur(5px) !important; -webkit-backdrop-filter: blur(5px) !important; display: flex; justify-content: center; align-items: center; z-index: 9999 !important; visibility: hidden; opacity: 0; transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); }
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-box { background: #fff; border-radius: 16px !important; width: 88%; max-width: 350px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04) !important; transform: scale(0.95); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-overlay.active .modal-box { transform: scale(1); }

.modal-header { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important; color: #fff !important; padding: 16px 20px !important; font-size: 15px !important; font-weight: 800 !important; text-align: center !important; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.modal-body { padding: 24px 20px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 6px; color: #444; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 13px 14px; border: 1px solid #e2e8f0; border-radius: 8px; outline: none; font-size: 14px; background: #f8fafc; color: #1a1a1a; }
.modal-btns { display: flex; border-top: 1px solid #f1f5f9; background: #f8fafc; }
.modal-btn { flex: 1; padding: 15px; border: none; background: none; font-size: 15px; cursor: pointer; font-weight: bold; text-align: center; }
.modal-btn.confirm { color: #d60000; border-left: 1px solid #f1f5f9; }
.modal-btn.cancel { color: #64748b; }

.modal-tabs-bar { display: flex; justify-content: space-around; background: #f1f5f9; padding: 4px; margin: 12px 14px 4px 14px; border-radius: 8px; border: 1px solid #e2e8f0; }
.modal-tab-item { flex: 1; text-align: center; font-size: 13px; font-weight: bold; padding: 8px 0; cursor: pointer; border-radius: 6px; transition: all 0.2s ease-in-out; }

.order-item-card { background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 10px !important; padding: 14px !important; margin-bottom: 10px !important; box-shadow: 0 2px 6px rgba(0,0,0,0.01) !important; transition: transform 0.15s ease; }
.order-item-card:active { transform: scale(0.98); }

.ui-success-bubble { background: #f6ffed !important; border: 1px solid #b7eb8f !important; color: #389e0d !important; font-weight: bold; padding: 8px 16px; border-radius: 20px; display: inline-block; font-size: 12px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(56,158,13,0.06); }

/* 🆕 裂变复制成功气泡动态弹跳 */
@keyframes bounceNotice {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
 * 板块 10：📱 H5 固态粘性底部原生跨页主导航栏
 * ========================================== */
.bottom-nav { position: fixed !important; bottom: 0 !important; left: 0; width: 100%; height: 60px; background: rgba(255, 255, 255, 0.96) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(0,0,0,0.06); display: flex; z-index: 990; }
.nav-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #70757a; cursor: pointer; font-weight: 600; gap: 2px; }
.nav-tab .nav-icon { font-size: 18px; }
.nav-tab.active { color: var(--main-color); font-weight: bold; }

.toast-pop { position: fixed; top: 40%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.85); color: #fff; padding: 12px 24px; border-radius: 30px; font-size: 14px; font-weight: bold; z-index: 10000; display: flex; align-items: center; gap: 6px; }
.loading-spinner { font-size: 28px; animation: spin 1s linear infinite; display: inline-block; margin-bottom: 8px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
