:root {
  color-scheme: light;
  --ink: #2b1b20;
  --muted: #78676b;
  --paper: #fffaf5;
  --card: rgba(255, 255, 255, .86);
  --rose: #ff4f74;
  --orange: #ff9b2f;
  --violet: #943ef4;
  --line: rgba(81, 46, 55, .12);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #fff7f1; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 85% 8%, #ffe7d5 0, transparent 31%), radial-gradient(circle at 5% 42%, #ffe4f1 0, transparent 28%), linear-gradient(160deg, #fffaf5, #fff5f4 60%, #f8f1ff); }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(70px); opacity: .28; pointer-events: none; }
.ambient-one { width: 230px; height: 230px; background: #ff8d76; top: -80px; right: -90px; }
.ambient-two { width: 180px; height: 180px; background: #ae75ff; bottom: 12%; left: -110px; }
.app-shell { position: relative; width: min(100%, 560px); min-height: 100vh; margin: 0 auto; padding: env(safe-area-inset-top) 18px calc(38px + env(safe-area-inset-bottom)); }
.brand-bar { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; font-size: 28px; font-weight: 900; font-style: italic; background: linear-gradient(145deg, #ffb21f, #ff416c 50%, #714cff); box-shadow: 0 8px 22px rgba(255, 74, 105, .25); }
.brand strong { display: block; line-height: 1; font-size: 19px; font-style: italic; }
.brand small { display: block; margin-top: 3px; color: var(--muted); letter-spacing: .28em; }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 10px 4px; }
.text-button.wide { width: 100%; margin-top: 12px; }
.screen { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.center-screen { min-height: 67vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; }
.center-screen p { max-width: 360px; line-height: 1.7; color: var(--muted); }
.hero-card, .form-card, .wish-intro { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.7); background: var(--card); box-shadow: 0 18px 55px rgba(76, 32, 46, .09); backdrop-filter: blur(18px); }
.hero-card { min-height: 600px; border-radius: 34px; padding: 36px 26px 26px; }
.eyebrow { display: inline-block; color: #b64361; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 12px 0; font-size: clamp(29px, 8vw, 42px); line-height: 1.18; letter-spacing: -.03em; }
h1 em { color: transparent; background: linear-gradient(100deg, var(--orange), var(--rose), var(--violet)); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.hero-card > p { color: var(--muted); line-height: 1.75; }
.hero-sample { position: relative; overflow: hidden; width: min(78vw, 270px); aspect-ratio: 3 / 4; margin: 18px auto 24px; border: 5px solid rgba(255,255,255,.9); border-radius: 25px; background: #3d241d; box-shadow: 0 22px 48px rgba(91,45,35,.24); }
.hero-sample img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-sample:after { content: ""; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent,rgba(43,16,17,.62)); pointer-events: none; }
.hero-sample figcaption { position: absolute; z-index: 1; inset: 15px 15px auto auto; display: flex; align-items: flex-end; gap: 9px; color: #fff8dc; text-align: center; text-shadow: 0 2px 7px rgba(40,11,7,.65); }
.hero-sample figcaption span { position: absolute; top: 0; right: 0; width: max-content; padding: 5px 9px; border: 1px solid rgba(255,235,175,.55); border-radius: 999px; background: rgba(94,37,24,.42); backdrop-filter: blur(8px); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.hero-sample figcaption strong { margin-top: 40px; font-family: "Songti SC", STSong, serif; font-size: 22px; line-height: 1.45; letter-spacing: .18em; writing-mode: vertical-rl; }
.primary-button, .secondary-button { min-height: 54px; border-radius: 18px; border: 0; padding: 14px 20px; font-weight: 800; width: 100%; }
.primary-button { color: white; background: linear-gradient(100deg, var(--orange), var(--rose) 55%, var(--violet)); box-shadow: 0 12px 28px rgba(233, 65, 106, .25); }
.primary-button:disabled { opacity: .55; box-shadow: none; }
.secondary-button { color: #71354b; border: 1px solid #efccd6; background: rgba(255,255,255,.8); }
.fine-print { text-align: center; font-size: 11px; margin: 12px 0 0; }
.feature-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 2px; }
.feature-row div { display: flex; align-items: center; gap: 7px; padding: 12px 7px; border-radius: 16px; background: rgba(255,255,255,.6); font-size: 12px; color: var(--muted); }
.feature-row b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: #df6a83; }
.wish-intro { border-radius: 26px; padding: 24px; margin-bottom: 14px; text-align: center; }
.wish-intro h1 { font-size: 30px; }
.wish-intro p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 0; }
.media-frame { min-height: 390px; display: grid; place-items: center; overflow: hidden; border-radius: 28px; background: #21171b; box-shadow: 0 22px 50px rgba(37, 21, 27, .2); }
.media-frame img, .media-frame video { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.ai-notice { padding: 12px; text-align: center; color: var(--muted); font-size: 12px; }
.sticky-actions, .result-actions { display: grid; gap: 10px; margin-top: 14px; }
.identity-review { margin-top: 14px; padding: 18px; border: 1px solid #efbd74; border-radius: 20px; color: #633f17; background: #fff7df; box-shadow: 0 10px 28px rgba(126,79,22,.1); }
.identity-review b { display: block; font-size: 18px; }
.identity-review p { margin: 7px 0 14px; color: #80633f; font-size: 13px; line-height: 1.6; }
.identity-review-actions { display: grid; gap: 9px; }
.report-link { display: block; margin: 22px auto; border: 0; background: transparent; color: #9a858b; font-size: 12px; }
.expired-icon { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; color: white; font-size: 34px; background: linear-gradient(145deg,#ffc74b,#c34df4); }
.section-heading { display: flex; align-items: center; gap: 13px; margin: 8px 0 18px; }
.section-heading h1 { font-size: 29px; margin: 5px 0 0; }
.back-button { flex: 0 0 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.7); font-size: 24px; }
.form-card { border-radius: 24px; padding: 20px; margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 14px; font-size: 17px; font-weight: 800; }
#photoInput { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box { min-height: 245px; display: grid; place-items: center; text-align: center; border-radius: 20px; border: 1.5px dashed #dfa8b7; color: #9f6575; background: #fff8fa; overflow: hidden; }
.upload-box b { display: block; font-size: 42px; line-height: 1; }
.upload-box small, .choice-list small { color: var(--muted); font-weight: 400; }
.upload-box img { width: 100%; height: 300px; object-fit: cover; }
.field-help { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.preview-help { margin: -5px 0 14px; }
.look-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.look-preview-card { position: relative; overflow: hidden; border: 2px solid transparent; border-radius: 19px; background: white; box-shadow: 0 7px 18px rgba(66,35,43,.08); }
.look-preview-card input, .choice-list input { position: absolute; opacity: 0; }
.look-visual { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: #2b1b20; }
.look-visual img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.look-visual i { position: absolute; left: 9px; bottom: 9px; padding: 5px 9px; border-radius: 999px; color: white; background: rgba(35,20,24,.7); backdrop-filter: blur(8px); font-size: 12px; font-style: normal; }
.look-caption { display: block; padding: 11px; }
.look-caption b, .look-caption small { display: block; }
.look-caption b { font-size: 13px; }
.look-caption small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.look-preview-card:has(input:checked) { border-color: #ed6686; box-shadow: 0 0 0 3px rgba(237,102,134,.14), 0 9px 22px rgba(66,35,43,.1); }
.look-preview-card:has(input:checked) .look-visual:after { content: "✓ 已选择"; position: absolute; top: 9px; right: 9px; padding: 5px 8px; border-radius: 999px; color: white; background: linear-gradient(100deg,var(--rose),var(--violet)); font-size: 11px; font-weight: 800; }
.look-preview-card:has(input:checked) img { transform: scale(1.025); }
.choice-list { display: grid; gap: 9px; }
.choice-list label { position: relative; }
.choice-list span { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; }
.choice-list b, .choice-list small { display: block; }
.choice-list input:checked + span { border-color: #ee6e8c; background: #fff0f3; box-shadow: inset 0 0 0 1px #ee6e8c; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.fields-grid .full { grid-column: 1/-1; }
.fields-grid span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.fields-grid input { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 13px; color: var(--ink); background: white; outline: none; }
.fields-grid input:focus { border-color: #e85d7d; box-shadow: 0 0 0 3px #ffe3e9; }
.consent-card { display: grid; gap: 13px; font-size: 13px; line-height: 1.55; }
.consent-card label { display: flex; align-items: flex-start; gap: 9px; }
.consent-card input { margin-top: 3px; accent-color: var(--rose); }
.error-box { margin: 12px 0; padding: 13px; border-radius: 14px; color: #9c2441; background: #ffe3e9; }
.moon-loader { width: 70px; height: 70px; border-radius: 50%; border: 7px solid rgba(241, 94, 128, .13); border-top-color: var(--rose); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { width: 100%; height: 8px; overflow: hidden; border-radius: 8px; background: #eadde0; }
.progress-track span { display: block; width: 12%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--orange),var(--rose),var(--violet)); transition: width .7s ease; }
.history-list { display: grid; gap: 12px; }
.history-item { display: grid; grid-template-columns: 76px 1fr; gap: 13px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.82); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.history-item img { width: 76px; height: 98px; object-fit: cover; border-radius: 12px; background: #eee; }
.history-item p { margin: 6px 0; color: var(--muted); }
.history-item small { color: #a58d94; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(25px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 38px), 490px); padding: 14px 17px; border-radius: 15px; text-align: center; color: white; background: rgba(38,25,29,.92); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.app-upsell { margin-top: 26px; overflow: hidden; border-radius: 30px; color: white; background: linear-gradient(155deg,#231225,#3b174d 52%,#14245b); box-shadow: 0 22px 55px rgba(49,24,70,.3); }
.motion-teaser { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #160d19; }
.motion-teaser video { display: block; width: 100%; height: 100%; object-fit: cover; }
.motion-teaser:after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent,rgba(27,13,31,.92)); pointer-events: none; }
.motion-badge, .sound-button { position: absolute; z-index: 2; top: 13px; padding: 7px 10px; border-radius: 999px; color: white; font-size: 11px; backdrop-filter: blur(10px); }
.motion-badge { left: 13px; background: rgba(255,80,117,.82); font-weight: 800; }
.sound-button { right: 13px; border: 1px solid rgba(255,255,255,.3); background: rgba(20,12,24,.6); }
.upsell-copy { padding: 23px; }
.upsell-copy .eyebrow { color: #ffb5c8; }
.upsell-copy h2 { margin: 8px 0; font-size: 27px; }
.upsell-copy p { color: #ded0e7; line-height: 1.7; font-size: 14px; }
.upsell-copy strong { color: #ffd566; }
.app-benefits { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.app-benefits span { padding: 7px 9px; border-radius: 10px; color: #f7ecff; background: rgba(255,255,255,.1); font-size: 11px; }
.download-button { width: 100%; min-height: 61px; padding: 11px; border: 0; border-radius: 18px; color: #3c1833; background: linear-gradient(100deg,#ffd65b,#ff9e48 42%,#ff7ca6); box-shadow: 0 12px 28px rgba(255,114,142,.25); }
.download-button b, .download-button small { display: block; }
.download-button b { font-size: 17px; }
.download-button small { margin-top: 3px; }
.upsell-copy .reward-rule { margin-bottom: 0; color: #ad9bb8; font-size: 10px; }
.sheet-backdrop { position: fixed; z-index: 30; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 18px; background: rgba(22,14,18,.58); backdrop-filter: blur(8px); }
.download-sheet { position: relative; width: min(100%,520px); padding: 28px 22px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 22px 22px; background: #fffaf7; box-shadow: 0 -20px 70px rgba(0,0,0,.22); }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: #f1e8e8; font-size: 25px; }
.sheet-mark { margin-bottom: 14px; }
.download-sheet h2 { font-size: 28px; margin: 7px 0; }
.download-sheet p { color: var(--muted); line-height: 1.6; }
.download-sheet .secondary-button { margin-top: 9px; }
.download-sheet > small { display: block; margin-top: 14px; color: #9a858b; line-height: 1.55; }
@media (min-width: 700px) { .app-shell { padding-left: 0; padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
