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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #ffffff;
    color: #2c3e50;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 14px;
}

/* 仪表板容器 */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 230, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(230, 230, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(230, 230, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* AI工具标题 */
.ai-tool-title {
    text-align: center;
    margin: 40px auto 30px;
    max-width: 800px;
    padding: 0 20px;
}

.ai-tool-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4d4dff;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(77, 77, 255, 0.6);
    letter-spacing: 1px;
}

.ai-tool-title p {
    font-size: 1.1rem;
    color: rgba(230, 230, 255, 0.8);
    font-weight: 400;
    text-shadow: 0 0 10px rgba(230, 230, 255, 0.3);
}

/* 股指线图表 */
.stock-index-chart {
    margin: 0 auto 40px;
    max-width: 1400px;
    width: calc(100% - 40px);
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(77, 77, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.stock-index-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(77, 77, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.stock-index-chart canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* 顶部导航栏 */
.dashboard-header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(230, 230, 255, 0.3);
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 1400px;
    width: calc(100% - 40px);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4d4dff;
    text-shadow: 0 0 10px rgba(77, 77, 255, 0.6);
}

.logo-version {
    font-size: 0.7rem;
    color: rgba(226, 232, 240, 0.6);
    font-weight: 400;
}

.nav-tabs {
    display: flex;
    gap: 5px;
}

.nav-tab {
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.nav-tab.active {
    background: rgba(77, 77, 255, 0.2);
    border-color: rgba(77, 77, 255, 0.8);
    color: #4d4dff;
    box-shadow: 0 0 15px rgba(77, 77, 255, 0.5);
}

.nav-tab:hover:not(.active) {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(77, 77, 255, 0.6);
    box-shadow: 0 0 20px rgba(77, 77, 255, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 快速分析工具 */
.quick-analysis {
    position: relative;
}

.header-form {
    display: flex;
    align-items: center;
}

.header-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 35, 0.6);
    border: 2px solid rgba(77, 77, 255, 0.5);
    border-radius: 12px;
    padding: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(77, 77, 255, 0.2);
}

.header-input-group:focus-within {
    border-color: #4d4dff;
    box-shadow: 0 0 30px rgba(77, 77, 255, 0.4);
    transform: scale(1.02);
}

.header-input-group input {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #e2e8f0;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
    width: 200px;
    transition: width 0.3s ease;
}

.header-input-group input:focus {
    width: 220px;
}

.header-input-group input::placeholder {
    color: rgba(226, 232, 240, 0.5);
    font-size: 0.8rem;
}

.header-analyze-btn {
    background: linear-gradient(135deg, #4d4dff, #6666ff);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(77, 77, 255, 0.4);
}

.header-analyze-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(77, 77, 255, 0.6);
}

.header-analyze-btn .btn-icon {
    font-size: 0.8rem;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4d4dff;
    text-shadow: 0 0 5px rgba(77, 77, 255, 0.4);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: statusBlink 2s ease-in-out infinite;
}

.status-indicator.online {
    background: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    animation: cyberPulse 2s ease-in-out infinite;
}

.account-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 35, 0.6);
    border: 2px solid rgba(77, 77, 255, 0.4);
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(77, 77, 255, 0.2);
}

.balance-label {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.7);
}

.balance-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

/* 主要仪表板内容 */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 25px;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow-y: auto;
    background: 
        radial-gradient(circle at 10% 20%, rgba(230, 230, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(230, 230, 255, 0.03) 0%, transparent 50%);
}

/* 新的布局结构 */
.top-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    margin-bottom: 25px;
}

