/* 主角说 UI：按老板提供的三屏手机参考图重新排版。 */
:root {
  --ref-bg: #fff8fa;
  --ref-surface: #fffdfd;
  --ref-pink: #f43f70;
  --ref-pink-strong: #ec3265;
  --ref-pink-soft: #ffe8ee;
  --ref-line: #f2dce3;
  --ref-ink: #251e25;
  --ref-muted: #8c8189;
}

html, body { background: #fff5f8; color: var(--ref-ink); }
.app-shell { width: 100%; max-width: 430px; min-height: 100vh; background: var(--ref-bg); box-shadow: none; }
.page { background: var(--ref-bg); }
.desktop-nav { display: none; }

.mobile-statusbar {
  height: 24px;
  padding: 4px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111016;
  background: rgba(255,250,251,.98);
  font-size: 11px;
  line-height: 1;
}
.mobile-statusbar strong { font-size: 11px; font-weight: 800; }
.mobile-status-icons { display: flex; align-items: center; }
.mobile-status-icons svg { width: 51px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 首页：窄边距全幅主图、花瓣粉品牌字标、三列生活影像入口。 */
.home-page { min-height: 100vh; padding: 0 0 calc(64px + env(safe-area-inset-bottom)); overflow: hidden; background: #fff8fa; }
.mobile-home-head { height: 94px; background: linear-gradient(180deg,#fffafb,#fff6f8); }
.mobile-home-head .mobile-statusbar { height: 24px; background: transparent; }
.home-topbar { height: 58px; padding: 0 13px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; background: transparent; }
.home-wordmark { text-align: center; line-height: 1; }
.home-wordmark strong { display: inline-block; position: relative; color: #ef3769; font-family: "Songti SC","STSong",serif; font-size: 27px; font-style: italic; font-weight: 700; letter-spacing: .05em; }
.home-wordmark strong span { position: absolute; right: -16px; top: -5px; color: #f34d77; font-family: sans-serif; font-size: 14px; transform: rotate(-16deg); }
.home-wordmark small { display: block; margin-top: 3px; color: #ba8796; font-family: "Songti SC","STSong",serif; font-size: 9px; letter-spacing: .24em; }
.home-wordmark p { margin: 5px 0 0; color: #e84770; font-family: "Songti SC","STSong",serif; font-size: 9px; letter-spacing: .05em; white-space: nowrap; }
.home-head-spacer { width: 36px; }
.home-top-actions { justify-self: end; width: 36px; min-width: 36px; height: 38px; padding: 7px; border: 0; background: transparent; box-shadow: none; }
.home-top-actions svg { width: 22px; height: 22px; fill: none; stroke: var(--ref-pink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-hero-card { height: 309px; margin: 0 12px; overflow: hidden; border-radius: 11px; position: relative; background: #f6dce4; box-shadow: 0 4px 12px rgba(185,88,118,.12); }
.home-hero-image { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.94) contrast(1.01); }
.home-hero-shade { inset: 0; background: linear-gradient(180deg,rgba(54,23,39,0) 35%,rgba(69,27,48,.04) 51%,rgba(110,33,62,.22) 67%,rgba(255,207,222,.34) 100%); }
.home-hero-badges { position:absolute; top:auto; left:auto; right:9px; bottom:9px; z-index:3; display:flex; gap:4px; }
.home-hero-badges span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.75); background: rgba(255,250,252,.72); color: #8f5c6e; font-size: 7px; font-weight: 700; }
.home-hero-badges span:first-child { display: none; }
.home-hero-copy { left: 16px; right: 16px; bottom: 14px; padding: 0; text-align: left; }
.home-hero-copy h1 { margin: 0 0 3px; color: #f43b6d; font-family: "Songti SC","STSong",serif; font-size: 30px; font-style: italic; line-height: 1.12; letter-spacing: .015em; text-shadow: 0 1px 0 #fff,0 2px 6px rgba(255,255,255,.78); }
.home-hero-copy>p:not(.hero-kicker) { margin: 0 0 8px 43px; color: #fffafc; font-family: "Songti SC","STSong",serif; font-size: 14px; font-style: italic; text-shadow: 0 1px 5px rgba(97,31,57,.62); }
.home-page .primary-btn.home-primary { display: block; width: 74%; min-height: 42px; margin: 0 0 0 37px; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; background: linear-gradient(100deg,#f6507e,#ec3970 58%,#e93267); box-shadow: 0 5px 14px rgba(203,46,94,.3),inset 0 1px 0 rgba(255,255,255,.5); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.home-page .primary-btn.home-primary span { margin-left: 8px; font-size: 17px; }
.home-page .home-hero-card { height: 309px !important; min-height: 0 !important; aspect-ratio: auto !important; }
.home-page .home-hero-image { height: 100% !important; object-position: center 22% !important; }
.home-page .home-hero-shade { background: linear-gradient(180deg,rgba(54,23,39,0) 28%,rgba(69,27,48,.03) 48%,rgba(110,33,62,.18) 69%,rgba(255,207,222,.24) 100%) !important; }
.home-page .home-hero-copy { left: 16px !important; right: 16px !important; bottom: 14px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: rgba(255,249,251,.08) !important; box-shadow: none !important; backdrop-filter: none !important; }
.home-page .home-hero-copy h1 { margin: 0 0 3px !important; color: #f43b6d !important; font-size: 30px !important; line-height: 1.12 !important; }
.home-page .home-hero-copy>p:not(.hero-kicker) { margin: 0 0 8px 43px !important; color: #fffafc !important; font-size: 14px !important; }
.home-page .primary-btn.home-primary { width: 78% !important; min-height: 42px !important; margin: 0 auto !important; }
.home-wordmark p { font-size: 10px; }
.home-service-section { margin: 18px 12px 0; padding: 0 0 4px; }
.scene-heading { display: block; margin: 0 1px 6px; text-align: center; }
.scene-heading h2 { margin: 0; color: #963d58; font-family: "Songti SC","STSong",serif; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.scene-heading h2 span { padding-right: 5px; color: var(--ref-pink); font-family: sans-serif; font-size: 18px; vertical-align: -1px; }
.scene-heading p { margin: 2px 0 0; color: #b28e99; font-family: "Songti SC","STSong",serif; font-size: 9px; letter-spacing: .02em; }
.scene-heading>button { position: absolute; right: 15px; margin-top: -22px; color: #bf7189; font-size: 9px; }
.scene-heading>button { padding: 3px 4px; border: 0; background: transparent; color: #bf7189; font-size: 10px; }
.scene-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.scene-card { position: relative; height: 89px; min-width: 0; display: block; padding: 0; overflow: hidden; border: 1px solid #f2dfe5; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(179,91,119,.06); }
.scene-card img { inset: 0 0 20px; width: 100%; height: calc(100% - 20px); object-fit: cover; object-position: center 26%; filter: saturate(.95); }
.scene-card-shade { inset: 0 0 20px; background: linear-gradient(180deg,rgba(37,20,32,.02),rgba(51,20,34,.12)); }
.scene-name { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(90deg,#fff1f4,#fff9fa); color: #613e4b; font-family: "Songti SC","STSong",serif; font-size: 9px; line-height: 1; text-shadow: none; white-space: nowrap; }
.scene-card small { top: 3px; right: 3px; bottom: auto; padding: 2px 4px; background: rgba(255,249,251,.9); color: #b6637f; font-size: 6px; }
.scene-card:not(:has(img)) .scene-name { position: absolute; bottom: 0; color: #613e4b; }
.scene-card:not(:has(img)) .scene-card-shade { inset: 0; background: linear-gradient(145deg,#fff,#ffeaf0); }
.scene-icon { top: 18px; color: #e87e9a; }
.home-footnote { margin: 4px 1px 0; color: #ad929b; font-size: 7px; text-align: right; }
.home-footnote span { color: var(--ref-pink); }
.home-page .bottom-nav { height: calc(78px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5,1fr); padding: 4px 7px env(safe-area-inset-bottom); background: rgba(255,252,253,.98); border-top: 1px solid #f3e3e8; box-shadow: 0 -4px 15px rgba(156,73,102,.06); }
.home-page .nav-item { gap: 2px; color: #8e8990; font-size: 9px; }
.home-page .nav-item .nav-icon { width: 22px; height: 22px; }
.home-page .nav-item .nav-icon svg { width: 20px; height: 20px; }
.home-page .nav-item.active { color: var(--ref-pink); }
.home-page .nav-create .nav-icon { width: 42px; height: 42px; margin-top: -12px; border: 3px solid #ffe3eb; background: linear-gradient(145deg,#ff8aa9,#ed3e72); box-shadow: 0 4px 10px rgba(207,49,96,.24); }
.home-page .nav-create .nav-icon svg { width: 22px; height: 22px; }
.home-page .nav-create { color: #b7a2ab; font-weight: 600; }

/* 婚纱创作：身份照优先，选填灵感图弱化，横向风格/分镜控件与底部固定预览。 */
.wedding-page { min-height: 100vh; padding: 0 12px calc(104px + env(safe-area-inset-bottom)); overflow: visible; background: #fff9fb; }
.wedding-page>.mobile-statusbar { margin: 0 -12px; padding-left: 20px; padding-right: 20px; }
.flow-topbar { position: sticky; top: 0; z-index: 25; height: 46px; margin: 0 -12px; padding: 0 14px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; background: rgba(255,250,251,.96); border-bottom: 1px solid #f3e3e8; backdrop-filter: blur(12px); }
.flow-topbar .ref-back { justify-self: start; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--ref-pink); font-size: 28px; line-height: 1; text-align: left; }
.flow-topbar>strong { text-align: center; color: #222029; font-family: "Songti SC","STSong",serif; font-size: 15px; font-weight: 700; }
.flow-top-flower { justify-self: end; color: #f3b4c5; font-size: 28px; transform: rotate(20deg); opacity: .78; }
.creation-intro { margin: 5px 2px 9px; }
.creation-stepline { display: flex; align-items: baseline; gap: 4px; min-height: 32px; color: #f33c70; }
.creation-stepline>strong { font-family: "Songti SC","STSong",serif; font-size: 28px; line-height: 1; }
.creation-stepline>span { color: #db8aa0; font-family: "Songti SC","STSong",serif; font-size: 11px; }
.creation-stepline>b { margin-left: 5px; color: #24212a; font-size: 15px; font-weight: 600; }
.creation-progress { height: 5px; margin: 4px 45px 0; overflow: hidden; border-radius: 999px; background: #f8dce4; }
.creation-progress i { display: block; width: 27%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ee4674,#f59ab2); }
.wedding-page .ref-upload-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.wedding-page .upload-card { height: 164px; min-height: 164px; padding: 9px; border: 1.5px dashed #efbecb; border-radius: 14px; background: linear-gradient(150deg,#fffdfd,#fff7f9); }
.wedding-page .upload-card:active { border-color: var(--ref-pink); }
.upload-placeholder { width: 100%; display: grid; justify-items: center; align-content: center; gap: 4px; }
.upload-placeholder strong { margin: 0; color: #28232b; font-size: 13px; font-weight: 600; }
.upload-camera { width: 42px; height: 36px; margin: 8px 0 1px; fill: none; stroke: #f04b78; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.upload-placeholder span { margin: 0; color: #97909a; font-size: 9px; }
.upload-card input { z-index: 4; }
.wedding-page .check-chip { z-index: 5; left: 5px; right: 5px; bottom: 5px; padding: 5px 6px; font-size: 8px; }
.creation-consent { gap: 6px; margin: 7px 2px 0; padding: 6px 7px; border: 0; border-radius: 7px; background: transparent; color: #8b838b; font-size: 9px; line-height: 1.35; white-space: nowrap; }
.creation-consent input { width: 13px; height: 13px; margin-top: 0; accent-color: var(--ref-pink); }
.creation-consent a { color: var(--ref-pink-strong); text-underline-offset: 2px; }
.consent-choice-list.creation-consent-list { gap: 5px; margin: 10px 2px 0; }
.consent-choice-list .creation-consent { display: flex; margin: 0; padding: 3px 4px; white-space: normal; }
.account-consent-notice { padding: 10px; border: 1px solid #f0dce3; border-radius: 12px; background: #fff8fa; }
.inspiration-upload { display: block; margin: 5px 2px 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.inspiration-head { min-height: 37px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 6px; }
.inspiration-mark { width: 18px; height: 18px; background: #fff0f4; color: var(--ref-pink); font-size: 14px; }
.inspiration-copy strong { color: #302a32; font-size: 12px; }
.inspiration-copy strong small { margin-left: 3px; color: #807783; font-size: 10px; }
.inspiration-copy p { margin: 2px 0 0; color: #a099a0; font-size: 8px; line-height: 1.2; }
.inspiration-picker { min-width: 67px; height: 28px; padding: 0 8px; border: 1px solid #f2a5bb; border-radius: 999px; background: #fffdfd; color: var(--ref-pink); font-size: 10px; font-weight: 600; }
.inspiration-dropzone { position: relative; height: 50px; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border: 1px dashed #eccdd6; border-radius: 10px; background: linear-gradient(120deg,#fffdfd,#fff8fa); color: #918991; font-size: 9px; }
.inspiration-dropzone svg { width: 28px; height: 25px; fill: none; stroke: var(--ref-pink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.inspiration-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.inspiration-dropzone img { width: 35px; height: 35px; object-fit: cover; border-radius: 6px; }
.inspiration-status { margin-top: 3px; }
.wedding-page .ref-section { margin-top: 9px; }
.wedding-page .ref-section .section-title { margin-bottom: 3px; align-items: center; }
.wedding-page .ref-section .section-title h2 { margin: 0; color: #28242d; font-family: -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; font-size: 13px; font-weight: 700; }
.wedding-page .ref-section .section-title h2 i { margin-right: 4px; color: var(--ref-pink); font-size: 15px; font-style: normal; }
.wedding-page .ref-section .section-title button { padding: 3px 0; color: #d95d7d; font-size: 9px; }
.wedding-page .section-step { display: none; }
.template-note { margin: 0 0 4px; color: #a197a0; font-size: 7px; }
.wedding-page .template-strip { grid-auto-columns: calc((100% - 16px)/3); gap: 8px; padding: 0 1px 3px; }
.template-card-ref { border-radius: 8px; }
.wedding-page .template-card-ref img { width: 100% !important; height: 102px !important; aspect-ratio: auto !important; }
.template-card-ref img,.template-concept-art { width: 100%; aspect-ratio: 1/1; border: 1px solid #f0e0e5; border-radius: 8px; object-fit: cover; }
.template-card-ref strong { margin-top: 3px; color: #544751; font-size: 9px; }
.template-card-ref.selected img,.template-card-ref.selected .template-concept-art { border: 2px solid var(--ref-pink); }
.template-card-ref.selected::after { top: -3px; right: -3px; width: 18px; height: 18px; background: var(--ref-pink); font-size: 10px; }
.shot-options-section { margin-top: 8px !important; }
.shot-options-section .section-title>span { color: #a499a1; font-size: 8px; }
.shot-option-grid { display: flex; gap: 7px; overflow-x: auto; padding: 1px 1px 4px; scrollbar-width: none; }
.shot-option-grid::-webkit-scrollbar { display: none; }
.shot-option { flex: 0 0 calc((100% - 14px)/3); min-height: 34px; padding: 6px 5px; border: 1px solid #eadfe5; border-radius: 999px; background: #fffdfd; color: #57515a; text-align: center; white-space: nowrap; }
.shot-option strong { display: block; overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; }
.shot-option.selected { border-color: var(--ref-pink); background: #fff4f7; color: var(--ref-pink-strong); box-shadow: inset 0 0 0 1px rgba(244,63,112,.06); }
.ratio-section-ref { margin-top: 6px !important; }
.ratio-grid.ref-ratio-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.wedding-page .ref-ratio-grid .ratio-btn { width: 100%; height: 34px !important; min-height: 34px !important; padding: 0 2px; display: flex; align-items: center; justify-content: center; border: 1px solid #eadfe5; border-radius: 999px; background: #fffdfd; color: #4a444d; }
.wedding-page .ref-ratio-grid .ratio-btn strong { font-size: 9px; font-weight: 500; }
.wedding-page .ref-ratio-grid .ratio-btn span { display: none; }
.wedding-page .ref-ratio-grid .ratio-btn.selected { border: 1.5px solid var(--ref-pink); background: #fff5f7; color: var(--ref-pink-strong); }
.wedding-page .ref-ratio-grid .ratio-btn.selected::after { display: none; }
.wedding-page .wedding-action { position: fixed; left: 50%; bottom: 0; z-index: 55; width: min(100%,430px); margin: 0; padding: 9px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-top: 1px solid rgba(244,219,228,.8); background: rgba(255,251,252,.96); backdrop-filter: blur(14px); }
.wedding-page .wedding-action .primary-btn { display: block; box-sizing: border-box; width: 100% !important; max-width: none; min-height: 48px; height: 48px; margin: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; background: linear-gradient(100deg,#fa5b87,#f23870 58%,#eb3671); color: #fff; box-shadow: 0 5px 14px rgba(215,57,105,.2); font-size: 14px; font-weight: 700; }
.wedding-page .wedding-action .primary-btn:disabled { background: linear-gradient(100deg,#fa5b87,#f23870 58%,#eb3671); color: #fff; opacity: .8; cursor: not-allowed; }
.wedding-page .wedding-action .primary-btn span { margin-left: 7px; font-size: 17px; }
.wedding-page .wedding-action>div { margin-top: 4px; color: #a0959d; font-size: 8px; }
.wedding-page .wedding-action .inline-plan-link { padding:0; border:0; background:transparent; color:#e54579; font:inherit; text-decoration:underline; cursor:pointer; }

/* 结果页：主图 + 两张候选图，交互按钮继续绑定真实结果 ID。 */
.preview-page { min-height: 100vh; padding: 0 12px calc(110px + env(safe-area-inset-bottom)); background: #fff9fb; }
.preview-page>.mobile-statusbar { margin: 0 -12px; }
.result-topbar { position: sticky; top: 0; z-index: 25; height: 52px; margin: 0 -12px; padding: 0 12px; display: grid; grid-template-columns: 32px minmax(0,1fr) 86px; align-items: center; background: rgba(255,250,251,.97); border-bottom: 1px solid #f3e3e8; backdrop-filter: blur(12px); }
.result-topbar .ref-back { width: 30px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--ref-pink); font-size: 27px; line-height: 1; text-decoration: none; }
.result-topbar>strong { overflow: hidden; color: #24212a; font-family: "Songti SC","STSong",serif; font-size: 13px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.result-count { display: grid; justify-items: end; gap: 2px; color: #827a84; font-size: 8px; line-height: 1.15; white-space: nowrap; }
.result-count b { color: #a099a2; font-size: 8px; font-weight: 500; }
.result-content { padding: 13px 0 0; }
.result-notice { min-height: 18px; margin: 0 0 5px; color: #8d7e87; font-size: 8px; line-height: 1.35; text-align: center; }
.result-notice.is-test { color: #b05d78; }
.result-gallery { display: grid; gap: 7px; }
.result-main-photo,.result-thumb { position: relative; overflow: hidden; border-radius: 12px; background: #f4dfe6; }
.result-main-photo { height: min(46vh,390px); min-height: 342px; }
.result-main-photo>img,.result-thumb>img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.result-main-photo::after,.result-thumb::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg,transparent,rgba(48,24,36,.24)); pointer-events: none; }
.result-select { position: absolute; z-index: 3; top: 9px; right: 9px; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.94); border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 1px 5px rgba(44,24,33,.18); }
.result-select.selected { border-color: var(--ref-pink); background: var(--ref-pink); }
.result-photo-label { position: absolute; z-index: 3; left: 7px; bottom: 7px; max-width: calc(100% - 14px); padding: 4px 7px; overflow: hidden; border-radius: 999px; background: rgba(255,252,253,.92); color: #54454e; font-size: 8px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.result-thumb-grid { height: min(25vh,210px); min-height: 174px; display: flex; gap: 7px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; position: relative; }
.result-thumb-grid::-webkit-scrollbar { display: none; }
.result-thumb { flex: 0 0 calc((100% - 7px)/2); min-height: 0; height: 100%; scroll-snap-align: start; }
.result-thumb>img { object-position: center 22%; }
.result-actions { position: fixed; left: 50%; bottom: 0; z-index: 60; width: min(100%,430px); padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 7px; border-top: 1px solid #f0dfe5; background: rgba(255,251,252,.97); backdrop-filter: blur(14px); }
.result-actions button { height: 43px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.result-action-ghost { border: 1px solid #f2b7c7; background: #fffdfd; color: #ed4774; }
.result-action-main { border: 1px solid #fff; background: linear-gradient(100deg,#fa5b87,#ef3c72); color: #fff; box-shadow: 0 4px 12px rgba(215,57,105,.18); }
.result-action-main span { margin-left: 4px; font-size: 14px; }
.result-actions small { grid-column: 1/-1; margin-top: 0; color: #aaa0a7; font-size: 8px; line-height: 1.3; text-align: center; }
.demo-screen { min-height: 100vh; padding: 0 12px 112px; background: #fff9fb; }
.demo-screen>.mobile-statusbar { margin: 0 -12px; }
.demo-screen .result-topbar { position: relative; }
.demo-screen .result-content { padding-top: 7px; }
.demo-screen .result-main-photo { height: min(46vh,390px); }
.demo-screen .result-thumb-grid { height: min(25vh,210px); }
.demo-actions button:disabled { opacity: 1; cursor: default; }
.demo-actions .result-action-main:disabled { color: #fff; }
.demo-actions small { font-size: 7px; }
.result-empty { min-height: 65vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.result-empty .preview-empty-icon { width: 44px; height: 44px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 50%; background: #fff0f4; color: var(--ref-pink); }
.result-empty .preview-empty-icon svg { width: 24px; height: 24px; }
.result-empty strong { color: #3f343d; font-family: "Songti SC","STSong",serif; font-size: 16px; }
.result-empty p { max-width: 270px; color: #978b93; font-size: 10px; line-height: 1.6; }
.result-empty .primary-btn { width: auto; min-height: 40px; margin-top: 8px; padding: 0 24px; border-radius: 999px; background: linear-gradient(100deg,#fa5b87,#ef3c72); font-size: 12px; }

/* 首页顶部以花枝品牌背景承接主视觉，品牌栏与主视觉卡片分层。 */
.mobile-home-head {
  height: 102px;
  position: relative;
  background-color: #fff8fa;
  background-image: radial-gradient(ellipse at 8% 94%,rgba(247,180,199,.22),transparent 38%),radial-gradient(ellipse at 92% 10%,rgba(255,220,230,.4),transparent 46%),linear-gradient(180deg,#fffafb,#fff6f8);
  background-size: cover;
  background-position: center 42%;
}
.home-page .home-topbar { background: transparent !important; border-bottom: 0 !important; backdrop-filter: none !important; }
.home-page .home-wordmark p { position: relative; top: 7px; font-size: 11px; letter-spacing: .045em; }
.home-hero-card,.home-page .home-hero-card { height: 302px !important; margin: 0 1px; border-radius: 10px; }
.home-hero-copy,.home-page .home-hero-copy { left: 24px !important; right: 24px !important; bottom: 11px !important; }
.home-hero-copy h1,.home-page .home-hero-copy h1 { font-size: 40px !important; }
.home-page .home-hero-copy h1 { top: -6px !important; }
.home-hero-copy>p:not(.hero-kicker),.home-page .home-hero-copy>p:not(.hero-kicker) { margin-left: 45px !important; font-size: 16px !important; }
.home-page .primary-btn.home-primary { width: 70% !important; min-height: 43px !important; transform: translateX(-5px); font-size: 15px !important; font-weight: 600 !important; }
.home-page .home-service-section { margin-top: 12px !important; padding-left: 3px !important; padding-right: 2px !important; }
.home-page .scene-heading { margin-bottom: 13px !important; }
.home-page .scene-heading h2 { font-size: 16px; }
.home-page .scene-grid { column-gap: 14px; row-gap: 8px; }
.scene-card { height: 86px; }
.home-page .scene-card-image { position: absolute; inset: 0 0 20px; display: block; background-repeat: no-repeat; background-size: 300% 300%; }
.home-page .scene-card:not(:has(img)) .scene-card-shade { inset: 0 0 20px; background: linear-gradient(180deg,rgba(52,28,39,.02),rgba(52,28,39,.10)); }
.home-page .scene-card .scene-name { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 2px; background: linear-gradient(90deg,#fff3f6,#ffeaf0); color: #624652; font-size: 11px; font-weight: 650; text-shadow: none; white-space: nowrap; }
.home-page .scene-card .scene-name i { color: #f04a76; font-size: 13px; font-style: normal; line-height: 1; }
.home-page .bottom-nav { height: calc(74px + env(safe-area-inset-bottom)); }
.home-page .nav-create .nav-icon { width: 50px; height: 50px; display: grid; flex: 0 0 50px; place-items: center; border-radius: 50%; transform: translateY(-13px); }
.home-page .home-hero-badges { top: auto; right: 8px; bottom: 8px; left: auto; }
.home-page .home-hero-badges span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.85); background: rgba(255,251,252,.94); color: #86586a; font-size: 8px; }

/* 上传步骤比身份照卡片留出清楚的视觉间隔，卡片主次仍以新郎/新娘照片为准。 */
.creation-intro { margin: 11px 2px 15px; padding-bottom: 6px; }
.wedding-page .upload-card { height: 158px; min-height: 158px; }

/* 结果示意页复用独立合成素材；与参考图一致，以画面和选择动作作为主层级。 */
.demo-screen .result-content { padding-top: 14px; }
.demo-screen .result-notice { display: none; }
.result-main-photo,.demo-screen .result-main-photo { height: min(47vh,394px); min-height: 342px; }
.result-thumb-grid,.demo-screen .result-thumb-grid { height: min(27vh,224px); min-height: 174px; }
.result-actions { bottom: 17px; row-gap: 27px; }
.preview-page,.demo-screen { padding-left: 6px; padding-right: 6px; }
.preview-page>.mobile-statusbar,.demo-screen>.mobile-statusbar { margin-left: -6px; margin-right: -6px; }
.preview-page .result-topbar,.demo-screen .result-topbar { margin-left: -6px; margin-right: -6px; padding-left: 6px; padding-right: 6px; }
.wedding-page .wedding-action>div { margin-top: 7px; }

@media (max-width: 360px) {
  .home-wordmark strong { font-size: 24px; }
  .scene-card { height: 76px; }
  .wedding-page .upload-card { height: 154px; min-height: 154px; }
  .creation-consent { font-size: 8px; }
  .result-topbar { grid-template-columns: 28px minmax(0,1fr) 78px; }
  .result-topbar>strong { font-size: 12px; }
}

/* 第 2/3 屏独立对照验收后的微调：保留真实控件，仅校准卡片、素材与留白。 */
.wedding-page .ref-upload-grid { margin-left: 5px; margin-right: 5px; gap: 12px; }
.wedding-page .ref-upload-grid .upload-card { height: 170px !important; min-height: 170px !important; position: relative; overflow: hidden; }
.wedding-page .ref-upload-grid .upload-card:first-child { border-color: #dedbe2 !important; border-style: dashed !important; background: linear-gradient(145deg,#fffdfd,#fbf9fa) !important; }
.wedding-page .ref-upload-grid .upload-card:nth-child(2) { border-color: #f4b9c8 !important; border-style: dashed !important; background: linear-gradient(145deg,#fffdfd,#fff6f8) !important; }
.wedding-page .ref-upload-grid .upload-card::before { content: ""; position: absolute; z-index: 1; left: 0; bottom: 0; width: 35px; height: 35px; pointer-events: none; opacity: .55; background: radial-gradient(ellipse at 10px 22px,#f8c5d2 0 5px,transparent 5.7px),radial-gradient(ellipse at 19px 12px,#fbd6df 0 5px,transparent 5.7px),radial-gradient(ellipse at 27px 22px,#f5b8c9 0 5px,transparent 5.7px),radial-gradient(circle at 19px 21px,#ee9fb5 0 2px,transparent 2.7px); }
.wedding-page .ref-upload-grid .upload-card.has-image::before { display: none; }
.wedding-page .ref-upload-grid .upload-placeholder { position: relative; z-index: 2; height: 100%; transform: translateY(4px); }
.wedding-page .ref-upload-grid .upload-camera { transform: translateY(18px); }
.wedding-page .creation-consent { display: flex; margin-top: 15px; }
.wedding-page .inspiration-upload { margin-top: 9px; padding-bottom: 8px; }
.wedding-page .inspiration-head { min-height: 37px; align-items: start; padding-top: 4px; }
.wedding-page .inspiration-copy strong,.wedding-page .inspiration-copy strong small,.wedding-page .inspiration-copy p { white-space: nowrap; }
.wedding-page .inspiration-copy strong { font-size: 11px; }
.wedding-page .inspiration-copy strong small { font-size: 9px; }
.wedding-page .inspiration-copy p { font-size: 7px; }
.wedding-page .inspiration-dropzone { height: 56px; }
.wedding-page .template-section { position: relative; }
.wedding-page .template-section>.template-note { position: absolute; top: 2px; right: 36px; margin: 0; padding: 2px 5px; border-radius: 999px; background: #fff1f5; color: #b56e83; font-size: 7px; line-height: 1.2; }
.wedding-page .template-section .template-strip { margin: 6px 5px 0; }
.wedding-page .template-section .template-card-ref { position: relative; height: 104px; overflow: hidden; }
.wedding-page .template-section .template-card-ref img { height: 104px !important; }
.wedding-page .template-section .template-card-ref strong { position: absolute; z-index: 2; left: 3px; right: 3px; bottom: 2px; margin: 0; padding: 8px 2px 3px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg,transparent,rgba(38,22,31,.62)); color: #fff; font-size: 9px; line-height: 1.1; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.wedding-page .template-section .template-card-ref.selected::after { top: 4px !important; right: 4px !important; z-index: 4; }
.wedding-page .inspiration-copy p { font-size: 8px; }
.wedding-page .template-section>.template-note { font-size: 8px; }
.wedding-page .template-section+.shot-options-section { margin-top: 21px !important; }
.wedding-page .shot-options-section .section-title { margin-bottom: 6px; }
.wedding-page .ratio-section-ref { margin-top: 8px !important; }
.wedding-page .wedding-action { background-image: radial-gradient(ellipse at 18px 72px,rgba(245,156,179,.28) 0 5px,transparent 6px),radial-gradient(ellipse at 30px 63px,rgba(250,186,202,.35) 0 5px,transparent 6px),radial-gradient(ellipse at 372px 70px,rgba(245,156,179,.27) 0 5px,transparent 6px),radial-gradient(ellipse at 360px 61px,rgba(250,186,202,.34) 0 5px,transparent 6px); }
.wedding-page .wedding-action { border-top: 0; background-color: transparent; backdrop-filter: none; }

/* 结果页按参考图恢复 12px 图片边距，示意标注在窄卡片里仍清楚可读。 */
.preview-page,.demo-screen { padding-left: 12px; padding-right: 12px; }
.preview-page>.mobile-statusbar,.demo-screen>.mobile-statusbar { margin-left: -12px; margin-right: -12px; }
.preview-page .result-topbar,.demo-screen .result-topbar { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
.demo-screen .result-photo-label { left: 6px; bottom: 6px; padding: 4px 6px; font-size: 9px; }
.demo-screen .result-select { border-color: rgba(152,103,124,.8); background: rgba(255,248,251,.72); box-shadow: 0 1px 5px rgba(69,40,54,.2),0 0 0 1px rgba(255,255,255,.7); }
.demo-screen { background-image: radial-gradient(ellipse at 12px calc(100% - 21px),rgba(245,156,179,.38) 0 5px,transparent 6px),radial-gradient(ellipse at 23px calc(100% - 31px),rgba(250,186,202,.42) 0 5px,transparent 6px),radial-gradient(ellipse at calc(100% - 12px) calc(100% - 21px),rgba(245,156,179,.38) 0 5px,transparent 6px),radial-gradient(ellipse at calc(100% - 23px) calc(100% - 31px),rgba(250,186,202,.42) 0 5px,transparent 6px); background-color: #fff9fb; }

/* 移动网页不绘制手机操作系统状态栏；底栏在首页与影像馆保持统一的五项单行布局。 */
.mobile-statusbar { display: none !important; }
.mobile-home-head { height: 82px; }
.home-page .home-topbar { top: 0; height: 82px; }
.home-page .bottom-nav { width: min(100%,430px); }
.create-reference-page .bottom-nav {
  width: min(100%,430px);
  height: calc(74px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5,minmax(0,1fr));
  padding: 4px 7px env(safe-area-inset-bottom);
  background: rgba(255,252,253,.98);
  border-top: 1px solid #f3e3e8;
  box-shadow: 0 -4px 15px rgba(156,73,102,.06);
}

/* 首页按老板确认的全身人物方向调整主视觉，文案直接悬浮在照片上。 */
@media (max-width: 430px) {
  .home-page .home-hero-card { height: auto !important; max-height: 520px; aspect-ratio: 3 / 4 !important; }
  .home-page .home-hero-image { object-position: center center !important; }
  .home-page .home-hero-copy { bottom: 18px !important; }
  .home-page .home-hero-copy h1 { color: rgba(238,54,104,.9) !important; }
}

/* Desktop adaptation: preserve the approved mobile visual language while giving wider screens a real workspace layout. */
@media (min-width: 768px) {
  html, body { min-height:100%; background:#fff5f8; color:var(--ref-ink); }
  body { padding:0; }
  .app-shell { width:100%; max-width:none; min-height:100vh; margin:0; overflow:visible; border-radius:0; background:#fff8fa; box-shadow:none; }
  .page { width:min(100%,1280px); min-height:100vh; margin:0 auto; padding:108px 36px 76px; background:#fff8fa; }
  .page.no-nav { padding-bottom:76px; }
  .bottom-nav { display:none !important; }
  .desktop-nav { position:fixed; top:0; left:50%; z-index:1000; width:min(100%,1400px); height:82px; padding:0 34px; display:grid; grid-template-columns:minmax(200px,260px) repeat(5,minmax(0,1fr)); align-items:center; gap:10px; transform:translateX(-50%); border-bottom:1px solid #f1dfe5; background:rgba(255,253,253,.97); box-shadow:0 5px 18px rgba(145,75,99,.07); backdrop-filter:blur(16px); }
  .desktop-nav::before { content:"主角说  ·  AI 影像艺术馆"; overflow:hidden; color:#df4c75; font-family:"Songti SC","STSong",serif; font-size:21px; font-weight:700; letter-spacing:.03em; white-space:nowrap; }
  .desktop-nav .nav-item { min-width:0; height:42px; padding:0 12px; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:8px; border:0; border-radius:999px; background:transparent; color:#837680; font-size:14px; font-weight:600; white-space:nowrap; }
  .desktop-nav .nav-item .nav-icon { width:20px; height:20px; margin:0; display:grid; place-items:center; }
  .desktop-nav .nav-item .nav-icon svg { width:19px; height:19px; }
  .desktop-nav .nav-item.active { background:#fff0f4; color:#e74270; }
  .desktop-nav .nav-create .nav-icon { width:20px; height:20px; margin:0; border:0; background:transparent; box-shadow:none; }
  .desktop-nav .nav-create .nav-icon svg { width:19px; height:19px; }

  .home-page { width:min(100%,1360px); padding:106px 42px 84px; overflow:visible; background:#fff8fa; }
  .home-page .mobile-home-head { display:none !important; }
  .home-page .home-hero-card { min-height:580px; height:auto !important; margin:0; padding:24px 42px; display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,.86fr); align-items:center; gap:24px; overflow:hidden; border:1px solid #f0dce3; border-radius:28px; background:linear-gradient(120deg,#fff5f7 0%,#fffafb 46%,#fcecf1 100%); box-shadow:0 14px 36px rgba(145,75,99,.09); }
  .home-page .home-hero-image { position:relative !important; inset:auto !important; grid-column:2; grid-row:1; width:100% !important; height:530px !important; object-fit:contain !important; object-position:center !important; border-radius:20px; filter:saturate(.96) contrast(1.01); }
  .home-page .home-hero-shade { display:none; }
  .home-page .home-hero-badges { top:auto; left:72%; right:auto; bottom:64px; display:flex; transform:translateX(-50%); }
  .home-page .home-hero-badges span { padding:7px 11px; border-color:rgba(255,255,255,.9); background:rgba(255,251,252,.9); color:#805665; font-size:10px; }
  .home-page .home-hero-copy { position:relative !important; grid-column:1; grid-row:1; left:auto !important; right:auto !important; bottom:auto !important; align-self:center; padding:0 !important; text-align:left; }
  .home-page .home-hero-copy h1 { margin:0 0 12px !important; color:#d94d73 !important; font-size:clamp(42px,5vw,64px) !important; line-height:1.15 !important; text-shadow:none; }
  .home-page .home-hero-copy>p:not(.hero-kicker) { margin:0 0 28px !important; color:#866a75 !important; font-size:20px !important; line-height:1.6; text-shadow:none; }
  .home-page .primary-btn.home-primary { width:280px !important; min-height:54px !important; margin:0 !important; font-size:16px !important; }
  .home-page .home-service-section { margin:54px auto 0; padding:0; }
  .home-page .scene-heading { margin:0 0 22px; text-align:left; }
  .home-page .scene-heading h2 { font-size:25px; }
  .home-page .scene-heading p { margin-top:8px; font-size:13px; }
  .home-page .scene-heading>button { right:42px; margin-top:-34px; font-size:13px; }
  .home-page .scene-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
  .home-page .scene-card { height:220px; border-radius:16px; }
  .home-page .scene-card-image { inset:0 0 42px; }
  .home-page .scene-card-shade { inset:0 0 42px; }
  .home-page .scene-name { height:42px; font-size:14px; }
  .home-page .scene-card small { top:10px; right:10px; font-size:10px; }

  .create-reference-page { padding-top:112px; }
  .create-reference-page .create-ref-topbar { height:52px; }
  .create-reference-page .create-ref-heading { margin:12px 0 7px; font-size:28px; }
  .create-reference-page .create-ref-subheading,.create-reference-page .create-ref-note { font-size:14px; }
  .create-reference-page .create-type-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-top:24px; }
  .create-reference-page .create-type-card { height:285px; border-radius:18px; }
  .create-reference-page .create-type-card img,.create-reference-page .create-type-sprite { height:225px; object-fit:cover; }
  .create-reference-page .create-type-label { height:58px; font-size:16px; }
  .create-reference-page .create-hot-section { margin-top:28px; }

  .wedding-page { display:grid; grid-template-columns:minmax(290px,.78fr) minmax(0,1.22fr); align-content:start; gap:14px 26px; padding:106px 36px 72px; overflow:visible; }
  .wedding-page .flow-topbar { position:sticky; top:90px; grid-column:1/-1; height:54px; margin:0; padding:0 6px; }
  .wedding-page .creation-intro { grid-column:1/-1; margin:8px 0 4px; }
  .wedding-page .ref-upload-grid { grid-column:1; grid-row:3; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .wedding-page .upload-card { height:208px; min-height:208px; }
  .wedding-page .creation-consent-list { grid-column:1; grid-row:4; align-self:start; font-size:12px; white-space:normal; }
  .wedding-page .creation-consent-list .creation-consent { font-size:12px; white-space:normal; }
  .wedding-page .inspiration-upload { grid-column:1; grid-row:5; align-self:start; padding:14px; border:1px solid #f0dce3; border-radius:14px; background:#fffdfd; }
  .wedding-page .template-section { grid-column:2; grid-row:3; }
  .wedding-page .template-strip { display:grid; grid-auto-flow:row; grid-auto-columns:auto; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; overflow:visible; }
  .wedding-page .template-card-ref img,.wedding-page .template-concept-art { width:100% !important; height:170px !important; object-fit:cover; }
  .wedding-page .template-card-ref strong { font-size:12px; }
  .wedding-page .shot-options-section { grid-column:2; grid-row:4; }
  .wedding-page .shot-option-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; overflow:visible; }
  .wedding-page .shot-option { min-height:46px; white-space:normal; }
  .wedding-page .shot-option strong { font-size:12px; }
  .wedding-page .ratio-section-ref { grid-column:2; grid-row:5; margin-top:8px !important; }
  .wedding-page .ref-ratio-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
  .wedding-page .ref-ratio-grid .ratio-btn { height:58px !important; min-height:58px !important; }
  .wedding-page .ref-ratio-grid .ratio-btn strong { font-size:14px; }
  .wedding-page .ref-ratio-grid .ratio-btn span { display:block; margin-top:3px; font-size:10px; }
  .wedding-page .wedding-action { position:static !important; grid-column:1/-1; width:auto !important; margin:6px 0 0; padding:16px 0 0; transform:none !important; border-top:1px solid #f1dfe5; background:transparent; }
  .wedding-page .wedding-action .primary-btn { width:min(100%,420px) !important; margin:0 auto; }
  .wedding-page .wedding-action>div { margin-top:8px; font-size:11px; }

  .preview-page { padding-top:106px; }
  .preview-page .result-topbar { position:sticky; top:90px; height:58px; margin:0; padding:0 4px; grid-template-columns:42px minmax(0,1fr) 160px; }
  .preview-page .result-topbar>strong { font-size:18px; }
  .preview-page .result-count { font-size:12px; }
  .preview-page .result-count b { font-size:12px; }
  .preview-page .result-content { padding-top:20px; }
  .preview-page .result-gallery { grid-template-columns:minmax(0,1.4fr) minmax(300px,.85fr); gap:16px; }
  .preview-page .result-main-photo { height:min(68vh,760px); min-height:500px; }
  .preview-page .result-thumb-grid { height:auto; min-height:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(220px,1fr); gap:12px; overflow:visible; }
  .preview-page .result-thumb { height:100%; min-height:220px; }
  .preview-page .result-actions { margin-top:20px; }
  .preview-page .result-empty { width:min(100%,640px); margin:100px auto 0; padding:44px; border:1px solid #f0dce3; border-radius:24px; background:#fffdfd; text-align:center; }

  .plans-page { padding-top:106px; overflow:visible; }
  .plans-page .unlock-banner { margin:0 0 20px; border-radius:12px; font-size:14px; }
  .plans-page .ref-plan-grid { width:min(100%,860px); margin:0 auto; }
  .plans-page .ref-plan-grid.has-plan-preview { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-card { height:300px; min-height:300px; transform:none; padding:20px 12px 52px; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-card.recommended { height:310px; min-height:310px; transform:translateY(-8px); }
  .plans-page .ref-plan-grid.has-plan-preview .plan-card li { white-space:normal; font-size:11px; line-height:1.5; }
  .plans-page .ref-plan-grid.is-payment-pending { grid-template-columns:1fr; }
  .plans-page .plan-pending-card { margin:16px auto 0; }
  .plans-page .plans-work-section { margin-top:44px; }
  .plans-page .plans-work-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  .plans-page .plans-work-empty { grid-column:1/-1; width:min(100%,860px); margin:0 auto; }
  .plans-page .plans-safe { width:min(100%,860px); margin:16px auto 0; }
  .plans-page .plan-pending-card { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr); align-items:center; gap:0 32px; padding:28px 32px; }
  .plans-page .plan-pending-tag,.plans-page .plan-pending-card h2,.plans-page .plan-pending-card>p { grid-column:1; }
  .plans-page .plan-pending-card .plan-pending-grid { grid-column:2; grid-row:1 / span 3; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:0; }
  .plans-page .plan-pending-card>button { grid-column:1; width:min(100%,360px); margin-top:18px; }
  .plans-page .plans-work-empty { min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px; border:1px dashed #efccd9; border-radius:18px; background:linear-gradient(120deg,#fffdfd,#fff7f9); color:#9a8790; text-align:center; }
  .plans-page .plans-work-empty-icon { color:#e987a0; font-size:30px; }
  .plans-page .plans-work-empty strong { margin-top:6px; color:#59434c; font-family:"Songti SC","STSong",serif; font-size:18px; }
  .plans-page .plans-work-empty p { margin:7px 0 14px; font-size:13px; }
  .plans-page .plans-work-empty button { min-height:40px; padding:0 18px; border:1px solid #f0bfce; border-radius:999px; background:#fff1f5; color:#d94d73; font-weight:700; }
  .auth-page { width:min(100%,640px); padding-top:126px; }
}

/* 未开放时保留业务入口与授权说明，但不提供文件选择或注册动作。 */
.auth-switch.is-unavailable { margin-top: 8px; padding: 11px 12px; border: 1px solid #eedde4; border-radius: 12px; background: #fff8fa; color: #9f9299; cursor: not-allowed; }
.auth-availability-note { margin: 7px 0 0; color: #9f9299; text-align: center; font-size: 10px; }
.upload-card.upload-is-disabled { border-style: dashed; border-color: #e8dce1; background: linear-gradient(150deg,#fffdfd,#fbf8f9); color: #8f858d; cursor: not-allowed; }
.upload-card.upload-is-disabled .upload-placeholder strong { color: #645d64; }
.upload-card.upload-is-disabled .upload-placeholder span { color: #a1979e; }
.upload-card.upload-is-disabled .upload-camera { opacity: .62; }
.upload-disabled-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 0 9px; border: 1px solid #eadde2; border-radius: 999px; background: #fffafb; color: #9e9098; font-size: 9px; white-space: nowrap; }
.upload-card.upload-is-disabled>.upload-disabled-pill { position: absolute; right: 8px; top: 8px; z-index: 2; }
.inspiration-upload.upload-is-disabled .inspiration-dropzone { border-color: #e8dce1; background: #fffafb; color: #9e9299; cursor: not-allowed; }
.inspiration-upload.upload-is-disabled .inspiration-dropzone svg { opacity: .55; }
.creation-consent.upload-is-disabled { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #988e95; }
.creation-consent.upload-is-disabled a { flex: 0 0 auto; color: #d84e78; text-decoration: underline; text-underline-offset: 2px; }
.wedding-page .wedding-action .primary-btn:disabled { border-color: #f0e7eb; background: linear-gradient(100deg,#eadfe4,#ddd3d9); color: #8f858c; box-shadow: none; opacity: 1; }
.create-reference-page .nav-item { min-width: 0; gap: 2px; color: #8e8990; font-size: 9px; }
.create-reference-page .nav-item .nav-icon { width: 22px; height: 22px; }
.create-reference-page .nav-item .nav-icon svg { width: 20px; height: 20px; }
.create-reference-page .nav-item.active { color: var(--ref-pink); }
.create-reference-page .nav-create { color: #b7a2ab; font-weight: 600; }
.create-reference-page .nav-create .nav-icon {
  width: 50px;
  height: 50px;
  display: grid;
  flex: 0 0 50px;
  place-items: center;
  transform: translateY(-13px);
  border: 3px solid #ffe3eb;
  border-radius: 50%;
  background: linear-gradient(145deg,#ff8aa9,#ed3e72);
  box-shadow: 0 4px 10px rgba(207,49,96,.24);
}
.create-reference-page .nav-create .nav-icon svg { width: 22px; height: 22px; color: #fff; }

/* 登录页沿用主站柔粉色，不再混入旧版金棕强调色。 */
.auth-page { background: radial-gradient(circle at 50% 0%,#fff 0,#fff8fa 48%,#f8eaf0 100%); }
.auth-mark { border-color: #f1c1cf; color: #ed4b78; background: #fff6f9; box-shadow: 0 10px 24px rgba(210,92,128,.12); }
.auth-brand p,.auth-privacy { color: #9e818d; }
.auth-card { border-color: #efdce3; background: rgba(255,253,254,.94); box-shadow: 0 14px 34px rgba(168,77,107,.09); }
.auth-card h2 { color: #382b32; }
.auth-hint { color: #97848c; }
.auth-field span { color: #705762; }
.auth-field input { border-color: #eddde3; background: #fffafb; }
.auth-field input:focus { border-color: #ef7296; box-shadow: 0 0 0 3px rgba(239,114,150,.14); }
.auth-field input::placeholder { color: #b3a1a8; }
.auth-submit { border: 0; border-radius: 15px; background: linear-gradient(100deg,#fa7197,#ed4779); color: #fff; box-shadow: 0 8px 20px rgba(224,68,114,.22),inset 0 1px 0 rgba(255,255,255,.35); }
.auth-switch { color: #dc5a82; }
.auth-switch.is-unavailable { color: #9f9299; }
.auth-availability-note { color: #a18c95; }

/* Final acceptance fixes: keep the complete mobile service grid visible and the desktop create CTA in the first viewport. */
@media (max-width: 430px) {
  .home-page .home-hero-card {
    height: 322px !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background: #f6e3e9;
  }
  .home-page .home-hero-card::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 0;
    background: url("/wedding-style-references/forest-lawn.jpeg?v=brand-refresh-local-v9") center 42% / cover no-repeat;
    filter: blur(11px) saturate(.8);
    opacity: .34;
    transform: scale(1.04);
  }
  .home-page .home-hero-image {
    z-index: 1;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: saturate(.96) contrast(1.01);
  }
  .home-page .home-hero-shade {
    z-index: 1;
    background: linear-gradient(180deg,rgba(54,23,39,0) 38%,rgba(69,27,48,.02) 53%,rgba(110,33,62,.1) 72%,rgba(255,207,222,.22) 100%) !important;
  }
  .home-page .home-hero-copy {
    z-index: 2;
    left: 17px !important;
    right: 17px !important;
    bottom: 11px !important;
  }
  .home-page .home-hero-copy h1 { font-size: 27px !important; }
  .home-page .home-hero-copy>p:not(.hero-kicker) { margin-bottom: 6px !important; font-size: 12px !important; }
  .home-page .primary-btn.home-primary { min-height: 38px !important; }
  .home-page .home-hero-badges { top: 9px; right: 9px; bottom: auto; left: auto; }
  .home-page .home-hero-badges span { font-size: 8px; }
}

/* 非婚纱场景仍保留入口，用轻量插画占位，避免缺图或错用婚纱样片。 */
.home-page .scene-card-art {
  position:absolute; inset:0 0 20px; display:grid; place-items:center; overflow:hidden;
  background:var(--scene-bg,linear-gradient(145deg,#fff9fb,#fce9ef));
}
.home-page .scene-card-art::before,.create-type-art::before {
  content:""; position:absolute; width:68px; height:68px; border-radius:50%;
  background:rgba(255,255,255,.64); filter:blur(1px); transform:translate(-22px,-12px);
}
.home-page .scene-card-art::after,.create-type-art::after {
  content:""; position:absolute; width:36px; height:36px; right:10px; bottom:7px; border-radius:60% 40% 55% 45%;
  background:rgba(255,255,255,.42); transform:rotate(36deg);
}
.scene-illustration { position:relative; z-index:1; width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; }
.scene-art-couple_photo,.create-art-couple_photo { --scene-bg:linear-gradient(145deg,#fcecf0,#f8dfe8); color:#d8829b; }
.scene-art-couple_portrait,.create-art-couple_portrait { --scene-bg:linear-gradient(145deg,#f7edf2,#efe3ed); color:#a883a2; }
.scene-art-family_photo,.create-art-family_photo { --scene-bg:linear-gradient(145deg,#fcf1e9,#f7e3d7); color:#c5896f; }
.scene-art-parent_child_photo,.create-art-parent_child_photo { --scene-bg:linear-gradient(145deg,#fff3e8,#f8e6d7); color:#ca9a65; }
.scene-art-birthday_photo,.create-art-birthday_photo { --scene-bg:linear-gradient(145deg,#fff4e8,#fce7dc); color:#cf8d6e; }
.scene-art-bridal_portrait,.create-art-bridal_portrait { --scene-bg:linear-gradient(145deg,#fff5f7,#f8e4ec); color:#ce7892; }
.scene-art-marriage_registration,.create-art-marriage_registration { --scene-bg:linear-gradient(145deg,#f9f0f2,#f2e4e8); color:#b87588; }
.scene-art-invitation,.create-art-invitation { --scene-bg:linear-gradient(145deg,#fff8f4,#f7ece7); color:#bd8a79; }
.scene-art-welcome_poster,.create-art-welcome_poster { --scene-bg:linear-gradient(145deg,#fff2f1,#f7e4e7); color:#bc7582; }
.home-page .scene-name { z-index:2; }
.create-reference-page .create-type-art {
  position:relative; width:100%; height:92px; display:grid; place-items:center; overflow:hidden;
  background:var(--scene-bg,linear-gradient(145deg,#fff9fb,#fce9ef));
}
.create-reference-page .create-type-art .scene-illustration { width:40px; height:40px; }
.create-reference-page .create-type-card.coming { opacity:1; }
.create-reference-page .create-type-card img { object-position:center 30%; }
.template-card-ref.has-generated-cover img { object-position:center top; }
@media (min-width:768px) {
  .home-page .scene-card-art { inset:0 0 42px; }
  .home-page .scene-card-art::before { width:150px; height:150px; }
  .home-page .scene-card-art::after { width:72px; height:72px; right:26px; bottom:18px; }
  .home-page .scene-card-art .scene-illustration { width:70px; height:70px; stroke-width:1; }
  .create-reference-page .create-type-art { height:225px; }
  .create-reference-page .create-type-art .scene-illustration { width:76px; height:76px; }
}

@media (min-width: 768px) {
  .wedding-page { padding-top: 86px; padding-bottom: 130px; }
  .wedding-page .flow-topbar { height: 50px; }
  .wedding-page .creation-intro { margin: 0; }
  .wedding-page .ref-upload-grid .upload-card { height: 150px !important; min-height: 150px !important; }
  .wedding-page .template-section .template-card-ref img { height: 90px !important; }
  .wedding-page .wedding-action {
    position: fixed !important;
    left: 50%;
    bottom: 0;
    z-index: 55;
    width: min(calc(100vw - 72px),1280px) !important;
    margin: 0;
    padding: 10px 36px 12px;
    transform: translateX(-50%) !important;
    border-top: 1px solid rgba(241,223,229,.92);
    background: rgba(255,250,252,.95);
    backdrop-filter: blur(14px);
  }
  .wedding-page .wedding-action .primary-btn { min-height: 48px; }
  .wedding-page .wedding-action>div { margin-top: 4px; }
}
.selected-work-unlock { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; padding:14px 16px; border:1px solid #f0c2d0; border-radius:16px; background:linear-gradient(135deg,#fff7f9,#fff); box-shadow:0 8px 20px rgba(218,102,132,.08); }
.selected-work-unlock>div { display:flex; flex-direction:column; gap:4px; min-width:0; }
.selected-work-unlock strong { color:#533b45; font-family:"Songti SC","STSong",serif; font-size:16px; }
.selected-work-unlock span { color:#8e7780; font-size:12px; line-height:1.4; }
.selected-work-unlock button { flex:0 0 auto; min-height:40px; padding:0 16px; border:0; border-radius:999px; background:linear-gradient(135deg,#e87391,#d94e75); color:#fff; font-size:12px; font-weight:800; box-shadow:0 6px 14px rgba(217,78,117,.2); }
.selected-work-unlock button:disabled { background:#e8dfe2; color:#a09599; box-shadow:none; }
@media (max-width:767px) {
  .plans-page .ref-plan-grid.has-plan-preview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-card,.plans-page .ref-plan-grid.has-plan-preview .plan-card.recommended { height:232px; min-height:232px; padding:16px 11px 48px; transform:none; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-name { font-size:15px; }
  .plans-page .ref-plan-grid.has-plan-preview .ref-plan-price strong { font-size:26px; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-card li { margin:5px 0; font-size:10px; line-height:1.35; white-space:normal; letter-spacing:normal; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-mini-btn { left:9px; right:9px; bottom:9px; height:34px; min-height:34px; font-size:10px; }
}
@media (max-width:520px) {
  .plans-page .ref-plan-grid.has-plan-preview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-card,.plans-page .ref-plan-grid.has-plan-preview .plan-card.recommended { height:232px; min-height:232px; padding:16px 11px 48px; transform:none; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-name { font-size:15px; }
  .plans-page .ref-plan-grid.has-plan-preview .ref-plan-price strong { font-size:26px; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-card li { margin:5px 0; font-size:10px; line-height:1.35; white-space:normal; letter-spacing:normal; }
  .plans-page .ref-plan-grid.has-plan-preview .plan-mini-btn { left:9px; right:9px; bottom:9px; height:34px; min-height:34px; font-size:10px; }
  .selected-work-unlock { align-items:flex-start; flex-direction:column; margin-bottom:12px; padding:12px 13px; }
  .selected-work-unlock button { width:100%; }
}

@media (max-width:767px) {
  .page.no-nav.wedding-page { padding-bottom:calc(130px + env(safe-area-inset-bottom)); }
}

/* 390 x 844 reference replication: use editable page content with separate AI-sample photos. */
@media (max-width: 767px) {
  .home-page .mobile-home-head { height: 88px; background: linear-gradient(180deg,#fff9fb 0%,#fff7f9 100%); }
  .home-page .home-topbar { height: 88px; }
  .home-page .home-hero-card {
    height: 313px !important; margin: 0 12px; border: 1px solid rgba(255,255,255,.9);
    border-radius: 12px; background: linear-gradient(180deg,#f7c8d5 0%,#fff0f4 64%,#fff6f8 100%);
    box-shadow: 0 5px 16px rgba(183,82,115,.15);
  }
  .home-page .home-hero-picture { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
  .home-page .home-hero-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 68% !important; max-width: none;
    object-fit: cover !important; object-position: center center !important; border-radius: 0;
    filter: saturate(1.02) contrast(1.01);
  }
  .home-page .home-hero-shade {
    background: linear-gradient(180deg,rgba(255,244,248,0) 36%,rgba(255,241,246,.16) 53%,rgba(255,241,246,.86) 72%,#fff5f8 100%) !important;
  }
  .home-page .home-hero-copy { left: 20px !important; right: 20px !important; bottom: 12px !important; }
  .home-page .home-hero-copy h1 {
    top: 0 !important; margin: 0 0 3px !important; color: #ed426f !important;
    font-size: 39px !important; line-height: 1.06 !important; letter-spacing: .01em;
    text-shadow: 0 1px 0 rgba(255,255,255,.8),0 2px 8px rgba(255,255,255,.55);
  }
  .home-page .home-hero-copy>p:not(.hero-kicker) {
    margin: 0 0 8px 48px !important; color: #fff9fb !important; font-size: 15px !important;
    text-shadow: 0 1px 4px rgba(95,38,57,.72);
  }
  .home-page .primary-btn.home-primary {
    width: 72% !important; min-height: 42px !important; margin: 0 auto !important;
    transform: none !important; font-size: 15px !important;
  }
  .home-page .home-hero-badges { top: auto; left: auto; right: 8px; bottom: 8px; width: max-content; height: auto; flex-direction: row; align-items: center; }
  .home-page .home-hero-badges span { padding: 3px 6px; font-size: 7px; }
  .home-page .home-service-section { margin: 15px 12px 0 !important; padding: 0 0 5px !important; }
  .home-page .scene-heading { margin: 0 0 10px !important; }
  .home-page .scene-heading h2 { font-size: 16px; line-height: 1.35; }
  .home-page .scene-heading p { font-size: 9px; }
  .home-page .scene-grid { column-gap: 8px; row-gap: 8px; }
  .home-page .scene-card { height: 90px; border-radius: 9px; }
  .home-page .scene-card-image { position: absolute; inset: 0 0 20px; width: 100%; height: calc(100% - 20px); object-fit: cover; object-position: center 32%; filter: saturate(1.02); }
  .home-page .scene-card-shade { inset: 0 0 20px; background: linear-gradient(180deg,rgba(28,17,27,.01),rgba(46,23,35,.12)); }
  .home-page .scene-name {
    height: 20px; display: flex; gap: 4px; justify-content: center; padding: 0 2px;
    background: linear-gradient(90deg,#fff0f4,#ffedf2); color: #633d4b; font-size: 10px;
  }
  .home-page .scene-name i { color: #f04a76; font-family: sans-serif; font-size: 12px; font-style: normal; line-height: 1; }
  .home-page .scene-card.coming { opacity: 1; }
  .home-page .bottom-nav { height: calc(74px + env(safe-area-inset-bottom)); }

  .wedding-page .template-card-ref.has-photo-reference img { border-radius: 9px; }
  .wedding-page .template-section .template-card-ref img { object-fit: cover; object-position: center 35%; }
  .wedding-page .upload-card.upload-is-disabled .upload-placeholder span { color: #969099; }

  .preview-page .result-content { padding-top: 14px; }
  /* Reserve the native status-bar breathing room from the reference without drawing fake system icons. */
  .preview-page .result-topbar { height: 76px; padding-top: 32px; }
  .preview-page .result-main-photo { height: min(47vh,394px); min-height: 0; border-radius: 12px; }
  .preview-page .result-main-photo>img { object-position: 91% 32%; }
  .preview-page .result-thumb-grid {
    height: min(27vh,222px); min-height: 0; display: flex;
    gap: 7px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .preview-page .result-thumb-grid::-webkit-scrollbar { display: none; }
  .preview-page .result-thumb { width: auto; flex: 0 0 calc((100% - 7px)/2); height: 100%; min-height: 0; scroll-snap-align: start; }
  .preview-page .result-thumb>img { object-position: right 24%; }
  .preview-page .result-thumb:nth-child(2)>img { object-position: 87% 24%; }
  .preview-page .result-select { box-shadow: none; }
  .preview-page .result-photo-label { left: 7px; bottom: 7px; padding: 4px 7px; font-size: 8px; }
  .preview-page .result-actions { bottom: 16px; row-gap: 22px; padding: 9px 12px calc(12px + env(safe-area-inset-bottom)); }
  .preview-page .result-actions button { height: 45px; font-size: 11px; }
  .preview-page .result-actions { grid-template-columns: .95fr .95fr 1.3fr; column-gap: 7px; }
  .preview-page .result-actions small { font-size: 9px; }
}

/* Continue the approved soft-pink identity across the gallery, collection, account and checkout screens. */
@media (max-width: 767px) {
  .bottom-nav {
    width: min(100%,430px);
    height: calc(74px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5,minmax(0,1fr));
    padding: 4px 7px env(safe-area-inset-bottom);
    border-top-color: #f2e1e7;
    background: rgba(255,252,253,.98);
    box-shadow: 0 -4px 16px rgba(156,73,102,.08);
  }
  .bottom-nav .nav-item { min-width:0; gap:2px; color:#928790; font-size:9px; }
  .bottom-nav .nav-item.active { color:var(--ref-pink); }
  .bottom-nav .nav-create { color:#b7a2ab; font-weight:600; }
  .bottom-nav .nav-create .nav-icon {
    width:46px; height:46px; flex:0 0 46px; margin-top:-13px;
    border:3px solid #ffe3eb; border-radius:50%;
    background:linear-gradient(145deg,#ff8aa9,#ed3e72);
    box-shadow:0 4px 10px rgba(207,49,96,.24);
  }
  .bottom-nav .nav-create .nav-icon svg { width:21px; height:21px; color:#fff; }

  .create-reference-page { padding:0 12px calc(94px + env(safe-area-inset-bottom)); background:linear-gradient(180deg,#fffafd 0%,#fff6f9 100%); }
  .create-reference-page .create-ref-topbar { height:58px; border-bottom-color:#f2e2e8; }
  .create-reference-page .create-ref-topbar strong { color:#df4e76; font-size:18px; letter-spacing:.02em; }
  .create-reference-page .create-ref-crown { color:#ed7191; }
  .create-gallery-intro { margin:15px 3px 12px; }
  .create-gallery-eyebrow { color:#cf8b9e; font-family:Arial,sans-serif; font-size:8px; font-weight:700; letter-spacing:.19em; }
  .create-reference-page .create-ref-heading { margin:4px 0 3px; color:#3e2c35; font-size:24px; line-height:1.25; }
  .create-reference-page .create-ref-subheading { margin:0; color:#927e88; font-size:11px; line-height:1.5; }
  .create-wedding-feature {
    position:relative; width:100%; height:175px; display:block; padding:0; overflow:hidden;
    border:1px solid #f1d8e0; border-radius:18px; background:#f6e8ec; text-align:left;
    box-shadow:0 8px 22px rgba(176,83,111,.10);
  }
  .create-wedding-feature>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 60%; }
  .create-wedding-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(36,20,31,.60) 0%,rgba(43,24,35,.26) 56%,rgba(43,24,35,.02) 100%),linear-gradient(0deg,rgba(42,25,37,.25),transparent 38%); }
  .create-wedding-badge { position:absolute; top:12px; left:12px; padding:5px 9px; border:1px solid rgba(255,255,255,.55); border-radius:999px; background:rgba(255,250,252,.88); color:#d44772; font-size:9px; font-weight:700; }
  .create-wedding-copy { position:absolute; left:15px; right:15px; bottom:48px; color:#fff; }
  .create-wedding-copy strong { display:block; font-family:"Songti SC","STSong",serif; font-size:22px; line-height:1.2; text-shadow:0 1px 6px rgba(30,13,23,.24); }
  .create-wedding-copy small { display:block; margin-top:4px; font-size:9px; opacity:.92; }
  .create-wedding-cta { position:absolute; right:12px; bottom:13px; min-width:112px; height:32px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(255,255,255,.88); border-radius:999px; background:linear-gradient(100deg,#f45480,#e9366e); color:#fff; font-size:10px; font-weight:700; box-shadow:0 4px 10px rgba(98,21,50,.18); }
  .create-wedding-cta b { font-size:15px; line-height:1; }
  .create-wedding-disclosure { position:absolute; left:12px; bottom:10px; padding:4px 8px; border:1px solid rgba(255,255,255,.3); border-radius:999px; background:rgba(46,29,38,.62); color:#fff; font-size:10px; line-height:1.25; text-shadow:0 1px 2px rgba(0,0,0,.28); }
  .create-scenes-section { margin-top:18px; }
  .create-section-heading { min-height:38px; margin:0 2px 8px; display:flex; align-items:center; justify-content:space-between; }
  .create-section-heading h2 { margin:0; color:#513540; font-family:"Songti SC","STSong",serif; font-size:16px; }
  .create-section-heading p { margin:2px 0 0; color:#a28b95; font-size:9px; }
  .create-section-heading>span { color:#d3a1ad; font:700 7px/1 Arial,sans-serif; letter-spacing:.13em; }
  .create-reference-page .create-type-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:none; gap:8px; margin-top:0; }
  .create-reference-page .create-type-card { position:relative; height:105px; min-height:105px; display:block; overflow:hidden; border:1px solid #f1dfe5; border-radius:11px; background:#f5e9ed; box-shadow:0 3px 9px rgba(173,87,115,.07); }
  .create-reference-page .create-type-card.coming { opacity:1; }
  .create-reference-page .create-type-card>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 32%; filter:saturate(.93); }
  .create-reference-page .create-type-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(34,21,29,.03) 25%,rgba(37,21,31,.08) 58%,rgba(48,22,36,.52) 100%); }
  .create-reference-page .create-type-label { position:absolute; left:4px; right:4px; bottom:7px; z-index:2; height:auto; display:block; padding:0; color:#fff; font-family:"Songti SC","STSong",serif; font-size:10px; font-weight:700; line-height:1.2; text-shadow:0 1px 4px rgba(0,0,0,.55); text-align:left; white-space:normal; }
  .create-reference-page .create-type-card .coming-badge { top:5px; right:5px; padding:3px 5px; border:1px solid rgba(255,255,255,.64); background:rgba(255,250,252,.84); color:#a65e76; font-size:7px; }
  .create-reference-page .create-ref-note { margin:8px 2px 0; color:#ae939d; font-size:8px; }
  .create-reference-page .create-hot-section { margin-top:15px; padding-top:13px; border-top-color:#f0dfe5; }
  .create-reference-page .create-hot-section h2 { color:#563843; font-size:15px; }
  .create-reference-page .create-hot-tags { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .create-reference-page .create-hot-tags button { border-color:#f0dbe2; border-radius:999px; background:#fffdfd; color:#a05d73; }

  .works-page,.profile-page { padding:0 14px calc(94px + env(safe-area-inset-bottom)); background:linear-gradient(180deg,#fffafd 0%,#fff6f9 100%); }
  .works-heading { padding:25px 2px 17px; }
  .works-heading>span { color:#cb8b9d; font:700 8px/1 Arial,sans-serif; letter-spacing:.16em; }
  .works-heading h1 { margin:7px 0 3px; color:#3b2a34; font-family:"Songti SC","STSong",serif; font-size:26px; line-height:1.25; }
  .works-heading p { margin:0; color:#96818b; font-size:11px; line-height:1.6; }
  .works-page .empty { min-height:260px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:26px 22px; border:1px dashed #edc6d2; border-radius:20px; background:linear-gradient(145deg,#fffefe,#fff7f9); color:#9c858f; }
  .works-page .empty .big { width:48px; height:48px; margin:0 0 12px; display:grid; place-items:center; border-radius:50%; background:#fff0f4; color:#e45b82; font-size:28px; }
  .works-page .empty strong { color:#543a46; font-family:"Songti SC","STSong",serif; font-size:16px; }
  .works-page .empty p { max-width:260px; margin:7px 0 15px; color:#998791; font-size:10px; line-height:1.65; }
  .works-page .empty .secondary-btn { min-height:39px; padding:0 22px; border:1px solid #edb6c7; border-radius:999px; background:#fff0f4; color:#d74672; font-size:11px; }
  .works-page .work-card { margin:0 0 12px; border-color:#f0dce3; border-radius:16px; background:#fffdfd; box-shadow:0 6px 18px rgba(166,83,110,.07); }
  .works-page .work-cover { background:#f4e5eb; }
  .works-page .work-cover img { aspect-ratio:4/3; }
  .works-page .work-body { padding:12px; }
  .works-page .work-head strong { color:#4b3541; font-family:"Songti SC","STSong",serif; }
  .works-page .work-head span { color:#a38f98; }
  .works-page .work-status { background:#fff0f4; color:#c75075; }
  .works-page .work-actions button { min-height:34px; border-color:#efd7df; border-radius:999px; background:#fffafb; color:#835565; }
  .works-page .work-actions button.primary { border-color:#ee7899; background:linear-gradient(100deg,#f45a83,#e83c70); color:#fff; }
  .works-page .work-actions button.danger { border-color:#f2d8de; background:#fff7f8; color:#b36a78; }

  .profile-page .topbar { min-height:60px; border-bottom:1px solid #f2e2e8; }
  .profile-page .brand { color:#df4e76; font-family:"Songti SC","STSong",serif; font-size:18px; }
  .profile-page .brand small { color:#a88c97; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; font-size:9px; letter-spacing:.04em; }
  .profile-page .profile-card { margin-top:14px; padding:15px; border-color:#f0dbe3; border-radius:20px; background:linear-gradient(145deg,#fff,#fff4f7 100%); box-shadow:0 7px 20px rgba(168,77,107,.08); }
  .profile-page .profile-avatar { width:50px; height:50px; border:1px solid #f1cada; border-radius:17px; background:linear-gradient(145deg,#ffe9f0,#f9cad8); color:#df4d79; }
  .profile-page .profile-main strong { color:#45313b; font-family:"Songti SC","STSong",serif; }
  .profile-page .profile-main span { color:#9b8790; }
  .profile-page .stats { gap:1px; margin-top:14px; border-color:#f0dce3; border-radius:14px; background:#f0dce3; }
  .profile-page .stat { padding:10px 3px; background:rgba(255,255,255,.87); }
  .profile-page .stat strong { color:#d94b75; font-size:17px; }
  .profile-page .stat span { color:#9a858e; font-size:8px; }
  .profile-page .menu-list { margin-top:15px; border-color:#f0dce3; border-radius:17px; background:#fffdfd; box-shadow:0 5px 15px rgba(166,83,110,.045); }
  .profile-page .menu-item { min-height:51px; padding:11px 13px; border-bottom-color:#f4e8ec; color:#4c3b43; font-size:11px; }
  .profile-page .menu-item span:last-child { color:#a28e97; font-size:9px; }
  .profile-page button.menu-item { appearance:none; margin:0; border:0; border-bottom:1px solid #f4e8ec; border-radius:0; background:transparent; color:#4c3b43; font:inherit; font-size:11px; text-align:left; cursor:pointer; }
  .profile-page .menu-list>.menu-item:last-child { border-bottom:0; }
  .profile-page .auth-logout-item span:first-child { color:#b76378; }

  .generation-page .topbar { min-height:50px; border-bottom:1px solid #f1e1e7; }
  .generation-page .progress-wrap { min-height:calc(100vh - 58px); padding:20px 22px; }
  .generation-page .progress-ring { width:154px; height:154px; background:conic-gradient(var(--ref-pink) var(--progress,0%),#f5e1e8 0); box-shadow:0 10px 25px rgba(216,81,119,.12); }
  .generation-page .progress-ring::before { inset:12px; background:#fffafd; }
  .generation-page .progress-value { color:#d84873; font-size:28px; }
  .generation-page .progress-wrap h2 { margin:23px 0 7px; color:#4a333f; font-size:22px; }
  .generation-page .progress-wrap p { color:#99858f; font-size:11px; }
  .generation-page .status-pill { border:1px solid #f0d5df; background:#fff0f4; color:#c95376; }
  .generation-page .notice { border-color:#efd8e0; border-radius:14px; background:#fff8fa; color:#916d7b; }

  .plans-page .ref-top-actions { display:none; }
  .plans-page .unlock-banner { min-height:42px; margin-bottom:16px; border:1px solid #f4dce4; border-radius:12px; background:linear-gradient(100deg,#fff0f4,#fff8fa); color:#a65c73; font-size:9px; line-height:1.5; }
  .plans-page .plan-pending-card { padding:18px 15px 15px; border-color:#efcdd8; border-radius:19px; background:linear-gradient(145deg,#fffdfd 0%,#fff4f7 65%,#fffaf8 100%); box-shadow:0 9px 24px rgba(168,77,107,.075); }
  .plans-page .plan-pending-tag { border:1px solid #f3dce3; background:#fff; color:#d24a73; }
  .plans-page .plan-pending-card h2 { color:#513b46; font-size:20px; }
  .plans-page .plan-pending-card p { color:#907d87; }
  .plans-page .plan-pending-grid>div { border-color:#f1dce3; border-radius:11px; background:rgba(255,255,255,.84); }
  .plans-page .plan-pending-grid strong { color:#735666; }
  .plans-page .plan-pending-grid span { color:#ba8799; }
  .plans-page .plan-pending-card>button { border:1px solid #efdce3; background:#f3dfe5; color:#9c7e89; }
  .plans-page .plans-work-section { border-top-color:#f0dfe5; }
  .plans-page .plans-work-section .section-title h2 { color:#513b46; }
  .plans-page .plans-work-section .section-title button { color:#c45b7b; }
  .plans-page .plans-work-empty { border-color:#efd3dd; background:linear-gradient(145deg,#fff,#fff7f9); }
  .plans-page .plans-work-empty strong { color:#543b47; }
  .plans-page .plans-work-empty button { border-color:#efbfd0; background:#fff2f6; color:#d34e76; }
  .plans-page .plans-safe { border:1px solid #f2e2e7; background:#fffafd; color:#a28d96; }

  .auth-page { min-height:100vh; padding:36px 16px; }
  .auth-brand { margin-bottom:20px; }
  .auth-mark { border-radius:50%; }
  .auth-brand h1 { color:#dd4d76; font-size:30px; }
  .auth-brand p { color:#a1848f; font-size:10px; }
  .auth-card { border-radius:22px; }
  .auth-submit { background:linear-gradient(100deg,#f45a83,#e83c70); box-shadow:0 6px 16px rgba(221,66,111,.19); }
  .auth-page .auth-privacy { max-width:350px; font-size:9px; }
  .auth-page .auth-privacy a { color:#d44772; text-decoration:underline; text-underline-offset:2px; }
}

@media (min-width: 768px) {
  .create-reference-page { padding-top:108px; }
  .create-gallery-intro { margin:10px 0 18px; }
  .create-reference-page .create-ref-heading { margin:5px 0; font-size:32px; }
  .create-wedding-feature { width:100%; max-width:860px; height:340px; border:1px solid #f0dce3; border-radius:24px; }
  .create-wedding-copy { left:28px; bottom:65px; }
  .create-wedding-copy strong { font-size:32px; }
  .create-wedding-copy small { font-size:13px; }
  .create-wedding-cta { right:24px; bottom:22px; min-width:150px; height:42px; font-size:13px; }
  .create-wedding-disclosure { left:24px; bottom:17px; font-size:9px; }
  .create-scenes-section { margin-top:25px; }
  .create-section-heading h2 { font-size:22px; }
  .create-section-heading p { font-size:12px; }
  .create-reference-page .create-type-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  .create-reference-page .create-type-card { height:190px; min-height:190px; border-radius:16px; }
  .create-reference-page .create-type-label { bottom:12px; left:12px; right:12px; font-size:14px; }
  .create-reference-page .create-type-card .coming-badge { top:10px; right:10px; padding:5px 8px; font-size:9px; }
  .works-page,.profile-page { padding-top:108px; }
  .works-heading { padding-top:12px; }
  .works-heading h1 { font-size:34px; }
  .works-page .empty { max-width:640px; min-height:320px; margin:22px auto; }
  .works-page .work-card { max-width:860px; margin:0 auto 16px; }
  .profile-page .profile-card,.profile-page .menu-list { max-width:860px; margin-left:auto; margin-right:auto; }
}

@media (min-width: 768px) {
  .home-page .home-hero-picture { position: relative; grid-column: 2; grid-row: 1; width: 100%; height: 530px; overflow: hidden; border-radius: 20px; }
  .home-page .home-hero-image { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center 28% !important; border-radius: 20px; }
}

/* 390x844 acceptance pass: match the reference hero width, softer photo fade, and inset nav card. */
@media (max-width: 767px) {
  .home-page .mobile-home-head {
    position: relative;
    overflow: hidden;
    background: #fff7f9;
  }
  .home-page .mobile-home-head::before {
    content: "";
    position: absolute;
    inset: -8px 0 0;
    z-index: 0;
    background: url("/ui-reference-samples/home-hero.jpg?v=brand-refresh-local-v10") center 16% / 100% auto no-repeat;
    filter: blur(1.5px) saturate(1.03);
    opacity: .88;
  }
  .home-page .mobile-home-head::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg,rgba(255,248,250,.06) 0%,rgba(255,248,250,.68) 23%,rgba(255,248,250,.93) 50%,rgba(255,248,250,.68) 77%,rgba(255,248,250,.06) 100%),
      linear-gradient(180deg,rgba(255,250,252,.04) 0%,rgba(255,248,250,.06) 65%,rgba(255,248,250,.84) 100%);
  }
  .home-page .home-topbar { position: relative; z-index: 2; }

  .home-page .home-hero-card {
    height: 313px !important;
    margin: 0 2px !important;
  }
  .home-page .home-hero-card::before {
    background: url("/ui-reference-samples/home-hero.jpg?v=brand-refresh-local-v10") center 45% / cover no-repeat !important;
    filter: blur(16px) saturate(.88) !important;
    opacity: .42 !important;
  }
  .home-page .home-hero-image {
    top: -8px !important;
    height: 74% !important;
    -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 78%,transparent 100%);
    mask-image: linear-gradient(180deg,#000 0%,#000 78%,transparent 100%);
  }
  .home-page .home-hero-shade {
    background: linear-gradient(180deg,
      rgba(255,244,248,0) 45%,
      rgba(255,241,246,.04) 66%,
      rgba(255,241,246,.10) 84%,
      rgba(255,245,248,.18) 100%) !important;
  }
  .home-page .home-hero-copy h1 { position: relative; top: -8px !important; }
  .home-page .home-hero-badges { right: 8px; bottom: 8px; }
  .home-page .home-hero-badges span:last-child { padding: 2px 4px; font-size: 7px; }
  .home-page .home-service-section { margin-top: 18px !important; }
  .home-page .scene-card { height: 92px !important; }
  .home-page .bottom-nav {
    bottom: 0;
    width: min(100%,430px) !important;
    height: calc(74px + env(safe-area-inset-bottom)) !important;
    padding: 3px 7px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid #f2e1e7;
    border-radius: 16px 16px 0 0;
    background: rgba(255,252,253,.97);
    box-shadow: 0 2px 16px rgba(156,73,102,.11);
  }
}
