/* 外汇牌价表格样式 */
.forex-table {
    margin-bottom: 0;
}

.forex-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* 货币单元格样式 */
.currency-cell {
    min-width: 180px;
}

.currency-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.currency-link:hover {
    text-decoration: none;
    color: #0056b3;
}

.currency-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.currency-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-text strong {
    font-size: 14px;
    color: #333;
}

.currency-text .currency-name {
    font-size: 12px;
    color: #666;
}

/* 银行链接样式 */
.bank-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bank-link:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.bank-link.active {
    background-color: #e9ecef;
}

.bank-logo {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    object-fit: contain;
}

.bank-link span {
    font-size: 12px;
    text-align: center;
}

/* 更新时间样式 */
.update-time {
    color: #666;
    font-size: 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .currency-cell {
        min-width: auto;
    }

    .forex-table td[data-label]:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        margin-right: 10px;
    }
}

/* 财经资讯卡片样式 */
.forex-news-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
}

.forex-news-card .card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.forex-news-card .news-item {
    padding: 1rem;
    transition: all 0.3s ease;
}

.forex-news-card .news-item:hover {
    background-color: #f8f9fa;
}

.forex-news-card .news-title {
    color: #2c3e50;
    font-weight: 600;
}

.forex-news-card .news-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 股票标签样式 */
.stock-badge .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
}

.stock-badge .stock-up {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.2);
}

.stock-badge .stock-down {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.stock-badge:hover .badge {
    transform: translateY(-1px);
}

/* 标签样式 */
.forex-news-card .tags .badge {
    margin-left: 0.3rem;
    font-weight: normal;
    padding: 0.4rem 0.6rem;
}

/* 悬停阴影效果 */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 链接样式 */
.forex-news-card .btn-link {
    color: #007bff;
    font-size: 0.9rem;
}

.forex-news-card .btn-link:hover {
    color: #0056b3;
    text-decoration: none;
}