.chart-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bottom-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 小部件基础样式 */
.widget {
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(77, 77, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.widget:hover::before {
    opacity: 1;
}

.widget:hover {
    border-color: rgba(77, 77, 255, 0.5);
    box-shadow: 
        0 25px 50px rgba(77, 77, 255, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px) scale(1.01);
}

.widget-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(77, 77, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(77, 77, 255, 0.05), rgba(77, 77, 255, 0.02));
    position: relative;
    backdrop-filter: blur(10px);
}

.widget-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(77, 77, 255, 0.6), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.widget:hover .widget-header::after {
    transform: scaleX(1);
}

.widget-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #4d4dff;
    text-shadow: 0 0 8px rgba(77, 77, 255, 0.4);
}

/* 市场数据小部件 */
.market-data {
    min-height: 280px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 255, 0.05));
}

.market-data .widget-header {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.6);
}

.refresh-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: refreshPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.market-list {
    padding: 0;
}

.market-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    align-items: center;
    position: relative;
}

.market-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.5), transparent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.market-item:hover {
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(5px);
}

.market-item:hover::before {
    transform: scaleY(1);
}

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

.symbol {
    font-weight: 700;
    color: #00ffff;
    font-size: 0.85rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.85rem;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.change {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.change.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.change.negative {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

/* AI 推荐小部件 */
.ai-recommendations {
    min-height: 280px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 255, 0.03));
}

.ai-recommendations .widget-header {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.08), rgba(0, 255, 255, 0.03));
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #00ffff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.ai-pulse {
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    animation: aiPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.recommendations-list {
    padding: 0;
}

.recommendation {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.recommendation::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.5), transparent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.recommendation:hover {
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(5px);
}

.recommendation:hover::before {
    transform: scaleY(1);
}

.recommendation:last-child {
    border-bottom: none;
}

.rec-action {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
}

.recommendation.buy .rec-action {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
}

.recommendation.sell .rec-action {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.4);
}

.recommendation.hold .rec-action {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.4);
}

.rec-symbol {
    font-weight: 700;
    color: #00ffff;
    font-size: 0.85rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.rec-confidence {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.8rem;
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

/* 主图表小部件 */
.main-chart {
    min-height: 450px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 255, 0.02));
}

.main-chart .widget-header {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.08), rgba(0, 255, 255, 0.03));
}

.chart-controls {
    display: flex;
    gap: 5px;
}

.chart-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: rgba(0, 255, 255, 0.8);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.chart-btn.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.8);
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.chart-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.chart-container {
    position: relative;
    padding: 30px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 255, 255, 0.03) 100%),
        radial-gradient(circle at 30% 70%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.02) 2px,
            rgba(0, 255, 255, 0.02) 4px
        );
    pointer-events: none;
}

#trading-chart {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.chart-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    padding: 12px 16px;
}

.current-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.price-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-change.positive {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
}

.price-change.negative {
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.4);
}

/* AI特征展示小部件 */
.ai-features {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 255, 0.08));
    border-color: rgba(0, 255, 255, 0.3);
    min-height: 320px;
    position: relative;
}

.ai-features .widget-header {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.12), rgba(0, 255, 255, 0.05));
    border-bottom-color: rgba(0, 255, 255, 0.3);
}

.ai-features .widget-header h3 {
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.features-grid {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.metrics-grid {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 30px 60px rgba(0, 255, 255, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    animation: featureIconFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.feature-card .feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border-radius: 18px;
}

.gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.gradient-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 12px;
    line-height: 1.4;
}

.feature-metric {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 800;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

/* 性能指标小部件 */
.performance-metrics {
    min-height: 280px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 255, 0.03));
}

.performance-metrics .widget-header {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.08), rgba(0, 255, 255, 0.03));
}

.time-selector select {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.metrics-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.metric-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.metric-item:hover {
    background: rgba(0, 255, 255, 0.03);
    padding-left: 15px;
}

.metric-item:hover::before {
    transform: scaleY(1);
}

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

.metric-label {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.7);
    font-weight: 500;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.metric-value.positive {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
}

.metric-value.negative {
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.4);
}

/* 最近交易小部件 */
.recent-trades {
    min-height: 280px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 255, 0.03));
}

