/* COREX 客户端样式 - 统一响应式主题 */

/* 统一配色方案 - CSS 自定义属性 */
:root {
    /* 顶部导航高度 */
    --header-height: 56px;
    /* 底部 TabBar 高度 */
    --tabbar-height: 60px;
    /* 主色/强调色（绿色） */
    --color-primary: #22c55e;
    --color-primary-dark: #16a34a;
    --color-primary-light: #4ade80;
    
    /* 背景色 */
    --color-bg: #ffffff;
    --color-bg-secondary: #f5f5f5;
    
    /* 文字色 */
    --color-text: #333333;
    --color-text-secondary: #999999;
    
    /* 链接色 */
    --color-link: #0d6efd;
    
    /* 边框色 */
    --color-border: #e5e7eb;
    
    /* 兼容旧变量名（保持向后兼容） */
    --citex-primary: #22c55e;
    --citex-primary-light: #4ade80;
    --citex-primary-dark: #16a34a;
    --citex-dark: #f5f5f5;
    --citex-dark-light: #ffffff;
    --citex-dark-lighter: #e5e7eb;
}

/* 全局 */
html {
    scrollbar-gutter: stable;
}
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 禁用触摸高亮 */
}
body { font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* 禁止文本选择（交易界面） */
.no-select {
    -webkit-user-select: none;
    user-select: none;
}

/* 导航链接高亮 */
.nav-link.active { color: var(--color-primary); }

/* ==================== COREX 顶部导航栏 ==================== */

/* 顶部导航栏容器 */
.corex-header {
    position: relative;
    height: var(--header-height);
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 50;
}

/* 品牌区域（Logo + 名称） */
.corex-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

/* Logo 图标容器（尺寸对齐原站，紧凑样式） */
.corex-header-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

/* 标题区域 */
.corex-header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 品牌名称（大字，紧凑样式对齐原站） */
.corex-header-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* 副标题（小字，灰色） */
.corex-header-subtitle {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.2;
}

/* 组合品牌Logo（单图方式，对齐原站） */
.corex-header-brand-logo {
    height: 34px;
    width: auto;
    flex-shrink: 0;
}

/* 右侧操作区 */
.corex-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 用户名称 */
.corex-header-user {
    font-size: 13px;
    color: #6b7280;
}

/* 桌面端加宽 header 内容区 */
@media (min-width: 768px) {
    .corex-header {
        padding: 0 24px;
    }
    
    .corex-header-logo {
        width: 44px;
        height: 44px;
    }
    
    .corex-header-name {
        font-size: 24px;
    }
    
    .corex-header-subtitle {
        font-size: 12px;
    }
    
    .corex-header-brand-logo {
        height: 38px;
    }
}

/* ==================== COREX 底部 TabBar ==================== */

/* TabBar 容器 */
.corex-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--tabbar-height);
    background-color: #ffffff;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -1px 0 0 rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1;
}

/* 单个 Tab 项 */
.corex-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    min-width: 60px;
    padding: 0;
    text-decoration: none;
    color: #323233;
    transition: color 0.2s ease;
}

/* Tab 图标 */
.corex-tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Tab 文字 */
.corex-tab-label {
    font-size: 12px;
    line-height: 1.2;
}

/* Tab 图标切换（默认/活跃） */
.corex-tab-icon-active { display: none; }
.corex-tab.active .corex-tab-icon-default { display: none; }
.corex-tab.active .corex-tab-icon-active { display: block; }

/* Tab 选中态（绿色） */
.corex-tab.active {
    color: #008A42;
}

/* Tab 点击效果 */
.corex-tab:active {
    color: #008A42;
    transform: scale(0.95);
}

/* 平板端 TabBar 优化：铺满可用宽度（所有尺寸统一显示底部TabBar） */
@media (min-width: 768px) {
    .corex-tabbar {
        max-width: 100%;
        left: 0;
        transform: none;
    }
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #E5E7EB; }
::-webkit-scrollbar-thumb { background: #9CA3AF; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6B7280; }

/* 表格 */
table { border-collapse: collapse; }

/* 按钮通用 */
button:focus, input:focus, select:focus { outline: none; }

/* 移动端基础样式 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* 移动端触摸优化 */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ==================== 移动端 Tab 导航样式 ==================== */

/* 移动端底部 Tab 样式 */
.mobile-tab {
    transition: color 0.2s ease;
}

.mobile-tab.active {
    color: var(--citex-primary) !important;
}

.mobile-tab:active {
    color: var(--citex-primary);
    transform: scale(0.95);
}

/* 移动端内容区安全距离 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 767px) {
        body {
            padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
        }
    }
}

/* 汉堡菜单动画样式 */
.hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hamburger-menu:hover {
    color: var(--citex-primary);
}

.hamburger-icon {
    transition: all 0.3s ease;
}

/* 移动端菜单展开动画 */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu:not(.hidden) {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页脚样式 */
footer {
    background-color: var(--citex-dark-light);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--citex-primary);
}

/* 页脚响应式 */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem;
    }
    
    footer .grid {
        gap: 1.5rem;
    }
}

/* ==================== 下拉菜单样式 ==================== */

/* 下拉菜单容器 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* 下拉菜单面板 */
.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 60;
    padding: 0.25rem 0;
}

/* hover 展开 */
.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* 下拉菜单项 */
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #F3F4F6;
    color: var(--color-primary);
}

/* 下拉箭头 */
.dropdown-arrow {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.625rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 活跃导航指示线 */
.nav-link.active {
    border-bottom: 2px solid #3b82f6; /* border-blue-500 */
    padding-bottom: 2px;
}

/* 移动端子菜单 */
.mobile-submenu {
    display: none;
    padding-left: 1rem;
}

.mobile-submenu.open {
    display: block;
}

/* ==================== 价格变动动画 ==================== */

/* 价格上涨动画（旧版兼容） */
.price-up {
    color: #059669 !important;
    animation: price-flash 0.5s ease-in-out;
}

/* 价格下跌动画（旧版兼容） */
.price-down {
    color: #ef4444 !important;
    animation: price-flash 0.5s ease-in-out;
}

/* 价格更新闪烁效果（通用） */
.price-flash {
    animation: price-flash-light 0.6s ease-out;
}

/* 价格上涨闪烁 */
.price-flash-up {
    color: #059669 !important;
    animation: price-flash-green 0.8s ease-out;
}

/* 价格下跌闪烁 */
.price-flash-down {
    color: #ef4444 !important;
    animation: price-flash-red 0.8s ease-out;
}

@keyframes price-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes price-flash-light {
    0% { background-color: rgba(59, 130, 246, 0.2); }
    100% { background-color: transparent; }
}

@keyframes price-flash-green {
    0% { background-color: rgba(16, 185, 129, 0.2); transform: scale(1.05); }
    100% { background-color: transparent; transform: scale(1); }
}

@keyframes price-flash-red {
    0% { background-color: rgba(239, 68, 68, 0.2); transform: scale(1.05); }
    100% { background-color: transparent; transform: scale(1); }
}

/* ==================== Toast 通知系统 ==================== */

/* Toast 容器 - 固定右上角 */
#toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

/* 单个 Toast */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-width: 280px;
    max-width: 400px;
    background-color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

/* Toast 进入动画 */
.toast.toast-enter {
    opacity: 1;
    transform: translateX(0);
}

/* Toast 退出动画 */
.toast.toast-exit {
    opacity: 0;
    transform: translateX(100%);
}

/* Toast 图标 */
.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Toast 消息内容 */
.toast-message {
    flex: 1;
    font-size: 14px;
    color: #f3f4f6;
    line-height: 1.4;
}

/* Toast 关闭按钮 */
.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #f3f4f6;
}

/* Toast 类型样式 - 成功（绿色） */
.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

/* Toast 类型样式 - 错误（红色） */
.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

/* Toast 类型样式 - 警告（橙色） */
.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

/* Toast 类型样式 - 信息（蓝色） */
.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* ==================== 确认对话框 ==================== */

/* 遮罩层 */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 遮罩层进入动画 */
.confirm-overlay.confirm-enter {
    opacity: 1;
}

/* 遮罩层退出动画 */
.confirm-overlay.confirm-exit {
    opacity: 0;
}

