/* 单位转换器专用样式 */
.unit-converter {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.calc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.calc-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
}

.calc-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.calc-tab:hover {
    color: #667eea;
}

.calc-tab-content {
    display: none;
}

.calc-tab-content.active {
    display: block;
}

.calc-input-group input,
.calc-input-group select {
    flex: 1;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.convert-icon {
    font-size: 24px;
    color: #667eea;
}

.result-display {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.result-display.show {
    display: block;
}

.result-formula {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
}

.quick-convert-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-convert-btn {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-convert-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}