/* 自定义样式 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
}

/* 卡片样式 */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0 !important;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

/* 涨跌幅样式 */
.price-up {
    color: #dc3545;
}

.price-down {
    color: #198754;
}

.price-flat {
    color: #6c757d;
}

/* 加载动画 */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 标签页样式 */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

/* 输入组样式 */
.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-control {
    border-left: none;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group .btn {
    border-left: none;
}

/* 响应式图表容器 */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* 数据卡片样式 */
.data-card {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.data-card .data-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.data-card .data-value {
    font-size: 18px;
    font-weight: 600;
}

.data-card .data-change {
    font-size: 14px;
    margin-top: 5px;
}

/* 工具提示样式 */
.tooltip {
    font-size: 12px;
}

/* 页脚样式 */
footer {
    margin-top: auto;
}

/* ETF历史数据表格样式 */
#etfHistoricalData .table {
    font-size: 14px;
}

#etfHistoricalData .table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    padding: 12px 8px;
    white-space: nowrap;
}

#etfHistoricalData .table td {
    padding: 10px 8px;
    vertical-align: middle;
    white-space: nowrap;
}

#etfHistoricalData .table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 涨跌幅文本样式 */
#etfHistoricalData .text-success {
    color: #198754 !important;
    font-weight: 500;
}

#etfHistoricalData .text-danger {
    color: #dc3545 !important;
    font-weight: 500;
}

#etfHistoricalData .text-muted {
    color: #6c757d !important;
}

/* 历史数据列表标题样式 */
#etfHistoricalData .card-header h6 {
    margin-bottom: 0;
    color: #495057;
    font-weight: 600;
}

/* 响应式表格 */
@media (max-width: 768px) {
    #etfHistoricalData .table {
        font-size: 12px;
    }
    
    #etfHistoricalData .table th,
    #etfHistoricalData .table td {
        padding: 6px 4px;
    }
}