.recent-trades .widget-header {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.08), rgba(0, 255, 255, 0.03));
}

.view-all {
    font-size: 0.75rem;
    color: #00ffff;
    cursor: pointer;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.view-all:hover {
    text-decoration: underline;
}

.trades-list {
    padding: 0;
}

.trade-item {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 15px;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    align-items: center;
    font-size: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.trade-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.5), transparent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.trade-item:hover {
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(5px);
}

.trade-item:hover::before {
    transform: scaleY(1);
}

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

.trade-symbol {
    font-weight: 700;
    color: #e2e8f0;
}

.trade-action {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
}

.trade-action.buy {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
}

.trade-action.sell {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.4);
}

.trade-amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.8);
}

.trade-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #e2e8f0;
    text-align: right;
}

/* 新闻和警报小部件 */
.news-alerts {
    min-height: 280px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 255, 255, 0.03));
}

.news-alerts .widget-header {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.08), rgba(0, 255, 255, 0.03));
}

.alert-count {
    background: #ff4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.news-list {
    padding: 0;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    align-items: flex-start;
    position: relative;
    transition: all 0.3s ease;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.5), transparent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.news-item:hover {
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(5px);
}

.news-item:hover::before {
    transform: scaleY(1);
}

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

.news-item.alert {
    background: rgba(255, 68, 68, 0.08);
    border-left: 4px solid #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.news-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(226, 232, 240, 0.6);
    font-weight: 600;
    min-width: 40px;
}

.news-content {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.4;
}

/* 底部状态栏 */
.dashboard-footer {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(30px);
    border-top: 2px solid rgba(77, 77, 255, 0.5);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    box-shadow: 0 0 30px rgba(77, 77, 255, 0.3);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(226, 232, 240, 0.7);
}

.connection-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: connectionPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.last-update {
    color: rgba(226, 232, 240, 0.6);
}

.footer-right {
    max-width: 60%;
}

.disclaimer-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.7rem;
}

.disclaimer-icon {
    color: #ffff00;
    font-size: 0.8rem;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
}

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 3000;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s ease-out;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(77, 77, 255, 0.15), transparent);
}

.modal-container {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(40px);
    border: 2px solid rgba(77, 77, 255, 0.5);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalSlideUp 0.6s ease-out;
    box-shadow: 0 40px 80px rgba(77, 77, 255, 0.3);
    color: #e6e6ff;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
    animation: modalIconBounce 1s ease-out;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4d4dff, #6666ff);
    border-radius: 50%;
    animation: iconBgRotate 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(77, 77, 255, 0.6);
}

.icon-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    z-index: 2;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #4d4dff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(77, 77, 255, 0.6);
}

.modal-subtitle {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.8);
}

.modal-content {
    margin-bottom: 30px;
}

.analysis-summary {
    background: rgba(15, 15, 35, 0.4);
    border: 2px solid rgba(77, 77, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.3);
}

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

.summary-label {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
}

.summary-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.report-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-section {
    background: rgba(77, 77, 255, 0.08);
    border: 2px solid rgba(77, 77, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
}

.preview-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #4d4dff;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(77, 77, 255, 0.5);
}

.preview-section p {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-action-btn {
    background: linear-gradient(135deg, #4d4dff, #6666ff);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 0 25px rgba(77, 77, 255, 0.4);
}

.primary-action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(77, 77, 255, 0.6);
}

.secondary-action-btn {
    background: transparent;
    color: rgba(77, 77, 255, 0.7);
    border: 2px solid rgba(77, 77, 255, 0.3);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'JetBrains Mono', monospace;
}

.secondary-action-btn:hover {
    background: rgba(77, 77, 255, 0.05);
    border-color: rgba(77, 77, 255, 0.6);
    box-shadow: 0 0 20px rgba(77, 77, 255, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(226, 232, 240, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #4d4dff;
    background: rgba(77, 77, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(77, 77, 255, 0.4);
}

/* 动画 */
@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.8));
    }
}

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

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

