* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

h2 {
    color: #2c3e50;
    margin: 1.5rem 0;
}

.input-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.result-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.result-item label {
    color: #666;
    font-size: 0.9rem;
}

.result-item span {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 0.5rem;
}

#commission {
    color: #e74c3c;
    font-weight: bold;
}

@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.calculator-item {
    display: block;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.calculator-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calculator-item h2 {
    margin-bottom: 1rem;
    color: #3498db;
}

.calculator-item p {
    color: #666;
    margin: 0;
} 