/* The studio UI stays quiet; each printed artwork has its own voice. */
.page-poster { color-scheme: light; --ink:#24342a; --paper:#f3f1e9; --muted:#657065; --line:#d5d9ce; --accent:#315d43; --font-sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --font-mono: "SFMono-Regular", Consolas, monospace; --print-width:210mm; --print-height:297mm; background:var(--paper); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:var(--font-sans); -webkit-font-smoothing:antialiased; }
button, input, select { font:inherit; }
button, a, input, select { -webkit-tap-highlight-color:transparent; }
button, a { touch-action:manipulation; }
[hidden] { display:none !important; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.48; }
:is(button,a,input,select):focus-visible { outline:3px solid #598867; outline-offset:4px; }
.skip-link { position:absolute; left:16px; top:-60px; z-index:10; background:white; padding:12px; }
.skip-link:focus { top:12px; }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; max-width:1380px; padding:24px 40px; margin:auto; border-bottom:1px solid var(--line); }
.brand { display:flex; gap:12px; align-items:center; color:var(--ink); text-decoration:none; font-weight:700; }
.brand .ni-icon { width:32px; height:32px; }
.brand small { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:500; }
.toolbar-back { color:var(--ink); text-decoration:none; font-size:14px; }
.toolbar-back span { margin-left:18px; }
.workspace { display:grid; grid-template-columns:minmax(300px,380px) minmax(0,1fr); gap:36px 64px; width:min(100% - 80px,1240px); margin:0 auto; padding:48px 0 64px; }
.studio-intro { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; column-gap:64px; align-items:end; }
.eyebrow { grid-column:1/-1; margin:0 0 18px; color:var(--accent); font-size:13px; font-weight:650; }
.eyebrow span { color:var(--muted); margin-left:10px; font:11px var(--font-mono); }
.studio-intro h1 { margin:0; font-size:clamp(38px,4.2vw,60px); font-weight:750; letter-spacing:-.05em; line-height:1.2; }
.intro-text { max-width:33em; color:var(--muted); margin:0 0 4px; font-size:16px; line-height:1.9; }
.studio-journey { display:flex; grid-column:1/-1; list-style:none; padding:0; margin:28px 0 0; gap:26px; font-size:13px; }
.studio-journey b { margin-right:8px; font:12px var(--font-mono); color:var(--muted); }
.studio-controls { min-width:0; }
.studio-controls section { border-top:1px solid var(--line); padding:25px 0; }
.control-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:20px; }
.control-heading h2 { margin:0; font-size:19px; font-weight:700; letter-spacing:-.03em; }
.control-heading > span { white-space:nowrap; font:11px var(--font-mono); color:var(--muted); }
.template-switcher { display:grid; grid-template-columns:1fr 1fr; gap:16px 12px; }
.page-poster .template-button { position:relative; min-width:0; padding:6px 6px 10px; text-align:left; border:1px solid transparent; border-radius:5px; background:none; transition:border-color .18s,background .18s; color:var(--ink); }
.template-button:hover { background:#e9e9df; }
.template-button.is-active { border-color:var(--accent); background:#e6eadf; }
.template-button.is-active::after { content:"✓"; position:absolute; right:12px; top:12px; background:white; color:#244b33; width:23px; height:23px; border-radius:50%; text-align:center; line-height:23px; font-weight:800; }
.template-button strong { display:block; margin:10px 2px 4px; font-size:14px; }
.template-button small { display:block; font-size:11px; margin:0 2px; line-height:1.5; color:var(--muted); }
.template-swatch { position:relative; display:flex; align-items:center; aspect-ratio:1.35; padding:16px 12px; overflow:hidden; }
.template-swatch i { position:relative; z-index:1; font-size:19px; font-style:normal; font-weight:850; line-height:1.05; letter-spacing:-.05em; }
.template-swatch em { position:absolute; right:10px; bottom:4px; font-size:52px; font-style:normal; line-height:1; }
.swatch-night { background:#234738; color:#f7efd8; }.swatch-night em { color:#deba73; }
.swatch-paper { background:#eee1c6; color:#713e30; border:5px double #a8846b; }.swatch-paper i { font-family:"Songti SC",STSong,serif; line-height:1.4; }.swatch-paper em { font-size:20px; border:1px solid; padding:6px; transform:rotate(-12deg); }
.swatch-terminal { background:#eceddf; color:#24382c; border-block:2px dashed; }.swatch-terminal i { font-family:var(--font-mono); font-size:16px; }.swatch-terminal em { font-size:20px; background:#bed997; padding:5px; }
.swatch-cobalt { background:#304bc1; color:#f8f1d7; }.swatch-cobalt i { font-size:19px; transform:rotate(-6deg); }.swatch-cobalt em { color:#d8eb83; }
.swatch-sunset { background:#bb583c; color:#fff1d9; }.swatch-sunset i { font-family:"Songti SC",serif; line-height:1.3; }.swatch-sunset em { color:#edbd83; }
.swatch-mono { background:#fafaf7; color:#222822; border:1px solid #222822; }.swatch-mono i { font-size:28px; }.swatch-mono em { font-size:56px; }
.template-description { min-height:3.2em; margin:16px 0 0; font-size:13px; line-height:1.7; color:var(--muted); }
.current-venue { padding:16px 18px; border-left:3px solid var(--accent); background:#e8ebdf; }
.current-venue span { display:block; font-size:12px; color:var(--muted); }
.current-venue strong { display:block; margin:6px 0; font-size:20px; overflow-wrap:anywhere; }
.current-venue p { margin:6px 0 0; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.current-venue code { font-size:11px; color:var(--muted); }
.bind-link { display:inline-block; margin:14px 0; color:var(--accent); font-size:14px; text-underline-offset:4px; }
.field-label { display:block; margin:20px 0 10px; font-size:14px; font-weight:600; }
.field-label span { margin-left:6px; font-size:12px; color:var(--muted); font-weight:400; }
input[type="text"], input:not([type]), select { width:100%; min-width:0; border:1px solid #b9c4b7; border-radius:5px; background:#fbfaf4; padding:12px; color:var(--ink); font-size:16px; min-height:46px; }
.field-help { margin:8px 0 16px; font-size:12px; color:var(--muted); line-height:1.7; }
.check-option { display:flex; gap:9px; align-items:center; font-size:13px; min-height:44px; }
.check-option input { width:18px; height:18px; accent-color:var(--accent); }
.page-poster .tool-button { min-height:44px; padding:10px 16px; border:1px solid #bcc7ba; border-radius:5px; background:transparent; color:var(--ink); font-size:14px; font-weight:650; transition:background .18s,transform .18s; }
.tool-button:hover:not(:disabled) { background:#e1e7d8; }.tool-button:active:not(:disabled) { transform:translateY(1px); }
.page-poster .tool-button-primary { width:100%; margin-top:18px; padding:15px; background:#315d43; border-color:#315d43; color:#fffaf0; font-size:16px; }
.page-poster .tool-button-primary:hover:not(:disabled) { background:#244b33; }
.tool-button-primary::before { background-color:#f3edce; border-radius:2px; }
.status { font-size:13px; line-height:1.7; color:var(--accent); margin:12px 0; }
.status[data-error="true"] { color:#a23f2e; }
.retry-button { border:0; background:none; padding:8px 0; color:#963e2d; text-decoration:underline; }
.print-checklist { padding-left:17px; margin:16px 0 0; color:var(--muted); font-size:12px; line-height:1.9; }
.print-checklist li + li { margin-top:7px; }
.preview-column { min-width:0; align-self:start; position:sticky; top:24px; }
.preview-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; gap:12px; }
.preview-heading p { margin:0; }.preview-heading strong { display:block; font-size:16px; }.preview-heading p span { display:block; color:var(--muted); font:12px/1.7 var(--font-mono); margin-top:4px; }
.poster-stage { display:grid; place-items:center; min-width:0; background:#e4e5dc; padding:26px; background-image:radial-gradient(#bcc3b5 .7px,transparent .7px); background-size:10px 10px; }
.preview-caption { margin:14px 0; font-size:12px; line-height:1.8; color:var(--muted); }
.placement-note { display:flex; gap:12px; border-top:1px solid var(--line); margin-top:22px; padding-top:20px; }.placement-note img { flex:0 0 24px; width:24px; height:24px; }.placement-note p { margin:0; }.placement-note strong { display:block; font-size:14px; }.placement-note span { display:block; max-width:38em; margin-top:8px; font-size:13px; color:var(--muted); line-height:1.8; }
.studio-footer { display:flex; justify-content:space-between; gap:20px; width:min(100% - 80px,1240px); margin:auto; border-top:1px solid var(--line); padding:24px 0 32px; font-size:13px; color:var(--muted); }.studio-footer a { color:var(--ink); }

/* One bounded layout for all artworks: decorative elements never cross text rows. */
.poster { --poster-bg:#234738; --poster-ink:#f7efd8; --poster-muted:#e0dec8; --poster-accent:#deba73; container-type:inline-size; width:100%; max-width:680px; aspect-ratio:210/297; background:var(--poster-bg); color:var(--poster-ink); box-shadow:0 15px 35px #27372724; overflow:hidden; }
.poster-content { height:100%; padding:5cqw 6cqw; display:grid; grid-template-rows:9% 33% 16% 27% 9% 6%; }
.poster-header { display:flex; justify-content:space-between; align-items:start; gap:3cqw; border-bottom:.22cqw solid currentColor; padding-bottom:2cqw; }
.poster-venue { font-size:3.5cqw; font-weight:750; line-height:1.25; max-width:68cqw; overflow-wrap:anywhere; }
.poster-venue.is-long { font-size:2.8cqw; }
.poster-edition { flex-shrink:0; font:700 1.9cqw/1.2 var(--font-mono); text-align:right; letter-spacing:.04em; }
.poster-main { padding-top:3cqw; }
.poster-kicker { margin:0 0 1.6cqw; font-size:2.15cqw; letter-spacing:.12em; }
.poster-main h2 { margin:0; font-size:8.45cqw; font-weight:850; letter-spacing:-.065em; line-height:1.12; }
.poster-main h2 > span { display:block; white-space:nowrap; }
.poster-main h2 b { color:var(--poster-accent); font-weight:inherit; }.headline-dot { color:var(--poster-accent); }
.poster-intro { margin:1.8cqw 0 0; font-size:2.6cqw; line-height:1.6; font-weight:550; }
.poster-art-band { position:relative; display:flex; align-items:center; gap:3cqw; overflow:hidden; margin:1.4cqw 0 2.2cqw; border-block:.2cqw solid var(--poster-accent); }
.poster-art { position:relative; width:31cqw; height:calc(100% - 1cqw); max-height:18cqw; flex-shrink:0; color:var(--poster-accent); }
.coffee-cup { position:absolute; bottom:1.6cqw; left:3cqw; width:15cqw; height:9.8cqw; border:.65cqw solid currentColor; border-radius:0 0 5cqw 5cqw; background:var(--poster-bg); }
.coffee-surface { position:absolute; left:-.65cqw; top:-1.4cqw; width:15cqw; height:3cqw; border:.55cqw solid currentColor; border-radius:50%; background:var(--poster-bg); }
.cup-handle { position:absolute; right:-5.1cqw; top:0; width:5cqw; height:6.3cqw; border:.65cqw solid currentColor; border-left:0; border-radius:0 4cqw 4cqw 0; }
.steam { position:absolute; top:.4cqw; width:2.6cqw; height:4cqw; border-left:.4cqw solid currentColor; border-radius:50%; transform:rotate(12deg); }.steam-one { left:6cqw; }.steam-two { left:11cqw; top:0; }
.token { display:grid; place-items:center; position:absolute; border:.35cqw solid currentColor; border-radius:50%; width:6.8cqw; height:6.8cqw; font:800 3.8cqw var(--font-mono); background:var(--poster-bg); }
.token-one { right:1cqw; top:1.2cqw; transform:rotate(15deg); }.token-two { right:.5cqw; bottom:0; width:4.8cqw; height:4.8cqw; font-size:3cqw; }
.art-lettering { font:800 3.3cqw/1.1 var(--font-sans); letter-spacing:-.04em; white-space:nowrap; }.art-lettering b { color:var(--poster-accent); }
.poster-seal { margin-left:auto; flex-shrink:0; display:flex; align-items:center; justify-content:center; flex-direction:column; width:13cqw; height:13cqw; border:.25cqw solid; border-radius:50%; font:700 1.4cqw/1 var(--font-mono); transform:rotate(10deg); }.poster-seal br { display:none; }.poster-seal strong { margin:.6cqw 0; font:850 4.4cqw/1 var(--font-sans); }
.poster-redeem { display:grid; grid-template-columns:29cqw minmax(0,1fr); gap:5cqw; align-items:center; }
.poster-qr-frame { width:29cqw; height:29cqw; padding:.8cqw; background:white; color:#24342a; }
.poster-qr-frame img { display:block; width:100%; height:100%; }
.qr-placeholder { width:100%; height:100%; border:.25cqw dashed #adb8ab; display:flex; justify-content:center; align-items:center; flex-direction:column; gap:1.2cqw; }.qr-placeholder > span { font-size:7cqw; line-height:1; color:#859881; }.qr-placeholder strong { font-size:2.2cqw; }.qr-placeholder small { font-size:1.8cqw; }
.qr-caption { display:block; font-size:1.9cqw; font-weight:600; text-align:center; padding-top:1.2cqw; }
.poster-scan-copy > strong { display:block; font-size:4.4cqw; line-height:1.2; letter-spacing:-.04em; }
.poster-scan-copy ol { list-style:none; margin:2cqw 0 0; padding:0; display:grid; gap:1.2cqw; }
.poster-scan-copy li { display:flex; gap:1.2cqw; font-size:2.1cqw; line-height:1.35; }.poster-scan-copy li b { font:800 2cqw var(--font-mono); color:var(--poster-accent); }
.poster-scan-copy p { color:var(--poster-muted); font-size:1.8cqw; line-height:1.55; margin:1.7cqw 0 0; overflow-wrap:anywhere; }
.poster-facts { display:grid; grid-template-columns:1fr 1.1fr 1fr; align-content:center; gap:3cqw; border-block:.2cqw solid; margin:2cqw 0 0; padding:1.5cqw 0; }.poster-facts div { min-width:0; }.poster-facts dt { font-size:1.9cqw; color:var(--poster-muted); }.poster-facts dd { margin:.8cqw 0 0; font-size:2.8cqw; font-weight:750; line-height:1.2; overflow-wrap:anywhere; }
.poster-footer { padding-top:1.8cqw; display:flex; flex-direction:column; gap:.8cqw; }.poster-footer strong { font-size:2.05cqw; line-height:1.4; font-weight:650; overflow-wrap:anywhere; }.poster-footer > span { font-size:1.6cqw; line-height:1.4; color:var(--poster-muted); overflow-wrap:anywhere; }

/* Six identities: editorial / receipt / display / cafe / monochrome. */
.template-paper { --poster-bg:#eee1c6; --poster-ink:#60382d; --poster-muted:#755044; --poster-accent:#9b4436; }
.template-paper .poster-content { border:1.2cqw double var(--poster-ink); padding:4cqw 5cqw; }
.template-paper .poster-main h2 { font-family:"Songti SC",STSong,"Noto Serif CJK SC",serif; font-weight:800; letter-spacing:-.045em; }
.template-paper .poster-main h2 > span:nth-child(2) { padding-left:4cqw; }
.template-paper .poster-art-band { border-block:0; background:#e2d1b0; border-radius:12cqw; padding:0 2cqw; }.template-paper .poster-art { width:29cqw; }.template-paper .art-lettering { font-family:Georgia,serif; font-size:2.8cqw; }.template-paper .poster-seal { border-radius:2px; width:11cqw; height:11cqw; background:var(--poster-accent); color:var(--poster-bg); margin-right:2cqw; }
.template-terminal { --poster-bg:#f0f0e4; --poster-ink:#25372a; --poster-muted:#4c594a; --poster-accent:#3f6435; }
.template-terminal .poster-content { border-inline:1.6cqw solid #d8decf; padding-inline:4.4cqw; }
.template-terminal .poster-header, .template-terminal .poster-art-band, .template-terminal .poster-facts { border-style:dashed; border-width:.25cqw 0; }
.template-terminal .poster-header { border-top:0; }
.template-terminal .poster-kicker { display:inline-block; background:#c8dfa7; padding:.4cqw 1cqw; margin-bottom:1.2cqw; }
.template-terminal .poster-main h2 { font-family:var(--font-mono); font-size:8.1cqw; letter-spacing:-.075em; }.template-terminal .poster-main h2 b { background:#25372a; color:#d5e6b9; padding:0 .6cqw; }
.template-terminal .poster-seal { border-radius:0; background:#c8dfa7; transform:none; }.template-terminal .art-lettering { font-family:var(--font-mono); font-size:2.7cqw; }
.template-terminal .poster-redeem { grid-template-columns:minmax(0,1fr) 29cqw; }.template-terminal .poster-qr-block { grid-column:2; grid-row:1; }.template-terminal .poster-scan-copy { grid-column:1; grid-row:1; }
.template-cobalt { --poster-bg:#304bc1; --poster-ink:#fff6df; --poster-muted:#f0eddf; --poster-accent:#d8eb83; }
.template-cobalt .poster-main h2 { font-size:8.7cqw; letter-spacing:-.065em; }.template-cobalt .poster-main h2 > span:last-child { text-align:right; }
.template-cobalt .poster-art-band { background:var(--poster-accent); color:#304bc1; border:0; padding-inline:1.8cqw; transform:rotate(-2deg); }.template-cobalt .poster-art { --poster-bg:#d8eb83; color:#304bc1; width:29cqw; }.template-cobalt .art-lettering { font-size:3cqw; }.template-cobalt .art-lettering b { color:#304bc1; }.template-cobalt .poster-seal { border-radius:0; border:0; font-weight:800; }
.template-sunset { --poster-bg:#bb583c; --poster-ink:#fff2dc; --poster-muted:#ffead6; --poster-accent:#f1d393; }
.template-sunset .poster-header { border-bottom:0; }.template-sunset .poster-venue { border-bottom:.3cqw solid; padding-bottom:1cqw; }
.template-sunset .poster-main h2 { font-family:"Songti SC",STSong,serif; font-size:8.6cqw; letter-spacing:-.05em; }
.template-sunset .poster-art-band { border:0; border-radius:50% 50% 0 0 / 60% 60% 0 0; background:#f1d393; padding:2cqw 2cqw 0; color:#81432e; }.template-sunset .poster-art { color:#81432e; --poster-bg:#f1d393; width:29cqw; }.template-sunset .art-lettering { font-family:Georgia,serif; font-size:2.8cqw; }.template-sunset .art-lettering b { color:#81432e; }.template-sunset .poster-seal { width:11cqw; height:11cqw; }
.template-mono { --poster-bg:#fffefa; --poster-ink:#262b26; --poster-muted:#51594f; --poster-accent:#262b26; }
.template-mono .poster-header { border-bottom:.7cqw solid; }.template-mono .poster-main h2 { font-weight:900; letter-spacing:-.06em; }.template-mono .poster-main h2 b { text-decoration:underline; text-decoration-thickness:.45cqw; text-underline-offset:1cqw; }.template-mono .poster-art-band { border:0; }.template-mono .poster-art { border-bottom:.4cqw solid; }.template-mono .art-lettering { font-size:3.5cqw; }.template-mono .poster-seal { border-radius:0; border-width:.55cqw; transform:none; }.template-mono .poster-facts { border-top:.6cqw solid; }

#poster-stage:fullscreen { background:#dedfd4; height:100dvh; overflow:auto; padding:16px; }
#poster-stage:fullscreen .poster { width:min(calc((100dvh - 32px) * 210 / 297),calc(100vw - 32px)); max-width:none; }
@media (max-width:1100px) { .workspace { gap:32px; grid-template-columns:minmax(280px,330px) minmax(0,1fr); width:calc(100% - 48px); }.poster-stage { padding:16px; }.preview-column { top:16px; }.toolbar { padding-inline:24px; } }
@media (max-width:800px) {
  .workspace { grid-template-columns:1fr; gap:28px; padding-top:32px; }.studio-intro { display:block; }.studio-intro h1 { font-size:42px; }.intro-text { margin-top:20px; }.studio-journey { margin-top:22px; }
  .studio-controls { display:contents; }.template-library { grid-row:2; }.preview-column { grid-row:3; position:static; }.venue-settings { grid-row:4; }.print-settings { grid-row:5; }.studio-controls section { padding:22px 0 0; }
  .template-switcher { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.template-description { min-height:0; }.template-swatch { aspect-ratio:1.4; }.template-swatch i { font-size:clamp(16px,3.5vw,26px); }.template-swatch em { font-size:40px; }.swatch-terminal i { font-size:clamp(11px,2.5vw,20px); }.swatch-cobalt i { font-size:clamp(11px,2.8vw,22px); }.swatch-paper em { font-size:14px; }.swatch-terminal em { font-size:14px; }
  .poster { max-width:580px; }.studio-footer { width:calc(100% - 48px); }.print-settings .field-label { margin-top:0; }.preview-caption { margin-bottom:0; }.placement-note { display:none; }
}
@media (max-width:480px) {
  .toolbar { padding:18px 20px; }.brand span { font-size:13px; }.toolbar-back { font-size:12px; }.toolbar-back span { margin-left:4px; }.workspace { width:calc(100% - 32px); padding-top:30px; }.studio-intro h1 { font-size:38px; }.intro-text { font-size:15px; }.desktop-break { display:none; }.studio-journey { gap:17px; font-size:12px; }.studio-journey b { margin-right:4px; }
  .template-switcher { gap:6px; }.page-poster .template-button { padding:4px 4px 8px; }.template-button strong { font-size:13px; }.template-button small { font-size:11px; }.template-swatch { padding:9px 6px; aspect-ratio:1; }.template-swatch em { font-size:32px; }.swatch-paper em,.swatch-terminal em { font-size:12px; }.template-button.is-active::after { top:7px; right:7px; width:18px; height:18px; line-height:18px; font-size:12px; }.template-button small { min-height:3em; }.poster-stage { padding:10px; }.preview-heading .tool-button { padding-inline:12px; }.control-heading h2 { font-size:18px; }.studio-footer { width:calc(100% - 32px); font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }
.page-poster.paper-a3 { --print-width:297mm; --print-height:420mm; }
@page { size:A4 portrait; margin:0; }
@page poster-a3 { size:A3 portrait; margin:0; }
@media print {
  .page-poster.paper-a3 body { page:poster-a3; }
  body > :not(main) { display:none !important; }
  html.page-poster, .page-poster body { width:var(--print-width); height:var(--print-height); margin:0 !important; padding:0 !important; background:white; }
  .toolbar,.studio-intro,.studio-controls,.preview-heading,.preview-caption,.placement-note,.studio-footer,.skip-link { display:none !important; }
  .workspace,.preview-column,.poster-stage { display:block; position:static; width:var(--print-width); height:var(--print-height); margin:0; padding:0; max-width:none; background:none; }
  .poster { width:var(--print-width); height:var(--print-height); max-width:none; box-shadow:none; break-inside:avoid; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  .page-poster:not(.print-ready) .poster-content { visibility:hidden; }
  .page-poster:not(.print-ready) .poster::before { content:"二维码尚未就绪，请返回海报页绑定门店后打印。"; display:block; padding:30mm; font-size:18pt; color:#222; background:white; }
}
