:root {
  color-scheme: light;
  --ink: #1d2735;
  --muted: #7d8797;
  --border: #dfe6ed;
  --canvas: #f5f7fa;
  --wechat: #07be67;
  --alipay: #1877f2;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 62px;
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #edf0f4;
  box-shadow: 0 3px 18px rgb(24 38 57 / 4%);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand small, .privacy-note small { color: #8893a2; font-size: 10px; margin-top: 2px; }
.brand-mark { width: 33px; height: 33px; border-radius: 6px; overflow: hidden; display: inline-flex; color: white; font-weight: 800; font-size: 11px; box-shadow: 0 4px 9px rgb(23 108 174 / 20%); }
.brand-mark span { flex: 1; display: grid; place-items: center; }
.mark-wechat { background: var(--wechat); }.mark-alipay { background: var(--alipay); }
.privacy-note { display: flex; align-items: center; gap: 8px; color: #547361; font-size: 11px; }
.privacy-note b, .privacy-note small { display: block; }.privacy-note small { color: #8b9690; }
.shield-icon { width: 17px; height: 19px; border: 2px solid #4f8870; border-radius: 8px 8px 10px 10px; position: relative; }.shield-icon::after { content: ""; position: absolute; width: 4px; height: 7px; border-right: 1.5px solid #4f8870; border-bottom: 1.5px solid #4f8870; transform: rotate(38deg); left: 5px; top: 2px; }

.app-shell { min-height: calc(100vh - 62px); display: grid; grid-template-columns: minmax(590px, 1.27fr) minmax(410px, .93fr); }
.workspace { background: #fff; }.editor-content { max-width: 590px; padding: 38px 36px 44px; margin: 0 auto; }
.form-section + .form-section { margin-top: 21px; }
.section-heading, .preview-heading, .preview-heading > div { display: flex; align-items: center; }
.section-heading { gap: 9px; margin-bottom: 14px; }.section-heading h1, .section-heading h2, .preview-heading h2 { font-size: 14px; margin: 0; font-weight: 700; }.step-index { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; padding: 2px 5px; font-size: 9px; border-radius: 3px; color: #667488; background: #eef2f5; }.step-progress { margin-left: auto; font-size: 10px; color: #8792a1; }

.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload-card { padding: 12px; min-width: 0; border: 1px solid var(--border); border-radius: 6px; background: #fff; transition: .2s ease; }
.upload-card.wechat-card.ready { border-color: #6cd7a1; box-shadow: 0 4px 14px rgb(7 190 103 / 8%); }.upload-card.alipay-card.ready { border-color: #82b6fc; box-shadow: 0 4px 14px rgb(24 119 242 / 8%); }
.upload-card-head { display: flex; align-items: center; gap: 7px; min-height: 28px; }.upload-card-head > span:nth-child(2) { min-width: 0; }.upload-card-head b, .upload-card-head small { display: block; }.upload-card-head b { font-size: 11px; }.upload-card-head small { font-size: 9px; color: #9aa4b1; margin-top: 1px; }.payment-mark { width: 23px; height: 23px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 10px; }.wechat-mark { background: var(--wechat); }.alipay-mark { background: var(--alipay); }.success-dot { display: none; margin-left: auto; width: 13px; height: 13px; border-radius: 50%; color: white; background: #22aa6a; font-size: 9px; line-height: 13px; text-align: center; }.ready .success-dot { display: block; }
.upload-dropzone { position: relative; display: grid; place-items: center; height: 144px; margin-top: 10px; border: 1px solid #e5eaf0; border-radius: 5px; background: #fafbfd; overflow: hidden; cursor: pointer; }.upload-dropzone:hover { border-color: #9fc3ee; background: #f8fbff; }.upload-dropzone input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }.upload-dropzone img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; pointer-events: none; }.empty-upload { display: grid; justify-items: center; gap: 4px; color: #6f7d8d; text-align: center; }.empty-upload b { font-size: 10px; }.empty-upload small { font-size: 9px; color: #a0a9b5; }.upload-icon { width: 25px; height: 25px; padding-top: 1px; border: 1px solid #cfd8e2; border-radius: 50%; color: #6d7c8d; font-size: 19px; line-height: 20px; }
.file-row { display: flex; align-items: center; min-width: 0; height: 24px; padding: 0 3px; color: #9aa4b1; font-size: 9px; }.file-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-actions { display: flex; gap: 6px; margin-left: auto; padding-left: 7px; }.file-actions button { width: 17px; height: 17px; padding: 0; border: 0; border-radius: 3px; color: #8090a1; background: #f0f3f6; line-height: 16px; }.file-actions button:hover { background: #e4ebf2; color: #4a6075; }

.poster-name-section { margin-top: 19px; }.name-field { height: 34px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 5px; padding: 0 10px; }.name-field:focus-within { border-color: #8cb7ec; box-shadow: 0 0 0 3px rgb(24 119 242 / 8%); }.name-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: #394656; font-size: 11px; }.title-icon { color: #718092; font-size: 15px; }.name-field > span:last-child { color: #9ca6b3; font-size: 9px; white-space: nowrap; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }.button { height: 32px; padding: 0 13px; border-radius: 4px; border: 1px solid #dfe5eb; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 600; }.button.secondary { color: #687687; background: white; }.button.primary { color: white; border-color: #212f3d; background: #202e3c; box-shadow: 0 4px 10px rgb(32 46 60 / 16%); }.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); }
.local-notice { display: flex; gap: 7px; margin: 30px 0 0; max-width: 568px; color: #909aa7; font-size: 10px; line-height: 1.75; }.local-notice span { color: #758496; font-size: 13px; line-height: 1.3; }

.preview-pane { background: var(--canvas); border-left: 1px solid #e8edf2; }.preview-content { width: min(100%, 370px); padding: 38px 18px 30px; margin: 0 auto; }.preview-heading { justify-content: space-between; margin-bottom: 16px; }.preview-heading > div { gap: 9px; }.preview-state { color: #7b8896; font-size: 9px; }.preview-state i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: #aab4c0; margin-right: 4px; vertical-align: 1px; }.preview-state.done { color: #6c8372; }.preview-state.done i { background: #15ad68; }
.poster-stage { position: relative; width: min(100%, 300px); margin: 0 auto 13px; }.poster-stage canvas { display: none; }.poster-stage img { display: block; position: relative; z-index: 1; width: 100%; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 8px 18px rgb(58 74 94 / 18%); -webkit-touch-callout: default; }.poster-shadow { position: absolute; z-index: 0; inset: auto 18px -9px; height: 22px; background: rgb(35 48 70 / 19%); filter: blur(12px); }
.download-button { width: min(100%, 300px); min-height: 40px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 4px; color: white; background: var(--alipay); box-shadow: 0 5px 12px rgb(24 119 242 / 22%); }.download-button:disabled { cursor: not-allowed; color: #a8b4c2; background: #e4e9ef; box-shadow: none; }.download-button > span:first-child { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: rgb(255 255 255 / 16%); font-size: 17px; }.download-button b, .download-button small { display: block; text-align: left; }.download-button b { font-size: 11px; }.download-button small { font-size: 8px; opacity: .75; margin-top: 1px; }.download-note { margin: 8px 0 0; color: #a1aab4; text-align: center; font-size: 9px; }
.wechat-save-note { width: min(100%, 300px); margin: 0 auto; padding: 9px 12px; border: 1px solid #ccebd9; border-radius: 4px; color: #278759; background: #f1fbf5; text-align: center; }.wechat-save-note b, .wechat-save-note span { display: block; }.wechat-save-note b { font-size: 11px; }.wechat-save-note span { margin-top: 2px; color: #789784; font-size: 9px; }.is-wechat .download-button { display: none; }

.toast { position: fixed; z-index: 20; top: 75px; left: 50%; max-width: min(90vw, 500px); padding: 9px 13px; border-radius: 5px; color: white; font-size: 12px; line-height: 1.4; background: #28394a; box-shadow: 0 9px 22px rgb(27 45 64 / 19%); opacity: 0; pointer-events: none; transform: translate(-50%, -10px); transition: .18s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast.error { background: #c94742; }

@media (max-width: 900px) { .site-header { padding: 0 20px; }.app-shell { grid-template-columns: 1fr; }.preview-pane { border: 0; border-top: 1px solid #e8edf2; }.preview-content { width: min(100%, 510px); }.poster-stage, .download-button { width: min(100%, 340px); } }
@media (max-width: 560px) { .site-header { height: 57px; padding: 0 14px; }.privacy-note small { display: none; }.privacy-note { font-size: 10px; }.app-shell { min-height: calc(100vh - 57px); }.editor-content { padding: 25px 16px 30px; }.upload-grid { grid-template-columns: 1fr; }.upload-dropzone { height: 128px; }.local-notice { margin-top: 24px; }.preview-content { padding: 27px 16px; } }
