/* 币种切换器样式 */
.currency-switcher {
    position: relative;
    display: inline-block;
}

/* RMB约等提示样式 */
.rmb-hint {
    font-size: 0.85em !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-left: 8px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

/* 移动端RMB提示优化 */
@media (max-width: 768px) {
    .rmb-hint {
        font-size: 0.75em !important;
        margin-left: 6px !important;
    }
    .product-card .price {
        font-size: 1rem !important;
    }
    .product-card .price .rmb-hint {
        font-size: 0.7em !important;
    }
}

.currency-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.currency-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.currency-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.currency-code {
    font-weight: 600;
}

.currency-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.currency-btn.active .currency-arrow {
    transform: rotate(180deg);
}

.currency-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 220px;
    max-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.currency-option {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: rgba(255, 107, 53, 0.1);
}

.currency-option.active {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.currency-symbol {
    font-size: 18px;
    min-width: 30px;
}

.currency-name {
    flex: 1;
    font-size: 14px;
}

.currency-code-small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .currency-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .currency-name {
        display: none;
    }

    .currency-dropdown {
        right: 0;
        left: auto;
        min-width: 250px;
    }
}

