:root {
  --ink: #1d1b19;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --orange: #ff6b35;
  --blue: #3768ff;
  --line: #d8d0c2;
  --muted: #756f66;
}

* { box-sizing: border-box; }
[id] { scroll-margin-top: 90px; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Microsoft YaHei", system-ui, sans-serif; }
button, select, input { font: inherit; }
button { cursor: pointer; border: 1px solid var(--ink); background: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 750; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { color: white; background: var(--ink); box-shadow: 3px 3px 0 var(--orange); }
.demo-photo-button { justify-self:start; margin-top:-4px; color:var(--blue); border-color:#b9c7ff; background:#f5f7ff; }

.demo-ribbon { padding: 7px 16px; color: #513022; background: #ffd9c9; text-align: center; font-size: 11px; font-weight: 750; }
.store-nav { position: sticky; top: 0; z-index: 20; height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px,calc((100vw - 1240px)/2)); background: rgba(255,253,248,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { color: var(--ink); font-size: 23px; font-weight: 950; letter-spacing: -.05em; text-decoration: none; }
.brand span { color: var(--orange); }
.store-links { display: flex; gap: 28px; }
.store-links a { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.cart-trigger { border: 0; background: transparent; }
.cart-trigger b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 6px; border-radius: 50%; color: #fff; background: var(--ink); }

.hero { min-height: 320px; padding: 56px max(24px, calc((100vw - 1240px)/2)); color: white; background: var(--ink); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(42px, 7vw, 86px); line-height: .93; letter-spacing: -.065em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { max-width: 660px; margin: 0; color: #d8d2c9; font-size: 17px; }
.eyebrow, .step { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 850; }
.privacy-pill { white-space: nowrap; border: 1px solid #555; border-radius: 999px; padding: 10px 14px; color: #bff1c8; }

main { width: min(1240px, calc(100% - 32px)); margin: 32px auto 80px; }
.shop-product { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 470px; margin-bottom: 20px; overflow: hidden; border-radius: 22px; color: white; background: var(--ink); }
.product-visual { position: relative; display: grid; place-items: center; min-height: 470px; background: radial-gradient(circle at 35% 28%,#ffb69d 0 4%,transparent 28%),linear-gradient(145deg,#ff7542,#ffb13b); overflow: hidden; }
.product-visual::before,.product-visual::after { content:""; position:absolute; width:260px; height:260px; border:1px solid rgba(255,255,255,.38); transform:rotate(23deg); }
.product-visual::after { width:380px; height:380px; transform:rotate(45deg); }
.product-visual > span { position: absolute; bottom: 24px; letter-spacing: .18em; font-size: 10px; font-weight: 900; }
.pixel-art { position: relative; z-index: 2; width: 238px; height: 238px; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); gap: 7px; transform: rotate(-4deg); filter: drop-shadow(16px 18px 0 rgba(29,27,25,.18)); }
.pixel-art i { background: #fff7ec; border-radius: 7px; }
.pixel-art i:nth-child(1),.pixel-art i:nth-child(3),.pixel-art i:nth-child(5),.pixel-art i:nth-child(7),.pixel-art i:nth-child(9){background:#1d1b19}.pixel-art i:nth-child(2),.pixel-art i:nth-child(4),.pixel-art i:nth-child(6),.pixel-art i:nth-child(8){background:#3768ff}
.product-copy { padding: 48px; align-self: center; }
.eyebrow.dark { color: #ff9b76; }
.product-copy h2 { max-width: 590px; margin: 14px 0; font-size: clamp(34px,4.3vw,58px); line-height: 1.03; letter-spacing: -.055em; }
.product-copy > p { max-width: 580px; color: #cbc5bc; line-height: 1.7; }
.product-choices { display: grid; gap: 9px; margin: 25px 0 17px; }
.product-choice { display: grid; grid-template-columns: 22px 1fr auto; gap: 11px; align-items: center; padding: 14px; border: 1px solid #514e49; border-radius: 13px; cursor: pointer; }
.product-choice.selected { border-color: var(--orange); background: rgba(255,107,53,.1); }
.product-choice span { display: grid; gap: 3px; }
.product-choice small { color: #aaa49b; }
.product-choice strong { white-space: nowrap; font-size: 20px; }.product-choice strong em{font-style:normal}
.shop-start { width: 100%; padding: 15px; background: var(--orange); box-shadow: none; border-color: var(--orange); }
.product-note { display: block; margin-top: 12px; color: #938e86; text-align: center; }
.how-strip { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.how-strip div { display: flex; align-items: center; gap: 10px; padding: 18px; border-right: 1px solid var(--line); }.how-strip div:last-child{border:0}.how-strip b{color:var(--orange)}.how-strip span{font-size:12px;font-weight:750}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 12px 35px rgba(45, 35, 20, .06); }
.panel + .panel { margin-top: 20px; }
h2 { margin: 6px 0 8px; font-size: 26px; }
.muted, .fineprint { color: var(--muted); }
.upload-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.dropzone { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed #a49a8b; border-radius: 14px; background: #faf7f0; transition: .2s; }
.dropzone.dragover { border-color: var(--orange); background: #fff0e9; transform: translateY(-2px); }
.dropzone input { display: none; }
.dropzone__icon { font-size: 34px; color: var(--orange); }
.dropzone small { margin-top: 5px; color: var(--muted); }
.original-wrap { grid-column: 1/-1; display: flex; gap: 15px; align-items: center; background: #f3eee4; border-radius: 12px; padding: 12px; }
.original-wrap img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.original-wrap img.transparent-preview { background: repeating-conic-gradient(#ddd 0 25%,#fff 0 50%) 50%/12px 12px; }
.original-wrap div { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.original-wrap button { white-space: nowrap; }
.background-choice { grid-column: 1/-1; padding: 20px; border: 1px solid #cdd8ff; border-radius: 14px; background: #f6f8ff; }
.choice-heading h3 { margin: 5px 0 14px; font-size: 20px; }
.background-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.background-option { position: relative; display: grid; gap: 4px; padding: 14px 14px 14px 38px; border: 1px solid #d8deef; border-radius: 11px; background: white; cursor: pointer; }
.background-option input { position: absolute; left: 14px; top: 16px; }
.background-option small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.background-option em { padding: 2px 5px; color: white; background: var(--blue); border-radius: 5px; font-size: 9px; font-style: normal; }
.background-option.selected { border: 2px solid var(--blue); padding: 13px 13px 13px 37px; box-shadow: 0 6px 14px rgba(55,104,255,.1); }
.white-bg-settings { margin-top: 12px; padding: 13px; border-radius: 10px; background: white; }
.white-bg-settings label { display: grid; grid-template-columns: 1fr auto; gap: 7px; font-size: 12px; font-weight: 750; }
.white-bg-settings input, .white-bg-settings small { grid-column: 1/-1; }
.white-bg-settings small, .portrait-action small { color: var(--muted); font-size: 10px; font-weight: 500; }
.portrait-action { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; margin-top: 12px; padding: 13px; border-radius: 10px; background: white; }
.portrait-action div { display: grid; gap: 3px; }
.portrait-action > span { grid-column: 1/-1; min-height: 13px; color: #536286; font-size: 10px; }
.image-editor { grid-column: 1/-1; padding-top: 22px; border-top: 1px solid var(--line); }
.editor-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; }
.editor-heading h3 { margin: 4px 0 0; font-size: 22px; }
.editor-heading > span { color: var(--muted); font-size: 11px; }
.editor-layout { display: grid; grid-template-columns: minmax(320px,1.15fr) minmax(280px,.85fr); gap: 20px; align-items: start; }
.editor-stage { position: relative; display: grid; place-items: center; min-width: 0; padding: 14px; border-radius: 14px; background: #201f1d; overflow: hidden; }
#editorCanvas { display: block; width: min(100%,640px); height: auto; border-radius: 8px; background: white; box-shadow: 0 8px 26px rgba(0,0,0,.22); cursor: grab; touch-action: none; user-select: none; }
#editorCanvas.dragging { cursor: grabbing; }
.crop-hint { position: absolute; left: 50%; bottom: 27px; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; color: white; background: rgba(0,0,0,.58); font-size: 10px; pointer-events: none; }
.editor-controls { display: grid; gap: 13px; }
.editor-controls > label { display: grid; grid-template-columns: 1fr auto; gap: 7px; font-size: 12px; font-weight: 750; }
.editor-controls input[type=range] { grid-column: 1/-1; width: 100%; }
.editor-controls output { color: var(--blue); font-variant-numeric: tabular-nums; }
.adjust-title { padding-top: 2px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.segment-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 13px; border-radius: 11px; background: #edf2ff; border: 1px solid #cad7ff; }
.segment-card div { display: grid; gap: 3px; }
.segment-card small { color: #5f6d94; font-size: 10px; line-height: 1.45; }
.segment-card > span { grid-column: 1/-1; min-height: 14px; color: #536286; font-size: 10px; }
.segment-button { padding: 9px 11px; color: white; background: var(--blue); border-color: var(--blue); font-size: 11px; }
.editor-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.editor-buttons button { padding: 9px; font-size: 12px; }
.editor-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 9px; padding-top: 4px; }
.editor-note { margin: 0; padding: 10px; color: #6d4a3b; background: #fff3ec; border-radius: 9px; font-size: 11px; line-height: 1.5; }

.section-heading, .preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-heading.compact h2 { margin-bottom: 0; }
.controls { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; align-items: start; margin: 24px 0; }
.controls label { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 13px; font-weight: 750; }
.controls label small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.controls select, .controls input[type=range] { width: 100%; }
.controls select { border: 1px solid var(--line); border-radius: 9px; padding: 11px; background: white; }
.toggle-row { flex-direction: row !important; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.algorithm-note { margin: -8px 0 20px; padding: 11px 13px; border-left: 3px solid var(--orange); background: #fff3ec; color: #6d4a3b; font-size: 12px; line-height: 1.6; }
.style-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 22px; }
.style-mode { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:18px; padding:14px 16px; border:1px solid #cbd6ff; border-radius:13px; background:#f2f5ff; }
.style-mode div { display:grid; gap:3px; }
.style-mode b { color:#233b80; }
.style-mode span { color:var(--muted); font-size:12px; }
.style-mode button { flex:none; color:white; border-color:var(--blue); background:var(--blue); }
.style-card { position:relative; display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; }
.style-badge { position:absolute; z-index:2; top:24px; right:24px; padding:4px 7px; border-radius:999px; color:#fff; background:rgba(29,27,25,.72); font-size:9px; font-weight:850; letter-spacing:.08em; backdrop-filter:blur(6px); }
.style-badge.premium { background:var(--orange); }
.style-card input { position: absolute; opacity: 0; pointer-events: none; }
.style-card canvas { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 8px; border-radius: 9px; background: linear-gradient(135deg,#eee8de,#faf8f3); image-rendering: pixelated; }
.style-name { display: grid; gap: 2px; color: var(--ink); }
.style-name b { font-size: 18px; }
.style-name em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 750; letter-spacing: .04em; }
.style-card > strong { color: var(--blue); font-size: 11px; }
.style-card small { color: var(--muted); line-height: 1.5; }
.style-card.selected { border: 2px solid var(--blue); padding: 15px; box-shadow: 0 8px 18px rgba(55,104,255,.12); }
.recommend-box { display: flex; align-items: center; gap: 10px; margin: 14px 0 22px; padding: 13px; border-radius: 12px; background: #edf2ff; color: #233b80; }
.recommend-box span { flex: 1; font-size: 13px; }
.recommend-box button { padding: 8px 12px; background: white; }
.recommend { color: #17743a; font-size: 12px; font-weight: 700; }
.controls input[type=number] { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px; background: white; }
.option-zone { margin-top: 22px; padding: 22px; border-radius: 16px; }
.recommend-zone { border: 1px solid #cbd7ff; background: #f4f7ff; }
.custom-zone { border: 1px solid #ead4c5; background: #fffaf4; }
.zone-title span { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.custom-zone .zone-title span { color: var(--orange); }
.zone-title h3 { margin: 5px 0; font-size: 21px; }
.zone-title p { margin: 0; color: var(--muted); font-size: 13px; }
.option-divider { position: relative; height: 38px; display: grid; place-items: center; }
.option-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line); }
.option-divider span { position: relative; padding: 3px 12px; background: var(--card); color: var(--muted); font-size: 11px; }
.help { position: absolute; top: 0; right: 0; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: white; background: #8a837a; font-style: normal; font-size: 11px; cursor: help; }
.generate-zone { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; padding: 18px; color: white; background: var(--ink); border-radius: 14px; }
.generate-zone div { display: grid; gap: 4px; }
.generate-zone span { color: #cbc5bc; font-size: 12px; }
.generate-button { min-width: 240px; background: var(--orange); box-shadow: none; border-color: white; }
.complete-notice { margin-top: 12px; padding: 13px; border-radius: 10px; color: #126733; background: #e5f7eb; font-weight: 750; }
.size-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.size-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: white; cursor: pointer; transition: .18s; }
.size-card:hover, .size-card.selected { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 7px 15px rgba(55, 104, 255, .12); }
.size-card strong { display: block; font-size: 19px; }
.size-card span { color: var(--muted); font-size: 12px; }
.size-card.ready::after { content: "已生成"; display: inline-block; margin-top: 9px; color: #17743a; font-size: 11px; font-weight: 800; }
.progress { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: center; margin-top: 16px; padding: 23px; overflow: hidden; border-radius: 18px; color: white; background: linear-gradient(135deg,#181716,#292724); box-shadow: 0 14px 32px rgba(29,27,25,.18); }
.progress::after { content: ""; position: absolute; width: 180px; height: 180px; right: -55px; top: -85px; border-radius: 50%; background: rgba(255,107,53,.12); }
.progress-visual { position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: #242321; }
.progress-visual::before { content: ""; position: absolute; inset: 0; border: 7px solid #3b3935; border-top-color: var(--orange); border-right-color: var(--blue); border-radius: 50%; animation: spin 1.5s linear infinite; }
.progress-visual strong { position: relative; font-size: 20px; font-variant-numeric: tabular-nums; }
.bead-loader { position: absolute; inset: -7px; animation: spin 4s linear infinite reverse; }
.bead-loader i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.bead-loader i:nth-child(1){left:44px;top:0}.bead-loader i:nth-child(2){right:0;top:44px;background:#ffd35c}.bead-loader i:nth-child(3){left:44px;bottom:0;background:#75a0ff}.bead-loader i:nth-child(4){left:0;top:44px;background:#f58aa8}
.progress-copy { position: relative; z-index: 1; display: grid; gap: 5px; }
.progress-kicker { color: #ffb89e; font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.progress-copy b { font-size: 19px; }
.progress-copy > span:not(.progress-kicker):not(.progress-time) { color: #d8d3ca; font-size: 12px; }
.progress-track { height: 8px; margin: 8px 0 3px; overflow: hidden; border-radius: 999px; background: #44413d; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff6b35,#ffd35c,#658cff); box-shadow: 0 0 14px rgba(255,107,53,.45); transition: width .25s ease; }
.progress-time { color: #9e9991; font-size: 11px; font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }

.workspace { margin-top: 20px; display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start; }
.workspace .panel { margin-top: 0; }
.process-panel { grid-column: 1/-1; }
.process-panel .section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.pipeline-status { padding: 8px 12px; border-radius: 999px; color: #176b37; background: #e5f7eb; font-size: 11px; font-weight: 800; white-space: nowrap; }
.process-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 11px; align-items: center; margin-top: 22px; }
.process-flow > i { color: var(--orange); font-size: 22px; font-style: normal; font-weight: 900; }
.process-step { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.process-step > span { position: absolute; top: 9px; left: 9px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: rgba(29,27,25,.88); font-size: 10px; font-weight: 900; }
.process-step canvas { display: block; width: 100%; aspect-ratio: 1; background: #eee9e0; image-rendering: pixelated; }
.process-step div { display: grid; gap: 4px; min-height: 95px; padding: 13px; }
.process-step b { font-size: 13px; }
.process-step small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.ai-stage-note { margin: 15px 0 0; padding: 11px 13px; border-left: 3px solid var(--blue); color: #526080; background: #f0f4ff; font-size: 11px; line-height: 1.6; }
.result-sidebar { position: static; }
.stats { display: grid; gap: 8px; margin: 20px 0; }
.stat { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; }
.stat b { font-variant-numeric: tabular-nums; }
.actions { display: grid; gap: 10px; }
.fineprint { font-size: 11px; line-height: 1.6; }
.preview-panel { min-width: 0; }
.preview-toolbar h2 { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tab { padding: 8px 11px; font-size: 12px; border-color: var(--line); }
.tab.active { color: white; background: var(--blue); border-color: var(--blue); }
.tabs label { font-size: 12px; white-space: nowrap; }
.canvas-stage { margin-top: 18px; padding: 14px; overflow: auto; border-radius: 12px; background: #e9e4db; text-align: center; }
#mainCanvas { display: block; max-width: 100%; height: auto; margin: auto; background: white; image-rendering: pixelated; }
.materials-panel { grid-column: 1/-1; }
.purchase-panel { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border: 2px solid var(--ink); }
.purchase-panel p { margin: 6px 0 12px; color: var(--muted); }
.purchase-tags { display: flex; flex-wrap: wrap; gap: 7px; }.purchase-tags span{padding:7px 10px;border-radius:999px;background:#f0ebe2;font-size:11px;font-weight:750}
.purchase-price { min-width: 220px; display: grid; gap: 7px; text-align: right; }.purchase-price small{color:var(--muted)}.purchase-price strong{font-size:32px}.purchase-price span{font-size:10px;color:var(--muted)}
.count-pill { background: var(--blue); color: white; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 800; }
.table-wrap { margin-top: 20px; overflow: auto; max-height: 520px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; background: var(--card); font-size: 12px; color: var(--muted); }
.swatch { display: inline-block; width: 28px; height: 28px; border: 1px solid #999; border-radius: 6px; vertical-align: middle; }
footer { padding: 28px; text-align: center; color: var(--muted); font-size: 12px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20,19,17,.48); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 41; width: min(440px,100%); height: 100%; padding: 28px; background: var(--card); box-shadow: -20px 0 50px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .28s ease; }
.cart-drawer.open { transform: translateX(0); }.drawer-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:18px}.drawer-head h2{margin:5px 0}.drawer-close{width:42px;height:42px;padding:0;border:0;background:#f0ebe2;font-size:25px}
.cart-empty { min-height: 55vh; display:grid; place-content:center; gap:7px; text-align:center; color:var(--muted) }.cart-empty b{color:var(--ink);font-size:18px}
.cart-item { display:grid; grid-template-columns:84px 1fr auto; gap:13px; align-items:start; padding:20px 0; border-bottom:1px solid var(--line) }.cart-item img{width:84px;height:84px;object-fit:cover;border-radius:9px;image-rendering:pixelated}.cart-item div{display:grid;gap:4px}.cart-item span,.cart-item small{color:var(--muted);font-size:11px}.cart-item button{width:max-content;padding:3px 0;border:0;color:#a33;background:transparent;font-size:11px}.cart-summary{position:absolute;left:28px;right:28px;bottom:28px;display:grid;gap:13px}.cart-summary>div{display:flex;justify-content:space-between;font-size:20px}.cart-summary small{color:var(--muted);line-height:1.5}.checkout-button{width:100%;padding:15px;background:var(--orange);border-color:var(--orange);box-shadow:none}
.checkout-modal { width:min(560px,calc(100% - 24px)); padding:0; border:0; border-radius:20px; background:var(--card); box-shadow:0 25px 80px rgba(0,0,0,.35) }.checkout-modal::backdrop{background:rgba(20,19,17,.62);backdrop-filter:blur(4px)}.checkout-modal form{padding:28px}.checkout-head{display:flex;justify-content:space-between;align-items:center}.checkout-head button{border:0;background:transparent;font-size:26px}.checkout-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:18px 0 25px}.checkout-progress i{height:5px;border-radius:9px;background:#ddd5c9}.checkout-progress i.active{background:var(--orange)}#checkoutForm>p{color:var(--muted)}#checkoutForm label{display:grid;gap:7px;margin:15px 0;font-size:12px;font-weight:750}#checkoutForm input{padding:13px;border:1px solid var(--line);border-radius:9px}.checkout-total{display:flex;justify-content:space-between;align-items:center;margin:22px 0;padding-top:17px;border-top:1px solid var(--line)}.checkout-total strong{font-size:25px}.place-order{width:100%;padding:15px;background:var(--orange);border-color:var(--orange);box-shadow:none}.order-success{text-align:center;padding:12px}.order-success>span{display:inline-grid;place-items:center;width:70px;height:70px;border-radius:50%;color:white;background:#28a15c;font-size:34px}.order-success p{color:var(--muted);line-height:1.6}.order-success div{display:grid;gap:4px;margin:20px;padding:15px;background:#f3eee4;border-radius:10px}.order-success button{width:100%}

@media (max-width: 900px) {
  .shop-product { grid-template-columns: 1fr; }.product-visual{min-height:320px}.product-copy{padding:34px}.how-strip{grid-template-columns:1fr 1fr}.how-strip div:nth-child(2){border-right:0}.how-strip div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .hero { align-items: flex-start; flex-direction: column; }
  .upload-panel, .workspace { grid-template-columns: 1fr; }
  .process-panel { grid-column: auto; }.process-flow{grid-template-columns:1fr 1fr;gap:12px}.process-flow>i{display:none}
  .controls { grid-template-columns: 1fr 1fr; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .materials-panel { grid-column: auto; }
  .style-grid { grid-template-columns: 1fr 1fr; }
  .generate-zone { align-items: stretch; flex-direction: column; }
  .generate-button { width: 100%; min-width: 0; }
  .background-options { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .demo-ribbon{font-size:9px}.store-nav{height:60px}.store-links{display:none}.brand{font-size:20px}.cart-trigger{padding:8px}
  button, select, input { min-height: 44px; }
  .hero { min-height: auto; padding: 36px 20px; }
  .hero h1 { font-size: clamp(38px,13vw,58px); }
  .hero p { font-size: 14px; line-height: 1.6; }
  .privacy-pill { white-space: normal; font-size: 11px; }
  main { width: min(100% - 20px,1240px); margin-top: 14px; }
  .panel { padding: 18px; border-radius: 14px; }
  .upload-panel { gap: 16px; }
  .dropzone { min-height: 140px; text-align: center; }
  .original-wrap { display: grid; grid-template-columns: 64px 1fr; }
  .original-wrap img { width: 64px; height: 64px; }
  .original-wrap button { grid-column: 1/-1; width: 100%; }
  .background-choice, .option-zone { padding: 15px; }
  .background-option { min-height: 72px; }
  .portrait-action { grid-template-columns: 1fr; }
  .portrait-action .segment-button, .portrait-action > span { grid-column: 1; width: 100%; }
  .editor-heading { align-items: flex-start; flex-direction: column; }
  .editor-stage { margin: 0 -4px; padding: 8px; }
  .crop-hint { bottom: 18px; white-space: nowrap; }
  .editor-controls input[type=range] { min-height: 34px; }
  .editor-buttons button, .editor-actions button { min-height: 46px; }
  .controls { grid-template-columns: 1fr; }
  .generate-zone { position: relative; margin-left: -4px; margin-right: -4px; }
  .workspace { gap: 12px; }
  .canvas-stage { padding: 8px; }
  .preview-toolbar { align-items: flex-start; flex-direction: column; }
  .tabs { justify-content: flex-start; }
  .tabs .tab { flex: 1; }
  .materials-panel { padding-left: 14px; padding-right: 14px; }
  .purchase-panel{grid-template-columns:1fr}.purchase-price{text-align:left}.purchase-price button{width:100%}
  .table-wrap { margin-left: -4px; margin-right: -4px; }
  table { min-width: 620px; }
  th, td { padding: 10px; font-size: 12px; }
}
@media (max-width: 560px) {
  .style-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.style-card{padding:10px}.style-card.selected{padding:9px}.style-name b{font-size:15px}.style-card small{font-size:10px}.style-card>strong{font-size:10px}
  .product-visual{min-height:250px}.pixel-art{width:170px;height:170px}.product-copy{padding:27px 20px}.product-copy h2{font-size:35px}.product-choice{grid-template-columns:20px 1fr}.product-choice>strong{grid-column:2;font-size:17px}.how-strip{grid-template-columns:1fr}.how-strip div{border-right:0;border-bottom:1px solid var(--line)!important}.how-strip div:last-child{border-bottom:0!important}.cart-drawer{padding:20px}.cart-summary{left:20px;right:20px;bottom:20px}
  .controls { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .recommend-box, .preview-toolbar, .style-mode { align-items: flex-start; flex-direction: column; }
  .progress { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .progress-copy { width: 100%; }
  .process-flow { grid-template-columns: 1fr; }.process-step{display:grid;grid-template-columns:110px 1fr;align-items:center}.process-step canvas{width:110px}.process-step div{min-height:0}.pipeline-status{white-space:normal}
  .original-wrap { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .style-grid { grid-template-columns: 1fr; }.style-card{grid-template-columns:84px 1fr;column-gap:11px}.style-card canvas{grid-row:1/4;width:84px;margin:0}.style-card small{grid-column:2}.style-card>strong{grid-column:2}
  .hero { padding: 28px 16px; }
  main { width: calc(100% - 12px); }
  .panel { padding: 14px; }
  h2 { font-size: 22px; }
  .editor-buttons { grid-template-columns: 1fr 1fr; }
  .editor-actions { position: sticky; bottom: 6px; z-index: 4; padding: 8px; margin: 0 -5px; border-radius: 11px; background: rgba(255,253,248,.94); backdrop-filter: blur(8px); box-shadow: 0 7px 22px rgba(0,0,0,.12); }
  .progress { padding: 18px 14px; }
  .progress-visual { width: 82px; height: 82px; }
  .section-heading h2 { font-size: 21px; }
}