/* 对话框 */
.confirm-dialog {
    background-color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    margin: 16px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.confirm-overlay.confirm-enter .confirm-dialog {
    transform: scale(1);
}

.confirm-overlay.confirm-exit .confirm-dialog {
    transform: scale(0.95);
}

/* 对话框标题 */
.confirm-header {
    padding: 20px 20px 12px;
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
}

/* 对话框内容 */
.confirm-body {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

/* 对话框按钮区 */
.confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 20px 20px;
}

/* 对话框按钮基础样式 */
.confirm-footer .btn {
    padding: 8px 16px;
    border-radius: 0.375rem;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

/* 取消按钮 */
.confirm-footer .btn-secondary {
    background-color: #374151;
    color: #d1d5db;
}

.confirm-footer .btn-secondary:hover {
    background-color: #4b5563;
}

/* 确认按钮 - 主色（绿色） */
.confirm-footer .btn-primary {
    background-color: #10b981;
    color: #ffffff;
}

.confirm-footer .btn-primary:hover {
    background-color: #059669;
}

/* 确认按钮 - 危险（红色） */
.confirm-footer .btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.confirm-footer .btn-danger:hover {
    background-color: #dc2626;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    #toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .confirm-dialog {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
}

/* ==================== 矿利宝卡片样式 ==================== */
.profile-kuanglibao-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 16px;
    border: 1px solid #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kuanglibao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.kuanglibao-title {
    font-size: 18px;
    font-weight: bold;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kuanglibao-yield-tag {
    font-size: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.kuanglibao-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.kuanglibao-balance-label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.kuanglibao-balance-value {
    font-size: 28px;
    font-weight: bold;
    color: #f3f4f6;
    font-family: 'Courier New', Courier, monospace;
}

.kuanglibao-stats {
    display: flex;
    gap: 32px;
    padding-top: 16px;
    border-top: 1px solid #374151;
}

.kuanglibao-stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.kuanglibao-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
}

.kuanglibao-actions {
    display: flex;
    gap: 12px;
}

.kuanglibao-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.kuanglibao-btn-in {
    background-color: #e47e30;
    color: white;
}

.kuanglibao-btn-in:hover {
    background-color: #d06a1f;
}

.kuanglibao-btn-out {
    background-color: #374151;
    color: #f3f4f6;
    border: 1px solid #4b5563;
}

.kuanglibao-btn-out:hover {
    background-color: #4b5563;
}

/* 矿利宝卡片 - 窄屏自适应 */
@media (max-width: 480px) {
    .kuanglibao-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .kuanglibao-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .kuanglibao-balance-value {
        font-size: 24px;
    }

    .kuanglibao-stat-value {
        font-size: 14px;
    }

    .kuanglibao-btn {
        font-size: 13px;
        padding: 8px;
    }
}

/* ==================== 订单确认弹窗 ==================== */
.order-confirm-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.order-confirm-dialog {
    background-color: #1f2937;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 480px;
    margin: 16px;
    overflow: hidden;
}

.order-confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #374151;
    font-size: 16px;
    font-weight: 600;
    color: #f3f4f6;
}

.order-confirm-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.order-confirm-close:hover {
    color: #f3f4f6;
}

.order-confirm-body {
    padding: 16px 20px;
}

.order-confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.order-confirm-table td {
    padding: 8px 4px;
    font-size: 13px;
}

.order-confirm-table td:nth-child(odd) {
    color: #9ca3af;
    width: 20%;
}

.order-confirm-table td:nth-child(even) {
    color: #f3f4f6;
    font-weight: 500;
    width: 30%;
}

.order-confirm-footer {
    padding: 12px 20px 20px;
}

.order-confirm-submit {
    width: 100%;
    padding: 10px;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.order-confirm-submit:hover {
    background-color: #2563eb;
}

/* 弹窗中的金额输入框（用于理财/矿池） */
.order-confirm-input {
    width: 100%;
    padding: 8px 12px;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: #f3f4f6;
    font-size: 14px;
    margin-top: 4px;
}

.order-confirm-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* ==================== 圆形倒计时 ==================== */
.countdown-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.countdown-circle.urgent {
    background: #ef5350;
}

/* ==================== 统计面板 ==================== */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stats-card {
    padding: 8px 4px;
    border-radius: 6px;
    text-align: center;
}

.stats-card .stats-label {
    font-size: 11px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.stats-card .stats-value {
    font-size: 16px;
    font-weight: 700;
}

.stats-card.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.stats-card.negative {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}

.stats-card.neutral {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}



.h5-loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #E5E7EB;
    border-top-color: var(--citex-primary);
    border-radius: 50%;
    animation: h5-spin 0.8s linear infinite;
}

@keyframes h5-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 全屏加载 */
.h5-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.h5-loading-text {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ==================== H5 卡片样式 ==================== */

.h5-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1rem;
}

.h5-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.h5-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

/* ==================== H5 列表样式 ==================== */

.h5-list {
    background-color: #FFFFFF;
    border-radius: 0.75rem;
    overflow: hidden;
}

.h5-list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.h5-list-item:last-child {
    border-bottom: none;
}

.h5-list-item:active {
    background-color: #F3F4F6;
}

/* ==================== H5 空状态 ==================== */

.h5-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: #6b7280;
    text-align: center;
}

.h5-empty-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.h5-empty-text {
    font-size: 0.875rem;
}

/* ==================== H5 价格涨跌色 ==================== */

.h5-price-up {
    color: #059669;
}

.h5-price-down {
    color: #ef4444;
}

/* ==================== H5 Toast 提示 ==================== */

.h5-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(55, 65, 81, 0.95);
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 200;
    max-width: 80%;
    text-align: center;
    animation: h5-toast-in 0.2s ease;
}

@keyframes h5-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==================== H5 下拉刷新指示器 ==================== */

.h5-pull-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    color: #6b7280;
    font-size: 0.75rem;
}

/* ==================== 公告滚动动画 ==================== */

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* 隐藏滚动条 */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==================== H5 自定义弹出框 ==================== */

/* 遮罩层 */
.h5-dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.h5-dialog-overlay.h5-dialog-enter {
    opacity: 1;
}

.h5-dialog-overlay.h5-dialog-exit {
    opacity: 0;
}

