/* ============ 面积换算：仅保留工具专属样式（布局/卡片/按钮等公共样式由 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;
}

/* ---------- 常用面积速查 ---------- */
.area-ref {
    margin-bottom: 18px;
    padding: 12px 15px;
    background: #f5f3ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
}

.area-ref-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b21a8;
    margin-bottom: 8px;
}

.area-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 16px;
}

.area-ref-grid span {
    font-size: 12px;
    color: #6b7280;
}

/* ---------- 单位分区 ---------- */
.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;
}

/* 当前输入单位高亮 */
.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;
}
