body {
    background-color: #f8f9fa;
}

.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.ticker-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    min-width: 80px;
    text-align: center;
}

.ticker-symbol {
    font-size: 13px;
    font-weight: 600;
}

.ticker-volume {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 2px;
}

.ticker-badge.no-charts {
    background-color: #6c757d;
    color: white;
}

.ticker-badge.has-charts {
    background-color: #28a745;
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.ticker-badge.has-charts::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffc107;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

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

.ticker-badge.selected {
    background-color: #007bff !important;
    transform: scale(1.05);
}

.chart-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 响应式图片网格：大屏幕3张，中屏幕2张，小屏幕1张 */
@media (min-width: 1400px) {
    .chart-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1399px) {
    .chart-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.chart-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: contain;
    cursor: pointer;
    background-color: #f8f9fa;
}

.chart-info {
    padding: 1rem;
    background-color: #f8f9fa;
}

.timeframe-badge {
    background-color: #6f42c1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Chart navigation styles */
.modal-navigation {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.chart-navigation {
    margin-bottom: 0.5rem;
}

.navigation-indicator {
    display: inline-block;
    background-color: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    border: 1px solid #dee2e6;
}

.keyboard-hint {
    margin-top: 0.5rem;
}

.chart-navigation .btn {
    transition: all 0.3s ease;
}

.chart-navigation .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .chart-navigation .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .chart-navigation .btn .fas {
        font-size: 0.75rem;
    }

    .navigation-indicator {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}
