/* ── 类别标签 ── */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 0.6rem 1.4rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    color: #555;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.cat-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.cat-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ── 换算结果卡片 ── */
.dw-result {
    margin-bottom: 1rem;
}

.dw-result-card {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    flex-wrap: wrap;
}

.dw-result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    font-family: 'Fira Code', monospace;
    word-break: break-all;
}

.dw-result-unit {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

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

/* ── Mobile ── */
@media (max-width: 640px) {
    .category-tabs {
        gap: 0.4rem;
    }

    .cat-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .dw-result-value {
        font-size: 1.4rem;
    }
}
