/* ==================== 主样式文件 ==================== */
/* 引入模块化样式 */
@import url('modules/livestream.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 技术指标分析下拉选择框样式 - 确保文字可见 */
select[id*="indicatorChart"][id*="Interval"] option,
select[id*="indicatorChart"][id*="Type"] option,
select[id*="indicatorChart"][id*="Symbol"] option {
    background: #1a1a2e !important;
    color: #e5e7eb !important;
}

select[id*="indicatorChart"][id*="Interval"]:focus option:checked,
select[id*="indicatorChart"][id*="Type"]:focus option:checked,
select[id*="indicatorChart"][id*="Symbol"]:focus option:checked {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

/* 下拉刷新样式 */
.pull-refresh-container {
    position: relative;
    overflow: hidden;
}

.pull-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pull-refresh-indicator.active {
    transform: translateY(0);
}

.pull-refresh-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 14px;
}

.pull-refresh-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #3b82f6;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pull-refresh-icon.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 波段交易动态提醒动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* 灯光呼吸效果动画 */
@keyframes breathe {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
        filter: brightness(1.3);
    }
}

/* 灯光图标呼吸效果 */
.fa-lightbulb {
    animation: breathe 2s ease-in-out infinite;
    display: inline-block;
}

/* K线Tab切换样式 */
.kline-tabs {
    display: none; /* 桌面端默认隐藏 */
    margin-bottom: 16px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.kline-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kline-tab:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.kline-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #FFA500);
    border-color: var(--primary-color);
    color: #2c2c2c;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.kline-tab i {
    font-size: 1em;
}

/* 自定义Tooltip样式 */
.custom-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    max-width: 400px;
    z-index: 10000;
    pointer-events: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.95);
}

/* 响应式布局：移动端K线图表通过Tab切换 */
@media (max-width: 768px) {
    .kline-tabs {
        display: none !important; /* 移动端隐藏tab，直接显示两个图表 */
    }
    
    .kline-charts-section {
        grid-template-columns: 1fr !important; /* 单列布局，纵向排列 */
        gap: 16px !important; /* 图表之间的间距 */
    }
    
    /* 移动端：显示前两个图表，隐藏第三个 */
    .kline-chart-item {
        display: block !important;
    }
    
    /* 移动端：隐藏第三个图表 */
    .kline-chart-item[data-chart-id="chart3"] {
        display: none !important;
    }
}

/* 桌面端：三个图表并排显示 */
@media (min-width: 769px) {
    .kline-tabs {
        display: none !important; /* 桌面端隐藏tab */
    }
    
    .kline-chart-item {
        display: block !important; /* 桌面端显示所有图表 */
    }
    
    /* 桌面端：标记记录三个表格并排显示 */
    .marker-log-tabs {
        display: none !important; /* 桌面端隐藏tab */
    }
    
    .marker-log-item {
        display: block !important; /* 桌面端显示所有表格 */
    }
    
    /* 移动端：AI决策和预测器纵向排列 */
    .bottom-section {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* 移动端：优化AI实时决策卡片 */
    .ai-card {
        min-width: 0;
        overflow: hidden;
    }
    
    /* 移动端：倒计时按钮改为纵向排列 */
    .countdown-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    
    .countdown-controls button {
        width: 100% !important;
        flex: 1;
    }
    
    /* 移动端：强行启动按钮优化 */
    .btn-force-analyze {
        position: static !important;
        transform: none !important;
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100%;
    }
    
    /* 移动端：AI决策卡片头部优化 */
    .ai-decision-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        position: relative;
    }
    
    /* 移动端：AI卡片内容优化 */
    .ai-latest {
        padding: 15px !important;
        font-size: 0.9em;
    }
    
    .ai-signal {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .signal-badge, .confidence-badge {
        width: 100%;
        text-align: center;
    }
    
    .ai-prices {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .ai-history {
        max-height: 200px !important;
        font-size: 0.85em;
    }
    
    /* 移动端：增强型AI预测器图表高度调整 */
    #enhancedEmaChart {
        height: 280px !important;
    }
}

:root {
    --primary-color: #FFD700;
    --success-color: #32CD32;
    --danger-color: #FF4500;
    --warning-color: #FFA500;
    --bg-dark: #ffffff;
    --bg-card: #fafafa;
    --bg-hover: #f0f0f0;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(255, 215, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(255, 215, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left i {
    font-size: 2em;
    color: var(--primary-color);
}

.header h1 {
    font-size: 1.8em;
    font-weight: 600;
}

.status-badge {
    background: linear-gradient(135deg, var(--primary-color), #FFA500);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
    color: #2c2c2c;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ai-model-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 215, 0, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.ai-model-info i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.ai-model-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-model-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-model-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.status-dot.connected {
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-dot.error {
    background: var(--danger-color);
    box-shadow: 0 0 8px var(--danger-color);
}

.status-dot.unknown {
    background: var(--warning-color);
    box-shadow: 0 0 8px var(--warning-color);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    color: var(--text-secondary);
}

/* 用户信息按钮 */
.btn-user-info {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-user-info:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-user-info i {
    font-size: 1.2em;
    color: var(--primary-color);
}

/* 浮动手动交易按钮 */
.floating-manual-trade-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFA500 100%);
    color: #2c2c2c;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
    z-index: 1000;
    min-width: 140px;
    justify-content: center;
}

.floating-manual-trade-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, var(--primary-color) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* 悬浮联系客服按钮 */
.floating-customer-service-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.4);
    z-index: 1000;
    min-width: 140px;
    justify-content: center;
}

