* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui,'Segoe UI',Roboto,'Helvetica Neue',sans-serif;
}

body {
    background: linear-gradient(145deg,#f1f5f9 0%,#e6ecf3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.card {
    margin:0 auto;
    background: #fff;
    max-width: 650px;
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    padding: 2.5rem 2.2rem;
    border: 1px solid rgba(255,255,255,.6);
}

.card h2 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #0b2e4b;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .card h2 span {
        background: #0b2e4b;
        color: #fff;
        font-size: 1rem;
        padding: .2rem .8rem;
        border-radius: 40px;
        font-weight: 400;
    }

.subhead {
    font-size: 1rem;
    color: #4a5c6b;
    margin-bottom: 2rem;
    border-left: 4px solid #2e7daf;
    background: #f0f7fc;
    border-radius: 0 12px 12px 0;
    padding: .8rem 1rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    font-size: .9rem;
    color: #1e3b4f;
    margin-bottom: .4rem;
}

    label .required {
        color: #d1453b;
        margin-left: 4px;
        font-weight: 600;
    }

input, select, textarea {
    width: 100%;
    padding: .85rem 1rem;
    font-size: 1rem;
    background: #f9fcff;
    border: 1.5px solid #cbd8e6;
    border-radius: 16px;
    color: #0b2e4b;
    outline: none;
    appearance: none;
    transition: all .2s ease;
    font-family: inherit;
}

    input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
        background-image: none;
        padding-right: 1rem;
    }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a6e8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    cursor: pointer;
}

textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.5;
}

    input:focus, select:focus, textarea:focus {
        border-color: #2e7daf;
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(46,125,175,.15);
    }

    input::placeholder, textarea::placeholder {
        color: #8fa6bb;
        font-weight: 300;
        font-size: .95rem;
    }

.row {
    display: flex;
    gap: 1rem;
}

    .row .form-group {
        flex: 1;
    }

@media (max-width:520px) {
    .row {
        flex-direction: column;
        gap: 0;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.6rem;
    }
}

.btn-send {
    width: 100%;
    background: #0b2e4b;
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 8px 20px -6px rgba(11,46,75,.3);
    margin-top: 2rem;
}

    .btn-send:hover {
        background: #123f63;
        box-shadow: 0 12px 24px -8px rgba(11,46,75,.4);
    }

    .btn-send:active {
        transform: scale(.98);
    }

    .btn-send:disabled {
        background: #7a94aa;
        cursor: not-allowed;
        box-shadow: none;
    }

    .btn-send svg {
        width: 1.2rem;
        height: 1.2rem;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

.note {
    font-size: .8rem;
    color: #718fa8;
    text-align: center;
    margin-top: 1.5rem;
    border-top: 1px dashed #cdddee;
    padding-top: 1.2rem;
}

    .note a {
        color: #1e6d9c;
        text-decoration: none;
        font-weight: 500;
    }

        .note a:hover {
            text-decoration: underline;
        }

.builtin-email-badge {
    display: inline-flex;
    align-items: center;
    background: #e2effa;
    color: #0b4b7a;
    font-size: .75rem;
    font-weight: 500;
    padding: .25rem .75rem;
    border-radius: 30px;
    margin-left: 8px;
    border: 1px solid #b9d6ef;
}

    .builtin-email-badge::before {
        content: "✉️";
        margin-right: 4px;
        font-size: .75rem;
    }

.status-msg {
    margin-top: 1rem;
    padding: .8rem 1rem;
    border-radius: 12px;
    font-size: .9rem;
    display: none;
    text-align: center;
}

    .status-msg.success {
        display: block;
        background: #e3f6e9;
        color: #1d6b3c;
        border: 1px solid #b6e0c4;
    }

    .status-msg.error {
        display: block;
        background: #fdecea;
        color: #b52a22;
        border: 1px solid #f5c2be;
    }

    .status-msg.sending {
        display: block;
        background: #eef5fb;
        color: #2a5d84;
        border: 1px solid #c5ddf0;
    }

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 2px solid #2a5d84;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 字数统计 */
.char-counter {
    text-align: right;
    font-size: .75rem;
    color: #8fa6bb;
    margin-top: 4px;
    transition: color .2s;
}

    .char-counter.over-limit {
        color: #d1453b;
        font-weight: 600;
    }

/* 展位类型三选一（单选按钮组） */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .3rem 0;
}

    .radio-group label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 400;
        font-size: 1rem;
        color: #1e3b4f;
        cursor: pointer;
        margin-bottom: 0;
        padding: .6rem 1.1rem;
        border: 1.5px solid #cbd8e6;
        border-radius: 30px;
        background: #f9fcff;
        transition: all .2s;
        user-select: none;
    }

        .radio-group label:hover {
            border-color: #2e7daf;
            background: #eef5fb;
        }

    .radio-group input[type="radio"] {
        /* ★ 关键修复：重置全局 input 样式 */
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        appearance: auto !important;
        -webkit-appearance: radio !important;
        accent-color: #0b2e4b;
        transform: scale(1.2);
        cursor: pointer;
        flex-shrink: 0;
    }

    .radio-group label.checked {
        border-color: #2e7daf;
        background: #e2effa;
        box-shadow: 0 0 0 2px rgba(46,125,175,.15);
    }
