* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    color: #333;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #5568d3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 20px;
}

/* 每层纸的布局 */
.layer-row {
    margin-bottom: 12px;
}

.layer-input-row {
    display: flex;
    gap: 12px;
}

.layer-input-wrapper {
    flex: 1;
}

.layer-select, .gsm-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

.layer-select:focus, .gsm-input:focus {
    outline: none;
    border-color: #667eea;
}

.gsm-input {
    background: #fafafa;
}

label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

select, input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

select:focus, input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.input-row-three {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-row-three input {
    flex: 1;
    min-width: 0;
}

.separator {
    font-size: 20px;
    color: #999;
    font-weight: bold;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

.checkbox-item span {
    font-size: 14px;
    color: #555;
}

.result-box {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #5568d3 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.result-box h2 {
    font-size: 20px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    font-size: 15px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.total {
    font-size: 22px;
    font-weight: bold;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid rgba(255,255,255,0.5);
}

/* 单价详情区域 */
.price-detail-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.5);
}

.price-detail-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.price-layer-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.price-layer-item:last-child {
    border-bottom: none;
}

.price-layer-summary {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 8px;
}

.price-layer-flute {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.price-layer-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0 0;
    margin-top: 8px;
    border-top: 2px solid rgba(255,255,255,0.5);
    font-size: 16px;
    font-weight: bold;
}

/* 手机适配优化 */
@media (max-width: 380px) {
    .container {
        padding: 16px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .input-row-three {
        flex-direction: column;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
}
