:root {
    --ink: #132028;
    --muted: #5c6b75;
    --line: rgba(19, 32, 40, 0.12);
    --surface: rgba(255, 252, 248, 0.86);
    --accent: #0f766e;
    --accent-deep: #0a5c56;
    --warn: #b42318;
    --font-display: "Syne", "Noto Sans SC", sans-serif;
    --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #d9e4df;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(1200px 700px at 12% -10%, #f4fff9 0%, transparent 55%),
        radial-gradient(900px 600px at 90% 10%, #cfe8e2 0%, transparent 50%),
        linear-gradient(160deg, #e7efe9 0%, #d5e2ea 48%, #c7d8d2 100%);
}
.bg .grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(19, 32, 40, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 32, 40, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    opacity: 0.7;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: drift 14s ease-in-out infinite alternate;
}
.orb-a {
    width: 340px; height: 340px; left: -80px; bottom: 8%;
    background: rgba(15, 118, 110, 0.28);
}
.orb-b {
    width: 280px; height: 280px; right: -40px; top: 18%;
    background: rgba(56, 104, 140, 0.22);
    animation-delay: -4s;
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(24px, -18px, 0) scale(1.08); }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.shell {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 36px;
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand { margin-bottom: 22px; }
.brand-mark {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 7vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
}
.brand h1 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
}
.brand-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    animation: rise 0.8s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.notice-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
    padding-top: 2px;
}
.notice-body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink);
}
.notice-body a {
    color: var(--accent-deep);
    font-weight: 500;
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(19, 32, 40, 0.08);
    animation: rise 0.85s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pay-ways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pay-ways label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.pay-ways input {
    accent-color: var(--accent);
}
.pay-ways label:has(input:checked) {
    border-color: rgba(15, 118, 110, 0.55);
    background: rgba(15, 118, 110, 0.08);
    color: var(--accent-deep);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.field span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.field input[type="text"],
.field input[type="number"],
.field input[type="tel"] {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.field input::placeholder { color: #93a0a8; }

.switch {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    line-height: 1.45;
}
.switch input {
    margin-top: 3px;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}
.switch small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.price-box {
    padding: 16px;
    border: 1px solid rgba(15, 118, 110, 0.25);
    background: rgba(15, 118, 110, 0.06);
    text-align: center;
}
.price-box .label {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}
.price-box .amount {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0;
    font-style: normal;
    color: var(--accent-deep);
}
.price-box .hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.submit {
    border: 0;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.submit:hover { background: var(--accent-deep); }
.submit:active { transform: translateY(1px); }

.links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}
.links a {
    color: var(--accent-deep);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}
.links a:hover { border-bottom-color: currentColor; }

.foot {
    margin: 20px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* confirm modal (xufei) */
.modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(19, 32, 40, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-box {
    width: min(360px, 100%);
    background: #fffcf8;
    border: 1px solid var(--line);
    padding: 22px;
    box-shadow: 0 20px 50px rgba(19, 32, 40, 0.2);
    animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal-box p {
    margin: 0 0 18px;
    line-height: 1.55;
    font-size: 0.95rem;
}
.modal-box .hl {
    color: var(--accent-deep);
    font-weight: 700;
}
.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.modal-actions button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 11px 12px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.modal-actions .ok {
    border: 0;
    background: var(--accent);
    color: #fff;
}

@media (max-width: 480px) {
    .shell {
        width: calc(100% - 24px);
        padding: 24px 0 calc(28px + env(safe-area-inset-bottom, 0px));
        justify-content: flex-start;
    }
    .brand { margin-bottom: 16px; }
    .brand-mark { font-size: 2.1rem; }
    .brand h1 { font-size: 1rem; }
    .notice { padding: 12px 14px; gap: 10px; }
    .panel { padding: 16px; gap: 12px; }
    .pay-ways { gap: 8px; }
    .pay-ways label {
        min-height: 48px;
        padding: 14px 8px;
        font-size: 0.95rem;
    }
    .field input[type="text"],
    .field input[type="number"],
    .field input[type="tel"] {
        font-size: 16px;
        padding: 14px;
        min-height: 48px;
    }
    .submit {
        min-height: 50px;
        font-size: 1.05rem;
        width: 100%;
    }
    .links {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: center;
    }
    .links a {
        display: block;
        padding: 10px;
        font-size: 0.95rem;
    }
    .switch {
        padding: 12px;
        min-height: 52px;
    }
    .modal-box { padding: 18px; }
    .modal-actions button {
        min-height: 46px;
        font-size: 0.95rem;
    }
}
