.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.calculator-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: transform 0.2s;
}

.calculator-box:hover {
    transform: translateY(-5px);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #4e73df;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.btn-calculate {
    background-color: #4e73df;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-calculate:hover {
    background-color: #2e59d9;
}

.result-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fc;
    border-radius: 0.5rem;
    text-align: center;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4e73df;
}

.chart-container {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.historic-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
}

.historic-table th,
.historic-table td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.historic-table th {
    background-color: #f8f9fc;
    font-weight: 600;
    color: #4a5568;
}

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

.copy-btn,
.reset-btn {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.copy-btn {
    background-color: #1cc88a;
    color: white;
}

.reset-btn {
    background-color: #e74a3b;
    color: white;
}

.copy-btn:hover {
    background-color: #169b6b;
}

.reset-btn:hover {
    background-color: #be2617;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calculator-container {
        padding: 10px;
    }
    
    .calculator-box {
        padding: 15px;
    }
    
    .btn-calculate {
        width: 100%;
    }
    
    .historic-table {
        display: block;
        overflow-x: auto;
    }
} 