:root { color-scheme: light; font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif; color: #334766; background: #f1f5fc; }
* { box-sizing: border-box; }body { margin: 0; min-width: 280px; min-height: 100dvh; padding: 44px 20px 25px; display: flex; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(ellipse at 5% 0, #dae5ff80, transparent 50%), radial-gradient(ellipse at 100% 90%, #f4e3eb90, transparent 50%); }
button,input { font: inherit; -webkit-tap-highlight-color: transparent; }button { cursor: pointer; touch-action: manipulation; }svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }button:focus-visible { outline: 3px solid #a4b4ed; outline-offset: 4px; }input:focus { outline: 2px solid #a4b4ed; outline-offset: 1px; }
.invite-card { position: relative; width: min(440px, 100%); padding: 31px 37px 26px; border: 1px solid #ffffff; border-radius: 29px; background: #ffffffdf; box-shadow: 0 24px 100px #516a9511; text-align: center; animation: arrive 650ms cubic-bezier(.22, 1, .36, 1) both; }
.invite-brand { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; font-size: .85rem; letter-spacing: .06em; }.invite-brand > svg { width: 35px; height: 35px; padding: 7px; border-radius: 12px; background: #7187c7; color: #fff0c9; fill: currentColor; stroke-width: .4; transform: rotate(-5deg); }.invite-brand small { display: block; font-size: .6rem; color: #94a0b6; letter-spacing: .18em; margin-top: 6px; }
.invite-scene { position: relative; width: 204px; height: 152px; margin: 29px auto 22px; overflow: hidden; border-radius: 110px 110px 35px 35px; background: linear-gradient(160deg, #e2e9ff, #f5f3fa 75%); }.invite-moon { position: absolute; width: 33px; height: 33px; border-radius: 50%; background: #fff9e9; left: 114px; top: 28px; box-shadow: 0 0 25px #fff9e9; }.invite-orbit { position: absolute; width: 145px; height: 145px; border: 1px solid #ffffffb0; border-radius: 50%; top: 13px; left: 30px; }.invite-star { position: absolute; color: #9caed8; font-size: 16px; animation: shimmer 4s ease-in-out infinite; }.star-one { top: 34px; left: 50px; }.star-two { top: 67px; left: 162px; font-size: 13px; animation-delay: -2s; }.star-three { top: 12px; left: 93px; font-size: 8px; }.invite-hill { position: absolute; border-radius: 50%; bottom: -90px; width: 260px; height: 150px; transform: rotate(-15deg); background: #cbd8f0; left: -90px; }.hill-two { background: #b8c9e6; transform: rotate(18deg); left: 35px; bottom: -100px; }.invite-path { position: absolute; bottom: -24px; left: 83px; width: 43px; height: 78px; background: #e9edf7; transform: perspective(80px) rotateX(35deg) rotate(12deg); border-radius: 70% 0 0; }.invite-door { position: absolute; bottom: 27px; left: 91px; width: 29px; height: 46px; border: 3px solid #8b9fc5; border-bottom: 0; border-radius: 16px 16px 0 0; background: #fdf3dc; box-shadow: 0 2px 20px #f9e7be80; }.invite-door i { position: absolute; right: 4px; top: 25px; width: 3px; height: 3px; background: #b1a07f; border-radius: 50%; }
.invite-eyebrow { font: .56rem system-ui, sans-serif; letter-spacing: .18em; color: #93a0bc; margin: 0 0 16px; }h1 { font-family: 'Noto Serif SC', 'Songti SC', SimSun, serif; font-size: 1.85rem; font-weight: 500; line-height: 1.65; letter-spacing: .06em; margin: 0; color: #40557d; }.invite-description { font-size: .76rem; color: #8390a9; line-height: 2; margin: 15px 0 25px; }
form { text-align: left; }label { display: block; color: #6a7c9e; font-size: .71rem; margin-bottom: 10px; }.invite-input-wrap { position: relative; }.invite-input-wrap input { width: 100%; min-height: 48px; border: 1px solid #dee6f5; border-radius: 12px; background: #f9fbff; color: #4b608e; font-size: .76rem; padding: 13px 43px 13px 13px; }.invite-input-wrap input::placeholder { color: #a0acc0; font-size: .72rem; }.invite-input-wrap button { position: absolute; right: 3px; top: 4px; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: #8c9dbb; display: grid; place-items: center; }.invite-input-wrap button:hover { background: #edf2fc; }.invite-error { min-height: 18px; margin: 8px 0 9px; font-size: .71rem; color: #a16d77; line-height: 1.7; }.invite-submit { display: flex; width: 100%; justify-content: center; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #607bca; border-radius: 12px; background: #647dca; color: #fff; font-size: .82rem; box-shadow: 0 6px 18px #657dc725; }.invite-submit:hover { background: #5771bf; }.invite-submit:disabled { opacity: .7; cursor: wait; }.invite-submit svg { width: 17px; height: 17px; }
.invite-remember { display: flex; align-items: center; justify-content: center; gap: 6px; color: #8294b4; font-size: .65rem; margin: 20px 0 8px; }.invite-remember svg { width: 13px; height: 13px; }.invite-footnote { font-size: .6rem; line-height: 1.85; color: #a3acc0; margin: 0; }.invite-footer { font-family: 'Songti SC', SimSun, serif; font-size: .71rem; color: #929fb7; text-align: center; margin-top: 25px; line-height: 1.8; }.invite-sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }.invite-sky span { position: absolute; background: #fff; width: 4px; height: 4px; border-radius: 50%; left: 16%; top: 30%; box-shadow: 0 0 15px #fff; }.invite-sky span:nth-child(2) { left: 80%; top: 24%; width: 6px; height: 6px; }.invite-sky span:nth-child(3) { left: 72%; top: 75%; }.invite-sky span:nth-child(4) { left: 24%; top: 82%; }
@keyframes arrive { from { opacity: 0; transform: translateY(15px); }to { opacity: 1; transform: translateY(0); } }@keyframes shimmer { 50% { opacity: .35; } }
@media (max-width: 480px) { body { padding: max(22px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); }.invite-card { border-radius: 25px; padding: 26px 25px 24px; }.invite-scene { margin-top: 24px; height: 139px; width: 192px; }.invite-door { left: 86px; }h1 { font-size: 1.65rem; }.invite-eyebrow { font-size: .5rem; letter-spacing: .12em; }.invite-description { font-size: .73rem; margin: 12px 0 22px; }.invite-footer { margin-top: 20px; font-size: .66rem; } }
@media (max-height: 740px) { body { justify-content: flex-start; }.invite-scene { height: 110px; margin: 17px auto; }.invite-brand { font-size: .8rem; }h1 { font-size: 1.55rem; }.invite-description { margin: 10px 0 17px; }.invite-eyebrow { margin-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