@keyframes aiPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

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

@keyframes featureIconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

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

@keyframes modalSlideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalIconBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes iconBgRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

/* 新增科技感动画 */
@keyframes cyberPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    }
}

@keyframes dataFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 添加矩阵雨效果 */
.dashboard-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: -1;
    animation: dataFlow 20s ease-in-out infinite;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-main {
        padding: 20px;
        gap: 20px;
    }
    
    .top-stats-row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .dashboard-main {
        padding: 15px;
        gap: 20px;
        overflow-y: auto;
    }
    
    .top-stats-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .side-panel {
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
    }
    
    .side-panel .widget {
        min-width: 280px;
        flex-shrink: 0;
    }
    
    .header-left {
        gap: 20px;
    }
    
    .nav-tabs {
        display: none;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .account-balance {
        padding: 6px 12px;
    }
    
    /* 移动端快速分析工具优化 */
    .quick-analysis {
        order: -1;
        margin-right: 15px;
    }
    
    .header-input-group input {
        width: 160px;
        font-size: 0.8rem;
    }
    
    .header-input-group input:focus {
        width: 180px;
    }
    
    .header-analyze-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .header-analyze-btn .btn-text {
        display: none;
    }
    
    .header-analyze-btn .btn-icon {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .ai-tool-title h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .ai-tool-title p {
        font-size: 1rem;
    }
    
    .stock-index-chart {
        width: calc(100% - 20px);
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .dashboard-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: calc(100% - 20px);
        max-width: 500px;
    }
    
    .header-left,
    .header-right {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .dashboard-main {
        padding: 15px;
        padding-top: 120px;
        padding-bottom: 100px;
        gap: 15px;
        overflow-y: auto;
    }
    
    .top-stats-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .side-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .bottom-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 移动端分析工具全宽显示 */
    .quick-analysis {
        order: 0;
        width: 100%;
        margin: 10px 0;
    }
    
    .header-input-group {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .header-input-group input {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .header-input-group input:focus {
        width: 100%;
    }
    
    .header-analyze-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .header-analyze-btn .btn-text {
        display: inline;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .dashboard-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }
    
    .footer-right {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .ai-tool-title h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .ai-tool-title p {
        font-size: 0.9rem;
    }
    
    .stock-index-chart {
        width: calc(100% - 15px);
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .logo-version {
        font-size: 0.65rem;
    }
    
    .dashboard-main {
        padding: 10px;
        gap: 10px;
    }
    
    .top-stats-row {
        gap: 10px;
    }
    
    .main-content-grid {
        gap: 10px;
    }
    
    .side-panel {
        gap: 10px;
    }
    
    .bottom-features {
        gap: 10px;
    }
    
    .widget-header {
        padding: 12px 15px;
    }
    
    .widget-header h3 {
        font-size: 0.85rem;
    }
    
    /* 小屏幕分析工具优化 */
    .header-input-group {
        max-width: 100%;
        padding: 3px;
    }
    
    .header-input-group input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .header-analyze-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-card .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .feature-card h4 {
        font-size: 0.9rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
    
    .feature-metric {
        font-size: 1rem;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-symbol {
        font-size: 2rem;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .widget:hover,
    .nav-tab:hover,
    .analyze-button:hover,
    .primary-action-btn:hover,
    .feature-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .analyze-button:active {
        transform: scale(0.98);
    }
    
    .primary-action-btn:active {
        transform: scale(0.98);
    }
    
    .nav-tab:active {
        transform: scale(0.98);
    }
    
    .widget:active {
        transform: scale(0.99);
    }
    
    .feature-card:active {
        transform: scale(0.99);
    }
    
    /* 移动端滚动优化 */
    .dashboard-main {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .side-panel {
        -webkit-overflow-scrolling: touch;
    }
}
