/* ── 数字大写转换器 ── */

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

.sz-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;
}

.sz-result-main {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.sz-result-main .sz-result-value {
    color: #2563eb;
}

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

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

.sz-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;
}

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

/* Mapping Table */
.sz-mapping-wrap {
    overflow-x: auto;
}

.sz-mapping {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8eaf0;
}

.sz-mapping th,
.sz-mapping td {
    padding: 0.75rem 1rem;
    text-align: center;
    border: 1px solid #e8eaf0;
    font-size: 0.9rem;
}

.sz-mapping th {
    background: #f8f9fb;
    font-weight: 600;
    color: #333;
}

.sz-mapping td:first-child {
    background: #f8f9fb;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.sz-row-upper td:not(:first-child) {
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
}

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

.sz-example-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;
}

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

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

.sz-ex-upper {
    color: #2563eb;
    font-weight: 600;
    flex: 1;
}

.sz-ex-lower {
    color: #666;
    font-size: 0.9rem;
    flex: 1;
}

/* Mobile */
@media (max-width: 640px) {
    .sz-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .sz-result-value {
        font-size: 1rem;
    }
    .sz-example-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .sz-ex-num {
        min-width: 80px;
    }
    .sz-mapping th,
    .sz-mapping td {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }
    .sz-row-upper td:not(:first-child) {
        font-size: 0.85rem;
    }
}