.biance-cards-container *,
.biance-cards-container *::before,
.biance-cards-container *::after {
    box-sizing: border-box;
}

.biance-cards-container {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.biance-cards-container > a {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: flex; /* Make the anchor a flex container for its child */
    flex-direction: column;
}

.biance-currency-card {
    flex: 1;
    min-width: 0; /* Crucial for equal width in flexbox */
    background-color: #fff;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

@media (max-width: 480px) {
    .biance-currency-card {
        padding: 8px;
    }

    .biance-currency-info h3 {
        font-size: 14px;
    }

    .biance-currency-info p {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .biance-currency-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 320px) {
    .biance-currency-card {
        padding: 10px;
    }

    .biance-flag-icon {
        width: 32px !important;
        height: 32px !important;
    }
}

.biance-currency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08),
    0 6px 12px rgba(0,0,0,0.04);
}

.biance-currency-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, #2563eb, #3b82f6);
}
.biance-currency-card:nth-child(2)::before {
    background: linear-gradient(90deg, #059669, #10b981);
}
.biance-currency-flag {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.biance-flag-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.biance-usd-flag { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.biance-cny-flag { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.biance-flag-icon i { color: white; font-size: 18px; }
.biance-currency-info h3 {
    font-size: 14px; color: #64748b; font-weight: 600; margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.biance-currency-info p {
    font-size: 12px; color: #94a3b8; font-weight: 500; margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.biance-rate-value {
    font-size: 18px !important; /* 使用 !important 强制统一大小 */
    font-weight: 700; 
    color: #1e293b;
    letter-spacing: 0.5px;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin-top: 0;
}

#cny-biance,
#usd-biance {
}

/*#cny-biance {*/
/*    color: #ef4444; !* A softer, more comfortable red *!*/
/*}*/