/* 指数板块样式 */
.index-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.index-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.index-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.index-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.index-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.index-value {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.index-change {
    font-size: 12px;
    font-weight: 500;
}

.index-change.positive {
    color: #ff0000;
}

.index-change.negative {
    color: #2E8B57;
}

.index-code {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.index-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.index-error {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .index-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .index-item {
        padding: 12px;
    }
    
    .index-value {
        font-size: 16px;
    }
    
    .index-name {
        font-size: 13px;
    }
}
