.fee-calculation-area {
    width: calc(100vw * 3 / 4);
    max-width: 800px;
    margin-bottom: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 创建一个新的容器来包裹两个输入组 */
.fee-inputs-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.fee-input-group {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fee-input-group > label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    text-align: center;
    width: 100%;
}

.fee-input-group > div {
    width: 100%;
    position: relative;
}

.fee-input-group > div > input[type="number"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.fee-input-group > div > input[type="number"]:focus {
    border-color: #007bff;
}

.fee-button-group {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
}

.fee-button-group > button {
    flex: 1;
}

.fee-input-group span {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 15px;
    white-space: nowrap;
    pointer-events: none;
}

.execution-fee-result-display, .preservation-fee-result-display {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    display: block;
}

@media (max-width: 768px) {
    .fee-calculation-area {
        width: 90%;
        padding: 20px;
    }
    
    .fee-inputs-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .fee-input-group {
        width: 100%;
    }
    
    .fee-button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .fee-button-group > button {
        width: 100%;
    }
    
    .fee-input-group span {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
} 