/* 资金占用成本计算器样式文件 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
}

h2 {
    color: #34495e;
    margin: 20px 0;
    font-size: 20px;
}

.input-section {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.calculate-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

.calculate-btn:active {
    transform: translateY(1px);
}

.result-section {
    margin-top: 30px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-table table {
    width: 100%;
    border: none;
}

.result-table th,
.result-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.result-table th {
    background-color: #3498db;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.result-table tr:hover {
    background-color: #e8f4f8;
}

.result-table .total-row {
    font-weight: bold;
    background-color: #f1c40f !important;
    color: #333;
}

.result-table .total-row:hover {
    background-color: #f39c12 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    
    .input-group input {
        padding: 10px;
    }
    
    .result-table th,
    .result-table td {
        padding: 10px 5px;
        font-size: 14px;
    }
}