* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.calculator-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.version {
    font-size: 14px;
    color: #999;
    font-weight: normal;
}

.calc-form {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: grid;
    grid-template-columns: 120px auto 40px;
    align-items: center;
    gap: 10px;
}

.form-group span {
    white-space: nowrap;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 200px;
}

.hint {
    position: absolute;
    font-size: 12px;
    color: #ff4d4f;
    margin-top: 2px;
    left: 0;
    top: 100%;
}

.radio-group {
    display: flex;
    gap: 20px;
}

input[type="number"],
select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

button {
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#calculate {
    background-color: #1890ff;
    color: white;
}

#reset {
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
}

h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.result-content {
    display: grid;
    gap: 20px;
}

.result-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

.footer a {
    color: #1890ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    max-width: 200px;
    text-align: center;
    animation: fadeOut 2s forwards;
    animation-delay: 1.5s;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
} 