/* 欠薪计算器 - 按 similar_case.html 原型风格 */
.wage-calculator-container {
display: flex;
gap: 25px;
height: 100%;
min-height: 0;
overflow: hidden;
}
/* 左侧输入区域 (2/3宽度) */
.calc-input-section {
flex: 2;
background: white;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
padding: 25px;
border: 1px solid var(--border-color);
display: flex;
flex-direction: column;
min-height: 0;
overflow-y: auto;
}
/* 右侧结果区域 (1/3宽度) */
.calc-result-section {
flex: 1;
background: white;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
padding: 25px;
border: 1px solid var(--border-color);
display: flex;
flex-direction: column;
min-height: 0;
overflow-y: auto;
}
/* 区域标题 - 使用独立类名避免污染全局样式 */
.calc-section-title {
font-size: 1.5rem;
color: var(--secondary-color);
margin-bottom: 25px;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-color);
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}
.calc-section-title i {
color: var(--primary-color);
}
/* 表单区域 */
.input-form-wrapper {
background: #f9fafc;
padding: 20px;
border-radius: var(--border-radius);
margin-bottom: 25px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 8px;
}
/* 自定义AntD表单样式 */
.input-form-wrapper .ant-form-item-label > label {
color: var(--secondary-color);
font-weight: 500;
}
.input-form-wrapper .ant-btn-primary {
background: var(--primary-color);
border-color: var(--primary-color);
height: 42px;
font-size: 1rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
padding: 0 32px;
transition: all 0.3s;
}
.input-form-wrapper .ant-btn-primary:hover {
background: var(--secondary-color);
border-color: var(--secondary-color);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(26, 111, 184, 0.3);
}
/* 计算说明 */
.calc-explanation {
background: #e3f2fd;
padding: 20px;
border-radius: var(--border-radius);
border-left: 4px solid var(--primary-color);
}
.explanation-title {
color: var(--primary-color);
font-size: 1.1rem;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
}
.explanation-content {
display: flex;
flex-direction: column;
gap: 12px;
}
.explanation-item {
display: flex;
align-items: flex-start;
gap: 8px;
font-size: 0.95rem;
line-height: 1.6;
}
.item-label {
font-weight: 600;
color: var(--secondary-color);
min-width: 90px;
}
.item-value {
color: #555;
}
/* 结果包装器 */
.result-wrapper {
display: flex;
flex-direction: column;
gap: 20px;
}
/* 总计金额 */
.result-total {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 25px;
border-radius: var(--border-radius);
text-align: center;
box-shadow: 0 4px 15px rgba(26, 111, 184, 0.3);
}
.total-label {
font-size: 1rem;
opacity: 0.9;
margin-bottom: 8px;
letter-spacing: 1px;
}
.total-amount {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 8px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.total-hint {
font-size: 0.85rem;
opacity: 0.8;
}
/* 详细结果列表 */
.result-details {
display: flex;
flex-direction: column;
gap: 15px;
}
.detail-card {
display: flex;
align-items: center;
gap: 15px;
padding: 15px;
background: #f8f9fa;
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
transition: all 0.3s;
}
.detail-card:hover {
border-color: var(--primary-color);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transform: translateX(5px);
}
.detail-icon {
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
color: white;
flex-shrink: 0;
}
.detail-icon.basic {
background: linear-gradient(135deg, #2a9d8f, #1b7a6e);
}
.detail-icon.overtime {
background: linear-gradient(135deg, #e9c46a, #d4a847);
}
.detail-icon.compensation {
background: linear-gradient(135deg, #1a6fb8, #0d4a8a);
}
.detail-icon.late {
background: linear-gradient(135deg, #e76f51, #d4553a);
}
.detail-info {
flex: 1;
}
.detail-label {
font-size: 0.9rem;
color: var(--gray-color);
margin-bottom: 5px;
}
.detail-amount {
font-size: 1.3rem;
font-weight: 700;
color: var(--secondary-color);
margin-bottom: 3px;
}
.detail-formula {
font-size: 0.85rem;
color: #888;
}
/* 法律依据 */
.legal-basis {
background: #fff3cd;
padding: 20px;
border-radius: var(--border-radius);
border-left: 4px solid var(--warning-color);
}
.basis-title {
color: #856404;
font-size: 1.05rem;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
}
.basis-content {
font-size: 0.9rem;
line-height: 1.8;
color: #555;
}
.basis-content p {
margin-bottom: 12px;
}
.basis-content p:last-child {
margin-bottom: 0;
}
.basis-content strong {
color: #856404;
font-weight: 600;
}
/* 无结果提示 */
.no-result {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
color: var(--gray-color);
text-align: center;
height: 100%;
}
.no-result i {
font-size: 4rem;
color: #dee2e6;
margin-bottom: 20px;
}
.no-result p {
font-size: 1rem;
line-height: 1.6;
}
/* 滚动条样式 */
.calc-input-section::-webkit-scrollbar,
.calc-result-section::-webkit-scrollbar {
width: 8px;
}
.calc-input-section::-webkit-scrollbar-track,
.calc-result-section::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
.calc-input-section::-webkit-scrollbar-thumb,
.calc-result-section::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
.calc-input-section::-webkit-scrollbar-thumb:hover,
.calc-result-section::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* 响应式设计 */
@media (max-width: 992px) {
.wage-calculator-container {
flex-direction: column;
}
.calc-input-section,
.calc-result-section {
flex: none;
width: 100%;
max-height: 50vh;
}
.form-row {
grid-template-columns: 1fr;
}
.total-amount {
font-size: 2rem;
}
}
@media (max-width: 768px) {
.calc-input-section,
.calc-result-section {
padding: 20px;
}
.calc-section-title {
font-size: 1.3rem;
}
.detail-card {
flex-direction: column;
text-align: center;
}
.detail-icon {
margin-bottom: 10px;
}
}