.floating-customer-service-btn:hover {
    background: linear-gradient(135deg, #06ad56 0%, #07c160 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.6);
}

.floating-customer-service-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.floating-customer-service-btn .btn-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .floating-customer-service-btn {
        bottom: 100px;
        right: 20px;
        padding: 14px 20px;
        min-width: 120px;
        font-size: 0.9em;
    }
    
    .floating-customer-service-btn .btn-text {
        display: none;
    }
}

.floating-manual-trade-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.floating-manual-trade-btn i {
    font-size: 1.2em;
}

.floating-manual-trade-btn .btn-text {
    font-size: 0.95em;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-manual-trade-btn {
        bottom: 20px;
        right: 20px;
        min-width: 60px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        font-size: 0.9em;
    }
    
    .floating-manual-trade-btn .btn-text {
        display: none; /* 移动端只显示图标 */
    }
    
    .floating-manual-trade-btn i {
        font-size: 1.5em;
    }
}

/* 保留原有的header按钮样式（可能其他地方还在使用） */
.btn-header-manual {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFA500 100%);
    color: #2c2c2c;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-header-manual:hover {
    background: linear-gradient(135deg, #FFA500 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-header-manual i {
    font-size: 1em;
}

/* 时间显示样式 */
.time-display {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 215, 0, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.time-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-item i {
    font-size: 1.2em;
    color: var(--primary-color);
}

.time-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-label {
    font-size: 0.75em;
    color: var(--text-secondary);
    font-weight: 500;
}

.time-value {
    font-size: 0.9em;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.time-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* 卡片通用样式 */
.card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}
.card-header.collapsible {
    cursor: pointer;
    user-select: none;
}
.card-header .collapse-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}
.card-header.collapsed .collapse-icon {
    transform: translateY(-50%) rotate(-90deg);
}
.manual-trade-card .card-body {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 2000px; /* 足够大的默认高度 */
}
.manual-trade-card .card-body.collapsed {
    max-height: 0 !important;
    opacity: 0;
}

/* 可折叠内容样式 */
.collapsible-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out, visibility 0.3s ease-out;
    opacity: 1;
    visibility: visible;
    padding: 12px;
}

.collapsible-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.collapse-icon {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.3s ease;
    display: inline-block;
}

.card-header i {
    font-size: 1.4em;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1.2em;
    font-weight: 600;
    flex: 1;
}

/* AI决策卡片强制分析按钮 */
.btn-force-analyze {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.btn-force-analyze:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.btn-force-analyze:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-force-analyze i {
    font-size: 0.9em;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* 支付弹窗层级最高，确保显示在最前面 */
#paymentQrCodeModal {
    z-index: 10001 !important;
}

#paymentQrCodeModal .modal-content {
    z-index: 10002 !important;
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: modalSlideIn 0.3s ease;
}

/* 标记记录弹窗特殊样式 */
.marker-log-modal {
    max-width: 90% !important;
    width: 1200px !important;
}

