/* 大数据页面样式 */

.bigdata-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0 80px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bigdata-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* 标签切换样式 */
.bigdata-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #1890ff;
}

.tab-btn.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    font-weight: 600;
}

/* 时间段选择样式 */
.bigdata-period {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.period-btn {
    padding: 6px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.period-btn:hover {
    background: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

.period-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: #ffffff;
}

/* 标签内容样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 加载状态样式 */
.bigdata-loading {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 错误状态样式 */
.bigdata-error {
    text-align: center;
    padding: 40px 0;
    color: #ff4d4f;
    font-size: 14px;
}

/* 占位符样式 */
.bigdata-placeholder {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 行业数据表格样式 */
.industry-data {
    overflow-x: auto;
}

.table-container {
    position: relative;
    overflow-y: auto;
}

.industry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.industry-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f5f5f5;
}

.industry-table th {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    border-right: 1px solid #e0e0e0;
}

.industry-table th:last-child {
    border-right: none;
}

.industry-table td {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 8px;
    color: #666;
    white-space: nowrap;
}

.industry-table tr:hover {
    background: #fafafa;
}

/* 涨跌幅样式 */
.industry-table .rise {
    color: #ff4d4f;
}

.industry-table .fall {
    color: #52c41a;
}

/* 资金流向样式 */
.industry-table .inflow {
    color: #ff4d4f;
}

.industry-table .outflow {
    color: #52c41a;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bigdata-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .bigdata-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .bigdata-period {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .period-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .industry-table {
        font-size: 12px;
    }
    
    .industry-table th,
    .industry-table td {
        padding: 8px 6px;
    }
}

/* 滚动条样式 */
.industry-data::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.industry-data::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.industry-data::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.industry-data::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 刷新按钮样式 */
.refresh-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255,255,255,0.3);
}

.refresh-btn:active {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* 刷新状态样式 */
.refresh-btn.loading {
    animation: spin 1s linear infinite;
}

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