/* 概览页面样式 */
.overview-section {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #3498db;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 8px;
    color: #3498db;
}

.market-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .market-overview {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    height: 300px;
    position: relative;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.stat-up {
    color: #27ae60;
}

.stat-down {
    color: #e74c3c;
}

.hot-stocks {
    margin-top: 30px;
}

.stock-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.stock-item:hover {
    background-color: #e9ecef;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stock-code {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.stock-name {
    color: #7f8c8d;
    font-size: 14px;
}

.stock-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    min-width: 80px;
    text-align: right;
}

.stock-change {
    font-size: 14px;
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.stock-change.up {
    color: #27ae60;
}

.stock-change.down {
    color: #e74c3c;
}

.change-percent {
    font-size: 12px;
    margin-left: 4px;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

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

.error-message {
    background-color: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c00;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    color: #c00;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #1e293b;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .section-title {
        color: #e2e8f0;
    }
    
    .card-title {
        color: #cbd5e1;
    }
    
    .stat-item {
        background-color: #334155;
    }
    
    .stat-value {
        color: #e2e8f0;
    }
    
    .stat-label {
        color: #94a3b8;
    }
    
    .stock-item {
        background-color: #334155;
    }
    
    .stock-item:hover {
        background-color: #475569;
    }
    
    .stock-code {
        color: #e2e8f0;
    }
    
    .stock-name {
        color: #94a3b8;
    }
    
    .stock-price {
        color: #e2e8f0;
    }
    
    .loading {
        color: #94a3b8;
    }
    
    .error-message {
        background-color: #4c1d95;
        color: #fbcfe8;
        border-left-color: #be185d;
    }
    
    .error-message i {
        color: #be185d;
    }
}