/* ============ 温度转换：仅保留工具专属样式（布局/卡片/按钮等公共样式由 common.css 提供） ============ */

/* ---------- 快捷选择 ---------- */
.quick-select {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.quick-select span {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.preset-btn {
    padding: 4px 10px;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.preset-btn.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}

/* ---------- 单位分区 ---------- */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #6b21a8;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9d5ff;
}

.convert-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.convert-table-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

.convert-table-item label {
    display: block;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

/* 单位换算公式提示 */
.unit-hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* 温标适用场景说明 */
.unit-usage {
    display: block;
    font-size: 12px;
    color: #b0b6c0;
    margin-top: 1px;
}

/* ---------- 温度直观色带 ---------- */
.temp-band {
    margin: 18px 0 6px;
}

.temp-band-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.temp-band-labels .temp-current {
    color: #7c3aed;
    font-weight: 700;
}

.temp-band-track {
    position: relative;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(to right, #3b82f6, #22d3ee, #fde047, #f97316, #ef4444);
    border: 1px solid #e5e7eb;
}

.temp-band-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: left 0.2s ease;
}

/* 当前输入单位高亮 */
.convert-table-item.active {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.unit-input-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.convert-table-item input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

.convert-table-item input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.copy-btn {
    padding: 3px 15px;
    font-size: 13px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}
