/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.result {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.result.show {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result h3 {
    color: #444;
    margin-bottom: 15px;
}

.details {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
}

.pac-section {
    background-color: #e3f2fd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.pam-section {
    background-color: #fce4ec;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.cost-section {
    background-color: #fff9e6;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.formula-section {
    background-color: #fff9e6;
    border-left: 4px solid #f7c55a;
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 10px;
}

.formula-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.formula-list {
    list-style-type: disc;
    padding-left: 20px;
}

.formula-list li {
    margin-bottom: 10px;
    color: #333;
}

.explanation-section {
    background-color: #e6f2ff;
    border-left: 4px solid #66b3ff;
    padding: 20px;
    margin-top: 10px;
    border-radius: 0 8px 8px 0;
}

.explanation-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.explanation-list {
    list-style-type: disc;
    padding-left: 20px;
}

.explanation-list li {
    margin-bottom: 8px;
    color: #333;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 24px;
    }
}
