:root{--paper:#f6f2ea;--surface:#fffdf9;--ink:#24231f;--muted:#6d6b62;--line:#ded8cb;--gold:#9b673d;--gold-deep:#754a2b;--rose:#e9d5c5;--error:#a33732;--shadow:0 22px 60px rgba(47,35,22,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.55}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}a{color:inherit}img{max-width:100%;display:block}[hidden]{display:none!important}:focus-visible{outline:3px solid #bd7f48;outline-offset:3px}.app-shell{min-height:100vh;max-width:1440px;margin:auto;background:var(--paper)}.site-header{height:74px;padding:0 clamp(20px,4vw,58px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(246,242,234,.94);position:sticky;top:0;z-index:10;backdrop-filter:blur(16px)}.wordmark{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:24px;letter-spacing:.1em;font-weight:600}.brand-seal{width:32px;height:32px;border:1px solid var(--gold);display:grid;place-items:center;color:var(--gold);font-size:19px;letter-spacing:0}.header-account{border:1px solid var(--line);background:var(--surface);padding:9px 15px;border-radius:999px;color:var(--ink);font-size:13px;min-height:44px}.header-account:hover{border-color:var(--gold)}.view{display:none}.view.active{display:block}.hero{min-height:470px;position:relative;overflow:hidden;padding:clamp(44px,7vw,94px) clamp(24px,7vw,98px) 56px;background:radial-gradient(circle at 74% 49%,#d7b799 0,#ead8c4 23%,#f3e8d9 52%,#f6f2ea 78%)}.hero:before{content:"";position:absolute;width:480px;height:480px;right:7%;top:0;border:1px solid rgba(123,78,44,.14);border-radius:50%}.hero:after{content:"";position:absolute;width:350px;height:350px;right:11.5%;top:65px;border:1px solid rgba(123,78,44,.14);border-radius:50%}.hero-decoration{position:absolute;right:10%;top:70px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle at 28% 24%,#f6dfc7,#bd8d68 42%,#634b3e 72%,#322c2a);box-shadow:inset 0 0 60px rgba(255,247,227,.35),0 24px 70px rgba(89,55,32,.22)}.hero-decoration span{position:absolute;border:1px solid rgba(255,246,228,.26);border-radius:50%;inset:12%}.hero-decoration span:nth-child(2){inset:25%}.hero-decoration span:nth-child(3){inset:40%}.kicker,.section-index{display:block;color:var(--gold-deep);letter-spacing:.18em;font-size:12px;font-weight:600}.hero h1,.page-view h1,.admin-intro h1{font-family:"Songti SC","Noto Serif CJK SC",serif;font-weight:500;letter-spacing:.035em;line-height:1.25}.hero h1{font-size:clamp(48px,6.5vw,92px);margin:24px 0 24px;position:relative;z-index:1}.hero h1 em{font-style:normal;color:var(--gold-deep)}.hero-copy{font-size:16px;color:#574f45;max-width:470px;line-height:1.95;position:relative;z-index:1}.hero-note{display:flex;align-items:center;gap:12px;color:var(--gold-deep);font-size:12px;letter-spacing:.05em;margin-top:42px;position:relative;z-index:1}.note-line{height:1px;width:32px;background:var(--gold)}.content-section{padding:76px clamp(20px,7vw,98px)}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}.section-heading h1,.section-heading h2,.admin-panel h2{font-family:"Songti SC","Noto Serif CJK SC",serif;font-weight:500;line-height:1.3;margin:8px 0 0}.section-heading h2,.admin-panel h2{font-size:clamp(32px,3vw,46px)}.section-heading h1{font-size:clamp(38px,4vw,56px)}.section-heading>p{font-size:13px;color:var(--muted);margin:0 0 6px}.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.theme-card{position:relative;display:block;text-align:left;background:var(--surface);border:2px solid transparent;padding:0 0 18px;border-radius:15px;overflow:hidden;box-shadow:0 10px 28px rgba(47,35,22,.05);transition:transform .2s,border-color .2s,box-shadow .2s}.theme-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.theme-card.selected{border-color:var(--gold)}.theme-card img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#dfd0bd}.theme-card .theme-title{display:block;font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:24px;margin:14px 17px 2px}.theme-card .theme-description{display:block;color:var(--muted);font-size:13px;margin:0 17px}.theme-card .selected-mark{position:absolute;right:10px;top:10px;background:var(--surface);border-radius:999px;padding:5px 11px;font-size:12px;color:var(--gold-deep);display:none}.theme-card.selected .selected-mark{display:block}.empty-note{grid-column:1/-1;color:var(--muted);text-align:center;padding:54px 18px;border:1px dashed var(--line);border-radius:14px;background:var(--surface)}.upload-section{background:#eee7dd}.upload-card{min-height:230px;border:1.5px dashed #b59d85;border-radius:18px;background:rgba(255,253,249,.72);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;position:relative;overflow:hidden;padding:22px;text-align:center;transition:background .2s,border-color .2s}.upload-card:hover{background:#fffdf9;border-color:var(--gold)}.upload-card input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-card:focus-within{outline:3px solid #bd7f48;outline-offset:3px}.upload-icon{font-size:37px;line-height:1;color:var(--gold);margin-bottom:7px}.upload-label{font-size:18px;font-weight:600}.upload-help{font-size:12px;color:var(--muted)}.upload-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#292723}.privacy-note{font-size:13px;color:#645c53;line-height:1.8;margin:18px 0}.consent-line{display:flex!important;align-items:flex-start;gap:10px;line-height:1.6;font-size:13px;color:#5c554d;cursor:pointer}.consent-line input{accent-color:var(--gold-deep);width:18px;height:18px;min-width:18px;margin:2px 0 0}.primary-button{appearance:none;border:0;background:var(--ink);color:#fffdf9;border-radius:10px;min-height:54px;padding:12px 22px;display:inline-flex;align-items:center;justify-content:space-between;gap:36px;text-decoration:none;font-size:16px;font-weight:600;transition:background .2s,transform .2s}.primary-button:not(:disabled):hover{background:var(--gold-deep);transform:translateY(-2px)}.upload-section>.primary-button{min-width:260px;margin-top:24px}.form-hint{min-height:24px;color:var(--error);font-size:13px;margin:10px 0 0}.page-view{min-height:calc(100vh - 150px)}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.photo-card{background:var(--surface);border:1px solid var(--line);border-radius:13px;overflow:hidden}.photo-card img{width:100%;aspect-ratio:3/4;object-fit:cover;background:#ddd}.photo-card-body{padding:14px}.photo-card-body strong{display:block;font-size:15px}.photo-card-body span{display:block;font-size:12px;color:var(--muted);margin:4px 0 12px}.photo-card-body a{color:var(--gold-deep);font-size:13px;font-weight:600}.account-card{max-width:580px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:30px;box-shadow:var(--shadow)}.account-card .big-number{font-family:"Songti SC",serif;font-size:54px;line-height:1;color:var(--gold-deep)}.account-card p{color:var(--muted)}.text-button{border:0;background:none;color:var(--gold-deep);text-decoration:underline;text-underline-offset:5px;padding:12px 0;min-height:44px}.bottom-nav{display:none}.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px}.modal-scrim{position:absolute;inset:0;background:rgba(24,22,20,.57);backdrop-filter:blur(4px)}.modal-card{position:relative;width:min(100%,490px);max-height:calc(100svh - 40px);overflow:auto;background:var(--surface);border-radius:20px;padding:34px;box-shadow:0 25px 80px rgba(0,0,0,.25)}.modal-card h2{font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:34px;font-weight:500;margin:12px 0}.modal-close{position:absolute;right:16px;top:13px;width:44px;height:44px;border:0;background:transparent;font-size:30px;color:var(--muted)}.muted{color:var(--muted);font-size:14px;line-height:1.8}.stack-form{display:grid;gap:17px;margin-top:28px}.stack-form>label,.code-row label,.search-field{display:grid;gap:8px;font-size:13px;font-weight:600}.stack-form input:not([type=checkbox]),.stack-form textarea,.stack-form select,.search-field input{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);min-height:48px;padding:10px 13px;font-size:15px}.stack-form textarea{resize:vertical;line-height:1.6}.code-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.code-row button{height:48px;border:1px solid var(--gold);color:var(--gold-deep);border-radius:9px;background:transparent;padding:0 14px;font-size:13px}.progress-card{text-align:center}.progress-orbit{width:150px;height:150px;border:1px solid #d5b99b;border-radius:50%;margin:0 auto 24px;position:relative;animation:slow-turn 12s linear infinite}.progress-orbit span{position:absolute;border:1px solid #d5b99b;border-radius:50%;inset:14%}.progress-orbit span:nth-child(2){inset:29%}.progress-orbit span:nth-child(3){inset:44%;background:var(--gold)}.stage-track{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:25px 0}.stage-track span{height:5px;border-radius:99px;background:#ded8cb}.stage-track span.done{background:var(--gold)}.stage-track span.current{background:linear-gradient(90deg,var(--gold),#f3d7b3,var(--gold));background-size:200% 100%;animation:shimmer 1.5s linear infinite}.progress-card img{max-height:44vh;margin:20px auto;border-radius:10px}.progress-card .primary-button{width:100%;margin:14px 0}.admin-intro{padding:72px clamp(20px,7vw,98px) 48px;background:#e9ddd0}.admin-intro h1{font-size:clamp(44px,5vw,70px);margin:14px 0}.admin-intro p{color:var(--muted)}.admin-tabs{display:flex;gap:8px;overflow:auto;padding:14px clamp(20px,7vw,98px);border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:74px;z-index:9}.admin-tabs button{border:0;background:transparent;padding:10px 18px;min-height:44px;white-space:nowrap;border-radius:99px;color:var(--muted)}.admin-tabs button.active{background:var(--ink);color:white}.admin-panel{display:none;padding:52px clamp(20px,7vw,98px) 100px}.admin-panel.active{display:block}.admin-panel h2{margin:0 0 22px}.panel-heading{margin-bottom:28px}.panel-heading p{color:var(--muted)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.stat-card{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.stat-card strong{display:block;font-family:"Songti SC",serif;font-size:42px;font-weight:500}.stat-card span{color:var(--muted);font-size:13px}.card-form{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:26px;max-width:700px;margin:0 0 32px}.card-form h3{margin:0;font-family:"Songti SC",serif;font-size:24px;font-weight:500}.admin-list{display:grid;gap:12px}.admin-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:11px}.admin-row img{width:72px;height:72px;object-fit:cover;border-radius:8px}.admin-row-main{flex:1;min-width:0}.admin-row strong{display:block;font-size:16px}.admin-row small{display:block;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.admin-row button{min-height:44px;border:1px solid var(--gold);color:var(--gold-deep);background:transparent;border-radius:8px;padding:8px 12px;white-space:nowrap}.search-field{max-width:400px;margin-bottom:24px}.admin-login{max-width:590px;margin:auto}
@keyframes slow-turn{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position:200% 0}}
@media(max-width:800px){.theme-grid,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-grid{grid-template-columns:repeat(2,1fr)}.hero-decoration{right:-70px;opacity:.65}}
@media(max-width:600px){.site-header{height:62px;padding:0 18px}.wordmark{font-size:21px}.header-account{font-size:12px;padding:7px 12px}.hero{min-height:460px;padding:54px 22px 42px}.hero:before{right:-230px}.hero:after{right:-180px}.hero-decoration{width:260px;height:260px;top:92px;right:-120px;opacity:.43}.hero h1{font-size:55px;margin-top:32px}.hero-copy{font-size:15px;max-width:300px}.hero-note{font-size:11px;margin-top:44px}.content-section{padding:54px 20px}.section-heading{display:block}.section-heading>p{margin:8px 0 0}.theme-grid{gap:11px}.theme-card .theme-title{font-size:19px;margin:11px 11px 2px}.theme-card .theme-description{font-size:12px;margin:0 11px}.theme-card img{aspect-ratio:3/4}.theme-card{padding-bottom:13px}.upload-card{min-height:200px}.upload-section>.primary-button{width:100%}.gallery-grid{gap:11px}.photo-card-body{padding:11px}.photo-card-body strong{font-size:13px}.account-card{padding:24px}.bottom-nav{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;bottom:0;left:0;right:0;z-index:20;background:rgba(255,253,249,.96);border-top:1px solid var(--line);padding:7px max(12px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}.bottom-nav button{border:0;background:none;display:grid;place-items:center;gap:1px;min-height:48px;color:var(--muted);font-size:11px}.bottom-nav button.active{color:var(--gold-deep);font-weight:700}.nav-icon{font-size:20px;line-height:1.2}.app-shell{padding-bottom:calc(62px + env(safe-area-inset-bottom))}.modal{padding:0;align-items:end}.modal-card{width:100%;max-height:88svh;border-radius:22px 22px 0 0;padding:30px 23px calc(26px + env(safe-area-inset-bottom))}.admin-intro{padding:50px 20px 35px}.admin-tabs{top:62px;padding:8px 14px}.admin-panel{padding:35px 20px 100px}.card-form{padding:20px}.admin-row{padding:13px;flex-wrap:wrap}.stat-card{padding:16px}.stat-card strong{font-size:34px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* 手机应用布局：每屏只呈现一个创作步骤。 */
body{background:#e9e5df}
.app-shell{max-width:560px;min-height:100svh;background:#f8f6f2;box-shadow:0 18px 70px rgba(40,31,23,.12);padding-bottom:calc(72px + env(safe-area-inset-bottom))}
.site-header{height:60px;padding:0 20px;background:rgba(248,246,242,.96);border-bottom-color:#ece7df}
.wordmark{font-size:20px;letter-spacing:.04em}.brand-seal{width:30px;height:30px;font-size:18px;border-radius:8px}
.header-account{min-height:36px;padding:5px 12px;background:#fff;border-color:#e9e1d8;font-size:12px}
.content-section{padding:24px 20px 32px}
.create-step{min-height:calc(100svh - 134px)}
.app-heading{margin:4px 0 20px}.app-heading h1,.app-heading h2{font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:28px;font-weight:700;letter-spacing:-.025em;line-height:1.2;margin:7px 0 7px}.app-heading p{font-size:13px;color:var(--muted);margin:0}
.section-index{font-size:11px;letter-spacing:.06em}
.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.theme-card{border:1px solid #e7e0d7;border-radius:16px;padding:0 0 12px;box-shadow:none;background:#fff}
.theme-card img{aspect-ratio:1/1;object-fit:cover}
.theme-card .theme-title{font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:15px;font-weight:700;margin:10px 12px 2px}
.theme-card .theme-description{font-size:11px;line-height:1.35;margin:0 12px;color:#746f68}
.theme-card .selected-mark{display:none!important}.theme-card.selected{border-color:var(--gold)}
.theme-card:hover{transform:none;box-shadow:0 8px 22px rgba(47,35,22,.08)}
.upload-section{background:transparent}
.back-button{border:0;background:transparent;padding:6px 0;min-height:40px;color:var(--gold-deep);font-size:13px}
.upload-section .app-heading{margin-top:10px;margin-bottom:16px}
.selected-theme-summary{display:flex;align-items:center;gap:12px;padding:9px;background:#fff;border:1px solid #e9e1d8;border-radius:13px;margin-bottom:16px}
.selected-theme-summary img{width:56px;height:56px;border-radius:9px;object-fit:cover}.selected-theme-summary small{display:block;font-size:11px;color:var(--muted)}.selected-theme-summary strong{display:block;font-size:15px;margin-top:2px}
.upload-card{min-height:190px;background:#fff;border-color:#c9b9a6;border-radius:15px}
.upload-label{font-size:16px}.upload-help{font-size:11px}
.privacy-note{font-size:11px;line-height:1.5;margin:15px 0 12px}.consent-line{font-size:12px}
.upload-section>.primary-button{width:100%;margin-top:18px}
.page-view{min-height:calc(100svh - 134px)}
.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-card{border-radius:12px}
.account-card{max-width:none;box-shadow:none;padding:22px}
.bottom-nav{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(100%,560px);z-index:20;background:rgba(255,253,249,.97);border-top:1px solid #e9e1d8;padding:6px 12px calc(6px + env(safe-area-inset-bottom));backdrop-filter:blur(16px)}
.bottom-nav button{border:0;background:none;display:grid;place-items:center;gap:0;min-height:50px;color:var(--muted);font-size:11px}.bottom-nav button.active{color:var(--gold-deep);font-weight:700}.nav-icon{font-size:20px;line-height:1.25}
.admin-intro{background:transparent;padding:26px 20px 12px}.admin-intro h1{font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:28px;font-weight:700;margin:6px 0}.admin-intro p{font-size:13px;margin:0;color:var(--muted)}
.admin-tabs{top:60px;padding:8px 14px}.admin-panel{padding:26px 20px 72px}.admin-panel h2{font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:23px;font-weight:700;margin-bottom:16px}.panel-heading{margin-bottom:18px}.panel-heading p{font-size:13px;margin:6px 0}
.stat-grid{grid-template-columns:repeat(2,1fr);gap:10px}.stat-card{padding:16px}.stat-card strong{font-size:32px}
.card-form{padding:19px}.admin-row{padding:12px;flex-wrap:wrap}
.admin-login{min-height:calc(100svh - 60px)}
@media(max-width:600px){body{background:#f8f6f2}.app-shell{box-shadow:none}.site-header{height:60px;padding:0 20px}.content-section{padding:24px 20px 32px}.theme-card img{aspect-ratio:1/1}.theme-card .theme-title{font-size:15px;margin:10px 12px 2px}.theme-card .theme-description{font-size:11px;margin:0 12px}.theme-grid{gap:12px}.admin-intro{padding:26px 20px 12px}.admin-panel{padding:26px 20px 72px}}

/* 选照片、选模板、生成的应用式路径。 */
.photo-first .upload-card{min-height:340px;background:#fff;border:1.5px dashed #b69d85;border-radius:20px;box-shadow:0 12px 35px rgba(83,63,46,.055)}
.photo-first .upload-icon{width:64px;height:64px;border-radius:18px;background:#f2e8de;display:grid;place-items:center;font-size:38px;margin-bottom:18px}
.photo-first .upload-label{font-size:18px}.photo-first .upload-help{font-size:12px}
.photo-tip{text-align:center;color:var(--muted);font-size:12px;margin:17px 0}
.template-step{padding-bottom:180px}.template-step .app-heading{margin:8px 0 16px}
.selected-photo-summary{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e7e0d7;border-radius:13px;padding:7px 10px;margin-bottom:18px}
.selected-photo-summary img{width:44px;height:44px;border-radius:8px;object-fit:cover;background:#e6ded5}.selected-photo-summary span{flex:1;font-size:13px;font-weight:600}.selected-photo-summary button{border:0;background:#f2e9df;color:var(--gold-deep);font-size:12px;padding:7px 12px;border-radius:8px;min-height:34px}
.replace-photo{position:relative;overflow:hidden;background:#f2e9df;color:var(--gold-deep);font-size:12px;padding:7px 12px;border-radius:8px;min-height:34px;cursor:pointer}.replace-photo input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.replace-photo:focus-within{outline:3px solid #bd7f48;outline-offset:2px}
.template-step .theme-card.selected{border:2px solid var(--gold-deep)}
.template-step .theme-card.selected .selected-mark{display:block!important;background:var(--gold-deep);color:#fff;padding:4px 9px;font-size:11px}
.template-step .privacy-note{margin:18px 0 10px}
.template-actions{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(62px + env(safe-area-inset-bottom));z-index:15;width:min(100%,560px);padding:10px 20px 8px;background:rgba(248,246,242,.97);border-top:1px solid #e9e1d8;backdrop-filter:blur(16px)}
.template-actions .primary-button{width:100%;min-height:50px}.template-actions .form-hint{text-align:center;min-height:19px;margin:5px 0 0;font-size:11px}
.bottom-nav{grid-template-columns:repeat(2,1fr)}

/* 登录入口与后台列表。 */
.auth-screen{min-height:calc(100svh - 60px);padding:54px 20px 30px;display:flex;align-items:flex-start;justify-content:center}
.auth-card{width:100%;max-width:440px;background:#fff;border:1px solid #e7e0d7;border-radius:20px;padding:30px 24px;box-shadow:0 16px 45px rgba(57,43,31,.06)}
.auth-card h1{font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:29px;line-height:1.2;margin:10px 0 8px}.auth-card>p{font-size:13px;color:var(--muted);margin:0}
.auth-card .stack-form{margin-top:26px}.auth-card .primary-button{width:100%;justify-content:center}
.bottom-nav.has-admin{grid-template-columns:repeat(3,1fr)}
.panel-heading-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading-row h2{margin-bottom:0}.panel-heading-row p{margin:5px 0}
.small-action{border:1px solid var(--gold);background:#fff;color:var(--gold-deep);border-radius:10px;min-height:40px;padding:8px 13px;font-size:13px;font-weight:600;white-space:nowrap}
.admin-row-actions{display:flex;gap:8px;align-items:center}.admin-row-actions .danger-button{border-color:#bd9f9b;color:#9b3b35}
.settings-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.settings-actions .primary-button{min-height:48px}.settings-actions .small-action{min-height:48px}
@media(max-width:600px){.auth-screen{padding:55px 20px 30px}.panel-heading-row{align-items:flex-start}.panel-heading-row h2{font-size:22px}.panel-heading-row .small-action{font-size:12px;padding:7px 10px}.admin-row-actions{width:100%;justify-content:flex-end}}

/* 模板页直接呈现照片与模板。 */
.template-step{padding-top:18px;padding-bottom:195px}
.selected-photo-summary{justify-content:center;background:transparent;border:0;padding:0;margin:0 0 18px}
.replace-photo{display:flex;flex-direction:column;align-items:center;background:transparent;padding:0 12px 4px;border-radius:12px;color:var(--gold-deep)}
.replace-photo img{width:86px;height:86px;border-radius:13px;object-fit:cover;border:2px solid #fff;box-shadow:0 4px 15px rgba(47,35,22,.14)}
.replace-photo span{flex:none;font-size:11px;font-weight:600;margin-top:4px}
.template-step .theme-card{padding-bottom:8px}.template-step .theme-card .theme-title{font-size:15px;margin:8px 10px 2px}
.template-actions .consent-line{margin:0 0 7px;font-size:11px;line-height:1.35}.template-actions .consent-line input{width:16px;height:16px;min-width:16px;margin:0}

/* 选好照片后明确给出下一步；主题参考图完整展示。 */
.photo-next-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.photo-next-actions .primary-button,.photo-next-actions .secondary-button{width:100%;min-height:52px;justify-content:center;gap:8px;text-align:center}
.secondary-button{display:inline-flex;align-items:center;border:1px solid var(--gold);border-radius:10px;background:#fff;color:var(--gold-deep);padding:11px 15px;font-weight:600;cursor:pointer}
.secondary-button:focus-within{outline:3px solid #bd7f48;outline-offset:3px}
.theme-card img,.template-step .theme-card img{aspect-ratio:4/3;object-fit:contain;background:#202a35}
.admin-row img{object-fit:contain;background:#202a35}

/* “我的”直接展示照片，积分留在顶栏。 */
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.gallery-toolbar h1{margin:0;font-size:23px;line-height:1.3;font-weight:700}
.gallery-toolbar button{border:0;background:transparent;color:var(--muted);padding:10px 0 10px 10px;min-height:44px;font-size:13px}
#gallery-list .empty-note{border:0;background:transparent;text-align:left;padding:18px 0;color:var(--muted)}
.work-card{display:block;width:100%;padding:0;text-align:left;cursor:pointer;color:var(--ink)}
.work-card img{width:100%;aspect-ratio:4/5;object-fit:contain;background:#202a35}
.work-card .photo-card-body{padding:10px 11px}.work-card .photo-card-body span{margin:2px 0 0}
.work-card:focus-visible{outline:3px solid var(--gold-deep);outline-offset:3px}
.work-viewer{width:min(100%,700px);padding:20px 20px 24px;text-align:center}
.work-viewer h2{font-family:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:19px;font-weight:700;margin:2px 40px 14px}
.work-switch{display:flex;gap:4px;width:max-content;margin:0 auto 13px;padding:4px;border-radius:999px;background:#eee9e3}
.work-switch button{border:0;border-radius:999px;background:transparent;color:var(--muted);padding:6px 17px;min-height:38px;font-size:13px}
.work-switch button[aria-pressed="true"]{background:#fff;color:var(--ink);font-weight:700;box-shadow:0 1px 5px rgba(47,35,22,.1)}
.work-viewer img{width:100%;max-height:calc(88svh - 190px);object-fit:contain;background:#202a35;border-radius:10px;-webkit-touch-callout:default}
.work-save-hint{margin:11px 0 0;color:var(--muted);font-size:12px}
@media(max-width:600px){.work-viewer{max-height:94svh;padding:20px 16px calc(20px + env(safe-area-inset-bottom))}.work-viewer img{max-height:calc(94svh - 190px)}}
