:root{
  --bg:#fff9f2;
  --surface:#fffdf9;
  --surface-2:#fff5ea;
  --ink:#33261d;
  --muted:#8f7967;
  --line:#eadccc;
  --gold:#b97d3b;
  --gold-2:#dfb97f;
  --rose:#d86f79;
  --rose-2:#f6dfe1;
  --green:#5e8d72;
  --shadow:0 18px 42px rgba(97,69,41,.12);
  --radius:22px;
  --nav-h:78px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--bg)
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:radial-gradient(circle at 15% 0%,#fff 0,#fff8ef 42%,#f9eee2 100%);scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0;height:0}
body{overflow-x:hidden}
button,input{font:inherit}
button{cursor:pointer}
img{display:block;max-width:100%}
.app-shell{width:100vw;max-width:460px;min-height:100vh;margin:0 auto;background:linear-gradient(180deg,#fffdf9 0%,#fff8f0 100%);position:relative;box-shadow:0 0 60px rgba(104,73,46,.11)}
.page{min-height:100vh;padding:calc(18px + env(safe-area-inset-top)) 18px calc(var(--nav-h) + 30px + env(safe-area-inset-bottom));background:
  radial-gradient(circle at 92% 2%,rgba(245,212,171,.28),transparent 26%),
  radial-gradient(circle at 8% 18%,rgba(247,223,221,.26),transparent 24%)}
.page.no-nav{padding-bottom:34px}
.topbar{height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{font-size:20px;font-weight:800;letter-spacing:.02em}
.brand small{display:block;font-size:10px;letter-spacing:.18em;color:var(--muted);font-weight:600;margin-top:3px}
.icon-btn{width:40px;height:40px;border:1px solid var(--line);background:rgba(255,255,255,.78);border-radius:14px;display:grid;place-items:center;color:var(--ink);box-shadow:0 6px 20px rgba(86,56,35,.06)}
.hero{position:relative;overflow:hidden;border-radius:30px;margin-top:10px;min-height:430px;background:linear-gradient(145deg,#f6e8d9 0%,#fffaf4 54%,#ead9c7 100%);box-shadow:var(--shadow);border:1px solid rgba(196,152,106,.26)}
.hero::after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;background:rgba(216,111,121,.08);left:-72px;bottom:42px;pointer-events:none}
.hero-photo{height:248px;position:relative;overflow:hidden;background:#ead9c7}
.hero-image{width:100%;height:100%;object-fit:cover;object-position:center 31%;transform:scale(1.015);filter:saturate(.92) contrast(.97)}
.hero-photo-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(39,26,18,.02) 20%,rgba(39,26,18,.12) 74%,rgba(255,249,242,.78) 100%)}
.hero-photo-badge{position:absolute;left:16px;top:16px;border:1px solid rgba(255,255,255,.72);background:rgba(255,255,255,.76);backdrop-filter:blur(12px);color:#7c5d43;border-radius:999px;padding:7px 11px;font-size:10px;font-weight:800;letter-spacing:.04em;box-shadow:0 6px 18px rgba(69,47,31,.08)}
.hero-copy{padding:2px 22px 22px;position:relative;z-index:2}
.eyebrow{font-size:12px;color:var(--gold);letter-spacing:.18em;font-weight:800;text-transform:uppercase}
.hero h1{font-family:"Songti SC","STSong",serif;font-size:34px;line-height:1.16;margin:7px 0 9px;letter-spacing:.02em}
.hero p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}
.primary-btn{width:100%;border:0;border-radius:18px;min-height:54px;margin-top:18px;background:linear-gradient(100deg,#c08442,#e8c18a 52%,#bc7d3a);color:#fff;font-weight:800;letter-spacing:.06em;box-shadow:0 10px 24px rgba(176,118,58,.28);transition:.18s transform,.18s filter}
.primary-btn:active{transform:translateY(1px);filter:brightness(.97)}
.primary-btn:disabled{opacity:.52;cursor:not-allowed;box-shadow:none}.primary-btn.payment-pending{background:#e7ddd3;color:#9a8775;letter-spacing:.02em}
.secondary-btn{border:1px solid var(--line);background:#fffaf5;color:var(--ink);border-radius:16px;min-height:48px;padding:0 16px;font-weight:700}
.danger-btn{border:1px solid #efc4c4;background:#fff7f7;color:#b94e4e;border-radius:16px;min-height:48px;padding:0 16px;font-weight:700}
.section{margin-top:26px}
.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-title h2{font-size:17px;margin:0}
.section-title button{border:0;background:transparent;color:var(--muted);font-size:12px}
.template-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.template-mini{min-width:0}
.template-mini img{aspect-ratio:3/4;border-radius:14px;object-fit:cover;border:1px solid var(--line);background:#f3e6da}
.template-mini strong{display:block;font-size:11px;margin-top:6px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.benefits{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.benefit{background:rgba(255,255,255,.74);border:1px solid var(--line);border-radius:18px;padding:14px;min-height:98px}
.benefit .symbol{width:34px;height:34px;border-radius:12px;background:#fff0dd;color:var(--gold);display:grid;place-items:center;font-size:18px;margin-bottom:9px}
.benefit strong{font-size:13px}.benefit p{font-size:11px;line-height:1.5;color:var(--muted);margin:5px 0 0}
.bottom-nav{position:fixed;z-index:50;left:50%;transform:translateX(-50%);bottom:0;width:min(100%,460px);height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding:8px 20px env(safe-area-inset-bottom);background:rgba(255,253,249,.94);backdrop-filter:blur(18px);border-top:1px solid rgba(222,205,188,.8);display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 -8px 30px rgba(76,51,33,.05)}
.nav-item{border:0;background:transparent;color:#8f857d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px}
.nav-item .nav-icon{width:21px;height:21px;line-height:1;display:grid;place-items:center}.nav-item .nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item.active{color:#b97835;font-weight:800}.nav-item.active .nav-icon svg{stroke-width:2}
.screen-title{margin:16px 0 4px;font-size:28px;font-family:"Songti SC","STSong",serif}
.screen-subtitle{margin:0 0 20px;color:var(--muted);font-size:13px;line-height:1.6}
.content-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.content-card{position:relative;border:1px solid var(--line);background:#fffdf9;border-radius:22px;padding:0 16px 12px;min-height:154px;text-align:left;overflow:hidden;box-shadow:0 10px 24px rgba(91,64,43,.05)}
.content-card.active{border-color:#d39a5f;background:linear-gradient(145deg,#fff4e8,#fffdf9)}
.content-card.coming{opacity:.67}
.content-card .badge{position:absolute;right:10px;top:10px;background:#f2e7dd;color:#9e816a;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:800}
.content-card-art{width:calc(100% + 32px);height:64px;margin:0 -16px 8px;object-fit:cover;border-bottom:1px solid #f1e1d3}
.content-card .big-icon{font-size:25px;color:var(--gold);margin-bottom:7px}
.content-card strong{display:block;font-size:16px}.content-card span{display:block;color:var(--muted);font-size:11px;margin-top:6px}
.steps{display:flex;align-items:center;gap:7px;margin:12px 0 20px}.step{height:5px;flex:1;border-radius:999px;background:#ecdfd2}.step.on{background:linear-gradient(90deg,#c18445,#e0b277)}
.upload-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.upload-card{position:relative;min-height:190px;border:1.5px dashed #d9b78f;border-radius:22px;background:#fffdfa;overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px}
.upload-card.has-image{padding:0;border-style:solid}
.upload-card img{width:100%;height:190px;object-fit:cover}
.upload-card input{position:absolute;inset:0;opacity:0;cursor:pointer}
.upload-placeholder .avatar{font-size:42px;opacity:.78}.upload-placeholder strong{display:block;font-size:14px;margin-top:8px}.upload-placeholder span{display:block;color:var(--muted);font-size:10px;margin-top:6px}
.check-chip{position:absolute;left:8px;right:8px;bottom:8px;padding:7px 9px;border-radius:12px;background:rgba(255,255,255,.91);font-size:10px;font-weight:700;backdrop-filter:blur(8px)}
.check-chip.ok{color:var(--green)}.check-chip.bad{color:#b94e4e}
.notice{margin-top:12px;background:#fff4eb;border:1px solid #f0dcc9;border-radius:16px;padding:12px 13px;font-size:11px;color:#8b6a54;line-height:1.6}
.notice.dark{background:#302821;color:#eadfce;border-color:#493d33}
.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.template-card{border:1.5px solid transparent;background:transparent;border-radius:16px;padding:0;overflow:hidden;position:relative;text-align:left}
.template-card img{aspect-ratio:3/4;object-fit:cover;border-radius:14px;border:1px solid var(--line)}
.template-card strong{display:block;font-size:11px;margin:6px 4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.template-card.selected{border-color:var(--gold);background:#fff2e2;padding:3px}.template-card.selected::after{content:"✓";position:absolute;right:7px;top:7px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#c88642;color:#fff;font-weight:800;font-size:12px}
.ratio-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.ratio-btn{border:1px solid var(--line);background:#fffdfa;border-radius:15px;min-height:74px;color:var(--ink)}.ratio-btn strong{display:block;font-size:14px}.ratio-btn span{font-size:9px;color:var(--muted)}.ratio-btn.selected{border-color:var(--gold);background:#fff1df;color:#a8672b;box-shadow:inset 0 0 0 1px rgba(190,126,61,.12)}
.sticky-action{position:sticky;bottom:calc(var(--nav-h) + 8px);z-index:8;padding-top:10px;background:linear-gradient(180deg,rgba(255,249,242,0),rgba(255,249,242,.95) 24%)}
.progress-wrap{min-height:70vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.progress-ring{width:178px;height:178px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--gold) var(--progress,0%),#eee0d2 0);position:relative;box-shadow:var(--shadow)}
.progress-ring::before{content:"";position:absolute;inset:14px;border-radius:50%;background:#fffaf4}.progress-value{position:relative;font-size:32px;font-weight:900}.progress-wrap h2{margin:30px 0 8px;font-family:"Songti SC","STSong",serif;font-size:26px}.progress-wrap p{color:var(--muted);font-size:12px;line-height:1.7;max-width:290px}.status-pill{border-radius:999px;padding:7px 11px;background:#fff0df;color:#a8692d;font-size:10px;font-weight:800;margin-top:12px}
.preview-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.preview-card{position:relative;border-radius:20px;overflow:hidden;border:2px solid transparent;background:#f2e5d9}.preview-card.selected{border-color:var(--rose);box-shadow:0 8px 24px rgba(216,111,121,.18)}.preview-card img{aspect-ratio:3/4;object-fit:cover}.watermark{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.78);font-size:24px;font-weight:900;text-shadow:0 2px 8px rgba(0,0,0,.3);transform:rotate(-15deg);pointer-events:none}.preview-card button{position:absolute;right:8px;bottom:8px;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.9);font-weight:900;color:var(--rose)}
.action-row{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:8px;margin-top:14px}.action-row button{min-height:48px;border-radius:15px;font-weight:800}.action-row .main{border:0;background:linear-gradient(100deg,#c08343,#dda968);color:#fff}.action-row .ghost{border:1px solid var(--line);background:#fffaf5;color:var(--ink)}
.plan-grid{display:grid;grid-template-columns:1fr;gap:12px}.plan-card{border:1px solid var(--line);border-radius:22px;background:#fffdf9;padding:18px;position:relative}.plan-card.recommended{border:2px solid var(--rose);background:linear-gradient(145deg,#fff7f6,#fffdf9);box-shadow:0 12px 30px rgba(216,111,121,.11)}.plan-card .rec{position:absolute;right:14px;top:-11px;background:var(--rose);color:#fff;border-radius:999px;padding:5px 10px;font-size:10px;font-weight:800}.plan-head{display:flex;align-items:end;justify-content:space-between}.plan-name{font-size:18px;font-weight:900}.price{font-size:28px;font-weight:900;color:#b86159}.price small{font-size:12px;color:var(--muted);font-weight:600}.plan-card ul{padding:0;margin:14px 0 0;list-style:none}.plan-card li{font-size:12px;color:#6f5c4d;margin:7px 0}.plan-card li::before{content:"✓";color:var(--gold);font-weight:900;margin-right:7px}
.work-card{border:1px solid var(--line);background:#fffdf9;border-radius:22px;overflow:hidden;margin-bottom:12px;box-shadow:0 10px 24px rgba(91,64,43,.05)}.work-cover{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line)}.work-cover img{aspect-ratio:4/3;object-fit:cover;width:100%}.work-body{padding:14px}.work-head{display:flex;justify-content:space-between;gap:10px}.work-head strong{font-size:15px}.work-head span{font-size:10px;color:var(--muted)}.work-status{display:inline-block;margin-top:8px;padding:5px 8px;border-radius:999px;background:#f5eadf;color:#8a684c;font-size:9px;font-weight:800}.work-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.work-actions button{border:1px solid var(--line);background:#fffaf5;border-radius:12px;padding:8px 10px;font-size:10px;font-weight:800}.work-actions button.primary{border-color:#d59a60;background:#fff0df;color:#a9682c}.work-actions button.danger{color:#b25454;background:#fff8f8;border-color:#efcccc}
.profile-card{border:1px solid var(--line);background:#fffdf9;border-radius:26px;padding:20px;box-shadow:var(--shadow)}.profile-main{display:flex;align-items:center;gap:14px}.profile-avatar{width:56px;height:56px;border-radius:20px;background:linear-gradient(145deg,#edd2b4,#f8e8d6);display:grid;place-items:center;font-size:26px}.profile-main strong{display:block;font-size:17px}.profile-main span{display:block;color:var(--muted);font-size:11px;margin-top:4px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-top:16px}.stat{background:#fffaf5;padding:12px;text-align:center}.stat strong{display:block;font-size:18px}.stat span{font-size:9px;color:var(--muted)}
.menu-list{margin-top:18px;border:1px solid var(--line);border-radius:20px;background:#fffdf9;overflow:hidden}.menu-item{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #f0e4d8;font-size:13px}.menu-item:last-child{border-bottom:0}.menu-item span:last-child{color:var(--muted)}
.empty{border:1px dashed #dac6b3;border-radius:22px;padding:34px 20px;text-align:center;color:var(--muted);background:rgba(255,255,255,.5)}.empty .big{font-size:36px;margin-bottom:10px}.empty strong{display:block;color:var(--ink);font-size:15px}.empty p{font-size:11px;line-height:1.6}
.provider-banner{margin:12px 0 0;border-radius:14px;padding:10px 12px;font-size:10px;line-height:1.5;background:#fff0dd;color:#8d6238;border:1px solid #edd3b7}.provider-banner.live{background:#ecf6ef;color:#527963;border-color:#cde4d5}

/* 首页严格按 AI UI 参考图第一屏校准 */
.home-page{padding:0 0 calc(66px + env(safe-area-inset-bottom));background:#fffaf5;overflow:hidden}
.home-hero{height:459px;position:relative;overflow:hidden;background:#eee2d6;border-radius:0 0 28px 28px}
.home-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 32%;filter:saturate(.9) contrast(.98) brightness(1.03);transform:scale(1.01)}
.home-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,250,245,.12) 0%,rgba(255,250,245,0) 35%,rgba(255,247,238,.14) 50%,rgba(255,248,240,.94) 84%,#fffaf5 100%)}
.home-statusbar{position:absolute;z-index:4;left:0;right:0;top:0;height:28px;padding:9px 18px 0;display:flex;align-items:flex-start;justify-content:space-between;color:#26211d;font-size:10px;font-weight:800;letter-spacing:.02em}.home-statusbar span{font-size:9px;letter-spacing:.04em}.home-topbar{position:absolute;z-index:3;left:0;right:0;top:28px;height:56px;padding:6px 14px 4px;display:grid;grid-template-columns:72px 1fr 72px;align-items:center;color:#2a211b}
.home-topbar>strong{text-align:center;font-family:"Songti SC","STSong",serif;font-size:17px;letter-spacing:.03em;white-space:nowrap;text-shadow:0 1px 7px rgba(255,255,255,.7)}
.home-top-actions{justify-self:end;width:64px;height:31px;border:1px solid rgba(239,226,214,.92);border-radius:999px;background:rgba(255,255,255,.84);display:flex;align-items:center;justify-content:space-evenly;box-shadow:0 3px 10px rgba(95,64,42,.05);backdrop-filter:blur(8px)}
.home-top-actions span:first-child{font-size:14px;letter-spacing:-1px;transform:translateY(-2px)}
.home-top-actions .mini-ring{width:15px;height:15px;border:2px solid #302923;border-radius:50%;position:relative}.home-top-actions .mini-ring::after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:#302923;left:50%;top:50%;transform:translate(-50%,-50%)}
.home-hero-copy{position:absolute;z-index:2;left:18px;right:18px;bottom:18px}
.home-hero-copy h1{font-family:"Songti SC","STSong",serif;font-size:30px;line-height:1.13;margin:0 0 8px;color:#2d2017;font-weight:700;letter-spacing:.01em;text-shadow:0 1px 8px rgba(255,255,255,.5)}
.home-hero-copy p{font-size:11px;line-height:1.45;margin:0;color:#4f4035;white-space:nowrap;letter-spacing:.005em}
.primary-btn.home-primary{margin-top:38px;min-height:50px;border-radius:999px;font-size:17px;font-family:"Songti SC","STSong",serif;font-weight:700;letter-spacing:.02em;background:linear-gradient(90deg,#c68138 0%,#efcf9b 50%,#c27d34 100%);box-shadow:0 8px 18px rgba(169,104,43,.26),inset 0 1px 0 rgba(255,255,255,.55)}
.primary-btn.home-primary span{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:15px}
.home-section{padding:0 15px;margin-top:18px}
.home-template-section .section-title{margin-bottom:8px}.home-template-section .section-title h2{font-family:"Songti SC","STSong",serif;font-size:15px;font-weight:800}.home-template-section .section-title button{font-size:10px;color:#8b7767}
.home-page .template-row{gap:8px}.home-page .template-mini{position:relative;overflow:hidden;border-radius:9px;background:#efe1d4}.home-page .template-mini img{width:100%;aspect-ratio:2/3;border:0;border-radius:9px;object-fit:cover}.home-page .template-mini::after{content:"";position:absolute;left:0;right:0;bottom:0;height:38%;background:linear-gradient(180deg,transparent,rgba(35,24,17,.55));pointer-events:none}.home-page .template-mini strong{position:absolute;z-index:2;left:3px;right:3px;bottom:5px;margin:0;text-align:center;color:#fff;font-size:10px;font-weight:700;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.home-service-section{margin-top:18px;padding-bottom:18px}.home-service-section .section-title{margin-bottom:9px}.home-service-section .section-title h2{font-family:"Songti SC","STSong",serif;font-size:15px;font-weight:800}.home-service-section .section-title button{font-size:10px;color:#8b7767}.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.service-card{position:relative;min-width:0;min-height:92px;border:1px solid #f0dfcf;border-radius:12px;padding:0;overflow:hidden;background:#fffaf4;text-align:center}.service-card img{width:100%;height:67px;object-fit:cover;display:block}.service-card::after{content:"";position:absolute;inset:30px 0 25px;background:linear-gradient(180deg,transparent,rgba(45,29,18,.12));pointer-events:none}.service-card-label{position:relative;z-index:1;display:block;padding:7px 2px 0;font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.service-card em{position:absolute;z-index:2;right:3px;top:3px;padding:3px 4px;border-radius:5px;background:rgba(255,255,255,.84);color:#a78369;font-size:7px;font-style:normal}.service-card b{position:absolute;z-index:2;left:4px;top:4px;border-radius:50%;padding:3px 4px;background:#b77a37;color:#fff;font-size:8px}.service-card.coming{opacity:.64}
.home-page .bottom-nav{height:calc(52px + env(safe-area-inset-bottom));padding:4px 17px env(safe-area-inset-bottom);background:rgba(255,253,249,.97);box-shadow:0 -4px 18px rgba(79,54,35,.04)}

/* 参考图第 2 屏：上传照片 / 选模板 */
.ref-page{position:relative;padding:116px 18px 22px;background:#fffaf6;min-height:100vh}
.ref-statusbar{position:absolute;z-index:4;left:0;right:0;top:0;height:28px;padding:9px 18px 0;display:flex;justify-content:space-between;align-items:flex-start;font-size:10px;font-weight:800;color:#24211f}.ref-statusbar span{font-size:9px;letter-spacing:.04em}
.ref-topbar{position:absolute;z-index:3;left:0;right:0;top:28px;height:56px;padding:0 13px;display:grid;grid-template-columns:46px 1fr 64px;align-items:center;background:rgba(255,253,250,.94);border-bottom:1px solid #f0e6dc;backdrop-filter:blur(12px)}
.ref-topbar>strong{text-align:center;font-size:17px;color:#231e1b}.ref-back{border:0;background:transparent;font-size:32px;line-height:1;color:#201b17;text-align:left;padding:0 4px}.ref-top-actions{justify-self:end;width:62px;height:30px;border:1px solid #eee2d7;border-radius:999px;background:#fff;display:flex;align-items:center;justify-content:space-evenly}.ref-top-actions span:first-child{font-size:13px;letter-spacing:-1px;transform:translateY(-2px)}.ref-top-actions .mini-ring{width:15px;height:15px;border:2px solid #302923;border-radius:50%;position:relative}.ref-top-actions .mini-ring::after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:#302923;left:50%;top:50%;transform:translate(-50%,-50%)}
.ref-upload-grid{gap:16px}.ref-upload-grid .upload-card{min-height:205px;border-radius:16px;border:1.5px dashed #e8cdb3;background:#fffefd;padding:10px}.ref-upload-grid .upload-card img{height:205px}.ref-upload-grid .upload-placeholder .avatar{font-size:48px;color:#d29b60}.ref-upload-grid .upload-placeholder strong{font-size:13px;margin-top:8px}.ref-upload-grid .upload-placeholder span{font-size:9px;margin-top:8px;color:#a99a8e}
.ref-notice{margin-top:12px;border:0;background:#fff1ed;color:#8d6d60;border-radius:10px;padding:10px 12px;text-align:center;font-size:10px;line-height:1.35}
.ref-section{margin-top:36px}.ref-section .section-title{margin-bottom:8px}.ref-section .section-title h2{font-size:15px;font-weight:800}.ref-section .section-title button{font-size:10px;color:#8e7a6a}
.template-strip{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 24px)/4);gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.template-strip::-webkit-scrollbar{display:none}.template-card-ref{position:relative;border:1px solid transparent;background:transparent;border-radius:10px;padding:0;overflow:visible;text-align:center}.template-card-ref img{width:100%;aspect-ratio:3/4;border-radius:8px;object-fit:cover;border:1px solid #eee0d4;background:#f2e6db}.template-card-ref strong{display:block;font-size:9px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-card-ref.selected img{border:2px solid #c9853d}.template-card-ref.selected::after{content:"✓";position:absolute;right:-3px;top:-3px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#c9853d;color:#fff;font-size:10px;font-weight:800}
.ratio-section-ref{margin-top:28px}.ref-ratio-grid{gap:12px}.ref-ratio-grid .ratio-btn{min-height:88px;border-radius:10px;background:#fffdfb}.ref-ratio-grid .ratio-btn strong{font-size:13px}.ref-ratio-grid .ratio-btn span{display:block;margin-top:5px;font-size:10px}.ref-ratio-grid .ratio-btn.selected{position:relative;border-color:#c9853d;background:#fffaf4;color:#6f533c}.ref-ratio-grid .ratio-btn.selected::after{content:"✓";position:absolute;right:-5px;bottom:-5px;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#c9853d;color:#fff;font-size:10px}
.wedding-action{margin-top:22px;text-align:center}.wedding-action .primary-btn{margin-top:0;min-height:48px;border-radius:999px;font-family:"Songti SC","STSong",serif;font-size:16px}.wedding-action>div{margin-top:9px;font-size:10px;color:#a18e7c}

/* 参考图第 3 屏：预览 */
.preview-page,.plans-page{padding-top:100px}
.ref-preview-notice{margin:0;border:0;background:#fff2ee;color:#a16e64;border-radius:10px;padding:9px 12px;text-align:center;font-size:9.5px}
.ref-preview-section{margin-top:12px}.ref-preview-grid{gap:8px}.ref-preview-grid .preview-card{border-radius:12px;background:#efe3d7}.ref-preview-grid .preview-card img{aspect-ratio:3/4;border-radius:10px}.ref-preview-grid .preview-card.selected{border-color:#c9853d;box-shadow:0 5px 16px rgba(177,111,48,.15)}.ref-preview-grid .preview-card button{right:7px;top:7px;bottom:auto;width:25px;height:25px;background:#fff;border:2px solid #d39754;color:#c57b31}.ref-preview-grid .watermark{font-family:"Songti SC","STSong",serif;font-size:22px;font-weight:500;transform:none;color:rgba(255,255,255,.74)}
.preview-tip{margin-top:10px;background:#fff4ef;color:#c07a72;border-radius:10px;padding:8px 10px;font-size:9.5px;text-align:center}.ref-action-row{margin-top:10px;grid-template-columns:1fr 1fr 1.16fr}.ref-action-row button{min-height:44px;border-radius:14px;font-size:12px}.ref-action-row .main{background:linear-gradient(90deg,#bd7d39,#e2b777);box-shadow:0 7px 15px rgba(171,106,43,.2)}.preview-safe{text-align:center;margin-top:12px;color:#9a8776;font-size:9.5px}

/* 参考图第 4 屏：套餐 / 解锁 */
.unlock-banner{margin:0 -18px 14px;padding:9px 18px;text-align:center;background:#fff2ee;color:#a56863;font-size:10px}
.ref-plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.ref-plan-grid .plan-card{min-width:0;min-height:300px;border:1px solid #ead8c7;border-radius:15px;padding:18px 8px 12px;text-align:center;background:#fffaf4;box-shadow:0 5px 16px rgba(91,64,43,.05)}.ref-plan-grid .plan-card.recommended{border:1.5px solid #dc6d77;background:linear-gradient(165deg,#fff0f1 0%,#fff7f6 40%,#fffdf9 100%);box-shadow:0 8px 22px rgba(216,111,121,.18)}.ref-plan-grid .plan-card .rec{top:-10px;right:50%;transform:translateX(50%);padding:4px 12px;font-size:10px}.ref-plan-grid .plan-name{font-family:"Songti SC","STSong",serif;font-size:17px}.plan-tag{display:inline-block;margin-top:4px;padding:3px 7px;border-radius:999px;background:#fff0e5;color:#b67a45;font-size:8px}.ref-plan-grid .recommended .plan-tag{background:#fff0f1;color:#d26670}.ref-plan-grid .price{margin-top:9px;font-size:26px;color:#9c4d3f}.ref-plan-grid .recommended .price{color:#d85f69}.ref-plan-grid .plan-card ul{margin:10px 0 12px;text-align:left}.ref-plan-grid .plan-card li{font-size:8.5px;line-height:1.35;margin:6px 0;color:#6f5b4b;white-space:normal}.ref-plan-grid .plan-card li::before{font-size:9px;margin-right:3px}.plan-mini-btn{width:100%;min-height:36px;border:0;border-radius:999px;background:#fff0dd;color:#9f6732;font-size:10px;font-weight:800}.ref-plan-grid .recommended .plan-mini-btn{background:#df6370;color:#fff}.plan-mini-btn.payment-pending{opacity:.65}
.unlock-benefits-wrap{margin-top:52px}.unlock-benefits-wrap h2{font-size:14px;margin:0 0 10px}.unlock-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:#fff7ef;border-radius:14px;padding:14px 6px}.unlock-benefits>div{text-align:center;min-width:0}.unlock-benefits span{display:block;color:#c7823b;font-size:20px;margin-bottom:7px}.unlock-benefits strong{display:block;font-size:9px;white-space:nowrap}.unlock-benefits small{display:block;margin-top:4px;color:#9f8d7d;font-size:7.5px}.unlock-primary{margin-top:55px;border-radius:999px;min-height:50px;font-family:"Songti SC","STSong",serif;font-size:16px}.plans-page .unlock-primary.payment-pending{background:linear-gradient(90deg,#c6843f,#e8c08a,#c47d37);color:#fff;opacity:.55}.unlock-safe{text-align:center;margin-top:11px;color:#9c8979;font-size:9px}

.admin-table{width:100%;border-collapse:collapse;font-size:11px}.admin-table th,.admin-table td{padding:10px 8px;border-bottom:1px solid #eee1d4;text-align:left}.admin-table th{color:var(--muted);font-weight:700}.admin-mini{border:1px solid var(--line);background:#fffaf5;color:var(--muted);border-radius:999px;padding:5px 8px;font-size:9px;font-weight:800}.admin-mini.on{border-color:#c7dccd;background:#edf7f0;color:#4f7c61}.metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.metric{background:#fffdf9;border:1px solid var(--line);border-radius:18px;padding:14px}.metric strong{display:block;font-size:22px}.metric span{font-size:10px;color:var(--muted)}
.toast-root{position:fixed;z-index:1000;left:50%;bottom:110px;transform:translateX(-50%);width:min(calc(100% - 34px),420px);pointer-events:none}.toast{background:#2f2721;color:#fff;border-radius:16px;padding:12px 14px;font-size:12px;box-shadow:0 14px 35px rgba(0,0,0,.2);animation:toast-in .18s ease}.toast.error{background:#8f4141}.toast.success{background:#446d55}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.hidden{display:none!important}
@media (max-width:430px){.page{padding-left:14px;padding-right:14px}.hero{min-height:420px}.hero-photo{height:226px}.hero h1{font-size:30px}.template-grid{grid-template-columns:repeat(2,1fr)}.content-grid{grid-template-columns:1fr 1fr}.action-row{grid-template-columns:1fr 1fr}.action-row .main{grid-column:1/-1}.ratio-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:430px){
  .home-page{padding-left:0;padding-right:0}
  .home-brand-shell{height:58px}
  .home-brand-shell .home-statusbar{height:20px;padding:6px 14px 0;font-size:9px}
  .home-brand-shell .home-statusbar span{font-size:8px}
  .home-brand-shell .home-topbar{top:20px;height:38px;padding:0 10px;grid-template-columns:42px 1fr 52px}
  .home-brand-shell .home-topbar>strong{font-size:14px}
  .home-brand-shell .home-top-actions{width:48px;height:24px}
  .home-brand-shell .home-top-actions .mini-ring{width:12px;height:12px;border-width:1.5px}
  .home-page .home-hero{height:292px;margin:0 1px;border-radius:20px}
  .home-page .home-hero-image{height:100%;border-radius:20px;object-position:center 25%}
  .home-page .home-hero-shade{background:linear-gradient(180deg,rgba(255,250,245,0) 0%,rgba(255,250,245,0) 44%,rgba(255,248,240,.18) 57%,rgba(255,248,240,.84) 82%,#fffaf5 100%)}
  .home-page .home-hero-copy{left:14px;right:14px;bottom:10px}
  .home-page .home-hero-copy h1{font-size:25px;line-height:1.08;margin-bottom:5px}
  .home-page .home-hero-copy p{font-size:8.5px;line-height:1.3}
  .home-page .primary-btn.home-primary{min-height:38px;margin-top:10px;font-size:14px}
  .home-page .primary-btn.home-primary span{font-size:12px}
  .home-page .home-service-section{margin-top:9px;padding-left:14px;padding-right:14px}
  .home-page .home-service-section .section-title{margin-bottom:6px}
  .home-page .home-service-section .section-title h2{font-size:12px}
  .home-page .home-service-section .section-title button{font-size:8px}
  .home-page .service-grid{gap:6px}
  .home-page .service-card{min-height:88px}
  .home-page .service-card img{height:62px}
  .home-page .service-card:nth-child(n+5){height:40px;min-height:40px}
  .home-page .service-card:nth-child(n+5) img{height:40px;width:58px;flex-basis:58px}
  .home-page .service-card:nth-child(n+5) .service-card-label{font-size:9px}
  .home-page .bottom-nav{height:calc(59px + env(safe-area-inset-bottom));padding-left:12px;padding-right:12px}
}

/* 系统状态栏由设备/浏览器负责，产品页面不伪造时间、Wi‑Fi 和电量 */
.home-brand-shell{height:58px}
.home-brand-shell .home-topbar{top:0;height:58px}
.ref-page{padding-top:84px}
.ref-topbar{top:0}
.preview-page,.plans-page{padding-top:84px}
@media (max-width:430px){
  .home-brand-shell .home-topbar{top:0;height:58px;padding:0 10px;grid-template-columns:42px 1fr 52px}
}

@media (max-width:430px){
  .home-page .home-hero-image{height:100%;border-radius:20px;object-position:center 25%}
  .home-page .home-hero-shade{background:linear-gradient(180deg,rgba(255,250,245,0) 0%,rgba(255,250,245,0) 44%,rgba(255,248,240,.18) 57%,rgba(255,248,240,.84) 82%,#fffaf5 100%)}
}
@media (min-width:720px){body{padding:28px 0}.app-shell{border-radius:32px;overflow:hidden;min-height:900px}.bottom-nav{bottom:28px;border-radius:0 0 32px 32px}.page{min-height:900px}}

/* 参考海报首页：品牌栏保持明亮、轻薄，避免被主视觉照片吞没 */
.home-statusbar{background:#fffdfb}
.home-topbar{background:rgba(255,253,250,.96);border-bottom:1px solid #f0e6dc;backdrop-filter:blur(12px)}
.home-top-actions span:first-child{font-size:10px;letter-spacing:.02em;font-weight:800;color:#a86c2f}
.ref-topbar>strong{font-size:14px;white-space:nowrap}
.template-strip{grid-auto-columns:calc((100% - 32px)/5);gap:8px}

/* 主页按参考海报第一台手机重组：顶栏与主视觉卡分层 */
.home-brand-shell{height:84px;position:relative;background:#fffdfb}
.home-brand-shell .home-statusbar{background:#fffdfb}
.home-brand-shell .home-topbar{background:#fffdfb;border-bottom:0;backdrop-filter:none}
.home-page .home-hero{height:390px;margin:0 15px;border-radius:24px;background:#f1e3d4;border:1px solid #edd7c0;box-shadow:0 10px 28px rgba(119,78,42,.09)}
.home-page .home-hero-image{inset:0 0 auto;height:100%!important;border-radius:24px;object-position:center 25%;filter:saturate(.92) contrast(.98) brightness(1.04)}
.home-page .home-hero-shade{background:linear-gradient(180deg,rgba(255,250,245,0) 0%,rgba(255,250,245,0) 34%,rgba(255,248,240,.2) 48%,rgba(255,248,240,.96) 75%,#fffaf5 100%)}
.home-page .home-hero-copy{left:18px;right:18px;bottom:16px}
.home-page .home-hero-copy h1{font-size:29px;margin-bottom:7px}
.home-page .home-hero-copy p{font-size:10.5px}
.home-page .primary-btn.home-primary{margin-top:19px;min-height:49px}
.home-page .home-service-section{margin-top:16px;padding-left:15px;padding-right:15px}
.home-page .service-card:nth-child(n+5){grid-column:span 2;min-height:44px;height:44px;display:flex;align-items:center;text-align:left}
.home-page .service-card:nth-child(n+5) img{width:66px;height:44px;flex:0 0 66px}
.home-page .service-card:nth-child(n+5) .service-card-label{padding:0 8px;font-size:10px}
.home-page .service-card:nth-child(n+5)::after{inset:0 0 0 40px}

/* 最终状态栏规则：系统时间、Wi‑Fi、电量不属于产品 UI */
.home-brand-shell{height:58px}
.home-brand-shell .home-topbar{top:0;height:58px}
.ref-page{padding-top:84px}
.ref-topbar{top:0}
.preview-page,.plans-page{padding-top:84px}
@media (max-width:430px){
  .home-page{padding-left:0;padding-right:0}
  .home-page .home-hero{height:292px;margin:0 1px;border-radius:20px}
  .home-page .home-hero-image{height:100%;border-radius:20px;object-position:center 25%}
  .home-page .home-hero-shade{background:linear-gradient(180deg,rgba(255,250,245,0) 0%,rgba(255,250,245,0) 44%,rgba(255,248,240,.18) 57%,rgba(255,248,240,.84) 82%,#fffaf5 100%)}
  .home-page .home-hero-copy{left:14px;right:14px;bottom:10px}
  .home-page .home-hero-copy h1{font-size:25px;line-height:1.08;margin-bottom:5px}
  .home-page .home-service-section{margin-top:9px;padding-left:14px;padding-right:14px}
  .home-page .bottom-nav{height:calc(59px + env(safe-area-inset-bottom))}
}

/* 窄屏参考手机的最终尺寸覆盖，必须位于主页通用覆盖之后 */
@media (max-width:430px){
  .home-page{padding-left:0;padding-right:0}
  .home-brand-shell{height:58px}
  .home-brand-shell .home-statusbar{height:20px;padding:6px 14px 0;font-size:9px}
  .home-brand-shell .home-statusbar span{font-size:8px}
  .home-brand-shell .home-topbar{top:20px;height:38px;padding:0 10px;grid-template-columns:42px 1fr 52px}
  .home-brand-shell .home-topbar>strong{font-size:14px}
  .home-brand-shell .home-top-actions{width:48px;height:24px}
  .home-brand-shell .home-top-actions .mini-ring{width:12px;height:12px;border-width:1.5px}
  .home-page .home-hero{height:292px;margin:0 1px;border-radius:20px}
  .home-page .home-hero-image{height:100%!important;border-radius:20px;object-position:center 25%}
  .home-page .home-hero-copy{left:14px;right:14px;bottom:10px}
  .home-page .home-hero-copy h1{font-size:23px;line-height:1.08;margin-bottom:5px}
  .home-page .home-hero-copy p{font-size:8.5px;line-height:1.3}
  .home-page .primary-btn.home-primary{min-height:38px;margin-top:10px;font-size:14px}
  .home-page .primary-btn.home-primary span{font-size:12px}
  .home-page .home-service-section{margin-top:9px;padding-left:14px;padding-right:14px}
  .home-page .home-service-section .section-title{margin-bottom:6px}
  .home-page .home-service-section .section-title h2{font-size:12px}
  .home-page .home-service-section .section-title button{font-size:8px}
  .home-page .service-grid{gap:6px}
  .home-page .service-card{min-height:88px}
  .home-page .service-card img{height:62px}
  .home-page .service-card:nth-child(n+5){height:40px;min-height:40px}
  .home-page .service-card:nth-child(n+5) img{height:40px;width:58px;flex-basis:58px}
  .home-page .service-card:nth-child(n+5) .service-card-label{font-size:9px}
}

/* 最终覆盖：状态栏不属于产品 UI，由设备/浏览器负责渲染 */
.home-brand-shell{height:58px}
.home-brand-shell .home-topbar{top:0;height:58px}
.ref-page{padding-top:84px}
.ref-topbar{top:0}
.preview-page,.plans-page{padding-top:84px}
@media (max-width:430px){
  .home-brand-shell .home-topbar{top:0;height:58px;padding:0 10px;grid-template-columns:42px 1fr 52px}
}

/* 最终首页主视觉：照片覆盖整张主视觉卡，文案叠加在底部渐变上 */
@media (max-width:430px){
  .home-page .home-hero-image{height:100%!important;border-radius:20px;object-position:center 25%}
  .home-page .home-hero-shade{inset:0!important;background:linear-gradient(180deg,rgba(255,250,245,0) 0%,rgba(255,250,245,0) 32%,rgba(255,248,240,.5) 48%,rgba(255,248,240,.92) 64%,#fffaf5 76%,#fffaf5 100%)!important}
  .home-page .home-hero{height:266px;margin:0;border:0;border-radius:0;box-shadow:none}
  .home-page .home-hero-image{border-radius:0}
  .home-page .home-hero-copy{left:24px;right:24px}
  .home-page .home-hero-copy h1{font-size:25px;position:relative;top:-13px}
  .home-page .service-card:nth-child(n+5){transform:translateY(6px)}
}

/* 参考首页首屏最终校准：产品顶栏覆盖在主图上，避免顶部出现断层 */
@media (max-width:430px){
  .home-brand-shell{position:absolute;z-index:5;top:0;left:0;right:0;height:58px;background:transparent;pointer-events:none}
  .home-brand-shell .home-topbar{position:absolute;top:0;background:linear-gradient(180deg,rgba(255,253,250,.8),rgba(255,253,250,.12));border-bottom:0;backdrop-filter:none;pointer-events:auto}
  .home-page .home-hero{height:324px}
  .home-page .home-hero-shade{background:linear-gradient(180deg,rgba(255,250,245,0) 0%,rgba(255,250,245,0) 36%,rgba(255,248,240,.42) 52%,rgba(255,248,240,.9) 69%,#fffaf5 78%,#fffaf5 100%)!important}
  .home-page .home-hero-copy h1{font-family:"Noto Serif CJK SC","Songti SC","STSong",serif;font-size:25px;letter-spacing:0}
  .home-page .hero-heart{font-family:"Songti SC","STSong",serif;font-size:25px;color:#b97835;display:inline-block;transform:translate(2px,4px) rotate(-12deg)}
  .home-page .home-btn-spark{font-size:12px;margin-left:6px}
  .home-page .primary-btn.home-primary{width:252px;max-width:100%;margin-left:auto;margin-right:auto}
  .home-page .service-card:nth-child(n+5){transform:translateY(10px)}
}

/* 首页服务卡片最终细节：参考图的上线标签位于标题下方，图片不因“即将上线”而变糊 */
@media (max-width:430px){
  .home-page .service-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  .home-page .service-card.coming{opacity:1}
  .home-page .service-card:nth-child(2) em,
  .home-page .service-card:nth-child(3) em,
  .home-page .service-card:nth-child(4) em{
    top:auto;right:0;bottom:3px;left:0;transform:none;padding:0;background:transparent;color:#c77f69;font-size:7px;line-height:1;text-align:center;border-radius:0
  }
  .home-page .service-card:nth-child(2) .service-card-label,
  .home-page .service-card:nth-child(3) .service-card-label,
  .home-page .service-card:nth-child(4) .service-card-label{padding-top:5px;padding-bottom:10px}
  .home-page .service-card:nth-child(n+5) em{
    top:50%;right:7px;bottom:auto;left:auto;transform:translateY(-50%);padding:3px 4px;background:#f7e2d5;color:#c27f6b;font-size:7px;line-height:1;border-radius:5px
  }
  .home-page .service-card:nth-child(n+5) .service-card-label{padding-left:8px;padding-right:48px}
}

/* 参考图第二屏：创作中心的小卡片布局 */
@media (max-width:430px){
  .create-reference-page{padding:0 15px 74px;background:#fffaf6}
  .create-ref-topbar{height:50px;position:relative;display:flex;align-items:center;justify-content:center}
  .create-ref-topbar strong{font-family:"Songti SC","STSong",serif;font-size:16px;line-height:1;font-weight:800;color:#2c211a}
  .create-ref-crown{position:absolute;right:3px;top:13px;width:21px;height:21px;color:#c9823b}
  .create-ref-crown svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
  .create-ref-heading{margin:7px 0 9px;font-family:"Songti SC","STSong",serif;font-size:13px;line-height:1.2;font-weight:800;color:#2d221b}
  .create-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:6px;row-gap:3px}
  .create-type-card{position:relative;height:117px;min-width:0;padding:0;border:1px solid #f0dfd1;border-radius:13px;overflow:hidden;background:#fff9f2;text-align:center;box-shadow:0 2px 5px rgba(111,77,49,.03)}
  .create-type-card.active{border:1.5px solid #c98035;box-shadow:0 4px 10px rgba(186,117,46,.1)}
  .create-type-card.coming{opacity:1}
  .create-type-card img{width:100%;height:78px;object-fit:cover;object-position:center;display:block}
  .create-type-label{height:38px;display:flex;align-items:center;justify-content:center;padding:0 8px;font-family:"Songti SC","STSong",serif;color:#3d2b20;font-size:14px;line-height:1;white-space:nowrap}
  .create-type-icon{position:absolute;right:7px;bottom:8px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#c48643;color:#fff;font:800 10px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
  .create-type-card.coming .create-type-icon{display:none}
  .create-hot-section{margin-top:12px;border-top:1px solid #f0e1d4;padding-top:11px}
  .create-hot-section h2{margin:0 0 9px;font-family:"Songti SC","STSong",serif;font-size:13px;line-height:1;font-weight:800;color:#2d221b}
  .create-hot-tags{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .create-hot-tags button{min-width:0;height:24px;padding:0 3px;border:1px solid #efdfd0;border-radius:9px;background:#fffdf9;color:#765e4c;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .create-reference-page .bottom-nav{height:calc(59px + env(safe-area-inset-bottom));padding:4px 12px env(safe-area-inset-bottom);background:rgba(255,253,249,.97);box-shadow:0 -4px 18px rgba(79,54,35,.04)}
}

/* 参考图第三屏：上传照片 / 选模板 */
@media (max-width:430px){
  .wedding-page{padding:50px 14px 20px;background:#fffaf6}
  .wedding-page .ref-topbar{top:0;height:50px;padding:0 10px;grid-template-columns:34px 1fr 52px;background:#fffdfb;border-bottom:1px solid #f0e6dc}
  .wedding-page .ref-topbar>strong{font-size:14px}
  .wedding-page .ref-back{font-size:29px;padding:0 2px}
  .wedding-page .ref-top-actions{width:50px;height:25px}
  .wedding-page .ref-top-actions span:first-child{font-size:11px}
  .wedding-page .ref-top-actions .mini-ring{width:13px;height:13px;border-width:1.6px}
  .wedding-page .ref-top-actions .mini-ring::after{width:3px;height:3px}
  .wedding-page .ref-upload-grid{grid-template-columns:repeat(2,128px);gap:10px}
  .wedding-page .ref-upload-grid .upload-card{height:175px;min-height:175px;padding:0;border-radius:13px;border:1px solid #f0dfd1;background:#fffdfb;display:block}
  .wedding-page .ref-upload-grid .upload-placeholder{height:100%;position:relative;display:flex;flex-direction:column;align-items:center;padding:15px 5px 7px;text-align:center}
  .wedding-page .ref-upload-grid .upload-placeholder .avatar{width:48px;height:56px;margin:8px 0 0;opacity:1;line-height:1}
  .wedding-page .ref-upload-grid .upload-placeholder .avatar svg{width:48px;height:56px;fill:#e6bd96;stroke:none}
  .wedding-page .ref-upload-grid .upload-card:nth-child(2) .upload-placeholder .avatar svg{fill:#edabb9}
  .wedding-page .ref-upload-grid .upload-placeholder strong{margin-top:0;font-family:"Songti SC","STSong",serif;font-size:12px;line-height:1.2}
  .wedding-page .ref-upload-grid .upload-placeholder .upload-plus{position:absolute;top:96px;width:25px;height:25px;border:1px solid #e3c7aa;border-radius:50%;background:#fff;color:#c88545;font:400 22px/22px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
  .wedding-page .ref-upload-grid .upload-card:nth-child(2) .upload-placeholder .upload-plus{border-color:#efc5cc;color:#de7180}
  .wedding-page .ref-upload-grid .upload-placeholder>span:not(.upload-plus){margin-top:38px;color:#a89b90;font-size:9px;line-height:1}
  .wedding-page .ref-upload-grid .upload-placeholder small{margin-top:9px;color:#a89b90;font-size:9px;line-height:1}
  .wedding-page .ref-notice{height:23px;margin-top:10px;padding:6px 8px;border-radius:8px;background:#fff1ed;color:#8d6d60;font-size:8px;line-height:1.35;white-space:nowrap}
  .wedding-page .ref-section{margin-top:14px}
  .wedding-page .ref-section .section-title{margin-bottom:7px}
  .wedding-page .ref-section .section-title h2{font-size:12px}
  .wedding-page .ref-section .section-title button{font-size:9px}
  .wedding-page .template-strip{grid-auto-columns:50px;gap:7px;padding-bottom:0}
  .wedding-page .template-card-ref img{width:50px;height:84px;aspect-ratio:auto;border-radius:8px}
  .wedding-page .template-card-ref strong{font-size:8px;margin-top:3px}
  .wedding-page .template-card-ref.selected::after{right:-3px;top:69px;width:16px;height:16px;font-size:9px}
  .wedding-page .ratio-section-ref{margin-top:23px}
  .wedding-page .ratio-section-ref .section-title{margin-bottom:0}
  .wedding-page .ref-ratio-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .wedding-page .ref-ratio-grid .ratio-btn{min-height:54px;height:54px;border-radius:9px}
  .wedding-page .ref-ratio-grid .ratio-btn strong{font-size:11px}
  .wedding-page .ref-ratio-grid .ratio-btn span{margin-top:4px;font-size:9px}
  .wedding-page .ref-ratio-grid .ratio-btn.selected::after{right:-4px;bottom:-4px;width:16px;height:16px;font-size:9px}
  .wedding-page .wedding-action{margin-top:15px}
  .wedding-page .wedding-action .primary-btn{width:254px;max-width:100%;margin:0 auto;min-height:36px;height:36px;font-size:14px}
  .wedding-page .wedding-action>div{margin-top:8px;font-size:8px}
}

/* 参考图第四屏：预览效果 */
@media (max-width:430px){
  .preview-page{padding:45px 10px 20px;background:#fffaf6}
  .preview-page .ref-topbar{top:0;height:44px;padding:0 10px;grid-template-columns:34px 1fr 52px;background:#fffdfb;border-bottom:1px solid #f0e6dc}
  .preview-page .ref-topbar>strong{font-size:14px}
  .preview-page .ref-back{font-size:29px;padding:0 2px}
  .preview-page .ref-top-actions{width:50px;height:25px}
  .preview-page .ref-top-actions span:first-child{font-size:11px}
  .preview-page .ref-top-actions .mini-ring{width:13px;height:13px;border-width:1.6px}
  .preview-page .ref-preview-notice{height:27px;margin:0;padding:7px 8px;border-radius:8px;font-size:8px;line-height:1.45;white-space:nowrap}
  .preview-page .ref-preview-section{margin-top:12px}
  .preview-page .ref-preview-grid{width:273px;grid-template-columns:repeat(2,133px);grid-template-rows:180px 187px;column-gap:5px;row-gap:11px}
  .preview-page .ref-preview-grid .preview-card{width:133px;height:180px;border:1px solid transparent;border-radius:11px;background:#efe3d7}
  .preview-page .ref-preview-grid .preview-card:nth-child(n+3){height:187px}
  .preview-page .ref-preview-grid .preview-card.selected{border:1.5px solid #c9853d;box-shadow:0 4px 12px rgba(177,111,48,.12)}
  .preview-page .ref-preview-grid .preview-card img{width:100%;height:100%;aspect-ratio:auto;border-radius:10px;object-fit:cover}
  .preview-page .ref-preview-grid .watermark{font-family:"Songti SC","STSong",serif;font-size:28px;font-weight:500;transform:none;color:rgba(255,255,255,.76);text-shadow:0 1px 5px rgba(0,0,0,.22)}
  .preview-page .ref-preview-grid .preview-card button{opacity:0;right:0;top:0;width:100%;height:100%;border:0;background:transparent;border-radius:0}
  .preview-page .preview-tip{height:27px;margin-top:14px;padding:7px 8px;border-radius:8px;font-size:8px;line-height:1.45;white-space:nowrap}
  .preview-page .ref-action-row{margin-top:13px;grid-template-columns:1fr 1fr 1.08fr;gap:8px}
  .preview-page .ref-action-row .main{grid-column:auto}
  .preview-page .ref-action-row button{min-height:34px;height:34px;border-radius:10px;font-size:11px}
  .preview-page .ref-action-row .main{font-size:11px}
  .preview-page .preview-safe{margin-top:9px;font-size:8px}
}

/* 参考图第五屏：解锁高清 / 我的作品 */
@media (max-width:430px){
  .plans-page{padding:44px 10px 16px;background:#fffaf6;overflow:hidden}
  .plans-page .ref-topbar{top:0;height:44px;padding:0 10px;grid-template-columns:34px 1fr 52px;background:#fffdfb;border-bottom:1px solid #f0e6dc}
  .plans-page .ref-topbar>strong{position:absolute;left:50%;transform:translateX(-50%);font-size:13px;white-space:nowrap}
  .plans-page .ref-back{font-size:29px;padding:0 2px}
  .plans-page .ref-top-actions{width:50px;height:25px}
  .plans-page .ref-top-actions span:first-child{font-size:11px}
  .plans-page .ref-top-actions .mini-ring{width:13px;height:13px;border-width:1.6px}
  .plans-page .unlock-banner{height:28px;margin:0;padding:7px 8px;border:0;border-radius:8px;background:#fff1ed;color:#a16e64;font-size:8px;line-height:1.45;white-space:nowrap}
  .plans-page .unlock-heart{color:#db6871;font-size:9px}
  .plans-page .ref-plan-grid{margin-top:27px;grid-template-columns:.9fr 1fr .9fr;gap:4px;align-items:start}
  .plans-page .ref-plan-grid .plan-card{height:210px;min-height:210px;margin:0;padding:14px 6px 8px;border:1px solid #ead8c7;border-radius:13px;background:#fffaf4;box-shadow:0 4px 12px rgba(91,64,43,.05);text-align:center}
  .plans-page .ref-plan-grid .plan-card.recommended{height:223px;min-height:223px;transform:translateY(-10px);border:1.5px solid #dc6d77;background:linear-gradient(165deg,#fff0f1 0%,#fff7f6 40%,#fffdf9 100%);box-shadow:0 8px 22px rgba(216,111,121,.18)}
  .plans-page .ref-plan-grid .plan-card .rec{top:-10px;right:50%;transform:translateX(50%);padding:4px 11px;border-radius:999px;background:#df6974;color:#fff;font-size:9px;line-height:1;font-weight:800;white-space:nowrap}
  .plans-page .ref-plan-grid .plan-name{font-family:"Songti SC","STSong",serif;font-size:13px;line-height:1.1;font-weight:800;white-space:nowrap}
  .plans-page .ref-plan-price{display:flex;align-items:baseline;justify-content:center;gap:1px;margin-top:7px;height:29px;color:#9c4d3f;white-space:nowrap}
  .plans-page .ref-plan-price>span{font-size:11px;font-weight:700}
  .plans-page .ref-plan-price>strong{font-size:22px;line-height:1;font-weight:800;letter-spacing:-.04em}
  .plans-page .ref-plan-price>del{margin-left:4px;color:#a99787;font-size:8px}
  .plans-page .recommended .ref-plan-price{color:#d85f69}
  .plans-page .ref-plan-grid .plan-card ul{padding:0 1px;margin:10px 0 0;text-align:left;list-style:none}
  .plans-page .ref-plan-grid .plan-card li{margin:5px 0;color:#6f5b4b;font-size:8px;line-height:1.28;white-space:nowrap;letter-spacing:-.02em}
  .plans-page .ref-plan-grid .plan-card li::before{content:"✓";display:inline-block;margin-right:3px;color:#c97931;font-size:9px;font-weight:800}
  .plans-page .ref-plan-grid .recommended li::before{color:#df6974}
  .plans-page .plan-mini-btn{position:absolute;left:7px;right:7px;bottom:9px;width:auto;height:30px;min-height:30px;padding:0;border:0;border-radius:999px;background:#fff0dd;color:#a86d35;font-size:9px;font-weight:800;white-space:nowrap}
  .plans-page .ref-plan-grid .recommended .plan-mini-btn{bottom:11px;background:#df6370;color:#fff}
  .plans-page .plan-mini-btn.payment-pending{opacity:.7}
  .plans-page .plans-work-section{margin-top:1px;border-top:1px solid #f0e2d5;padding-top:10px}
  .plans-page .plans-work-section .section-title{height:17px;margin:0 0 11px;align-items:center}
  .plans-page .plans-work-section .section-title h2{font-family:"Songti SC","STSong",serif;font-size:13px;line-height:1;font-weight:800}
  .plans-page .plans-work-section .section-title button{padding:0;border:0;background:transparent;color:#9a897c;font-size:9px;line-height:1}
  .plans-page .plans-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .plans-page .plans-work-card{min-width:0;height:156px;border:1px solid #ead8c7;border-radius:10px;overflow:hidden;background:#fffaf4;box-shadow:0 3px 9px rgba(91,64,43,.04)}
  .plans-page .plans-work-image{height:88px;background:#efe0d3;overflow:hidden}
  .plans-page .plans-work-image img{width:100%;height:100%;object-fit:cover;object-position:center}
  .plans-page .plans-work-image-empty{display:grid;place-items:center;width:100%;height:100%;color:#c98b52;font-size:24px}
  .plans-page .plans-work-body{padding:5px 7px 7px}
  .plans-page .plans-work-title{display:flex;align-items:center;gap:3px;min-width:0;height:12px}
  .plans-page .plans-work-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4f3d2f;font-size:8px;line-height:1;font-weight:700}
  .plans-page .plans-work-status{flex:0 0 auto;padding:2px 4px;border-radius:4px;background:#f7e6d3;color:#b47943;font-size:7px;line-height:1;white-space:nowrap}
  .plans-page .plans-work-status.locked{background:#fff0df;color:#b47531}
  .plans-page .plans-work-body time{display:block;margin-top:3px;color:#9b897b;font-size:7px;line-height:1}
  .plans-page .plans-work-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:8px}
  .plans-page .work-card-action{min-width:0;height:22px;padding:0 2px;border:1px solid #ecd6bd;border-radius:8px;background:#fff7ed;color:#a36b37;font-size:8px;line-height:1;white-space:nowrap}
  .plans-page .work-card-action.primary{background:#fff0df;color:#a36b37}
  .plans-page .plans-work-empty{grid-column:1/-1;padding:26px 0;text-align:center;color:#9a897c;font-size:10px}
  .plans-page .plans-safe{height:28px;margin-top:13px;padding:8px 4px;border-radius:10px;background:#fff0e3;color:#9b806e;text-align:center;font-size:8px;line-height:1.45;white-space:nowrap}
}

/* ============================================================
   通用视觉还原覆盖（桌面端 & 移动端均生效）
   ============================================================ */

/* --- 修复创作中心皇冠图标 BUG --- */
.create-reference-page{padding:0 18px 80px;background:linear-gradient(180deg,#fffaf5 0%,#fff5ec 100%);min-height:100vh}
.create-ref-topbar{height:56px;position:relative;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #f0e6dc}
.create-ref-topbar strong{font-family:"Songti SC","STSong",serif;font-size:18px;font-weight:800;color:#2c211a}
.create-ref-crown{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:24px;height:24px;color:#c9823b}
.create-ref-crown svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.create-ref-heading{margin:20px 0 14px;font-family:"Songti SC","STSong",serif;font-size:16px;font-weight:800;color:#2d221b}
.create-type-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.create-type-card{position:relative;min-height:140px;padding:0;border:1px solid #f0dfd1;border-radius:16px;overflow:hidden;background:#fff9f2;text-align:center;box-shadow:0 4px 12px rgba(111,77,49,.05);transition:.15s all}
.create-type-card.active{border:1.5px solid #c98035;box-shadow:0 6px 16px rgba(186,117,46,.12)}
.create-type-card.coming{opacity:.7}
.create-type-card img{width:100%;height:92px;object-fit:cover;display:block}
.create-type-label{height:44px;display:flex;align-items:center;justify-content:center;padding:0 6px;font-family:"Songti SC","STSong",serif;color:#3d2b20;font-size:13px;white-space:nowrap}
.create-type-icon{position:absolute;right:8px;bottom:10px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#c48643;color:#fff;font:800 11px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.create-type-card.coming .create-type-icon{display:none}
.create-type-ai-badge{position:absolute;left:8px;top:8px;z-index:2;width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#c68138,#e0a968);color:#fff;font:800 11px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;display:grid;place-items:center;box-shadow:0 3px 8px rgba(198,129,56,.35)}
.create-type-card .coming-badge{position:absolute;top:8px;right:8px;z-index:2;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.88);color:#a78369;font-size:9px;font-weight:800;letter-spacing:.02em;backdrop-filter:blur(4px)}
.create-hot-section{margin-top:24px;border-top:1px solid #f0e1d4;padding-top:16px}
.create-hot-section h2{margin:0 0 12px;font-family:"Songti SC","STSong",serif;font-size:15px;font-weight:800;color:#2d221b}
.create-hot-tags{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.create-hot-tags button{min-width:0;height:32px;padding:0 6px;border:1px solid #efdfd0;border-radius:10px;background:#fffdf9;color:#765e4c;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* --- 首页服务卡片 4+2布局（与设计稿一致） --- */
.home-page .service-grid{grid-template-columns:repeat(4,1fr);gap:8px}
.home-page .service-card{min-height:100px;border-radius:12px}
.home-page .service-card img{height:70px}
.home-page .service-card .service-card-placeholder{height:70px;display:grid;place-items:center;background:linear-gradient(145deg,#faf0e4,#f5e6d6);color:#c9a97a}
.home-page .service-card .service-card-placeholder svg{width:28px;height:28px;opacity:.7}
.home-page .service-card .service-card-label{padding:6px 2px 0;font-size:10px}
.home-page .service-card:nth-child(n+5){grid-column:span 2;min-height:100px;height:auto;display:block;text-align:center}
.home-page .service-card:nth-child(n+5) img{width:100%;height:70px;flex:none}
.home-page .service-card:nth-child(n+5) .service-card-label{padding:6px 2px 0;font-size:10px}
.home-page .service-card:nth-child(n+5)::after{inset:26px 0 22px}

/* --- 首页底部四大特性区 --- */
.home-features-section{margin-top:24px;padding:0 15px 20px}
.features-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.feature-card{background:linear-gradient(145deg,#fffdf9,#fff8f0);border:1px solid #f0e2d4;border-radius:16px;padding:14px 12px;box-shadow:0 4px 12px rgba(91,64,43,.04)}
.feature-icon{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#fff0dd,#ffe8cc);display:grid;place-items:center;font-size:18px;margin-bottom:8px}
.feature-card strong{display:block;font-size:12px;font-weight:800;color:#3d2b20;font-family:"Songti SC","STSong",serif}
.feature-card p{margin:5px 0 0;font-size:10px;line-height:1.5;color:#8b7355}

/* --- 预览页空状态 --- */
.preview-empty{text-align:center;padding:50px 20px;background:linear-gradient(145deg,#fffaf5,#fff5ec);border-radius:16px;border:1px dashed #e0c9ae}
.preview-empty-icon{font-size:48px;margin-bottom:16px}
.preview-empty strong{display:block;font-size:16px;font-family:"Songti SC","STSong",serif;color:#3d2b20;margin-bottom:8px}
.preview-empty p{margin:0 0 20px;font-size:12px;line-height:1.6;color:#8b7355}
.preview-empty .primary-btn{width:auto;min-width:180px;margin:0 auto}

/* --- 整体视觉优化：背景装饰 --- */
body{background:
  radial-gradient(ellipse at 10% 0%,rgba(255,240,220,.6) 0%,transparent 50%),
  radial-gradient(ellipse at 90% 100%,rgba(255,228,225,.4) 0%,transparent 50%),
  linear-gradient(180deg,#fffaf5 0%,#fdf6ec 100%)}
.app-shell{background:linear-gradient(180deg,#fffdf9 0%,#fff8f0 100%);box-shadow:0 0 80px rgba(104,73,46,.1)}

/* --- 页面通用装饰：顶部柔光 --- */
.page::before{content:"";position:absolute;top:0;left:0;right:0;height:120px;background:radial-gradient(ellipse at 50% 0%,rgba(255,230,200,.35) 0%,transparent 70%);pointer-events:none;z-index:0}
.page{position:relative}
.page::before{z-index:0}

/* --- 按钮统一样式优化 --- */
.primary-btn{background:linear-gradient(100deg,#c68138 0%,#efcf9b 50%,#c27d34 100%);box-shadow:0 8px 20px rgba(169,104,43,.25),inset 0 1px 0 rgba(255,255,255,.4);font-family:"Songti SC","STSong",serif;letter-spacing:.03em}

/* --- 底部导航图标颜色 --- */
.nav-item.active{color:#b97835}
.nav-item .nav-icon svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* --- 套餐页面按钮优化 --- */
.plan-mini-btn{transition:.15s all}
.plan-mini-btn:active{transform:scale(.97)}

/* --- 上传卡片占位头像颜色 --- */
.ref-upload-grid .upload-placeholder .avatar svg{fill:#e6bd96}
.ref-upload-grid .upload-card:nth-child(2) .upload-placeholder .avatar svg{fill:#edabb9}

/* --- 响应式：窄屏特性区单列 --- */
@media (max-width:430px){
  .features-grid{grid-template-columns:1fr 1fr;gap:8px}
  .feature-card{padding:10px 8px}
  .feature-card p{font-size:9px}
  .create-type-grid{grid-template-columns:repeat(2,1fr)}
  .home-page .service-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .home-page .service-card{min-height:90px}
  .home-page .service-card img{height:62px}
  .home-page .service-card .service-card-placeholder{height:62px}
}

/* 流程回归：固定导航、弹性卡片与明确的交互状态。 */
.create-reference-page.page.no-nav{padding-bottom:calc(var(--nav-h) + 30px + env(safe-area-inset-bottom))}
.tip-icon svg,.preview-empty-icon svg{width:24px;height:24px;vertical-align:middle}
.preview-empty-icon svg{width:48px;height:48px}
.upload-placeholder .avatar svg{width:48px;height:56px}
.home-page .service-card:nth-child(n+5){height:44px;min-height:44px;display:flex;align-items:center;transform:none}
.home-page .service-card:nth-child(n+5) .service-card-placeholder{display:none}
.home-page .service-card:nth-child(n+5) .service-card-label{padding:0 7px;font-size:10px}
.home-page .service-card:nth-child(n+5) em{position:static;margin-left:auto;margin-right:6px;transform:none;font-size:7px}
.home-page .service-card:nth-child(n+5)::after{display:none}
.plans-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.plans-work-section{margin-top:20px}
.plans-work-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}
.plans-work-image{height:130px;overflow:hidden}
.plans-work-image img{width:100%;height:100%;object-fit:cover}
.plans-work-body{padding:8px;font-size:11px}
.plans-work-title{display:flex;gap:4px;align-items:center}
.plans-work-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plans-work-status{font-size:9px;white-space:nowrap;color:var(--gold)}
.plans-work-body time{display:block;color:var(--muted);margin:5px 0}
.plans-work-actions{display:flex;gap:4px;flex-wrap:wrap}
.work-card-action{border:1px solid var(--line);border-radius:8px;background:var(--surface-2);padding:6px;font-size:10px;color:var(--ink)}
.plans-safe{margin-top:15px;text-align:center;font-size:10px;color:var(--muted)}
.ref-plan-price{margin:12px 0;color:var(--gold)}
.ref-plan-price strong{font-size:24px}
.ref-plan-price del{margin-left:4px;font-size:10px;color:var(--muted)}
button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.55}
@media (hover:hover){button:not(:disabled):hover{filter:brightness(.96)}}
@media(max-width:430px){
  .wedding-page .ref-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .preview-page .ref-preview-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .preview-page .ref-preview-grid .preview-card,.preview-page .ref-preview-grid .preview-card:nth-child(n+3){width:100%;height:auto;aspect-ratio:3/4}
  .preview-page .ref-preview-grid .preview-card button{opacity:1;right:7px;top:7px;width:25px;height:25px;background:#fff;border-radius:50%}
  .wedding-page .ref-notice,.preview-page .ref-preview-notice,.preview-page .preview-tip{height:auto;white-space:normal}
  .create-type-card{height:auto;min-height:0}
  .plans-page .ref-plan-grid .plan-card li{white-space:normal}
}

.download-links{display:flex;flex-wrap:wrap;gap:12px;width:100%;padding:10px 0}.download-links a{color:var(--gold);font-size:12px}
.payment-notice{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.payment-notice strong{flex:0 0 100%}.payment-notice span{flex:1 1 220px}.payment-notice a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:999px;background:#c9853d;color:#fff;text-decoration:none;font-weight:800;white-space:nowrap}
