
:root {
    --brand: #C41E3A;
    --brand-dark: #a01830;
    --gold: #C5A55A;
    --gold-dark: #8B6914;
    --text: #333;
    --text-sub: #666;
    --text-muted: #999;
    --border: #ccc;
    --line: #e0e0e0;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "STHeiti", "WenQuanYi Micro Hei", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    line-height: 1.8;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.wrap h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}

/* ===== Section ===== */
.section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--line);
}

.section:last-of-type {
    border-bottom: none;
}

.hidden {
    display: none;
}

.section.hidden {
    display: none;
}

.section-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 14px;
}

.section-title .required {
    color: var(--brand);
    font-size: 12px;
    font-weight: normal;
    margin-left: 6px;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

label .req {
    color: var(--brand);
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--brand);
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

input::placeholder {
    color: #aaa;
}

.hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Checkbox List ===== */
.checkbox-list {
    display: flex;
    flex-direction: column;
}

.checkbox-list .checkbox-item {
    margin-bottom: 6px;
}

.checkbox-list .checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 8px 0;
    font-size: 14px;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    margin-right: 8px;
    flex-shrink: 0;
    accent-color: var(--brand);
}

.checkbox-item .item-name {
    color: var(--text);
}

.checkbox-item .item-price {
    display: block;
    font-size: 12px;
    color: var(--brand);
    line-height: 1.6;
}

/* ===== Number Input ===== */
.number-input-wrap {
    display: flex;
    align-items: center;
    max-width: 180px;
}

.number-input-wrap button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
    line-height: 1;
}

.number-input-wrap button:hover {
    background: #e8e8e8;
}

.number-input-wrap button:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.number-input-wrap button:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.number-input-wrap input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: bold;
    border-radius: 0;
}

/* 隐藏数字输入框原生箭头（WebKit + Firefox） */
.number-input-wrap input::-webkit-outer-spin-button,
.number-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-input-wrap input[type="number"] {
    -moz-appearance: textfield;
}

/* ===== Note Box ===== */
.note-box {
    background: #fafafa;
    border-left: 3px solid var(--brand);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 12px;
    line-height: 1.8;
}

/* ===== Price Summary ===== */
.price-summary-section {
    margin-top: 12px;
}

.price-summary-section .summary-content {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 2;
}

.summary-content .sum-label {
    color: var(--text);
    font-weight: bold;
}

.summary-content .sum-price {
    color: var(--brand);
}

/* ===== Submit ===== */
.submit-section {
    text-align: center;
    padding-top: 10px;
}

/* 提交校验失败提示 */
.submit-section .form-error {
    display: inline-block;
    max-width: 100%;
    margin: 0 10px 10px 0;
    padding: 8px 12px;
    background: #FDECEF;
    border: 1px solid var(--brand);
    border-radius: 4px;
    color: var(--brand);
    font-size: 13px;
    font-weight: bold;
    line-height: 1.5;
}

.btn-submit {
    display: inline-block;
    width: 240px;
    height: 44px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 2px;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--brand-dark);
}

/* 提交中：按钮禁用态 */
.btn-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 8px;
    padding: 15px 36px 25px 36px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
}

.modal h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.modal p {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 18px;
    line-height: 1.8;
}

.modal .btn-close {
    padding: 8px 40px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Notice Box ===== */
.notice-box {
    background: #fffbf0;
    border: 1px solid #f0d78c;
    border-left: 3px solid var(--gold);
    padding: 16px 18px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 2;
    border-radius: 4px;
}

.notice-box h3 {
    font-size: 14px;
    color: var(--gold-dark);
    margin-bottom: 8px;
    font-weight: bold;
}

.notice-box .notice-item {
    margin-bottom: 6px;
    padding-left: 4px;
}

.notice-box .notice-num {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--gold);
    color: #fff;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    font-size: 11px;
    margin-right: 6px;
    vertical-align: middle;
}

.notice-box .notice-footer {
    text-align: right;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

/* ===== 弹窗须知 ===== */
.modal-notice {
    text-align: left;
    padding: 12px 0 0;
    margin: 0 0 18px;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.9;
    border-top: 1px solid var(--line);
}

.modal-notice .mn-item {
    margin-bottom: 4px;
}

.modal-notice .mn-footer {
    text-align: right;
    color: #bbb;
    font-size: 11px;
    margin-top: 4px;
}


@media (max-width: 480px) {
    .wrap {
        padding: 16px 12px 40px;
    }

    .wrap h2 {
        font-size: 17px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select {
        height: 44px;
        font-size: 16px;
    }

    .number-input-wrap {
        max-width: 100%;
    }

    .number-input-wrap button {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .number-input-wrap input {
        width: 100%;
        height: 44px;
        font-size: 16px;
    }

    .checkbox-item {
        padding: 10px 0;
    }

    .checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 1px;
        margin-right: 10px;
    }

    .checkbox-item .item-name {
        font-size: 14px;
    }

    .checkbox-item .item-price {
        font-size: 12px;
    }

    .section {
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .section-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .section-title .required {
        font-size: 11px;
    }

    .notice-box {
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.8;
    }

    .notice-box h3 {
        font-size: 13px;
    }

    .notice-box .notice-num {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 10px;
    }

    .summary-content {
        font-size: 12px;
        line-height: 1.8;
        padding: 12px 14px;
    }

    .btn-submit {
        width: 100%;
        height: 48px;
        font-size: 16px;
    }

    .modal {
        padding: 28px 20px;
        width: 92%;
    }

    .modal h3 {
        font-size: 17px;
    }

    .modal .btn-close {
        padding: 10px 36px;
        font-size: 15px;
        height: 44px;
    }

    .note-box {
        font-size: 12px;
        padding: 10px 12px;
    }
}