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

body {
    background: #eef2f8;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    padding: 0 16px 100px;
    color: #1a2c3e;
}

/* ========== 头部图片 ========== */
.head {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 20px;
}
.head > img {
    width: 80%;
    margin: 0 0 10px 10%;
}
.head > div {
    position: relative;
}
.head > div > img:first-child {
    width: 100%;
}
.head > div > img:last-child {
    width: 40px;
    height: 40px;
    position: absolute;
    right: -5px;
    bottom: -10px;
    z-index: 1;
}

.head {
    max-width: 560px;
    margin: 0 auto 16px;
}

.head-banner {
    background: linear-gradient(135deg, #156b7e, #1f8cad);
    border-radius: 28px;
    padding: 18px 22px;
    color: white;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.head-banner h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.rule-tag {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.rule-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 500;
}

.form-container {
    max-width: 560px;
    margin: 20px auto 100px;
    background: #fff;
    border-radius: 36px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.12);
    overflow: hidden;
}

.form-header {
    background: #249cd4;
    padding: 24px 20px;
    text-align: center;
    color: white;
}

.form-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 18px;
}

.form-body {
    padding: 28px 22px 32px;
}

.step-container {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f3b4c;
}

.required-star {
    color: #e03a3a;
}

.input-group input {
    padding: 14px 18px;
    font-size: 1rem;
    border: 1.5px solid #e2edf2;
    border-radius: 28px;
    background: #fff;
    transition: all 0.2s;
    outline: none;
}

.input-group input:focus {
    border-color: #249cd4;
    box-shadow: 0 0 0 3px rgba(36,156,212,0.15);
}

.hint-text {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-top: 6px;
    margin-left: 8px;
}

.error-message {
    font-size: 0.7rem;
    color: #e03a3a;
    margin-top: 6px;
    margin-left: 8px;
    display: none;
}

.input-error input {
    border-color: #e03a3a;
    background: #fff6f5;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.radio-option input {
    width: 18px;
    height: 18px;
    accent-color: #249cd4;
}

.notice-box {
    background: #fef5e7;
    padding: 14px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #b45f06;
    margin: 20px 0;
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #249cd4;
    border: none;
    border-radius: 44px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:active { transform: scale(0.97); }
.submit-btn.disabled { opacity: 0.6; pointer-events: none; }

.message-area {
    margin-top: 16px;
    padding: 12px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.85rem;
    display: none;
}

.message-area.success {
    background: #e0f2e9;
    color: #2b6e4c;
    display: block;
}

.message-area.error {
    background: #ffe6e5;
    color: #c0392b;
    display: block;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #249cd4;
}

.optional-badge {
    float: right;
    font-size: 0.8rem;
    font-weight: normal;
    color: #e67e22;
}

.items-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.optional-option, .extra-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f9fbfd;
    border: 1.5px solid #e2edf2;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.optional-option:hover, .extra-option:hover {
    border-color: #b8d4e8;
    background: #fff;
}

.optional-option input, .extra-option input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #249cd4;
}

.optional-content, .extra-content {
    flex: 1;
}

.optional-name, .extra-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.optional-desc, .extra-desc {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 6px;
}

.price-original {
    font-size: 0.7rem;
    text-decoration: line-through;
    color: #aaa;
    margin-right: 8px;
}

.price-discount {
    font-weight: 700;
    color: #e03a3a;
}

.base-item {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 14px;
    font-size: 0.85rem;
}

.base-item .item-name {
    font-weight: 600;
}

.gift-item {
    background: #e8f4ea;
    border-left: 3px solid #2ecc71;
    padding: 10px 12px;
    border-radius: 14px;
}

.package-info-card {
    background: linear-gradient(120deg, #eef7fc, #fff);
    padding: 16px;
    border-radius: 24px;
    margin-bottom: 10px;
}

.price-row {
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.tag {
    background: #f39c12;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.step-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 14px 24px;
    border-top: 1px solid #e2edf2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

body {
    padding-bottom: 90px;
}

.total-display {
    font-weight: 700;
    font-size: 1.2rem;
}

.total-display span:last-child {
    color: #e03a3a;
    margin-left: 6px;
}

.result-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.small-note {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-top: 12px;
}

@media (max-width: 560px) {
    .step-footer {
        left: 0;
        right: 0;
        border-radius: 0;
    }
    .form-body {
        padding: 20px 16px;
    }
}

.package-image-container {
    margin: 8px 0 4px;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f7fa;
}

.package-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}