:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: #171717; background: #fff8f8; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.site-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
.hero { margin-bottom: 28px; }
.hero h1 { margin: 12px 0; font-size: clamp(32px, 7vw, 52px); letter-spacing: -0.05em; }
.hero p { color: #666; line-height: 1.75; margin: 0; }
.badge { display: inline-block; color: #c91f3a; background: #ffe5ea; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.card { background: #fff; border: 1px solid #f0dddd; border-radius: 20px; box-shadow: 0 12px 35px rgba(111, 34, 47, .07); padding: 28px; margin-top: 20px; }
form { display: grid; gap: 20px; }
label { display: grid; gap: 8px; font-weight: 700; font-size: 14px; }
input, textarea { width: 100%; resize: vertical; border: 1px solid #e5d5d8; border-radius: 11px; padding: 12px 13px; color: #171717; background: #fff; outline: none; font-weight: 400; line-height: 1.55; }
input:focus, textarea:focus { border-color: #ff2442; box-shadow: 0 0 0 3px #ffe4e9; }
.optional-field { color: #777; }
.primary-button, .publish-button { width: 100%; border: 0; border-radius: 12px; background: #ff2442; color: #fff; padding: 14px 18px; font-weight: 800; box-shadow: 0 8px 18px rgba(255, 36, 66, .22); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.secondary-button { border: 1px solid #f0c9d0; border-radius: 10px; color: #ba1631; background: #fff6f7; padding: 9px 12px; margin: 8px 8px 0 0; font-weight: 700; }
.hint, .meta { color: #777; line-height: 1.6; font-size: 13px; margin: 18px 0 0; }
.result-grid { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; }
.result-grid h2, .api-card h2 { margin: 10px 0; }
.qrcode { width: 190px; height: 190px; padding: 8px; border: 1px solid #f1e1e3; border-radius: 14px; background: #fff; }
.text-link { display: inline-block; color: #c91f3a; margin-top: 8px; font-weight: 700; text-decoration: none; }
.error { color: #bf1532; margin: 0; }
pre { overflow: auto; margin: 0; padding: 16px; border-radius: 12px; background: #1f1820; color: #ffe9ed; font-size: 13px; line-height: 1.55; }
.preview-page { min-height: 100dvh; background: #eef1f6; }
.phone-shell { width: min(100%, 560px); min-height: 100dvh; margin: auto; background: #fff; padding-bottom: 86px; }
.loading { padding: 40px 20px; text-align: center; color: #777; }
.preview-header { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: #111; color: #fff; font-size: 18px; }
.preview-header span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffb71b; color: #fff; font-size: 14px; font-weight: 900; }
.media-list { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; background: #f5f5f5; }
.media-list img { width: 100%; aspect-ratio: 3 / 4; max-height: 670px; object-fit: contain; background: #f5f5f5; scroll-snap-align: center; }
.preview-content { padding: 22px 20px; }
.preview-content h1 { margin: 0 0 14px; font-size: 22px; line-height: 1.35; }
.preview-content p { line-height: 1.8; white-space: normal; color: #333; }
.preview-notice { border-radius: 12px; padding: 12px; color: #a24a58; background: #fff1f3; font-size: 13px; line-height: 1.55; }
.publish-bar { position: fixed; z-index: 2; bottom: 0; left: 50%; width: min(100%, 560px); transform: translateX(-50%); padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); border-top: 1px solid #eee; backdrop-filter: blur(12px); }
.publish-button { border-radius: 999px; font-size: 17px; }
@media (max-width: 560px) { .site-shell { width: min(100% - 24px, 760px); padding-top: 36px; } .card { padding: 20px; border-radius: 16px; } .result-grid { grid-template-columns: 1fr; gap: 18px; } .qrcode { width: 170px; height: 170px; } }
