/* style.css */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Inter:wght@400;500;600;700&display=swap');

/* 基础样式 */
body {
    background-color: #020617;
    color: #f8fafc;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.btn-active {
    background-color: #fbbf24 !important;
    color: #020617 !important;
    border-color: #fbbf24 !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    height: 450px;
    cursor: crosshair;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

/* 标记线样式 */
.marker-line {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #fbbf24;
    pointer-events: none;
    z-index: 10;
    display: none;
}

.marker-handle {
    position: absolute;
    width: 12px;
    height: 30px;
    background-color: #fbbf24;
    border-radius: 3px;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
}

.marker-tooltip {
    position: absolute;
    background-color: rgba(2, 6, 23, 0.95);
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: 'JetBrains Mono';
    color: #fbbf24;
    pointer-events: none;
    z-index: 11;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

/* 加载动画 */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}