/* 对话框容器 */
.h5-dialog {
    background-color: #FFFFFF;
    border-radius: 0.75rem;
    width: calc(100% - 2rem);
    max-width: 360px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.h5-dialog-enter .h5-dialog {
    transform: scale(1);
}

.h5-dialog-exit .h5-dialog {
    transform: scale(0.9);
}

/* 对话框头部 */
.h5-dialog-header {
    padding: 1.25rem 1rem 0.75rem;
    text-align: center;
}

.h5-dialog-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

/* 对话框内容区 */
.h5-dialog-body {
    padding: 0 1rem 1rem;
    text-align: center;
}

.h5-dialog-body p {
    margin: 0;
    font-size: 0.9375rem;
    color: #6B7280;
    line-height: 1.5;
}

/* 输入框（prompt模式） */
.h5-dialog-input {
    width: 100%;
    height: 2.75rem;
    margin-top: 0.75rem;
    padding: 0 0.75rem;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    color: #374151;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.h5-dialog-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    outline: none;
}

.h5-dialog-input::placeholder {
    color: #9ca3af;
}

/* 输入框抖动动画 */
@keyframes h5-dialog-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.h5-dialog-input.shake {
    animation: h5-dialog-shake 0.3s ease;
    border-color: #ef4444;
}

/* 对话框底部按钮区 */
.h5-dialog-footer {
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}

/* 弹窗按钮基础样式 */
.h5-dialog-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.h5-dialog-btn:active {
    transform: scale(0.98);
}

/* 取消按钮 */
.h5-dialog-btn-cancel {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.h5-dialog-btn-cancel:active {
    background-color: rgba(34, 197, 94, 0.1);
}

/* 确认按钮 */
.h5-dialog-btn-confirm {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.h5-dialog-btn-confirm:active {
    background-color: var(--color-primary-dark);
}

/* 危险确认按钮 */
.h5-dialog-btn-danger {
    background-color: #ef4444;
    color: #FFFFFF;
}

.h5-dialog-btn-danger:active {
    background-color: #dc2626;
}

/* ==================== H5 期权页面样式 ==================== */

/* 期权页面 Tab 栏 */
.h5-option-tabs {
    background-color: #f3f4f6;
}

.h5-option-tab {
    transition: all 0.2s ease;
}

.h5-option-tab.active,
.h5-option-tab.bg-white {
    background-color: #ffffff;
    color: #1f2937;
}

/* 期权周期卡片 */
.h5-duration-card {
    min-width: 100px;
    padding: 12px 16px;
    background-color: #f9fafb;
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.h5-duration-card:active {
    transform: scale(0.98);
}

.h5-duration-selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* 预设金额按钮 */
.h5-amount-btn {
    transition: all 0.2s ease;
}

.h5-amount-btn:active {
    transform: scale(0.98);
}

.h5-amount-selected {
    border: 2px solid #3b82f6;
    background-color: #eff6ff !important;
    color: #3b82f6 !important;
}

/* 看涨按钮 */
.h5-option-call-btn {
    background-color: #22c55e;
    transition: all 0.2s ease;
}

.h5-option-call-btn:active {
    background-color: #16a34a;
    transform: scale(0.98);
}

/* 看跌按钮 */
.h5-option-put-btn {
    background-color: #ef4444;
    transition: all 0.2s ease;
}

.h5-option-put-btn:active {
    background-color: #dc2626;
    transform: scale(0.98);
}

/* 订单类型标签 */
.h5-order-call {
    color: #22c55e;
}

.h5-order-put {
    color: #ef4444;
}

/* 订单卡片 */
.h5-option-order {
    transition: all 0.2s ease;
}

.h5-option-order:active {
    background-color: #e5e7eb;
}

/* 产品选择弹窗动画 */
#h5-product-modal .absolute.bottom-0 {
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 图表类型切换按钮 */
.h5-chart-type-btn {
    transition: all 0.2s ease;
}

.h5-chart-type-btn:active {
    transform: scale(0.95);
}

/* 门户页 Tab 高亮状态 */
.h5-tab-btn.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* 门户页价格样式 */
.h5-portal-price {
    font-family: 'Consolas', 'Monaco', monospace;
}

/* ==================== 触摸反馈效果 ==================== */

.touching {
    opacity: 0.7;
}

/* ==================== 全屏布局（注册页新版本） ==================== */

/* 全屏布局 */
.layout-fullscreen {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    background-color: #f6f7fb;
    margin: 0;
}

/* 登录/注册页面容器 */
.login-page {
    width: 100%;
    padding: 0;
}

.login-content {
    padding: 16px;
    padding-top: 20px;
}

.login-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.login-brand-logo {
    width: 80px;
    height: auto;
}

.login-heading {
    margin: 2rem 0 1.5rem;
}

.login-heading h1,
.login-heading h5 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.field-group {
    margin-top: 20px;
}

.field-label {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.field-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #fff;
    border: none;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.field-input:focus {
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.15);
}

.field-input.error {
    border-color: #ef4444;
}

.field-action {
    margin-top: 2.5rem;
}

.field-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-input-wrapper .field-input {
    padding-right: 44px;
}

.field-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-eye-btn:hover {
    color: #6b7280;
}

.field-label-light {
    font-weight: 400;
    color: #4a5568;
    font-size: 14px;
}

.btn-login-submit {
    display: block;
    width: 100%;
    padding: 10.4px;
    font-size: 17.6px;
    font-weight: 400;
    color: #fff;
    background-color: #198754;
    border: 0.8px solid #198754;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-login-submit:hover:not(:disabled) {
    background-color: #157347;
}

.btn-login-submit:disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* 底部链接 */
.auth-bottom-links {
    text-align: center;
    padding: 16px;
    margin-top: 40px;
}

.auth-bottom-links a {
    color: #008a42;
    text-decoration: none;
    font-size: 16px;
}

/* ==================== 认证页面样式（登录/注册/忘记密码） ==================== */

/* 认证页面容器 */
.auth-page {
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    /* 水平居中所有子元素，解决宽屏下表单偏左问题 */
    align-items: center;
}

/* 顶部 Header 区域 */
.auth-header {
    padding: 20px 24px;
    /* 配合 auth-page 的 align-items: center，保持与表单等宽对齐 */
    width: 100%;
    max-width: 400px;
}

/* 品牌区域（Logo + 文字） */
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

/* Logo 图标 */
.auth-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* 品牌文字容器 */
.auth-brand-text {
    display: flex;
    flex-direction: column;
}

/* 品牌名称 */
.auth-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* 品牌副标题 */
.auth-brand-subtitle {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.2;
}

/* 表单主区域 */
.auth-main {
    flex: 1;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

/* 页面标题 */
.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
}

/* 错误消息 */
.auth-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 表单容器 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 表单字段容器 */
.auth-field {
    display: flex;
    flex-direction: column;
}

/* 字段标签 */
.auth-label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* 下划线输入框 */
.auth-input {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.auth-input:focus {
    border-bottom-color: var(--color-primary, #22c55e);
}

.auth-input::placeholder {
    color: #d1d5db;
}

/* 输入框包装器（用于密码显示切换） */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper .auth-input {
    padding-right: 40px;
}

/* 密码显示/隐藏按钮 */
.auth-eye-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.auth-eye-btn:hover {
    color: #6b7280;
}

/* 验证码输入区域 */
.auth-code-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.auth-code-input {
    flex: 1;
}

/* 验证码按钮 */
.auth-code-btn {
    flex-shrink: 0;
    padding: 0 16px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    color: var(--color-link, #0d6efd);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.auth-code-btn:hover {
    color: var(--color-primary, #22c55e);
}

.auth-code-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* 提交按钮 */
.auth-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--color-primary, #22c55e);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 8px;
}

.auth-submit:hover {
    background-color: var(--color-primary-dark, #16a34a);
}

.auth-submit:active {
    transform: scale(0.98);
}

/* 底部链接区域 */
.auth-links {
    margin-top: 32px;
    text-align: center;
}

/* 链接行 */
.auth-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* 分隔符 */
.auth-divider {
    color: #d1d5db;
}

/* 链接基础样式 */
.auth-link {
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-link:hover {
    opacity: 0.8;
}

/* 蓝色链接 */
.auth-link-blue {
    color: var(--color-link, #0d6efd);
}

/* 绿色链接 */
.auth-link-green {
    color: var(--color-primary, #22c55e);
}

/* 隐私政策区域 */
.auth-policy {
    font-size: 13px;
}

.auth-policy-text {
    color: #9ca3af;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .auth-header {
        padding: 16px 20px;
    }
    
    .auth-main {
        padding: 20px;
    }
    
    .auth-title {
        font-size: 22px;
        margin-bottom: 28px;
    }
}

/* ==================== 用户中心页面样式 ==================== */

/* 页面容器 */
.profile-page {
    min-height: 100vh;
    background-color: #f5f5f5;
    padding-bottom: 20px;
}

/* 用户信息区 */
.profile-user-section {
    background-color: #ffffff;
    padding: 20px 16px;
    margin-bottom: 12px;
}

.profile-user-name {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.profile-user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-realname {
    font-size: 13px;
    color: #6b7280;
}

.profile-credit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    background-color: #22c55e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
}

.profile-level-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

/* 资产概览卡片 */
.profile-asset-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    margin: 0 12px 12px;
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-asset-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.profile-asset-left {
    flex: 1;
}

.profile-asset-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.profile-asset-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.profile-asset-symbol {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

#profile-total-balance {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Consolas', 'Monaco', monospace;
}

.profile-asset-cny-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 20px;
    background-color: #22c55e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 8px;
}

.profile-asset-convert {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-asset-convert span {
    font-size: 12px;
    color: #9ca3af;
}

.profile-asset-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.profile-pnl-item {
    text-align: right;
}

.profile-pnl-label {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-bottom: 2px;
}

.profile-pnl-value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 可用余额 + 入金/出金操作 */
.profile-balance-section {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    margin: 0 12px 12px;
    padding: 16px;
    border-radius: 12px;
}

.profile-balance-item {
    display: flex;
    flex-direction: column;
}

.profile-balance-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.profile-balance-amount {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Consolas', 'Monaco', monospace;
}

.profile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-action-btn:active {
    transform: scale(0.92);
}

.profile-action-btn:active .profile-action-deposit {
}

.profile-action-btn:active .profile-action-withdraw {
}

.profile-action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-action-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.profile-action-icon svg {
    width: 24px;
    height: 24px;
}

.profile-action-deposit {
    background: transparent;
}

.profile-action-deposit + span {
    color: #16a34a;
}

.profile-action-withdraw {
    background: transparent;
}

.profile-action-withdraw + span {
    color: #d97706;
}

/* 功能菜单卡片 */
.profile-menu-card {
    background-color: #ffffff;
    margin: 0 12px;
    border-radius: 12px;
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.2s;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:active {
    background-color: #f9fafb;
}

.profile-menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-menu-icon svg {
    width: 18px;
    height: 18px;
}

.profile-menu-icon-verify {
    background-color: #dbeafe;
    color: #3b82f6;
}

.profile-menu-icon-order {
    background-color: #dbeafe;
    color: #3b82f6;
}

.profile-menu-icon-deposit-record {
    background-color: #dbeafe;
    color: #3b82f6;
}

.profile-menu-icon-withdraw-record {
    background-color: #ede9fe;
    color: #8b5cf6;
}

.profile-menu-icon-account {
    background-color: #ede9fe;
    color: #8b5cf6;
}

.profile-menu-icon-fund {
    background-color: #dbeafe;
    color: #3b82f6;
}

.profile-menu-icon-logout {
    background-color: #fee2e2;
    color: #ef4444;
}

.profile-menu-icon-invite {
    background-color: #dcfce7;
    color: #22c55e;
}

.profile-menu-icon-security {
    background-color: #dbeafe;
    color: #3b82f6;
}

.profile-menu-icon-password {
    background-color: #dbeafe;
    color: #3b82f6;
}

.profile-menu-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-menu-arrow {
    font-size: 20px;
    color: #d1d5db;
    font-weight: 300;
}

/* 认证状态标签 */
.profile-verify-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.profile-verify-none {
    background-color: #f3f4f6;
    color: #6b7280;
}

.profile-verify-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.profile-verify-approved {
    background-color: #dcfce7;
    color: #16a34a;
}

.profile-verify-rejected {
    background-color: #fee2e2;
    color: #dc2626;
}

/* 退出登录特殊样式 */
.profile-menu-logout {
    color: #ef4444;
}

/* ==================== 等级规则页面样式 ==================== */

.level-page {
    min-height: 100vh;
    background-color: #f5f5f5;
}

.level-desc {
    color: #6b7280;
    font-size: 13px;
    padding: 12px 16px 4px;
    line-height: 1.5;
}

.level-card-list {
    padding: 8px 0 24px;
}

.level-card {
    border-radius: 8px;
    margin: 12px 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-card:hover {
    transform: scale(1.02);
}

/* L0-L9 渐变背景 */
.level-card-0 { background: linear-gradient(135deg, rgb(102, 126, 234), rgb(118, 75, 162)); }
.level-card-1 { background: linear-gradient(135deg, rgb(240, 147, 251), rgb(245, 87, 108)); }
.level-card-2 { background: linear-gradient(135deg, rgb(79, 172, 254), rgb(0, 242, 254)); }
.level-card-3 { background: linear-gradient(135deg, rgb(250, 112, 154), rgb(254, 225, 64)); }
.level-card-4 { background: linear-gradient(135deg, rgb(48, 207, 208), rgb(51, 8, 103)); }
.level-card-5 { background: linear-gradient(135deg, rgb(168, 237, 234), rgb(254, 214, 227)); }
.level-card-6 { background: linear-gradient(135deg, rgb(255, 236, 210), rgb(252, 182, 159)); }
.level-card-7 { background: linear-gradient(135deg, rgb(255, 154, 158), rgb(254, 207, 239)); }
.level-card-8 { background: linear-gradient(135deg, rgb(255, 195, 160), rgb(255, 175, 189)); }
.level-card-9 { background: linear-gradient(135deg, rgb(255, 215, 0), rgb(255, 165, 0)); }

/* L5-L9 浅色卡片文字适配 */
.level-card-5,
.level-card-6,
.level-card-7,
.level-card-8,
.level-card-9 {
    color: #4a4a4a;
}
.level-card-5 .level-stat-label,
.level-card-6 .level-stat-label,
.level-card-7 .level-stat-label,
.level-card-8 .level-stat-label,
.level-card-9 .level-stat-label {
    color: rgba(0, 0, 0, 0.55);
}
.level-card-5 .level-sub,
.level-card-6 .level-sub,
.level-card-7 .level-sub,
.level-card-8 .level-sub,
.level-card-9 .level-sub {
    color: rgba(0, 0, 0, 0.5);
}
.level-card-5 .level-rebate-detail,
.level-card-6 .level-rebate-detail,
.level-card-7 .level-rebate-detail,
.level-card-8 .level-rebate-detail,
.level-card-9 .level-rebate-detail {
    color: rgba(0, 0, 0, 0.5);
}
.level-card-5 .level-badge,
.level-card-6 .level-badge,
.level-card-7 .level-badge,
.level-card-8 .level-badge,
.level-card-9 .level-badge {
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
}
.level-card-5 .level-rate-tag,
.level-card-6 .level-rate-tag,
.level-card-7 .level-rate-tag,
.level-card-8 .level-rate-tag,
.level-card-9 .level-rate-tag {
    background: rgba(0, 0, 0, 0.1);
    color: #4a4a4a;
}
.level-card-5 .level-stat,
.level-card-6 .level-stat,
.level-card-7 .level-stat,
.level-card-8 .level-stat,
.level-card-9 .level-stat {
    background: rgba(0, 0, 0, 0.06);
}
.level-card-5 .level-benefits-text,
.level-card-6 .level-benefits-text,
.level-card-7 .level-benefits-text,
.level-card-8 .level-benefits-text,
.level-card-9 .level-benefits-text {
    color: rgba(0, 0, 0, 0.6);
}

.level-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.level-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.level-info {
    flex: 1;
}

.level-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.level-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.level-rate-tag {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.level-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 20px;
}

.level-stat {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
}

.level-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.level-stat-value {
    font-size: 22px;
    font-weight: 700;
}

.level-card-footer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 20px 14px;
}

.level-rebate-value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
}

.level-rebate-detail {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.level-card-benefits {
    padding: 0 20px 14px;
}

.level-reward-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.level-card-5 .level-reward-hint,
.level-card-6 .level-reward-hint,
.level-card-7 .level-reward-hint,
.level-card-8 .level-reward-hint,
.level-card-9 .level-reward-hint {
    color: rgba(0, 0, 0, 0.4);
}

.level-benefits-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-top: 4px;
}

.profile-menu-icon-level {
    background-color: #fef3c7;
    color: #f59e0b;
}

/* ==================== 持仓页面样式 ==================== */

/* 页面容器 */
.position-page {
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* 搜索区域 */
.position-search-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    padding: 12px 16px;
    margin-bottom: 2px;
}

.position-search-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.position-search-icon svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.position-date-picker {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
}

.position-date-select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #374151;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.position-date-sep {
    color: #d1d5db;
    font-size: 14px;
}

.position-calendar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.position-calendar-icon svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.position-search-btn {
    padding: 10px 20px;
    background-color: #22c55e;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.position-search-btn:active {
    background-color: #16a34a;
}

/* 标签页切换 */
.position-tabs {
    display: flex;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.position-tab {
    flex: 1;
    padding: 14px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.position-tab-active {
    color: #22c55e;
}

.position-tab-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #22c55e;
    border-radius: 1px;
}

/* Tab 内容区 */
.position-tab-content {
    padding: 12px;
}

.position-tab-hidden {
    display: none;
}

/* 加载状态 */
.position-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.position-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: h5-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.position-error {
    color: #ef4444;
    font-size: 14px;
}

/* 订单列表 */
.position-order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 订单卡片 */
.position-order-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.position-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.position-order-symbol {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.position-order-dir {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.position-order-long {
    background-color: #dcfce7;
    color: #16a34a;
}

.position-order-short {
    background-color: #fee2e2;
    color: #dc2626;
}

/* 平仓类型标签 */
.position-close-reason {
    margin-left: 6px;
}

.position-close-reason-manual {
    background-color: #dbeafe;
    color: #2563eb;
}

.position-close-reason-expired {
    background-color: #fef3c7;
    color: #d97706;
}

.position-close-reason-liquidated {
    background-color: #fee2e2;
    color: #dc2626;
}

.position-order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.position-order-info-item {
    font-size: 13px;
}

.position-order-label {
    color: #9ca3af;
}

.position-order-value {
    color: #374151;
    font-weight: 500;
    font-family: 'Consolas', 'Monaco', monospace;
}

.position-order-pnl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 6px;
}

.position-order-pnl-value {
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
}

.position-pnl-profit {
    color: #16a34a;
}

.position-pnl-loss {
    color: #dc2626;
}

.position-order-close-price {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.position-order-countdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.position-order-duration {
    font-size: 12px;
    color: #9ca3af;
}

.position-countdown-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    padding: 0 8px;
    background-color: #22c55e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.position-countdown-expired {
    background-color: #9ca3af;
}

.position-order-time {
    font-size: 12px;
    color: #9ca3af;
}

/* 空状态 */
.position-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.position-empty-illustration {
    width: 120px;
    height: 100px;
    margin-bottom: 16px;
}

.position-empty-illustration svg {
    width: 100%;
    height: 100%;
}

.position-empty-text {
    font-size: 14px;
    color: #9ca3af;
}

/* ==================== 首页样式 ==================== */

/* 首页容器 */
.home-container {
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* ========== Banner 轮播区 ========== */
.home-banner {
    padding: 12px 12px 0;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    width: 100%;
    flex-shrink: 0;
}

.banner-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .banner-slide img {
        height: 240px;
    }
}

/* 默认 Banner 样式 */
.banner-default {
    height: 160px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.banner-default h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-default p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* 轮播指示点 */
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* ========== 快捷操作模块 ========== */
.home-quicklinks {
    padding: 0 16px;
}

/* 第一行：4个功能卡片 */
.quicklinks-row1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 32px;
}

/* 第二行：左侧2个 + 右侧客服 */
.quicklinks-row2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.quicklinks-row2-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quicklink-item {
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    height: 90px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.quicklink-item:active {
    transform: scale(0.95);
}

/* 图标图片（优先使用img） */
.quicklink-img {
    width: 34px;
    height: 34px;
    position: absolute;
    bottom: 40px;
    object-fit: contain;
}

/* SVG图标回退 */
.quicklink-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 40px;
}

.quicklink-icon svg {
    width: 22px;
    height: 22px;
}

.quicklink-label {
    position: absolute;
    bottom: 10px;
    font-size: 12px;
    color: #23262F;
    text-align: center;
    font-weight: 400;
}

/* 在线客服特殊卡片 */
.quicklink-service {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    height: 90px;
    border-radius: 12px;
    background-image: url('/client/images/kf-bg.png');
    background-size: 100% 100%;
    background-color: #ede9fe;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    padding: 0 16px;
    transition: transform 0.2s ease;
}

.quicklink-service:active {
    transform: scale(0.95);
}

.quicklink-service-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.quicklink-service-title {
    font-size: 12px;
    font-weight: 400;
    color: #23262F;
}

.quicklink-service-sub {
    font-size: 10px;
    color: #4c4d50;
    font-weight: 400;
}

.quicklink-service-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.quicklink-service-avatar svg {
    width: 100%;
    height: 100%;
}

/* ========== 系统公告跑马灯 ========== */
.home-announcements {
    margin: 0 12px 16px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.announcement-bar {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    gap: 10px;
}

.announcement-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 600;
}

.announcement-label svg {
    color: #f59e0b;
}

.announcement-label span {
    white-space: nowrap;
    color: #1f2937;
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.announcement-scroll-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 13px;
    color: #6b7280;
    animation: marquee 18s linear infinite;
    padding-left: 100%;
}

.announcement-scroll:hover .announcement-scroll-text {
    animation-play-state: paused;
}

.announcement-more-btn {
    flex-shrink: 0;
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    white-space: nowrap;
}

.announcement-more-btn:active {
    color: var(--color-primary);
}

/* ========== 产品推荐（横向轮播） ========== */
.home-recommend {
    margin: 0 12px 16px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 0 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-right: 16px;
}

.section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.section-more {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
}

.section-more:active {
    color: var(--color-primary);
}

.recommend-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    padding-right: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.recommend-scroll::-webkit-scrollbar {
    display: none;
}

.recommend-card {
    flex-shrink: 0;
    width: 120px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommend-card:active {
    transform: scale(0.98);
}

.recommend-chart {
    width: 100%;
    height: 40px;
}

.recommend-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-price {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

/* ========== 市场行情区 ========== */
.home-market {
    margin: 0 12px 16px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 市场 Tab 标签 */
.market-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.market-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.market-tab.active {
    color: #22c55e;
}

.market-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #22c55e;
    border-radius: 1px;
}

/* 市场列表 */
.market-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.market-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.market-item:active {
    transform: scale(0.98);
}

.market-item-cover {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.market-item-cover .market-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-item-cover .market-item-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
}

.market-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    gap: 8px;
}

.market-item-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.market-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-item-symbol {
    font-size: 12px;
    color: #9ca3af;
}

.market-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.price-value {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.price-change {
    font-size: 12px;
    font-weight: 500;
}

.price-change.up {
    color: #22c55e;
}

.price-change.down {
    color: #ef4444;
}

/* 空状态 */
.market-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.market-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.market-empty span {
    font-size: 14px;
}

/* 底部间距 */
.home-footer-space {
    height: 20px;
}

/* ========== 响应式优化 ========== */
@media (min-width: 768px) {
    /* 首页容器铺满可用宽度 */
    .home-container {
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    .home-banner {
        padding: 16px 16px 0;
    }
    
    .banner-carousel {
        border-radius: 16px;
    }
    
    .banner-default h2 {
        font-size: 1.5rem;
    }
    
    .home-quicklinks {
        padding: 0 16px;
    }
    
    .home-announcements,
    .home-recommend,
    .home-market {
        margin-left: 16px;
        margin-right: 16px;
        border-radius: 16px;
    }
    
    .recommend-card {
        width: 140px;
    }
}

/* ==================== 隐私政策页面样式 ==================== */

.privacy-page {
    min-height: 100vh;
    background: #f6f7fb;
}

.privacy-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
}

.privacy-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: absolute;
    left: 16px;
}

.privacy-back-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke: #fff;
}

.privacy-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 8px 0;
}

.privacy-content {
    padding: 16px;
    font-size: 16px;
    line-height: 24px;
    color: #000;
}

.privacy-content p {
    margin: 0 0 8px;
}

.privacy-section-title {
    font-weight: bold;
    margin: 20px 0 10px;
    font-size: 16px;
    color: #000;
}

/* ==================== 通用页面组件样式 ==================== */

/* 页面容器 */
.page-container {
    min-height: 100vh;
    background-color: #f5f5f5;
    padding-bottom: calc(var(--tabbar-height) + 20px);
}

/* 页面头部（返回按钮 + 标题） */
.page-header {
    background-color: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.page-header-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #22c55e;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    margin-right: 8px;
    flex-shrink: 0;
}

.page-header-back svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    stroke: #ffffff;
}

.page-header-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin-right: 40px;
}

/* 通用白色卡片 */
.page-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

/* 通用下划线输入框 */
.page-input {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.page-input:focus {
    border-bottom-color: var(--color-primary);
}

.page-input::placeholder {
    color: #d1d5db;
}

.page-input:disabled {
    color: #9ca3af;
    background-color: transparent;
}

/* 表单字段 */
.page-form-field {
    margin-bottom: 20px;
}

.page-form-label {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
}

/* 通用绿色按钮 */
.page-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.page-btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.page-btn-primary:active {
    transform: scale(0.98);
}

.page-btn-primary:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

/* 次要按钮 */
.page-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.page-btn-secondary:active {
    transform: scale(0.98);
}

/* 危险按钮 */
.page-btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.page-btn-danger:hover {
    background-color: #dc2626;
}

/* 通用列表 */
.page-list {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin: 12px;
}

.page-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.page-list-item:last-child {
    border-bottom: none;
}

.page-list-item:active {
    background-color: #f9fafb;
}

.page-list-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-list-icon svg {
    width: 18px;
    height: 18px;
}

.page-list-text {
    font-size: 15px;
    color: #374151;
}

.page-list-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-list-arrow {
    color: #d1d5db;
    font-size: 16px;
}

/* 空状态 */
.page-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.page-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.page-empty-icon svg {
    width: 100%;
    height: 100%;
    color: #9ca3af;
}

.page-empty-text {
    font-size: 14px;
    color: #9ca3af;
}

/* ==================== 客服聊天界面样式 ==================== */

/* 客服页面容器 */
.service-page {
    min-height: 100vh;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

/* 蓝色顶部栏 */
.service-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-header-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
}

.service-header-back svg {
    width: 20px;
    height: 20px;
}

.service-header-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.service-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.service-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
}

.service-status-dot.offline {
    background-color: #9ca3af;
}

/* 消息区域 */
.service-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 消息气泡 */
.service-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.service-message-received {
    align-self: flex-start;
    background-color: #ffffff;
    color: #374151;
    border-bottom-left-radius: 4px;
}

.service-message-sent {
    align-self: flex-end;
    background-color: #3b82f6;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.service-message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* 客服信息卡片 */
.service-agent-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.service-agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.service-agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.service-agent-info {
    flex: 1;
}

.service-agent-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.service-agent-desc {
    font-size: 13px;
    color: #6b7280;
}

/* 输入区域 */
.service-input-area {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
}

.service-input {
    flex: 1;
    padding: 10px 16px;
    background-color: #f3f4f6;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    color: #374151;
    outline: none;
}

.service-input:focus {
    background-color: #e5e7eb;
}

.service-input::placeholder {
    color: #9ca3af;
}

.service-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3b82f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.service-send-btn:hover {
    background-color: #2563eb;
}

.service-send-btn:active {
    transform: scale(0.95);
}

.service-send-btn svg {
    width: 20px;
    height: 20px;
}

/* 客服列表样式 */
.service-list {
    padding: 12px;
}

.service-list-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.service-list-item:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.service-list-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.service-list-avatar svg {
    width: 24px;
    height: 24px;
}

.service-list-info {
    flex: 1;
    min-width: 0;
}

.service-list-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-list-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.service-list-status.online {
    background-color: #dcfce7;
    color: #16a34a;
}

.service-list-status.offline {
    background-color: #f3f4f6;
    color: #6b7280;
}

.service-list-desc {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-list-arrow {
    color: #d1d5db;
    flex-shrink: 0;
}

.service-list-arrow svg {
    width: 16px;
    height: 16px;
}

/* ==================== 交易页面样式 ==================== */

/* 交易页面容器 */
.trade-page {
    min-height: 100vh;
    background-color: #ffffff;
}

/* 顶部导航栏 */
.trade-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #ffffff;
}

.trade-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #22c55e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.trade-back-btn svg {
    width: 18px;
    height: 18px;
}

.trade-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    flex: 1;
}

/* 价格信息三栏区域 */
.trade-price-info {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.trade-price-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-current-price {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    transition: background-color 0.6s ease-out;
}

.trade-price-change {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trade-price-mid {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.trade-price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.trade-stats-label {
    font-size: 12px;
    color: #999;
}

.trade-stats-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* 价格闪烁动画 */
.price-flash-up {
    animation: priceFlashUp 0.6s ease-out;
}
.price-flash-down {
    animation: priceFlashDown 0.6s ease-out;
}
@keyframes priceFlashUp {
    0% { background-color: rgba(76, 175, 80, 0.3); }
    100% { background-color: transparent; }
}
@keyframes priceFlashDown {
    0% { background-color: rgba(244, 67, 54, 0.3); }
    100% { background-color: transparent; }
}

.trade-price-up {
    color: #16a34a;
}

.trade-price-down {
    color: #dc2626;
}

/* 持仓记录分隔线 */
.trade-divider {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 16px 0;
    margin: 0;
}

/* 底部固定操作栏 */
.trade-bottom-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.trade-btn-up {
    padding: 14px;
    border-radius: 8px;
    background-color: #22c55e;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trade-btn-up:active {
    filter: brightness(0.92);
}

.trade-btn-down {
    padding: 14px;
    border-radius: 8px;
    background-color: #ef4444;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trade-btn-down:active {
    filter: brightness(0.92);
}

.trade-btn-commission {
    padding: 14px;
    border-radius: 8px;
    background-color: #0d6e6e;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trade-btn-commission:active {
    filter: brightness(0.92);
}

/* 交易下单弹窗 */
.trade-order-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.trade-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.trade-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.trade-modal-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-modal-product-name {
    font-size: 16px;
    color: #333;
}

.trade-modal-direction {
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 4px;
    color: #ffffff;
}

.trade-modal-direction.direction-up {
    background-color: #22c55e;
}

.trade-modal-direction.direction-down {
    background-color: #ef4444;
}

.trade-modal-direction.direction-commission {
    background-color: #f59e0b;
}

.trade-modal-close {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
}

.trade-modal-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.trade-modal-duration-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trade-modal-duration-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    text-align: center;
    min-width: 60px;
    flex: 1 1 auto;
    background: #ffffff;
    transition: all 0.2s;
}

.trade-modal-duration-card.active {
    border-color: #22c55e;
}

.trade-modal-duration-card .duration-seconds {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
}

.trade-modal-duration-card .duration-rate {
    font-size: 11px;
    color: #333;
    white-space: nowrap;
}

/* 手机屏幕优化 */
@media (max-width: 449px) {
    .trade-modal-duration-grid {
        gap: 6px;
    }
    .trade-modal-duration-card {
        padding: 6px 10px;
    }
    .trade-modal-duration-card .duration-seconds {
        font-size: 14px;
    }
    .trade-modal-duration-card .duration-rate {
        font-size: 10px;
    }
}

.trade-modal-balance {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.trade-modal-amount-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.trade-modal-step-btn {
    width: 32px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    flex-shrink: 0;
}

.trade-modal-step-btn:hover {
    background: #f9fafb;
}

.trade-modal-amount-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0 6px;
    font-size: 15px;
    text-align: left;
    outline: none;
    color: #333;
}

.trade-modal-amount-input:focus {
    border-color: #22c55e;
}

.trade-modal-amount-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.trade-modal-action-btn {
    flex: 1;
    padding: 6px 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    text-align: center;
}

.trade-modal-action-btn:hover {
    background: #f9fafb;
}

.trade-modal-quick-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trade-modal-quick-btn {
    padding: 6px 16px;
    border: 1px solid #22c55e;
    border-radius: 16px;
    background: #ffffff;
    color: #22c55e;
    font-size: 13px;
    cursor: pointer;
}

.trade-modal-quick-btn:hover {
    background: #f0fdf4;
}

.trade-modal-submit {
    width: 100%;
    padding: 14px;
    border: 2px solid #dc2626;
    border-radius: 8px;
    background: #ffffff;
    color: #dc2626;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.trade-modal-submit:hover {
    background: #fef2f2;
}

.trade-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 持仓列表 */
.trade-positions {
    padding: 0 16px 16px;
}

.trade-positions-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.trade-position-card {
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.trade-position-card:last-child {
    margin-bottom: 0;
}

.trade-position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.trade-position-symbol {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.trade-position-dir {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.trade-position-long {
    background-color: #dcfce7;
    color: #16a34a;
}

.trade-position-short {
    background-color: #fee2e2;
    color: #dc2626;
}

.trade-position-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

/* ==================== 全局响应式增强 ==================== */

/* ---------- PC 端（>768px）内容自适应铺满 ---------- */
@media (min-width: 768px) {
    /* 所有主要页面容器：铺满可用宽度，不做硬编码限宽 */
    .page-container,
    .profile-page,
    .position-page,
    .trade-page,
    .service-page {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* 认证页面（登录/注册等）：PC 端全屏背景 + 卡片居中 */
    .auth-page {
        max-width: none;
        margin: 0;
        background: linear-gradient(145deg, #f0f2f5 0%, #e6e9ef 100%);
        justify-content: center;
    }

    /* 认证页面子元素：白色卡片视觉 */
    .auth-header {
        max-width: 500px;
        background-color: #ffffff;
        border-radius: 16px 16px 0 0;
        padding: 36px 40px 12px;
    }

    .auth-main {
        flex: none;
        max-width: 500px;
        background-color: #ffffff;
        border-radius: 0 0 16px 16px;
        padding: 12px 40px 40px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }

    /* 主内容区域铺满背景 */
    main .home-container,
    main .page-container,
    main .profile-page,
    main .position-page,
    main .trade-page,
    main .service-page {
        box-shadow: none;
        background-color: #f5f5f5;
    }
}

/* ---------- 平板设备优化（768-1024px） ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
    .home-container,
    .page-container,
    .profile-page,
    .position-page,
    .trade-page,
    .service-page {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .auth-page {
        max-width: none;
    }

    /* 平板端认证页面卡片适当收窄 */
    .auth-header,
    .auth-main {
        max-width: 420px;
    }

    /* 平板端内容卡片加宽间距 */
    .page-card,
    .profile-asset-card,
    .profile-balance-section,
    .profile-menu-card,
    .trade-positions {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* ---------- 大屏桌面（>1024px）进一步优化 ---------- */
@media (min-width: 1024px) {
    .home-container,
    .page-container,
    .profile-page,
    .position-page,
    .trade-page,
    .service-page {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---------- 通用文字防溢出 ---------- */
.page-card,
.profile-asset-card,
.position-order-card,
.h5-card,
.page-list-item,
.profile-menu-item,
.service-card,
.announcement-text {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ---------- 通用图片自适应 ---------- */
img {
    max-width: 100%;
    height: auto;
}

/* ---------- 表格响应式：小屏可横向滚动 ---------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 480px;
}

/* ---------- 资产页表格自适应 ---------- */
.asset-table-head,
.asset-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 12px 16px;
    font-size: 13px;
}

.asset-table-head {
    border-bottom: 1px solid #f3f4f6;
    font-size: 12px;
    color: #9ca3af;
}

.asset-table-row {
    border-bottom: 1px solid #f3f4f6;
}

.asset-table-row:last-child {
    border-bottom: none;
}

.asset-cell-center {
    text-align: center;
}

.asset-cell-right {
    text-align: right;
}

.asset-coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asset-coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.asset-coin-name {
    font-weight: 600;
    color: #1f2937;
}

.asset-mono {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.asset-mono-frozen {
    color: #6b7280;
}

.asset-mono-balance {
    color: #1f2937;
    font-weight: 500;
}

/* ---------- 资产页 Tab 容器 ---------- */
.asset-tab-container {
    background-color: #ffffff;
    margin: 0 12px;
    border-radius: 12px;
    overflow: hidden;
}

.asset-tab-bar {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.asset-tab {
    flex: 1;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-tab.active {
    color: #22c55e;
    font-weight: 600;
    border-bottom-color: #22c55e;
}

/* ---------- 资产页操作按钮行 ---------- */
.asset-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 12px;
}

/* ---------- 小屏幕表单全宽 ---------- */
@media (max-width: 480px) {
    input[type="text"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        width: 100%;
        font-size: 16px; /* 防止 iOS 自动缩放 */
    }
}

/* ---------- 持仓页搜索栏小屏优化 ---------- */
@media (max-width: 380px) {
    .position-search-section {
        flex-wrap: wrap;
    }

    .position-date-picker {
        order: 2;
        width: 100%;
    }

    .position-search-btn {
        order: 3;
        width: 100%;
    }

    .position-search-icon {
        order: 1;
    }
}

/* ---------- 邀请页样式 ---------- */
.invite-tab-bar {
    background-color: #ffffff;
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.invite-tab {
    flex: 1;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.invite-tab.active {
    color: #22c55e;
    font-weight: 600;
    border-bottom-color: #22c55e;
}

.invite-content {
    padding: 16px 12px;
}

.invite-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #22c55e;
}

.invite-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invite-link-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
}

.invite-copy-btn {
    padding: 10px 16px;
    background-color: #22c55e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 44px;
}

.invite-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.invite-stat-card {
    text-align: center;
}

.invite-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
}

.invite-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.invite-earning-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.invite-earning-row:last-child {
    border-bottom: none;
}

.invite-earning-label {
    color: #6b7280;
}

.invite-earning-value {
    font-weight: 600;
    color: #1f2937;
}

/* ---------- 关于页样式 ---------- */
.about-logo-section {
    background-color: #ffffff;
    padding: 32px 16px;
    text-align: center;
    margin-bottom: 12px;
}

.about-logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-icon span {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.about-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
}

.about-brand-desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.about-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 22px;
    height: 22px;
}

.about-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.about-feature-desc {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.about-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-contact-item svg {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    flex-shrink: 0;
}

.about-contact-item span {
    font-size: 14px;
    color: #374151;
}

/* ---------- 出款账户页样式 ---------- */
.wa-section {
    margin: 12px;
}

.wa-section-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.wa-account-card {
    position: relative;
    margin: 0 0 12px 0;
}

.wa-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wa-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.wa-type-usdt {
    background-color: #dcfce7;
    color: #16a34a;
}

.wa-type-bank {
    background-color: #dbeafe;
    color: #2563eb;
}

.wa-account-date {
    font-size: 12px;
    color: #9ca3af;
}

.wa-account-detail {
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
    word-break: break-all;
}

.wa-account-detail .wa-label {
    color: #6b7280;
}

.wa-delete-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-delete-btn:hover,
.wa-delete-btn:active {
    color: #ef4444;
}

.wa-delete-btn svg {
    width: 20px;
    height: 20px;
}

.wa-add-section {
    margin: 16px 12px;
}

.wa-add-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    text-decoration: none;
}

.wa-add-card-info {
    display: flex;
    align-items: center;
}

.wa-add-card-emoji {
    font-size: 20px;
    margin-right: 12px;
}

.wa-add-card-title {
    font-weight: 600;
}

.wa-add-card-desc {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.wa-add-card svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- 实名认证页样式增强 ---------- */
.verify-status-box {
    margin: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verify-status-box.pending {
    background-color: #fef3c7;
}

.verify-status-box.approved {
    background-color: #dcfce7;
}

.verify-status-box.rejected {
    background-color: #fee2e2;
}

.verify-status-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.verify-status-text {
    font-size: 13px;
}

.verify-upload-section {
    margin: 0 12px;
}

.verify-upload-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.verify-upload-grid {
    display: flex;
    gap: 12px;
}

.verify-upload-item {
    flex: 1;
    min-width: 0;
}

.verify-upload-box {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}

.verify-upload-box.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.verify-upload-file {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.verify-upload-preview {
    width: 64px;
    height: 48px;
    margin: 0 auto 8px;
    background-color: #f9fafb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.verify-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verify-upload-label {
    font-size: 12px;
    color: #374151;
}

.verify-upload-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.verify-upload-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #dc2626;
}
.verify-upload-warning svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: #dc2626;
}

.verify-status-msg {
    margin: 12px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.verify-submit-section {
    margin: 16px 12px 24px;
}

/* 证件类型下拉选择框 */
.verify-doc-type-select {
    width: 100%;
    padding: 12px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}
.verify-doc-type-select:focus {
    border-bottom-color: var(--color-primary);
}
.verify-doc-type-select:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

/* 证件照占位图卡片 */
.verify-id-card-placeholder {
    width: 260px;
    max-width: 80%;
    aspect-ratio: 1.58 / 1;
    margin: 0 auto 16px;
    background: #f9fafb;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}
.verify-id-card-placeholder:hover {
    border-color: #9ca3af;
}
.verify-id-card-placeholder.disabled {
    pointer-events: none;
    opacity: 0.6;
}
.verify-id-card-placeholder .card-icon {
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.verify-id-card-placeholder .card-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    position: absolute;
    top: 26%;
    right: 22%;
}
.verify-id-card-placeholder .card-lines .line {
    height: 6px;
    border-radius: 3px;
    background: #d1d5db;
}
.verify-id-card-placeholder .card-lines .line-long { width: 60px; }
.verify-id-card-placeholder .card-lines .line-short { width: 42px; }
.verify-id-card-placeholder .card-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}
.verify-id-card-placeholder .card-bottom-lines {
    position: absolute;
    bottom: 20%;
    left: 15%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.verify-id-card-placeholder .card-bottom-lines .line {
    height: 6px;
    border-radius: 3px;
    background: #d1d5db;
}
.verify-id-card-placeholder .card-bottom-lines .line-long { width: 70px; }
.verify-id-card-placeholder .card-bottom-lines .line-short { width: 50px; }
.verify-id-card-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* 青色渐变提交按钮 */
.verify-btn-cyan {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #06b6d4, #22d3ee, #00e5ff);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}
.verify-btn-cyan:hover {
    opacity: 0.9;
}
.verify-btn-cyan:active {
    transform: scale(0.98);
}
.verify-btn-cyan:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* ---------- 上传操作面板（iOS 风格 Action Sheet） ---------- */
.upload-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.upload-sheet {
    background: #f7f7f8;
    border-radius: 12px 12px 0 0;
    width: 100%;
    max-width: 500px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.upload-sheet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-size: 16px;
    color: #007aff;
    background: #fff;
    cursor: pointer;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.upload-sheet-btn:first-child {
    border-radius: 12px 12px 0 0;
}

.upload-sheet-btn:active {
    background: #f3f4f6;
}

.upload-sheet-btn svg {
    width: 20px;
    height: 20px;
}

.upload-sheet-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    color: #007aff;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
    border-radius: 12px;
}

.upload-sheet-cancel:active {
    background: #f3f4f6;
}

/* ---------- 移动端触摸目标保证 ---------- */
@media (max-width: 768px) {
    .page-list-item,
    .profile-menu-item,
    .service-card,
    .wa-add-card {
        min-height: 48px;
    }

    /* 确保所有可交互元素有足够触摸区域 */
    .page-header-back,
    .wa-delete-btn,
    .invite-copy-btn,
    .position-search-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ==================== 稳定收益宣传轮播区域 ==================== */
.stable-promo {
    margin: 12px 0;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stable-promo::-webkit-scrollbar {
    display: none;
}
.stable-promo-track {
    display: flex;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}
.stable-promo-slide {
    flex: 0 0 85%;
    min-width: 280px;
    max-width: 360px;
    background: linear-gradient(135deg, #0a1628 0%, #132544 50%, #1a3a6e 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}
/* 背景装饰光晕 */
.stable-promo-slide::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.stable-promo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.stable-promo-logo {
    flex-shrink: 0;
}
.stable-promo-brand {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: 0.5px;
}
.stable-promo-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
}
.stable-promo-subtitle {
    font-size: 12px;
    opacity: 0.7;
    margin: 0 0 16px;
    letter-spacing: 2px;
}
.stable-promo-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}
.stable-promo-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stable-promo-stat .stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #60a5fa;
}
.stable-promo-stat .stat-value small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 2px;
}
.stable-promo-stat .stat-label {
    font-size: 11px;
    opacity: 0.6;
}
.stable-promo-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stable-promo-footer span {
    font-size: 10px;
    opacity: 0.5;
    white-space: nowrap;
}

/* ========== 区块淡入动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    animation: fadeInUp 0.5s ease-out both;
}

.fade-in-section:nth-child(1) { animation-delay: 0s; }
.fade-in-section:nth-child(2) { animation-delay: 0.08s; }
.fade-in-section:nth-child(3) { animation-delay: 0.16s; }
.fade-in-section:nth-child(4) { animation-delay: 0.24s; }
.fade-in-section:nth-child(5) { animation-delay: 0.32s; }
.fade-in-section:nth-child(6) { animation-delay: 0.4s; }

/* ========== 价格闪烁动画 ========== */
@keyframes priceFlash {
    0% { background-color: transparent; }
    20% { background-color: rgba(34, 197, 94, 0.2); }
    100% { background-color: transparent; }
}

.price-flash {
    animation: priceFlash 0.8s ease-out;
    border-radius: 4px;
}

/* ========== 涨跌箭头指示器 ========== */
.price-change.up::before,
.recommend-change.up::before {
    margin-right: 1px;
}

.price-change.down::before,
.recommend-change.down::before {
    margin-right: 1px;
}

/* ========== Tab 切换平滑过渡 ========== */
.market-list {
    transition: opacity 0.25s ease;
}

.market-item {
    transition: transform 0.2s ease, opacity 0.3s ease;
}

/* ========================================================================
   桌面端响应式布局 - 侧边栏导航与自适应布局
   ======================================================================== */

/* 侧边栏默认隐藏 */
.corex-sidebar {
    display: none;
}

/* ========== 平板端 (768px ~ 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* 平板端主内容区铺满可用宽度 */
    main {
        max-width: none;
        width: 100%;
        margin: 0;
    }
}

/* ========== 桌面端 (>=1024px) ========== */
/* 统一PC和H5体验：移除侧边栏布局，所有尺寸使用底部TabBar导航 */
@media (min-width: 1024px) {
    /* 【已移除】侧边栏相关规则：不再显示侧边栏、不再偏移body/header */
    /* 【已移除】隐藏TabBar规则：所有尺寸统一保留底部TabBar */

    /* 主内容区铺满可用宽度，padding 与移动端保持一致（无侧边栏偏移） */
    main {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0 16px;
    }

    /* 桌面端所有页面容器铺满，覆盖 768px 断点的限宽 */
    .page-container,
    .home-container,
    .profile-page,
    .position-page,
    .trade-page,
    .service-page {
        max-width: none;
        width: 100%;
        margin: 0;
    }
}

/* ========== 大屏桌面 (>=1440px)：适度增加内边距，保持流体布局一致 ========== */
@media (min-width: 1440px) {
    main {
        max-width: none;
        padding: 0 24px;
    }
}

/* ========================================================================
   Task 2：页面响应式自适应样式与全局美化增强
   ======================================================================== */

/* ======================== 八、全局美化增强（所有设备） ======================== */

/* 过渡动画 - 所有可交互元素 */
.quicklink-item, .recommend-card, .market-item, .profile-menu-item,
.position-order-card, .service-card,
.asset-table-row, .page-list-item,
button, .btn {
    transition: all 0.2s ease;
}

/* 页面淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
#content > * {
    animation: fadeIn 0.3s ease;
}

/* ======================== 平板端 (>=768px) ======================== */
@media (min-width: 768px) {
    /* 表单类页面居中限宽 */
    .page-container > .page-card,
    .verify-upload-section,
    .verify-submit-section {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 客服容器限宽 */
    .service-container {
        max-width: 960px;
        margin: 0 auto;
    }

    /* 邀请页内容限宽 */
    .invite-content {
        max-width: 560px;
        margin: 0 auto;
    }
}

/* ======================== 九、桌面端专属美化 (>=1024px) ======================== */
@media (min-width: 1024px) {

    /* --- 全局桌面端增强 --- */

    /* 字体适度增大 */
    body {
        font-size: 15px;
    }

    /* 卡片统一提升：增大圆角和阴影 */
    .page-card,
    .profile-asset-card,
    .profile-menu-card,
    .profile-balance-section,
    .trade-positions,
    .position-order-card,
    .service-card,
    .announcement-bar,
    .recommend-card {
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    /* 模块间距增大 */
    .home-banner,
    .home-quicklinks,
    .home-announcements,
    .home-recommend,
    .home-market {
        margin-bottom: 20px;
    }

    /* --- 一、首页 (home) 响应式 --- */

    /* Banner 轮播 */
    .banner-slide img {
        height: 280px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .banner-default {
        height: 280px;
        border-radius: 12px;
    }

    /* 快捷操作模块 */
    .quicklinks-grid {
        gap: 14px;
    }

    .quicklink-item {
        padding: 20px 8px 18px;
        min-height: 96px;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .quicklink-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    }

    .quicklink-icon,
    .quicklink-img {
        width: 52px;
        height: 52px;
    }

    .quicklink-icon svg {
        width: 26px;
        height: 26px;
    }

    .quicklink-label {
        font-size: 14px;
    }

    .quicklink-service {
        padding: 18px 28px;
    }

    .quicklink-service-title {
        font-size: 15px;
    }

    .quicklink-service-sub {
        font-size: 12px;
    }

    .quicklink-service-avatar {
        width: 56px;
        height: 56px;
    }

    /* 推荐产品卡片：从横向滚动变为 3 列网格 */
    .recommend-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        overflow-x: visible;
        padding: 0 16px 16px;
    }

    .recommend-card {
        min-width: unset;
        width: auto;
    }

    .recommend-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    /* 行情列表桌面端三列 */
    .market-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* 产品交易页列表：自动填充列数，铺满可用宽度 */
    .trade-product-content .market-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 0 16px;
    }

    .market-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .price-value {
        font-size: 16px;
    }

    /* 公告栏 */
    .announcement-bar {
        border-radius: 12px;
        padding: 12px 20px;
    }

    /* section-header */
    .section-header {
        padding: 16px 20px 8px;
    }

    .section-header h3 {
        font-size: 18px;
    }

    /* --- 二、交易页面 (trade) 响应式 --- */

    /* 底部操作栏桌面端 */
    .trade-bottom-bar {
        padding: 12px 24px;
    }

    .trade-btn-up:hover,
    .trade-btn-down:hover,
    .trade-btn-commission:hover {
        filter: brightness(1.08);
    }

    /* 弹窗桌面端稍大内边距 */
    .trade-modal-content {
        padding: 24px 32px;
    }

    /* 持仓/订单列表 */
    .trade-positions {
        padding: 0 24px 16px;
    }

    .trade-position-card {
        padding: 16px;
    }

    .trade-position-card:hover {
        background: #f9fafb;
    }

    /* --- 三、个人中心 (profile) 响应式 --- */

    /* 用户信息区 */
    .profile-user-section {
        padding: 24px 24px 16px;
    }

    .profile-user-name {
        font-size: 22px;
    }

    /* 资产卡片 */
    .profile-asset-card {
        padding: 24px;
    }

    .profile-asset-main {
        gap: 24px;
    }

    .profile-asset-amount {
        font-size: 28px;
    }

    /* 余额 + 操作 横向排列 */
    .profile-balance-section {
        padding: 20px 24px;
        gap: 28px;
    }

    /* 入金/出金按钮桌面端 hover */
    .profile-action-btn:hover {
        transform: translateY(-2px);
    }

    .profile-action-btn:hover .profile-action-deposit {
        box-shadow: 0 6px 16px rgba(34, 197, 94, 0.45);
    }

    .profile-action-btn:hover .profile-action-withdraw {
        box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
    }

    .profile-action-btn:active {
        transform: scale(0.92);
    }

    /* 功能菜单 hover */
    .profile-menu-item:hover {
        background: #f8f9fa;
        border-left: 3px solid var(--color-primary, #22c55e);
        padding-left: 13px;
    }

    .profile-menu-card {
        border-radius: 12px;
    }

    /* --- 四、资产页面 (asset) 响应式 --- */

    .asset-tab-container {
        padding: 0 8px;
    }

    .asset-table-row {
        padding: 16px 20px;
    }

    .asset-table-row:hover {
        background: #f9fafb;
    }

    .asset-table-head {
        padding: 12px 20px;
    }

    .asset-action-row {
        padding: 20px 24px;
        gap: 16px;
    }

    /* --- 五、持仓页面 (position) 响应式 --- */

    .position-order-card {
        padding: 18px 20px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .position-order-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .position-order-list {
        padding: 8px;
    }

    .position-search-section {
        padding: 16px 20px;
    }

    /* --- 六、客服页面 (service) 响应式 --- */

    .service-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .service-card {
        padding: 20px;
    }

    .service-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

    .service-name {
        font-size: 17px;
    }

    /* --- 七、其他页面响应式 --- */

    /* 表单类页面统一居中限宽 */
    .page-container > .page-card,
    .verify-upload-section,
    .verify-submit-section {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .page-container > .page-list {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* page-list-item hover */
    .page-list-item:hover {
        background: #f8f9fa;
    }

    /* 邀请页面 */
    .invite-content {
        max-width: 720px;
        margin: 0 auto;
    }

    .invite-tab-bar {
        max-width: 720px;
        margin: 0 auto;
    }

    .invite-stats-grid {
        gap: 20px;
    }

    .invite-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    /* 密码提示区域居中 */
    .page-container > div[style*="margin: 0 12px"] {
        max-width: 800px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