/* 标记记录Tab切换样式 */
.marker-log-tabs {
    display: none; /* 桌面端默认隐藏 */
    margin-bottom: 16px;
    padding: 0 20px;
    gap: 8px;
}

.marker-log-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-log-tab:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.marker-log-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #FFA500);
    border-color: var(--primary-color);
    color: #2c2c2c;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 标记记录表格网格 */
.marker-log-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.marker-log-item {
    width: 100%;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

/* 顶部卡片布局 */
.top-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 移动端：K线图表区域间距优化 */
.kline-charts-section {
    margin-bottom: 20px;
}

/* 移动端：底部区域间距优化 */
.bottom-section {
    gap: 16px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.info-item .value {
    font-weight: 600;
    font-size: 1.1em;
}

.leverage {
    color: var(--warning-color);
    font-weight: 700;
}

/* 价格显示 */
.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.price-change {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 5px;
    padding: 4px 12px;
    border-radius: 10px;
}

.price-change.positive {
    color: var(--success-color);
    background: rgba(52, 168, 83, 0.1);
}

.price-change.negative {
    color: var(--danger-color);
    background: rgba(234, 67, 53, 0.1);
}

/* 持仓显示 */
.position-display {
    text-align: center;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    background: var(--bg-hover);
}

.position-type {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.position-type.long {
    color: var(--success-color);
}

.position-type.short {
    color: var(--danger-color);
}

.position-size {
    font-size: 1.1em;
    color: var(--text-secondary);
}

/* 持仓列表样式 - 纵向排列，每行一个持仓 */
.positions-list {
    width: 100%;
}

.position-item {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.position-item:last-child {
    border-bottom: none;
}

.position-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
    white-space: nowrap;
    overflow-x: auto;
    font-size: 0.9em;
}

.position-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.position-cell.position-long {
    color: var(--success-color);
}

.position-cell.position-short {
    color: var(--danger-color);
}

.position-label {
    font-weight: 600;
    font-size: 0.85em;
    min-width: 35px;
}

.position-value {
    font-weight: 600;
    color: var(--text-primary);
}

.position-entry {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.position-pnl {
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

.position-pnl.positive {
    color: var(--success-color);
}

.position-pnl.negative {
    color: var(--danger-color);
}

.position-separator {
    color: var(--text-secondary);
    opacity: 0.3;
    padding: 0 8px;
    flex-shrink: 0;
}

.position-contract {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
    flex-shrink: 0;
}

.pnl {
    font-weight: 700;
}

.pnl.positive {
    color: var(--success-color);
}

.pnl.negative {
    color: var(--danger-color);
}

/* K线图表 */
.chart-section {
    margin-bottom: 30px;
}

.chart-card {
    min-height: 500px;
}

/* K线图表卡片特殊高度 */
.kline-charts-section .chart-card {
    min-height: auto;
    height: auto;
}

.chart {
    width: 100%;
    height: 450px;
}

/* K线图表特殊高度 */
#klineChart1m,
#klineChart5m,
#klineChart15m {
    height: 267px !important;
}

/* 底部区域 */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* AI决策卡片 */
.ai-latest {
    background: rgba(255, 215, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.ai-signal {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.signal-badge {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
}

.signal-badge.BUY {
    background: var(--success-color);
    color: white;
}

.signal-badge.SELL {
    background: var(--danger-color);
    color: white;
}

.signal-badge.HOLD {
    background: var(--warning-color);
    color: white;
}

.confidence-badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    background: var(--bg-dark);
}

.confidence-badge.HIGH {
    border: 2px solid var(--success-color);
    color: var(--success-color);
}

.confidence-badge.MEDIUM {
    border: 2px solid var(--warning-color);
    color: var(--warning-color);
}

.confidence-badge.LOW {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
}

.ai-reason {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.ai-prices {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
}

.stop-loss {
    color: var(--danger-color);
}

.take-profit {
    color: var(--success-color);
}

.ai-history {
    max-height: 300px;
    overflow-y: auto;
}

.ai-history-item {
    background: rgba(255, 215, 0, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.85em;
    border-left: 3px solid var(--primary-color);
}

/* 交易记录表格 */
.trades-table {
    overflow-x: auto;
    max-height: 400px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    position: sticky;
    top: 0;
    background: var(--bg-hover);
    z-index: 10;
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9em;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9em;
}

tbody tr:hover {
    background: var(--bg-hover);
}

.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px !important;
}

/* 信号统计 */
.stats-section {
    margin-bottom: 30px;
}

.stats-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mini-chart {
    height: 300px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .bottom-section {
        grid-template-columns: 1fr;
    }
    
    .stats-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* 移动端：整体容器padding优化 */
    body {
        padding: 10px !important;
    }
    
    .container {
        padding: 0;
    }
    
    /* 移动端：卡片间距优化 */
    .top-cards {
        grid-template-columns: 1fr;
        gap: 16px !important;
        margin-bottom: 20px !important;
    }
    
    /* 移动端：卡片内部padding优化 */
    .card {
        padding: 15px !important;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    /* 移动端：card-header间距优化 */
    .card-header {
        margin-bottom: 15px !important;
        padding-bottom: 12px !important;
        gap: 8px !important;
    }
    
    /* 移动端：card-body间距优化 */
    .card-body {
        padding-top: 0;
    }
    
    /* 账户与持仓模块header在移动端的布局 */
    .account-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .account-card .card-header > div:first-child {
        width: 100%;
        flex-wrap: wrap;
    }
    
    /* 移动端：标题和按钮在同一行 */
    .account-card .card-header > div:first-child h3 {
        flex: 1;
        min-width: 120px;
    }
    
    /* 移动端：记录和启动按钮在标题旁边 */
    .account-card .card-header > div:first-child > div:last-child {
        margin-left: auto;
        flex-wrap: wrap;
    }
    
    .account-card .card-header > div:last-child {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        margin-left: 0 !important;
    }
    
    .account-card .card-header > div:last-child > div {
        flex: 1;
        min-width: 120px;
    }
    
    /* 移动端：波段交易按钮组 */
    .account-card #bandTradingBtn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    /* 确保按钮样式正确应用 */
    .account-card #bandTradingBtn.btn-stop {
        background: linear-gradient(135deg, var(--danger-color) 0%, #dc3545 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .account-card #bandTradingBtn.btn-start {
        background: linear-gradient(135deg, var(--success-color) 0%, #28a745 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .account-card #bandTradingIndicator {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    /* 移动端：header间距优化 */
    .header {
        flex-direction: row;
        gap: 10px;
        padding: 12px 15px;
        margin-bottom: 16px !important;
        border-radius: 12px;
    }
    
    /* 移动端：header-left和header-right在同一行 */
    .header-left {
        flex: 1;
        min-width: 0;
    }
    
    .header-left h1 {
        font-size: 1.4em;
    }
    
    /* 移动端：隐藏运行中组件 */
    .status-badge {
        display: none !important;
    }
    
    /* 移动端：header-right按钮上下排列 */
    .header-right {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        flex-shrink: 0;
        justify-content: center;
        align-items: flex-end;
    }
    
    /* 移动端：header按钮样式已移除，使用浮动按钮代替 */
    
    /* 移动端：显示提示信息 */
    .mobile-tip {
        display: flex !important;
        align-items: center;
        gap: 8px;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        margin-left: 0 !important;
    }
    
    .time-display {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .time-divider {
        width: 100%;
        height: 1px;
    }
    
    .time-item {
        width: 100%;
        justify-content: center;
    }
    
    /* 移动端：标记记录弹窗优化 */
    .marker-log-modal {
        width: 95% !important;
        max-width: 95% !important;
        padding: 15px !important;
    }
    
    .marker-log-tabs {
        display: flex !important; /* 移动端显示tab */
        flex-direction: row;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .marker-log-grid {
        grid-template-columns: 1fr !important; /* 移动端单列显示 */
        gap: 0 !important;
    }
    
    /* 移动端：默认隐藏所有标记记录表格 */
    .marker-log-item {
        display: none !important;
    }
    
    /* 移动端：只显示激活的表格 */
    .marker-log-item.active {
        display: block !important;
    }
    
    /* 移动端：优化表格显示 */
    #markerLogTable1m, #markerLogTable5m, #markerLogTable15m {
        font-size: 11px !important;
    }
    
    #markerLogTable1m th, #markerLogTable5m th, #markerLogTable15m th,
    #markerLogTable1m td, #markerLogTable5m td, #markerLogTable15m td {
        padding: 6px 4px !important;
    }
}

/* 手动交易卡片样式 */
.manual-trade-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.trade-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-item label {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-item input {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: var(--bg-dark);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.input-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: -5px;
}

/* AI交易系统控制卡片 */
.bot-control-card {
    grid-column: span 1;
}

.bot-status-display {
    margin-bottom: 20px;
}

.bot-status-display .status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.bot-status-display .status-item:last-child {
    border-bottom: none;
}

.bot-status-display .status-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.bot-status-display .status-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.status-dot-bot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.status-dot-bot.running {
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-dot-bot.stopped {
    background-color: var(--text-secondary);
}

.bot-control-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-bot {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-bot:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-bot.btn-start {
    background: linear-gradient(135deg, var(--success-color) 0%, #28a745 100%) !important;
    color: white !important;
    border: none !important;
}

.btn-bot.btn-start:hover:not(:disabled) {
    background: linear-gradient(135deg, #28a745 0%, var(--success-color) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-bot.btn-stop {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc3545 100%) !important;
    color: white !important;
    border: none !important;
}

.btn-bot.btn-stop:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc3545 0%, var(--danger-color) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-bot.btn-force-trade {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.btn-bot.btn-force-trade:hover:not(:disabled) {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* 头部：运行日志按钮（已隐藏） */
.btn-header-logs {
    display: none !important;
}

/* 日志弹窗内容 */
.log-container {
    background: #0f0f17;
    border: 1px solid #1f1f2e;
    border-radius: 8px;
    max-height: 60vh;
    overflow: auto;
}
.log-content {
    margin: 0;
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #c7c9d1;
    white-space: pre-wrap;
}

.manual-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* 隐藏持仓模块中的平空和平多按钮 */
.position-card .manual-buttons {
    display: none !important;
}

/* 账户余额颜色设置为深色，确保在白色背景上可见 */
.account-card #usdtBalance {
    color: #1a1a2e !important;
}

.trade-info {
    padding: 12px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
}

.info-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-manual {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-manual:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-manual:active {
    transform: translateY(0);
}

.btn-manual:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-buy {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #228B22, #32CD32);
}

.btn-sell {
    background: linear-gradient(135deg, #FF4500, #DC143C);
    color: white;
}

.btn-sell:hover {
    background: linear-gradient(135deg, #DC143C, #FF4500);
}

.btn-close {
    background: linear-gradient(135deg, var(--primary-color), #FFA500);
    color: var(--text-primary);
}

.btn-close:hover {
    background: linear-gradient(135deg, #FFA500, var(--primary-color));
}

/* 保证金显示 */
.margin-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.margin-display span:first-child {
    color: var(--text-primary);
}

.margin-hint {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 可开仓数量显示 */
.max-trade-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(50, 205, 50, 0.1);
    border: 2px solid var(--success-color);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--success-color);
}

.max-trade-display span:first-child {
    color: var(--text-primary);
}

.max-trade-hint {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 进度条容器 */
.slider-container {
    position: relative;
    padding: 15px 0;
}

.trade-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.trade-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.trade-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.6);
}

.trade-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.trade-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.6);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* 快捷按钮 */
.quick-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-quick {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.btn-quick:active {
    transform: translateY(0);
}

#tradeAmountDisplay {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

/* ========== 移动端模块样式（来自ironica项目） ========== */

/* 订单规模分布样式 */
.order-size-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

/* 四列布局用于交易监控 */
.four-column-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

/* 小屏幕下垂直排列 */
@media (max-width: 768px) {
    .order-size-grid {
        grid-template-columns: 1fr;
    }
    
    .four-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 超小屏幕下单列排列 */
@media (max-width: 480px) {
    .four-column-grid {
        grid-template-columns: 1fr;
    }
}

.order-size-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.order-size-label {
    font-size: 1.0em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.order-size-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-size-group {
    position: relative;
}

.order-size-group:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(to right, #ccc 0px, #ccc 3px, transparent 3px, transparent 6px);
    opacity: 0.6;
}

.order-size-group-label {
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
    padding: 2px 6px;
    border-radius: 3px;
}

.order-size-group-label.buy {
    background: #fef2f2;
    color: #dc2626;
}

.order-size-group-label.sell {
    background: #f0fdf4;
    color: #16a34a;
}

.order-size-max {
    font-weight: 700;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 4px;
    padding: 2px 6px;
    border-radius: 3px;
}

.order-size-max.buy {
    background: #fef2f2;
    color: #dc2626;
}

.order-size-max.sell {
    background: #f0fdf4;
    color: #16a34a;
}

.order-size-items {
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: space-between;
}

.order-size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 0.75em;
    flex: 1;
    min-height: 50px;
    justify-content: center;
}

.order-size-item.buy {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.order-size-item.sell {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.order-size-name {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 0.8em;
}

.order-size-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.0em;
}

/* 环状进度条样式 */
.circular-progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

/* 小屏幕下垂直排列 */
@media (max-width: 768px) {
    .circular-progress-grid {
        grid-template-columns: 1fr;
    }
}

.circular-progress-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    text-align: center;
}

.circular-progress-title {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.circular-progress-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.circular-progress {
    transform: rotate(-90deg);
}

.circular-progress-bg {
    stroke: #f3f4f6;
}

.circular-progress-bar {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.circular-progress-bar.buy {
    stroke: #ef4444;
}

.circular-progress-bar.sell {
    stroke: #10b981;
}

.circular-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circular-progress-value {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.circular-progress-label {
    font-size: 0.7em;
    color: var(--text-secondary);
    margin-top: 2px;
}

.circular-progress-details {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.circular-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.circular-detail-label {
    font-size: 0.7em;
    color: var(--text-secondary);
    font-weight: 500;
}

.circular-detail-value {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
}

/* AI预测卡片样式 */
.prediction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.prediction-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    min-height: 80px;
    cursor: pointer;
    position: relative;
}

.prediction-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.prediction-reason {
    margin-top: 8px;
    padding: 8px;
    background: #ffffff;
    border-radius: 4px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    border-left: 3px solid var(--primary-color);
    max-height: 100px;
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.prediction-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.prediction-direction {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.prediction-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prediction-target,
.prediction-prob {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, #D4A574 100%);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    text-align: center;
}

.price-display .current-price {
    color: #000;
    font-weight: 600;
    font-size: 14px;
}

.countdown-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 2;
}

.countdown-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 62.83;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-text {
    position: absolute;
    font-size: 9px;
    font-weight: 600;
    color: var(--primary-color);
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 蜡烛图弹窗样式 */
.candlestick-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.candlestick-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 95%;
    max-height: 90%;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.candlestick-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.candlestick-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.candlestick-close-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.candlestick-close-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.candlestick-modal-content {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.candlestick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.candlestick-chart {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.candlestick-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #D4A574 50%, #E8B896 100%);
    border-radius: 16px 16px 0 0;
}

.candlestick-chart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.chart-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-price {
    font-size: 14px;
    font-weight: 700;
    color: #000 !important;
    background: #fff !important;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chart-toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.chart-toggle-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.chart-content {
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 1000px;
    position: relative;
}

.chart-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin: 0;
    padding: 0;
    transform: scaleY(0);
}

.candlestick-chart canvas {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.chart-axis-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding: 0 20px;
    font-size: 9px;
    color: #64748b;
    font-weight: 500;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.chart-x-label {
    text-align: center;
    min-width: 8px;
    font-size: 7px;
    margin: 0 1px;
}

.chart-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    width: 20px;
}

.chart-y-label {
    text-align: right;
    padding-right: 5px;
}

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

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

/* 移动端模块卡片适配 */
.mobile-feature-card {
    margin-bottom: 0;
}

/* AI分析Tab切换 - 响应式设计 */
@media (max-width: 768px) {
    /* 小屏幕：显示Tab按钮和Tab内容，隐藏并排显示 */
    .ai-analysis-tabs {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    
    .ai-analysis-tab-content {
        display: block !important;
    }
    
    .ai-analysis-grid {
        display: none !important;
    }
}

/* 技术指标图表Tab切换 - 响应式设计 */
@media (max-width: 768px) {
    /* 小屏幕：显示Tab按钮，隐藏并排显示 */
    .indicator-tabs {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        margin-bottom: 12px !important;
    }
    
    .indicator-charts-grid {
        display: block !important;
    }
    
    /* 移动端：默认隐藏所有图表 */
    .indicator-chart-item {
        display: none !important;
    }
    
    /* 移动端：只显示激活的图表 */
    .indicator-chart-item.active {
        display: block !important;
    }
    
    /* 移动端：优化图表卡片样式 */
    .indicator-chart-item .card-header {
        padding: 12px 16px !important;
        gap: 8px !important;
    }
    
    .indicator-chart-item .card-header h3 {
        font-size: 0.95em !important;
    }
    
    .indicator-chart-item .card-header select {
        font-size: 11px !important;
        padding: 5px 8px !important;
        min-width: 80px !important;
    }
    
    .indicator-chart-item .card-body {
        padding: 12px 16px !important;
    }
    
    .indicator-chart-item .chart {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    /* 移动端：Tab按钮优化 */
    .indicator-tab-btn {
        font-size: 11px !important;
        padding: 8px 10px !important;
        min-width: 75px !important;
    }
    
    .indicator-tab-btn i {
        font-size: 12px !important;
    }
}

@media (min-width: 769px) {
    /* 大屏幕：隐藏Tab按钮，显示并排布局 */
    .indicator-tabs {
        display: none !important;
    }
    
    .indicator-charts-grid {
        display: grid !important;
    }
    
    /* 桌面端：显示所有图表 */
    .indicator-chart-item {
        display: block !important;
    }
}

/* Tab按钮激活状态 */
.indicator-tab-btn.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.indicator-tab-btn:not(.active) {
    opacity: 0.7;
}

.indicator-tab-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (min-width: 769px) {
    /* 大屏幕：隐藏Tab按钮和Tab内容，显示并排显示 */
    .ai-analysis-tabs {
        display: none !important;
    }
    
    .ai-analysis-tab-content {
        display: none !important;
    }
    
    .ai-analysis-grid {
        display: grid !important;
    }
}

/* Tab按钮激活状态 */
.ai-tab-btn.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.ai-tab-btn:not(.active) {
    opacity: 0.7;
}

.ai-tab-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Tab面板切换动画 */
.ai-tab-panel {
    animation: fadeIn 0.3s ease;
}

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

/* 欢迎界面样式 */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    visibility: visible;
    overflow: hidden;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 当欢迎界面显示时，隐藏主页内容 */
.main-content-hidden {
    display: none !important;
}

.welcome-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* 左侧区域（4/5宽度） */
.welcome-left {
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.welcome-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: welcomeFadeIn 1s ease-out;
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-logo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    position: relative;
    z-index: 3;
    font-size: 80px;
    color: #fbbf24;
    animation: logoFloat 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.6),
                 0 0 60px rgba(251, 191, 36, 0.4),
                 0 0 90px rgba(251, 191, 36, 0.2);
}

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

.logo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

.ring-1 {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.ring-2 {
    width: 140px;
    height: 140px;
    animation-delay: 0.3s;
}

.ring-3 {
    width: 160px;
    height: 160px;
    animation-delay: 0.6s;
}

@keyframes ringPulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.welcome-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: titleSlideIn 1s ease-out 0.3s both;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

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

.welcome-subtitle {
    font-size: 18px;
    color: #9ca3af;
    margin-bottom: 30px;
    animation: subtitleSlideIn 1s ease-out 0.6s both;
    letter-spacing: 2px;
}

/* 欢迎界面登录注册表单 */
.welcome-auth-form {
    width: 100%;
    max-width: 100%;
    animation: authFormSlideIn 1s ease-out 0.9s both;
    position: relative;
    z-index: 2;
}

.auth-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
    text-align: center;
}

.auth-form-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    text-align: center;
}

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

.auth-input-group {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.3s ease;
}

.auth-input-group:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.auth-input-group i {
    color: #fbbf24;
    font-size: 16px;
    margin-right: 10px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.auth-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    padding: 12px 0;
    width: 100%;
}

.auth-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 10px;
}

.auth-switch a {
    color: #fbbf24;
    text-decoration: none;
    margin-left: 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

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

/* 右侧区域（1/5宽度） */
.welcome-right {
    width: 20%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(251, 191, 36, 0.2);
    padding: 40px 30px;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

.welcome-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(251, 191, 36, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 12s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 0.5s;
    animation-duration: 11s;
}

.particle:nth-child(5) {
    left: 60%;
    animation-delay: 1.5s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 10s;
}

.particle:nth-child(7) {
    left: 80%;
    animation-delay: 0.8s;
    animation-duration: 12s;
}

.particle:nth-child(8) {
    left: 90%;
    animation-delay: 1.8s;
    animation-duration: 9s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1);
        opacity: 0;
    }
}


/* 移动端适配 */
@media (max-width: 768px) {
    .welcome-container {
        flex-direction: column;
    }
    
    .welcome-left {
        width: 100%;
        height: 50%;
    }
    
    .welcome-right {
        width: 100%;
        height: 50%;
        border-left: none;
        border-top: 1px solid rgba(251, 191, 36, 0.2);
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 36px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .logo-icon {
        font-size: 60px;
    }
    
    .welcome-logo {
        width: 120px;
        height: 120px;
    }
    
    .ring-1 {
        width: 100px;
        height: 100px;
    }
    
    .ring-2 {
        width: 115px;
        height: 115px;
    }
    
    .ring-3 {
        width: 130px;
        height: 130px;
    }
    
    .auth-form-title {
        font-size: 20px;
    }
    
    .auth-form-subtitle {
        font-size: 12px;
    }
    
    /* 移动端：图片容器保持横向布局 */
    #imagesCard .card-body {
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
}

/* 直播相关样式 */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* 直播按钮动效 */
#liveStreamBtn.live-active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* 评论样式 */
.live-comment-item {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(59, 130, 246, 0.5);
    transition: all 0.2s;
    min-height: 60px;  /* 设置最小高度，确保有足够空间 */
    margin-bottom: 10px;  /* 增加底部间距 */
    overflow: visible;  /* 确保内容完整显示 */
    box-sizing: border-box;
}

.live-comment-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.live-comment-user {
    font-weight: 600;
    color: #60a5fa;
    font-size: 13px;
    margin-bottom: 8px;  /* 增加底部间距 */
}

.live-comment-text {
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.6;  /* 增加行高，提升可读性 */
    word-break: break-word;
    overflow: visible;  /* 确保文本完整显示 */
    white-space: normal;  /* 确保文本可以换行 */
    min-height: 20px;  /* 设置最小高度 */
    margin-bottom: 6px;  /* 增加底部间距 */
}

.live-comment-time {
    color: #9ca3af;
    font-size: 11px;
    margin-top: 4px;
}

/* 滚动条样式 */
#liveStreamComments::-webkit-scrollbar {
    width: 6px;
}

#liveStreamComments::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#liveStreamComments::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.5);
    border-radius: 3px;
}

#liveStreamComments::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.7);
}

/* 直播相关样式已移至 modules/livestream.css */
/* 以下样式保留，因为它们是通用的拖拽和调整大小功能，不特定于直播窗口 */

/* 调整大小的拖拽区域 */
.resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10001;
    transition: background 0.2s;
}

/* 上边 */
.resize-handle-top {
    top: 0;
    left: 10px;
    right: 10px;
    height: 8px;
    cursor: n-resize;
}

/* 下边 */
.resize-handle-bottom {
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 8px;
    cursor: s-resize;
}

/* 左边 */
.resize-handle-left {
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 8px;
    cursor: w-resize;
}

/* 右边 */
.resize-handle-right {
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 8px;
    cursor: e-resize;
}

/* 左上角 */
.resize-handle-top-left {
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    cursor: nw-resize;
}

/* 右上角 */
.resize-handle-top-right {
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    cursor: ne-resize;
}

/* 左下角 */
.resize-handle-bottom-left {
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
    cursor: sw-resize;
}

/* 右下角 */
.resize-handle-bottom-right {
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    cursor: se-resize;
}

/* 鼠标悬停时显示边框提示 */
.resize-handle:hover {
    background: rgba(239, 68, 68, 0.3);
}

#liveStreamWindow:active {
    cursor: move;
}

#liveStreamWindowHeader {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 直播相关样式（视频容器、视频区域、评论区域等）已移至 modules/livestream.css */

