@font-face{font-family:Alice;src:url('./assets/alice.woff2')}@font-face{font-family:Funnel;src:url('./assets/funnel-sans.woff2')}
:root{--paper:#fffbec;--ink:#292823;--wine:#a84755;--pink:#f3e5e2;--line:#e5dfd5;--muted:#7a756c}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.7 Funnel,"PingFang SC","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #b06a72;outline-offset:4px}a{color:inherit;text-decoration:none}button{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:"Songti SC",SimSun,serif;font-weight:600}h1{font-size:36px;line-height:1.35}h2{font-size:25px;line-height:1.5}.topbar{max-width:980px;margin:auto;height:92px;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font:32px/1 Alice,Georgia,serif;letter-spacing:-1.5px}.brand span{display:block;font:10px/1.8 "PingFang SC",sans-serif;letter-spacing:4px;margin:5px 0 0 3px}.edition{font-size:10px;color:var(--muted)}.text-button{border:0;background:none;font-size:13px;padding:8px 0}.text-button span{color:var(--wine);padding-left:5px}.preview-note{text-align:center;background:#f1ede1;color:#716b61;font-size:11px;padding:6px 12px}.wrap{max-width:640px;margin:auto;padding:24px 24px 120px}.eyebrow{font-size:10px;letter-spacing:2.4px;color:var(--wine);margin-bottom:12px}.hero{position:relative;overflow:hidden;border-radius:120px 120px 24px 24px;min-height:265px;background:linear-gradient(0deg,#262b2fc9,#332e3520),url('./assets/bench.webp') center/cover;display:flex;align-items:flex-end;padding:30px;color:#fff9ed;margin-bottom:25px}.hero h1{font-size:30px}.hero .eyebrow{color:#fff2c9}.hero-mark{position:absolute;right:25px;top:25px;border:1px solid #fff6;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font:30px Alice;transform:rotate(12deg)}.intro-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.intro-row p{color:var(--muted);font-size:12px}.step-badge{font:italic 27px Alice;color:#b4997c}.card{padding:25px;background:#fffdf7;border:1px solid var(--line);border-radius:20px;margin:16px 0;box-shadow:0 4px 16px #4d3c211f}.card-heading{display:flex;gap:12px;align-items:center;margin-bottom:22px}.number{width:26px;height:26px;border:1px solid #c7b4a4;border-radius:50%;display:grid;place-items:center;font:12px Alice;color:#9b6d60;flex-shrink:0}.card h2{font-size:21px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.upload-label{display:block;font-size:13px;margin:0 0 12px}.upload{height:150px;width:100%;background:#f5eee7;border:1px dashed #c4b5a6;border-radius:13px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;overflow:hidden;color:#807368;cursor:pointer}.upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.upload:focus-within{outline:2px solid var(--wine)}.upload img{width:100%;height:100%;object-fit:contain}.upload svg{width:28px;height:28px;margin-bottom:8px}.upload small{font-size:12px}.upload-actions{font-size:11px;color:var(--muted);margin-top:8px}.field{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:12px;border-bottom:1px solid #eee7dd;min-height:65px}.field:last-child{border:0}.field label{font-size:14px}.field input,.field select{width:100%;min-width:0;padding:12px 2px;border:0;background:transparent;color:var(--ink);outline-offset:2px}.field input::placeholder,textarea::placeholder{color:#aaa297}.field select:invalid{color:#aaa297}.field select{padding-right:18px}.required{color:var(--wine);font-size:10px;margin-right:5px}textarea{width:100%;min-height:140px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fbf7ef;resize:vertical;margin-top:20px;font-size:13px}input,select,textarea{accent-color:var(--wine)}.continuous{padding:10px 6px}.continuous label{display:flex;align-items:center;gap:9px;font-size:17px}.continuous input{width:19px;height:19px}.continuous p{font-size:12px;color:var(--muted);margin-top:8px}.actions-bar{position:fixed;z-index:3;bottom:0;left:0;right:0;background:#fffbeced;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:12px 24px calc(12px + env(safe-area-inset-bottom));display:flex;gap:14px;align-items:center;justify-content:center}.actions-bar .primary{max-width:400px;flex:1}.primary,.secondary{border-radius:50px;padding:14px 24px;border:1px solid var(--wine);font-size:15px}.primary{background:var(--wine);color:white}.primary:hover{background:#943b49}.secondary{background:transparent;border-color:#d1c3b4}.wide{width:100%}.error{color:#a33145;font-size:13px;margin-top:12px;min-height:22px}.fine{color:var(--muted);font-size:12px}.progress-dots{display:flex;gap:7px;margin:25px 0}.progress-dots i{width:25px;height:3px;border-radius:5px;background:#e0d6c7}.progress-dots i.active{background:var(--wine)}.gender-wrap{max-width:560px;padding:40px 26px 70px;margin:auto}.gender-wrap h1{font-size:32px}.gender-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:35px 0}.gender-option{border:1px solid #d9cbbd;background:#f7f0e6;border-radius:85px 85px 18px 18px;min-height:220px;padding:20px 12px;transition:.2s}.gender-option[aria-pressed=true]{border-color:var(--wine);background:#f4e3e2;box-shadow:0 0 0 2px #a8475520}.gender-option .avatar{font:74px/1.5 Alice,serif;color:#7b8267;display:block}.gender-option:nth-child(2) .avatar{color:#a96877}.gender-option .check{font-size:11px;display:block;color:var(--wine);height:20px;margin-top:8px}.gender-wrap .fine{margin-top:16px;text-align:center}.back{margin-bottom:24px;color:#8b7664}.results{max-width:640px;margin:auto;padding:25px 24px}.tabs{display:flex;border-bottom:1px solid var(--line);gap:35px}.tab{background:none;border:0;padding:15px 0;color:var(--muted);position:relative}.tab[aria-selected=true]{color:var(--wine)}.tab[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:3px;background:var(--wine);border-radius:3px}.empty{text-align:center;padding:65px 0 45px}.empty-art{width:210px;height:230px;object-fit:contain;mix-blend-mode:multiply;margin-bottom:20px}.empty h2{font-size:23px;margin-bottom:24px}.empty .primary{display:inline-block}.empty p{margin:10px 0 22px}.footer-note{text-align:center;margin:24px 0;color:#978b7d;font:13px Alice}.gate{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}.gate img{width:130px;height:130px;object-fit:contain;mix-blend-mode:multiply}.gate h1{margin:20px 0;font-size:28px}.gate .primary{margin:15px 0}.gate .fine{max-width:330px}dialog{width:min(480px,calc(100% - 32px));max-height:85dvh;border:1px solid #ddd1c1;border-radius:25px;background:var(--paper);padding:30px;color:var(--ink);box-shadow:0 25px 90px #32272145}dialog::backdrop{background:#302b246e;backdrop-filter:blur(5px)}.close{position:absolute;right:15px;top:12px;font-size:27px;border:0;background:none;color:#8e8072;width:34px;height:34px}.dialog-header{padding:5px 20px 20px 0;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:28px}.reading{max-height:43dvh;overflow:auto;padding:20px 4px 14px 0;font-size:14px;line-height:1.85;overscroll-behavior:contain}.reading p{margin-bottom:15px;white-space:pre-line}.dialog-footer{border-top:1px solid var(--line);padding-top:20px}.dialog-footer .fine{margin-bottom:12px}.dialog-buttons{display:flex;gap:10px;margin-top:24px}.dialog-buttons button{flex:1}.modal-copy{margin-top:24px;font-size:17px}.phone-input{width:100%;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fffdf7;margin:18px 0 8px}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;background:#292823;color:#fff;padding:12px 18px;border-radius:12px;font-size:13px;z-index:9;display:none}#toast.visible{display:block}[hidden]{display:none!important}@media(max-width:540px){.topbar{height:78px;padding:15px 22px}.brand{font-size:28px}.edition{display:none}.wrap{padding:20px 18px 125px}.hero{min-height:220px;border-radius:90px 90px 20px 20px;padding:25px}.hero h1{font-size:28px}.card{padding:20px 17px}.card h2{font-size:19px}.upload-grid{gap:12px}.upload-label{font-size:12px}.upload{height:135px}.field{grid-template-columns:82px 1fr;gap:8px}.field input,.field select{font-size:14px}.gender-wrap{padding-top:30px}.gender-option{min-height:215px}dialog{padding:26px 22px}.actions-bar{padding-left:20px;padding-right:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.upload-placeholder{display:flex;flex-direction:column;align-items:center}
/* Screenshot-aligned registration layout: retain structure, soften palette. */
.application-page{background:#f7f5ef;font-family:"PingFang SC","Microsoft YaHei",sans-serif}
.application-page .topbar{display:none}
.application-page .preview-note{background:#eee6dc;color:#8a7464;font-size:10px;padding:7px}
.application-page .wrap{max-width:600px;padding:16px 16px 120px}
.reference-banner{height:108px;border-radius:5px;background:repeating-linear-gradient(110deg,#eed6d0 0,#f3e2da 18px,#efdad4 40px);display:flex;align-items:center;justify-content:center;gap:18px;margin:0 0 16px;overflow:hidden}
.banner-person{width:94px;height:94px;border-radius:50%;background:#fffaf3;display:grid;place-items:center;font:62px/1 Georgia;color:#6f7c88}
.banner-person:last-child{color:#ad7480}.banner-heart{font:64px/1 Georgia;color:var(--wine)}
.application-page .card{border:0;border-radius:12px;box-shadow:none;background:#fff;margin:16px 0;padding:17px 16px}
.application-page h2,.application-page .upload-label{font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:18px;font-weight:650;line-height:1.5}
.application-page .upload-card{background:linear-gradient(#f4e2e3 0,#fff 48%);padding:16px 16px 18px}
.application-page .upload-label{margin-bottom:17px;position:relative;isolation:isolate}
.application-page .upload-label:before,.application-page .card-heading h2:before{content:'';position:absolute;left:0;bottom:3px;width:46px;height:6px;background:#dca5af;z-index:-1;border-radius:3px}
.application-page .upload{width:100px;height:100px;background:#fff;border:1px solid #d8d4d1;border-radius:5px;margin:auto;color:#c0bbb6}
.application-page .upload svg{width:36px;height:36px;margin-bottom:0}
.application-page .upload small{font-size:12px}
.application-page .upload-actions{display:none}
.application-page .card-heading{margin-bottom:6px;padding-bottom:14px;border-bottom:1px dashed #dca5af}
.application-page .card-heading h2{position:relative;isolation:isolate}
.application-page .field{border:0;min-height:53px;grid-template-columns:88px 1fr;gap:8px}
.application-page .field label{font-size:16px;font-weight:600}
.application-page .required{font-size:20px;color:#d4a0ae;line-height:0;margin-right:5px}
.application-page .field input,.application-page .field select{font-size:15px}
.application-page textarea{border:1px dashed #d4a0ae;border-radius:12px;background:white;margin-top:10px;min-height:165px;font-size:13px;line-height:1.5;padding:15px 10px}
.application-page .continuous{padding:3px 0}
.application-page .continuous label{font-size:20px;gap:10px}.application-page .continuous input{width:22px;height:22px;margin:0}
.application-page .continuous p{font-size:15px;line-height:1.5;color:#373330}
.application-page .footer-note{display:none}
.application-page .actions-bar{background:#f7f5eff5;border:0;padding:12px 16px calc(18px + env(safe-area-inset-bottom))}
.application-page .actions-bar .primary{max-width:568px;font-size:21px;font-weight:600;padding:12px;background:#a95868;border:0;box-shadow:0 5px 15px #a9586825}
.floating-tools{position:fixed;z-index:4;right:max(16px,calc((100vw - 570px)/2));bottom:calc(180px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:18px}
.floating-tools button{width:62px;height:62px;border-radius:50%;border:4px double #fff;background:#b66b7b;color:#fff;font-size:14px;line-height:1.2;box-shadow:0 0 0 2px #ebced2,0 3px 10px #a9586833}
@media(min-width:600px){.reference-banner{height:150px}.banner-person{width:120px;height:120px}.application-page .upload{width:125px;height:125px}}

.reference-banner{height:auto;aspect-ratio:3/1;padding:0;gap:0}.couple-banner{display:block;width:100%;height:100%;object-fit:cover}
/* WeChat-style bottom wheel pickers. */
.picker-field{min-width:0}.picker-trigger{border:0;background:none;width:100%;padding:13px 0;display:flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;font-size:15px;min-height:48px}.picker-trigger.is-empty{color:#999}.picker-trigger span{min-width:0;overflow-wrap:anywhere}.picker-trigger i{border-right:1.5px solid #888;border-bottom:1.5px solid #888;width:8px;height:8px;transform:rotate(45deg);margin:0 3px 5px;flex-shrink:0}
dialog.wheel-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:600px;max-height:90dvh;border:0;border-radius:12px 12px 0 0;background:#fff;color:#151515;padding:0;box-shadow:none;font-family:"PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden}
dialog.wheel-dialog::backdrop{background:#0006;backdrop-filter:none}.wheel-header{height:68px;position:relative;display:flex;align-items:center;justify-content:center;padding:0 50px}.wheel-header h2{font:600 16px/1.5 "PingFang SC","Microsoft YaHei",sans-serif;text-align:center}.wheel-cancel{position:absolute;left:18px;top:14px;width:38px;height:38px;background:none;border:0;font-size:33px;line-height:1;color:#111;padding:0}.wheel-group{display:flex;position:relative;margin:0 20px;height:220px}.wheel-group:after{content:'';pointer-events:none;position:absolute;left:0;right:0;top:88px;height:44px;border-top:1px solid #eee;border-bottom:1px solid #eee}.wheel-column{flex:1;min-width:0;height:220px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;padding:88px 0;touch-action:pan-y;outline-offset:-2px}.wheel-column::-webkit-scrollbar{display:none}.wheel-option{height:44px;line-height:44px;text-align:center;scroll-snap-align:center;white-space:nowrap;font-size:17px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;padding:0 5px;user-select:none;color:#161616}.wheel-footer{height:105px;display:flex;align-items:center;justify-content:center;padding-bottom:env(safe-area-inset-bottom)}.wheel-confirm{border:0;background:#07c160;color:#fff;border-radius:4px;min-width:120px;height:36px;font-size:16px;font-weight:600;padding:0 22px}.region-dialog .wheel-header{height:50px;border-bottom:1px solid #f2f2f2;justify-content:space-between;padding:0 20px}.region-dialog .wheel-header h2{display:none}.region-dialog .wheel-cancel{position:static;width:auto;height:auto;font-size:17px;color:#07a84f}.region-dialog .wheel-confirm{background:none;color:#07a84f;font-size:17px;min-width:0;padding:0;height:auto}.region-dialog .wheel-group{margin:0 5px;margin-bottom:env(safe-area-inset-bottom)}.region-dialog .wheel-option{font-size:15px}@media(max-height:500px){.wheel-header{height:48px}.wheel-footer{height:60px}.wheel-group,.wheel-column{height:176px}.wheel-column{padding:66px 0}.wheel-group:after{top:66px}}
