/* ── 人民币大写转换 ── */

/* Result */
.rmb-result {
    margin-top: 1.4rem;
}

.rmb-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.rmb-result-main {
    background: #fef3c7;
    border-color: #fde68a;
}

.rmb-result-main .rmb-result-value {
    color: #92400e;
}

.rmb-result-label {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
    min-width: 80px;
}

.rmb-result-value {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    word-break: break-all;
    line-height: 1.6;
}

.rmb-copy-btn {
    padding: 0.35rem 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.rmb-copy-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* Rules */
.rmb-rules {
    max-width: 800px;
    margin: 0 auto;
}

.rmb-rule-card {
    display: flex;
    gap: 1.2rem;
    padding: 1.4rem;
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.rmb-rule-num {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.rmb-rule-content {
    flex: 1;
}

.rmb-rule-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.rmb-rule-content p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Examples */
.rmb-examples {
    max-width: 720px;
    margin: 0 auto;
}

.rmb-ex-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
    margin-bottom: 0.6rem;
}

.rmb-ex-money {
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    color: #333;
    min-width: 160px;
    text-align: right;
}

.rmb-ex-arrow {
    color: #ccc;
    font-size: 0.9rem;
}

.rmb-ex-upper {
    color: #92400e;
    font-weight: 600;
    flex: 1;
}

/* Mobile */
@media (max-width: 640px) {
    .rmb-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .rmb-result-value {
        font-size: 1rem;
    }
    .rmb-rule-card {
        flex-direction: column;
        gap: 0.8rem;
    }
    .rmb-ex-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .rmb-ex-money {
        min-width: 100px;
        font-size: 0.9rem;
    }
}