/* 进制转换 · 专有样式 */
.bc-wrap { width: 100%; }

/* 标签页 */
.bc-tabs {
    display: flex;
    gap: 4px;
    background: #f5f5f7;
    border-radius: 11px;
    padding: 4px;
    margin-bottom: 18px;
    overflow-x: auto;
}
.bc-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #6e6e73;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    font-family: inherit;
}
.bc-tab:hover { color: #1d1d1f; }
.bc-tab.is-on {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    font-weight: 600;
}
.bc-tab .svg-icon { display: inline-flex; }

/* 行布局 */
.bc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}
.bc-row-tools { align-items: center; }
.bc-field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.bc-grow { flex: 1; }
.bc-label { font-size: 12.5px; font-weight: 600; color: #515154; }
.bc-inline-label { font-size: 12.5px; font-weight: 600; color: #515154; }

.bc-input, .bc-select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #e5e5e7;
    border-radius: 10px;
    font-size: 16px;
    color: #1d1d1f;
    background: #fafafa;
    transition: all .2s;
    font-family: inherit;
}
.bc-input {
    font-family: "SF Mono", Monaco, Consolas, "Courier New", monospace;
    letter-spacing: .3px;
}
.bc-input:focus, .bc-select:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}
.bc-select { cursor: pointer; }

/* 分段控件 */
.bc-seg {
    display: inline-flex;
    background: #f0f0f2;
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
}
.bc-seg-btn {
    border: 0;
    background: transparent;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    font-family: inherit;
}
.bc-seg-btn:hover { color: #1d1d1f; }
.bc-seg-btn.is-on {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

/* 错误 */
.bc-err {
    padding: 11px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.bc-err .svg-icon { flex: none; margin-top: 2px; }

/* 结果卡片 */
.bc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}
.bc-card {
    background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 13px 14px;
    min-width: 0;
}
.bc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    margin-bottom: 8px;
}
.bc-card-head span { display: inline-flex; align-items: center; gap: 6px; }
.bc-card-val {
    font-family: "SF Mono", Monaco, Consolas, "Courier New", monospace;
    font-size: 14.5px;
    font-weight: 600;
    color: #1d1d1f;
    word-break: break-all;
    line-height: 1.55;
    min-height: 22px;
}
.bc-card-bin .bc-card-val { color: #0369a1; }
.bc-card-oct .bc-card-val { color: #7c2d12; }
.bc-card-dec .bc-card-val { color: #15803d; font-size: 16px; }
.bc-card-hex .bc-card-val { color: #b91c1c; }

.bc-copy {
    border: 0;
    background: #f0f0f2;
    color: #6e6e73;
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    flex: none;
}
.bc-copy:hover { background: #2563eb; color: #fff; }

.bc-mini {
    width: 50px;
    padding: 2px 6px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    font-family: inherit;
    color: #1d1d1f;
}
.bc-mini:focus { outline: none; border-color: #2563eb; }

/* 位模式 */
.bc-pattern {
    background: #0f172a;
    color: #7dd3fc;
    border-radius: 12px;
    padding: 16px;
    font-family: "SF Mono", Monaco, Consolas, "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.9;
    word-break: break-all;
    margin-bottom: 16px;
    letter-spacing: .5px;
    min-height: 52px;
}

/* chmod */
.bc-chmod-hint {
    font-size: 13px;
    color: #2563eb;
    background: #f0f7ff;
    border-radius: 9px;
    padding: 10px 13px;
    margin-bottom: 12px;
    min-height: 20px;
}
.bc-chmod-hint.is-error {
    color: #991b1b;
    background: #fef2f2;
}
.bc-chmod-demo {
    font-size: 12.5px;
    color: #6e6e73;
    line-height: 1.85;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 14px;
}
.bc-chmod-demo code {
    background: #eceff3;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 11.5px;
    color: #334155;
}

/* 说明 */
.bc-tip {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 12.5px;
    color: #6e6e73;
    line-height: 1.75;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.bc-tip .svg-icon { flex: none; margin-top: 3px; }
.bc-tip code {
    background: #eceff3;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 11.5px;
    color: #334155;
}
.bc-tip sup { font-size: 10px; }

@media (max-width: 640px) {
    .bc-tab { font-size: 13px; padding: 9px 6px; }
    .bc-cards { grid-template-columns: 1fr; }
    .bc-field { min-width: 100%; }
    .bc-seg { width: 100%; }
    .bc-seg-btn { flex: 1; }
}
