/* 实时收入计算器样式 */
.income-calculator-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(176, 196, 222, 0.267);
    padding: 36px 32px 28px;
    text-align: center;
}

.tips {
    background: #fffde7;
    color: #b26a00;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(255, 224, 178, 0.267);
    border-left: 4px solid #ffa726;
}

.input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: center;
    align-items: center;
}

.input-row label {
    flex: 1;
    text-align: right;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    min-width: 140px;
}

.input-row .form-input {
    flex: 1.5;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    max-width: 200px;
}

.input-row .form-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.input-row .form-input::placeholder {
    color: #bbb;
}

.form-group {
    margin: 24px 0;
}

.btn {
    padding: 12px 32px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.btn:active {
    background: #0d47a1;
    transform: translateY(0);
}

.btn.working {
    background: #f57c00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 124, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 124, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 124, 0, 0);
    }
}

.result-area {
    background: linear-gradient(135deg, #f1f8fe 0%, #e3f2fd 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
    padding: 24px 18px 20px;
    margin-top: 24px;
    font-size: 16px;
    color: #1976d2;
    min-height: 140px;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.result-row:last-child {
    margin-bottom: 0;
}

.result-row span {
    font-size: 15px;
    color: #666;
}

.result-row strong {
    color: #d32f2f;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(211, 47, 47, 0.2);
}

.result-divider {
    border-top: 2px dashed rgba(176, 196, 222, 0.6);
    margin: 16px 0 14px;
}

/* 工作时间特殊样式 */
#workTime {
    font-family: 'Courier New', monospace;
    font-size: 20px !important;
    color: #1976d2 !important;
    background: rgba(25, 118, 210, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
}

/* 已赚到金额特殊样式 */
#earned {
    font-size: 20px !important;
    color: #388e3c !important;
    text-shadow: 0 1px 3px rgba(56, 142, 60, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .income-calculator-container {
        margin: 20px;
        padding: 24px 20px 20px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .input-row label {
        text-align: center;
        min-width: auto;
        margin-bottom: 4px;
    }
    
    .input-row .form-input {
        max-width: 100%;
        width: 100%;
    }
    
    .result-row {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .result-row strong {
        font-size: 16px;
    }
    
    #workTime {
        font-size: 18px !important;
    }
    
    #earned {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .income-calculator-container {
        margin: 15px;
        padding: 20px 16px 16px;
    }
    
    .tips {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .result-area {
        padding: 20px 14px 16px;
    }
}