/* 转换卡片样式 */
.convert-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 20px;
    height: 100%;
    transition: all 0.2s ease;
}
.convert-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.convert-card .form-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 6px;
}
.convert-card .form-control,
.convert-card .form-select {
    font-size: 1rem;
}
.big-value {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #20c997;
    word-break: break-all;
    line-height: 1.3;
}
.result-value {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    word-break: break-all;
    line-height: 1.3;
}
/* 交换按钮 */
.swap-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #20c997;
    color: #fff;
    border: none;
    transition: all 0.25s ease;
    font-size: 1.2rem;
}
.swap-btn:hover {
    background-color: #1aa179;
    transform: rotate(180deg);
    color: #fff;
}
/* 对照表 */
.compare-table {
    margin-bottom: 0;
}
.compare-table thead th {
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 10px 12px;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 5;
}
.compare-table tbody td {
    padding: 8px 12px;
    font-size: 0.88rem;
    vertical-align: middle;
    border-color: #f1f3f5;
}
.compare-table tbody tr:hover {
    background-color: #f8f9fa;
}
.compare-table .unit-name {
    font-weight: 600;
    color: #495057;
}
.compare-table .unit-symbol {
    color: #adb5bd;
    font-size: 0.78rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.compare-table .value-cell {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #20c997;
    font-weight: 500;
    word-break: break-all;
}
/* 分类标题行 */
.category-header {
    background-color: #f1f3f5 !important;
    font-weight: 700;
    color: #495057;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 6px 12px !important;
}
.category-header .cat-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: normal;
    margin-left: 6px;
}
.cat-metric { background-color: #cfe2ff; color: #084298; }
.cat-mech { background-color: #f8d7da; color: #842029; }
.cat-electric { background-color: #d1e7dd; color: #0f5132; }
.cat-thermal { background-color: #fff3cd; color: #664d03; }
.cat-other { background-color: #e2d9f3; color: #432874; }
/* 常用快捷按钮 */
.quick-chips .btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}
/* 滚动容器 */
.table-scroll {
    max-height: 500px;
    overflow-y: auto;
}
.table-scroll::-webkit-scrollbar {
    width: 8px;
}
.table-scroll::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}
.table-scroll::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}
/* 功率可视化仪表 */
.power-gauge {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #0d6efd 0%, #17a2b8 25%, #20c997 50%, #ffc107 75%, #dc3545 100%);
    position: relative;
    margin: 8px 0;
}
.power-gauge-marker {
    position: absolute;
    top: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #212529;
    transform: translateX(-50%);
    transition: left 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* 参考点表 */
.ref-table {
    margin-bottom: 0;
}
.ref-table thead th {
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 8px 12px;
    font-weight: 600;
}
.ref-table tbody td {
    padding: 7px 12px;
    font-size: 0.85rem;
    border-color: #f1f3f5;
}
.ref-table tbody tr:hover {
    background-color: #e6faf5;
}
/* Toast */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #198754;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}
.copy-toast.show { opacity: 1; }
