/* ── 汇率换算表单 ── */
.rate-calc-form {
    margin-bottom: 1rem;
}

.rate-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rate-col {
    flex: 1;
}

.rate-col .form-label {
    display: block;
    margin-bottom: 0.4rem;
}

.rate-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f7ff;
    border: 1px solid #d0e4f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #2563eb;
    flex-shrink: 0;
    transition: background 0.2s;
}

.rate-swap-btn:hover {
    background: #dbeafe;
}

.rate-amount-row {
    display: flex;
    gap: 1rem;
}

/* ── 换算结果 ── */
.rate-result {
    margin-top: 1.5rem;
}

.rate-result-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border: 1px solid #d0e4f0;
    border-radius: 12px;
}

.rate-result-from {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.rate-result-eq {
    font-size: 1.5rem;
    color: #999;
    margin: 0.3rem 0;
}

.rate-result-to {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    color: #2563eb;
    line-height: 1.3;
}

.rate-result-info {
    font-size: 0.82rem;
    color: #999;
    margin-top: 0.8rem;
}

/* ── 汇率表 ── */
.rate-table-wrap {
    margin-top: 1.5rem;
}

.rate-table-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.rate-table th {
    background: #f5f7fa;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.rate-table td {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.rate-table tr:last-child td {
    border-bottom: none;
}

.rate-table td:last-child {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
}

.rate-update-time {
    font-size: 0.78rem;
    color: #999;
    margin-top: 0.5rem;
    text-align: right;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .rate-row {
        flex-direction: column;
        align-items: stretch;
    }

    .rate-swap-btn {
        align-self: center;
        transform: rotate(90deg);
    }

    .rate-result-to {
        font-size: 1.5rem;
    }
}
