/* styles.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.calculator-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.calculator-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #2c3e50;
    font-weight: bold;
    border-bottom: 3px solid #3498db;
}

.calculator-content {
    display: none;
}

.calculator-content.active {
    display: block;
}

/* 标准计算器样式 */
.display {
    margin-bottom: 15px;
}

.display input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: right;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.btn {
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #e0e0e0;
}

.operator {
    background-color: #3498db;
    color: white;
}

.operator:hover {
    background-color: #2980b9;
}

/* 木方材积计算器样式 */
.wood-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    align-items: center;
}

.form-group label {
    width: 100px;
    font-weight: bold;
}

.form-group input, .form-group select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.calculate-btn {
    padding: 12px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculate-btn:hover {
    background-color: #219653;
}

.result-display {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.result-display h3 {
    margin-top: 0;
    color: #2c3e50;
}

.result-display p {
    margin: 10px 0;
    font-size: 16px;
}