:root {
  --paper: #f7f0df;
  --ink: #1e2923;
  --orange: #ef5a34;
  --line: rgba(30, 41, 35, 0.18);
  --panel: rgba(255, 255, 255, 0.62);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; max-width: 1240px; padding: 0 28px; margin: auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: white; transform: rotate(-8deg); font-size: 17px; }
.header-link { color: inherit; text-decoration: none; font-size: 14px; border-bottom: 1px solid currentColor; }

.hero { min-height: 550px; max-width: 1240px; margin: auto; padding: 76px 28px 86px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.hero-copy { max-width: 780px; }
.eyebrow { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
h1 { margin: 26px 0 22px; font-family: STKaiti, KaiTi, serif; font-size: clamp(52px, 7.2vw, 94px); font-weight: 700; line-height: 1.03; letter-spacing: -.07em; }
h1 em { color: var(--orange); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; left: 4%; right: -2%; bottom: -7px; height: 9px; border-radius: 50%; border-top: 3px solid currentColor; transform: rotate(-1deg); }
.hero-note { max-width: 530px; line-height: 1.8; color: #58625d; font-size: 15px; }
.primary-link { margin-top: 26px; display: inline-flex; gap: 38px; align-items: center; padding: 16px 20px; color: white; background: var(--ink); text-decoration: none; font-weight: 700; border-radius: 3px; }
.primary-link span { color: #f6d33c; }
.hero-sticker { flex: none; width: 150px; height: 150px; margin: 0 24px; border-radius: 50%; background: #f6d33c; display: grid; place-content: center; text-align: center; transform: rotate(8deg); box-shadow: 8px 10px 0 var(--ink); border: 2px solid var(--ink); }
.hero-sticker span { font-family: STKaiti, KaiTi, serif; font-size: 38px; font-weight: 900; }
.hero-sticker small { font-size: 12px; font-weight: 700; letter-spacing: .12em; }

.maker { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); max-width: 1240px; margin: 0 auto 100px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 80px rgba(51, 45, 33, .08); }
.editor-panel, .preview-panel { padding: 44px; }
.editor-panel { border-right: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.section-heading > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; font-size: 12px; font-weight: 800; }
.section-heading h2 { margin: 0 0 5px; font-family: STKaiti, KaiTi, serif; font-size: 30px; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: #747c78; font-size: 13px; }
.field-row { display: grid; gap: 14px; }
.field-row.two-col { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 8px; }
label > span, fieldset legend, .mini-title > span { font-size: 12px; font-weight: 800; letter-spacing: .05em; }
input { min-width: 0; width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 3px; padding: 13px 12px; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239,90,52,.12); }
.mini-title { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 10px; }
.text-button { padding: 5px 0; background: none; border: 0; color: var(--orange); cursor: pointer; font-size: 12px; font-weight: 800; }
.items-editor { display: grid; gap: 8px; }
.editor-item { display: grid; grid-template-columns: 1fr 120px 32px; gap: 8px; animation: appear .2s ease; }
.remove-item { border: 0; background: transparent; color: #9b6254; font-size: 20px; cursor: pointer; opacity: .65; }
.remove-item:hover { opacity: 1; }
.compact-top { margin-top: 28px; }
.theme-fieldset, .layout-fieldset { border: 0; padding: 0; margin: 27px 0 0; }
.theme-fieldset legend, .layout-fieldset legend { margin-bottom: 12px; }
.theme-options { display: flex; gap: 12px; }
.theme-dot { width: 38px; height: 38px; padding: 4px; border: 1px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.theme-dot i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.theme-dot.active { border-color: var(--ink); }
.theme-dot[data-theme="cream"] i { background: #f4c45e; }
.theme-dot[data-theme="mint"] i { background: #5b9279; }
.theme-dot[data-theme="rose"] i { background: #d87a8d; }
.theme-dot[data-theme="night"] i { background: #22334d; }
.layout-options { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.layout-choice { min-width:0; padding:9px; border:1px solid var(--line); background:rgba(255,255,255,.45); color:var(--ink); border-radius:4px; text-align:left; cursor:pointer; }
.layout-choice.active { border-color:var(--orange); box-shadow:0 0 0 2px rgba(239,90,52,.12); }
.layout-choice b, .layout-choice small { display:block; }
.layout-choice b { margin-top:8px; font-size:12px; }
.layout-choice small { margin-top:2px; color:#7a817d; font-size:9px; }
.layout-mini { display:block; height:52px; padding:7px; position:relative; overflow:hidden; background:#f1c766; border-radius:2px; }
.layout-mini span { display:block; background:#28332d; opacity:.8; }
.mini-classic span:first-child { width:52%; height:8px; margin-bottom:10px; }
.mini-classic span:nth-child(2), .mini-classic span:nth-child(3) { height:2px; margin-top:5px; opacity:.35; }
.mini-ticket { border:2px dashed #28332d; background:#f3dfb6; }
.mini-ticket span:first-child { width:60%; height:7px; margin:1px auto 8px; }
.mini-ticket span:nth-child(2), .mini-ticket span:nth-child(3) { width:80%; height:3px; margin:4px auto; opacity:.35; }
.mini-magazine { background:#22334d; }
.mini-magazine::before { content:""; position:absolute; width:34px; height:34px; right:-10px; top:-9px; border-radius:50%; background:#ef6746; }
.mini-magazine span:first-child { width:66%; height:9px; background:#fff5de; }
.mini-magazine span:nth-child(2), .mini-magazine span:nth-child(3) { display:inline-block; width:35%; height:14px; margin:10px 3px 0 0; background:#fff5de; opacity:.35; }
.studio-fieldset { margin:28px 0 0; padding:18px; border:2px solid var(--orange); background:rgba(239,90,52,.07); }
.studio-fieldset legend { padding:0 8px; color:var(--orange); font-size:12px; font-weight:900; letter-spacing:.06em; }
.studio-upload-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:stretch; }
.studio-upload-row input[type="file"] { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.upload-button { min-height:64px; padding:12px 14px; display:flex; justify-content:center; align-items:flex-start; flex-direction:column; gap:3px; border:1px dashed var(--orange); background:rgba(255,255,255,.55); cursor:pointer; }
.upload-button span { color:var(--orange); font-size:13px; font-weight:900; }
.upload-button small { color:#737b76; font-size:9px; }
.clear-bg-button { padding:0 14px; border:1px solid var(--line); background:#fffaf0; color:var(--ink); cursor:pointer; font-size:11px; font-weight:800; }
.studio-sliders { margin-top:14px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.studio-sliders input[type="range"] { padding:0; accent-color:var(--orange); box-shadow:none; }
.studio-fieldset > p { margin:12px 0 0; color:#777f7a; font-size:10px; line-height:1.6; }
.poster.custom-bg { background-size:cover; background-repeat:no-repeat; }

.preview-panel { background: #202c26; color: #f7f0df; }
.preview-topline { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.size-label { opacity: .55; }
.poster-stage { padding: 24px 26px; margin: 20px 0; background: rgba(0,0,0,.17); }
.poster { aspect-ratio: 3/4; width: 100%; overflow: hidden; position: relative; padding: 8% 8% 6%; display: flex; flex-direction: column; box-shadow: 0 18px 35px rgba(0,0,0,.25); color: var(--p-ink); background: var(--p-bg); }
.poster::before { content:""; position: absolute; width: 35%; aspect-ratio:1; right: -13%; top: 9%; border-radius: 50%; background: var(--p-accent); opacity: .75; }
.poster-orbit { position:absolute; border: 1px solid var(--p-ink); border-radius: 50%; opacity: .22; }
.orbit-one { width: 40%; aspect-ratio:1; right:-20%; top:5%; }
.orbit-two { width: 22%; aspect-ratio:1; left:-10%; bottom:15%; }
.theme-cream { --p-bg:#f4c45e; --p-ink:#28332d; --p-accent:#ef6746; --p-soft:rgba(255,255,255,.5); }
.theme-mint { --p-bg:#b7d2bb; --p-ink:#18392d; --p-accent:#f5d365; --p-soft:rgba(255,255,255,.55); }
.theme-rose { --p-bg:#e6a0aa; --p-ink:#3e2027; --p-accent:#f4d783; --p-soft:rgba(255,255,255,.5); }
.theme-night { --p-bg:#22334d; --p-ink:#f7efd9; --p-accent:#ee6948; --p-soft:rgba(255,255,255,.11); }
.poster-header { position: relative; z-index:1; border-bottom: 1px solid var(--p-ink); padding-bottom: 5%; }
.poster-kicker { margin:0 0 4%; font-size: clamp(7px, 1vw, 11px); font-weight: 900; letter-spacing:.16em; }
.poster-header h3 { margin:0; max-width: 70%; font-family: STKaiti, KaiTi, serif; font-size: clamp(28px, 4.8vw, 52px); line-height:.94; letter-spacing:-.08em; }
.poster-header > p:last-child { margin:4% 0 0; font-size: clamp(7px, 1.1vw, 12px); opacity:.75; }
.poster-items { position: relative; z-index:1; flex:1; padding: 6% 0 3%; display:flex; flex-direction:column; justify-content:center; gap:4%; }
.poster-item { display:grid; grid-template-columns:auto 1fr auto; align-items:end; gap:3%; font-size:clamp(9px, 1.45vw, 16px); font-weight:800; }
.poster-item i { border-bottom:1px dotted var(--p-ink); opacity:.3; transform:translateY(-3px); }
.poster-item b { font-family:Georgia,serif; font-size:1.05em; }
.poster-footer { position:relative; z-index:1; padding: 4%; background: var(--p-soft); display:flex; justify-content:space-between; gap:6px; font-size:clamp(6px, .9vw, 10px); }
.poster-footer p { margin:0; font-weight:800; }
.poster-footer span { text-align:right; opacity:.75; }
.poster-brand { position:absolute; right:8%; bottom:2%; font-size:clamp(5px,.7vw,8px); font-weight:900; letter-spacing:.11em; opacity:.48; }

/* 票据风：更像一张从柜台撕下来的菜单小票。 */
.poster.layout-ticket { padding:7% 7% 5%; background:var(--p-bg); }
.poster.layout-ticket::before { width:22%; right:-7%; top:-4%; opacity:.9; }
.poster.layout-ticket::after { content:"✦  TODAY'S MENU  ✦"; position:absolute; left:5%; right:5%; top:3%; padding:2% 0; border-top:1px dashed var(--p-ink); border-bottom:1px dashed var(--p-ink); text-align:center; font-size:clamp(6px,.8vw,9px); font-weight:900; letter-spacing:.12em; opacity:.65; }
.poster.layout-ticket .poster-orbit { display:none; }
.poster.layout-ticket .poster-header { margin-top:8%; padding:5% 3%; text-align:center; border:2px solid var(--p-ink); border-radius:50% / 14%; }
.poster.layout-ticket .poster-header h3 { max-width:100%; font-size:clamp(25px,4.3vw,48px); line-height:1; }
.poster.layout-ticket .poster-kicker { display:none; }
.poster.layout-ticket .poster-items { gap:2.3%; padding:5% 0; }
.poster.layout-ticket .poster-item { padding:2.5% 4%; background:var(--p-soft); border-radius:2px; }
.poster.layout-ticket .poster-item i { border-bottom-style:dashed; }
.poster.layout-ticket .poster-footer { background:transparent; border-top:2px solid var(--p-ink); border-bottom:1px dashed var(--p-ink); }

/* 杂志风：大标题加双列内容卡，适合更年轻的店铺。 */
.poster.layout-magazine { padding:7%; }
.poster.layout-magazine::before { width:48%; right:-19%; top:-10%; opacity:1; }
.poster.layout-magazine .orbit-one { width:52%; right:-25%; top:-7%; opacity:.4; }
.poster.layout-magazine .orbit-two { width:28%; left:-14%; bottom:-8%; }
.poster.layout-magazine .poster-header { padding-bottom:5%; border-bottom:4px solid var(--p-ink); }
.poster.layout-magazine .poster-header h3 { max-width:82%; font-family:Impact, "Arial Black", STHeiti, sans-serif; font-size:clamp(27px,4.7vw,54px); line-height:.9; letter-spacing:-.08em; text-transform:uppercase; }
.poster.layout-magazine .poster-kicker { display:inline-block; padding:2% 3%; background:var(--p-ink); color:var(--p-bg); transform:rotate(-2deg); }
.poster.layout-magazine .poster-items { display:grid; grid-template-columns:1fr 1fr; align-content:center; gap:4%; padding:7% 0 5%; }
.poster.layout-magazine .poster-item { display:flex; min-width:0; min-height:52px; padding:8%; flex-direction:column; justify-content:space-between; align-items:flex-start; background:var(--p-soft); }
.poster.layout-magazine .poster-item i { display:none; }
.poster.layout-magazine .poster-item span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.poster.layout-magazine .poster-item b { align-self:flex-end; font-size:1.35em; }
.poster.layout-magazine .poster-footer { border:1px solid var(--p-ink); background:transparent; }
.action-row { display:grid; grid-template-columns:1.25fr .75fr; gap:10px; }
.download-button, .secondary-button { min-height:48px; border:0; border-radius:3px; cursor:pointer; font-weight:800; }
.download-button { display:flex; align-items:center; justify-content:space-between; padding:0 17px; background:#f6d33c; color:#1e2923; }
.download-button:hover { background:#ffe465; }
.secondary-button { color:#f7f0df; background:transparent; border:1px solid rgba(255,255,255,.25); font-size:12px; }
.privacy-note { text-align:center; margin:13px 0 0; font-size:10px; opacity:.58; min-height:15px; }

.custom-service { max-width:1184px; margin:0 auto 70px; padding:48px 54px; display:flex; align-items:center; justify-content:space-between; gap:40px; background:#f6d33c; border:2px solid var(--ink); box-shadow:10px 12px 0 var(--ink); }
.custom-service .eyebrow { margin:0 0 18px; }
.custom-service h2 { margin:0; font:700 clamp(36px,5vw,64px) STKaiti, KaiTi, serif; letter-spacing:-.05em; }
.custom-service h2 em { color:var(--orange); font-style:normal; }
.custom-service > div > p:last-child { max-width:620px; margin:12px 0 0; color:#4e574f; font-size:14px; line-height:1.75; }
.wechat-button { flex:none; min-width:215px; padding:18px 22px; border:0; border-radius:3px; background:var(--ink); color:#fff; text-align:left; cursor:pointer; }
.wechat-button span, .wechat-button b { display:block; }
.wechat-button span { color:#f6d33c; font-size:11px; letter-spacing:.1em; }
.wechat-button b { margin-top:6px; font-size:22px; }

.how { max-width:1184px; margin:0 auto 100px; background:var(--orange); color:#fff8e9; padding:55px; border-radius:4px; transform:rotate(-.35deg); }
.section-heading.light > span { border-color:#fff8e9; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(255,255,255,.35); }
.steps article { background:var(--orange); padding:28px 24px; }
.steps b { font:700 40px STKaiti, KaiTi, serif; opacity:.5; }
.steps h3 { margin:15px 0 5px; font-size:18px; }
.steps p { margin:0; opacity:.75; font-size:13px; }

footer { max-width:1240px; margin:auto; padding:32px 28px 45px; border-top:1px solid var(--line); display:flex; align-items:center; gap:25px; font-size:12px; }
footer p { margin-right:auto; color:#6e7672; }
.footer-brand { font-size:16px; }
.footer-brand .brand-mark { width:27px; height:27px; font-size:13px; }

@keyframes appear { from { opacity:0; transform:translateY(-4px); } }
@media (max-width: 900px) {
  .hero-sticker { position:absolute; right:25px; top:72px; width:100px; height:100px; box-shadow:5px 6px 0 var(--ink); }
  .hero-sticker span { font-size:28px; }
  .maker { margin:0 18px 70px; grid-template-columns:1fr; }
  .editor-panel { border-right:0; border-bottom:1px solid var(--line); }
  .poster-stage { max-width:540px; margin:20px auto; }
  .how { margin:0 18px 70px; }
  .custom-service { margin:0 18px 70px; }
}
@media (max-width: 600px) {
  .site-header { height:68px; padding:0 18px; }
  .hero { min-height:500px; padding:65px 18px 60px; align-items:flex-start; }
  h1 { font-size:51px; margin-top:24px; }
  .hero-note { max-width:82%; font-size:13px; }
  .hero-sticker { right:17px; top:55px; width:82px; height:82px; }
  .hero-sticker span { font-size:24px; }
  .hero-sticker small { font-size:9px; }
  .editor-panel, .preview-panel { padding:28px 20px; }
  .field-row.two-col { grid-template-columns:1fr; }
  .editor-item { grid-template-columns:1fr 90px 26px; }
  .layout-choice { padding:6px; }
  .layout-choice small { display:none; }
  .studio-upload-row, .studio-sliders { grid-template-columns:1fr; }
  .clear-bg-button { min-height:42px; }
  .poster-stage { padding:14px; }
  .action-row { grid-template-columns:1fr; }
  .custom-service { padding:34px 24px; flex-direction:column; align-items:stretch; box-shadow:6px 7px 0 var(--ink); }
  .wechat-button { width:100%; }
  .how { padding:38px 22px; }
  .steps { grid-template-columns:1fr; }
  footer { align-items:flex-start; flex-wrap:wrap; }
  footer p { order:3; width:100%; }
}
