/* ============================================================
 * 今天拼豆了吗 · 仿站样式
 * 设计单位说明：与目标站一致，大写 PX 视为固定 px；
 * 仅 shell 内边距等少量尺寸使用 rem，随根字号（750 设计稿）缩放。
 * ============================================================ */

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: only light; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  color: #351326;
  background-color: #fff1f7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------------- 设计变量 ---------------- */
:root {
  --pd-brand: #ec4899;
  --pd-primary: #ec4899;
  --pd-primary-strong: #351326;
  --pd-gradient-from: #ff6bac;
  --pd-gradient-to: #ec4899;
  --pd-brand-soft: rgba(236, 72, 153, .14);
  --pd-accent: #ffd35c;
  --pd-accent-soft: #fff0ad;
  --pd-mint: #45c5ac;
  --pd-success: #16a34a;
  --pd-text-primary: #351326;
  --pd-text-secondary: #795064;
  --pd-text-tertiary: #9a7585;
  --pd-text-placeholder: #94a3b8;
  --pd-border: #351326;
  --pd-bg-page: #fff1f7;
  --pd-bg-card: #ffffff;
  --pd-bg-muted: #fff7fb;
  --pd-stage-paper: #fff8ec;
  --pd-stage-ink: #351326;
  --pd-stage-primary: #ec4899;
  --pd-stage-accent: #ffd35c;
  --pd-stage-shadow: rgba(53, 19, 38, .18);
  --pd-radius-control: 18px;
  --pd-radius-card: 28px;
  --pd-shadow-card: 0 12px 30px rgba(53, 19, 38, .08);
  --pd-shadow-card-sm: 0 8px 22px rgba(53, 19, 38, .07);
  --pd-font-tiny: 11px;
  --pd-font-caption: 12px;
  --pd-font-small: 13px;
  --pd-font-body: 14px;
  --pd-font-subtitle: 16px;
  --pd-font-title: 18px;
  --pd-font-heading: 22px;
  --pd-control-height-sm: 32px;
  --pd-control-height-md: 40px;
  --pd-control-height-lg: 48px;
  --pd-control-height-xl: 56px;
  --pd-touch-target: 44px;
  --pd-h5-desktop-top-nav: 68px;
}
body { color: var(--pd-stage-ink); }

/* ---------------- 通用壳 ---------------- */
.pd-shell {
  min-height: 100vh;
  box-sizing: border-box;
  width: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 211, 92, .42), transparent 240px),
              linear-gradient(180deg, #fff1f7 0%, #ffffff 44%, #fff3e3 100%);
  color: var(--pd-stage-ink);
  position: relative;
}
.pd-shell__inner {
  width: 100%;
  min-height: 100vh;
  padding-left: .35rem;
  padding-right: .35rem;
  padding-bottom: 112px;
  box-sizing: border-box;
}

/* ---------------- 首页 ---------------- */
.pd-home {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-home__header-card {
  border-radius: .6rem;
  background: #ffffff;
  padding: .35rem;
  border: 1px solid rgba(255, 228, 230, .9);
  box-shadow: 0 6px 18px #3513260d;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .4rem;
  box-sizing: border-box;
}
.pd-home__avatar {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .6rem;
  background: #ffffff;
  border: 1.5px solid rgba(53, 19, 38, .78);
  color: var(--pd-stage-ink);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 5px 14px #35132614;
  font-weight: 900;
  font-size: 20px;
}
.pd-home__avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--pd-stage-ink); }
.pd-home__header-meta { flex: 1; min-width: 0; }
.pd-home__name {
  display: block; font-size: var(--pd-font-subtitle); font-weight: 700; color: #111827;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-home__balance-line {
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  font-size: var(--pd-font-small); color: #64748b; line-height: 1.28; font-weight: 800;
  margin-top: 2px; overflow-wrap: anywhere;
}
.pd-home__usage-line {
  display: block; font-size: var(--pd-font-caption); color: #94a3b8;
  line-height: 1.3; font-weight: 600; margin-top: 1px; overflow-wrap: anywhere;
}
.pd-home__header-action {
  width: 42px; height: 42px; padding: 0; border-radius: 14px;
  border: 1.5px solid rgba(53, 19, 38, .78);
  background: rgba(255, 211, 92, .82);
  box-shadow: 0 5px 14px #35132614;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pd-home__header-action:active { transform: translate(1px, 1px); box-shadow: .025rem .05rem 0 var(--pd-stage-shadow); }
.pd-home__header-action-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd-home__upload { width: 100%; }
.pd-home__stack { display: flex; flex-direction: column; gap: 12px; }
.pd-home__card { min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* ---------------- 上传功能卡 ---------------- */
.studio-upload { position: relative; }
.studio-upload__mode-card {
  width: 100%; border-radius: 22px; border: 1px solid rgba(53, 19, 38, .12);
  background: rgba(255, 255, 255, .86); padding: 12px;
  box-shadow: 0 8px 22px #3513260f; box-sizing: border-box;
}
.studio-upload__mode-card--busy { pointer-events: none; opacity: .65; }
.studio-upload__mode-head { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.studio-upload__mode-title { display: block; font-size: var(--pd-font-body); line-height: 1.3; font-weight: 900; color: var(--pd-stage-ink); }
.studio-upload__mode-hint { display: block; color: #94a3b8; font-size: var(--pd-font-caption); line-height: 1.3; font-weight: 800; white-space: nowrap; }
.studio-upload__mode-list { display: flex; flex-direction: column; gap: 8px; }
.studio-upload__feature-card {
  position: relative; min-height: 160px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  align-items: stretch; border-radius: 20px;
  border: 1.5px solid rgba(53, 19, 38, .16);
  background: radial-gradient(circle at 86% 18%, rgba(255, 211, 92, .34), transparent 86px), #ffffff;
  box-shadow: 0 4px 12px #3513260b; box-sizing: border-box;
  text-align: left; width: 100%; font-family: inherit;
}
.studio-upload__feature-card:active { transform: translateY(1px); }
.studio-upload__feature-card--drag { border-color: var(--pd-stage-ink); box-shadow: 0 6px 18px #3513261a; }
.studio-upload__native-file-input {
  position: absolute; z-index: 4; inset: 0; display: block; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer;
}
.studio-upload__feature-copy {
  position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; padding: 18px 0 18px 18px; box-sizing: border-box;
}
.studio-upload__feature-title { display: block; color: var(--pd-stage-ink); font-size: 18px; line-height: 1.2; font-weight: 900; white-space: nowrap; }
.studio-upload__feature-desc { display: block; margin-top: 8px; color: rgba(53, 19, 38, .62); font-size: 11px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
.studio-upload__feature-action {
  min-height: 40px; margin-top: 14px; display: inline-flex; align-self: flex-start;
  align-items: center; justify-content: center; gap: 10px; padding: 0 13px;
  border-radius: 14px; border: 1.5px solid rgba(53, 19, 38, .82);
  background: #ffd35c; color: var(--pd-stage-ink); font-size: 14px; line-height: 1;
  font-weight: 900; box-shadow: 0 4px #3513262e; white-space: nowrap; box-sizing: border-box;
}
.studio-upload__feature-cost { position: relative; flex: 0 0 auto; gap: 3px; color: rgba(53, 19, 38, .68); font-size: 11px; font-weight: 900; }
.studio-upload__feature-art { position: relative; min-width: 0; display: flex; align-items: center; justify-content: flex-end; overflow: visible; }

/* 卡片插画：绝对定位，尺寸对齐目标站的 .studio-upload__feature-img，绝不参与撑高 */
.studio-upload__art-img {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 118%;
  height: 142px;
  display: block;
  overflow: visible;
  flex-shrink: 0;
  object-fit: contain;
  -webkit-user-drag: none;
}
.studio-upload__art-img--qr { width: 126%; height: 148px; }
.studio-upload__feature-img { width: 118%; height: 142px; display: block; flex-shrink: 0; }
.studio-upload__feature-card--qr, .studio-upload__feature-card--convert { min-height: 130px; }
.studio-upload__feature-card--qr .studio-upload__feature-copy,
.studio-upload__feature-card--convert .studio-upload__feature-copy { padding-top: 12px; padding-bottom: 12px; }
.studio-upload__feature-card--qr .studio-upload__feature-desc,
.studio-upload__feature-card--convert .studio-upload__feature-desc { margin-top: 6px; }
.studio-upload__feature-card--qr .studio-upload__feature-action,
.studio-upload__feature-card--convert .studio-upload__feature-action { margin-top: 10px; }
.studio-upload__feature-card--qr .studio-upload__feature-img,
.studio-upload__feature-card--convert .studio-upload__feature-img { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
.studio-upload__feature-card--text-pattern { min-height: 132px; cursor: pointer; }
.studio-upload__feature-card--text-pattern .studio-upload__feature-copy { padding-top: 14px; padding-bottom: 14px; }
.studio-upload__feature-card--text-pattern .studio-upload__feature-action { margin-top: 10px; }
.studio-upload__text-pattern-art { position: relative; display: flex; width: 100%; height: 100%; min-height: 92px; align-items: center; justify-content: center; padding: 8px 12px; box-sizing: border-box; }
.studio-upload__text-pattern-art__overlay { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px 10px; }
.studio-upload__text-pattern-art__glyph {
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: 0;
}
.studio-upload__text-pattern-art__glyph--1 { color: #351326; }
.studio-upload__text-pattern-art__glyph--2 { color: #ef4444; }
.studio-upload__text-pattern-art__glyph--3 { color: #22c55e; }
.studio-upload__text-pattern-art__glyph--4 { color: #3b82f6; }

/* ---------------- 最近编辑面板 ---------------- */
.workspace-works-panel {
  width: 100%; border: 1px solid rgba(53, 19, 38, .12); border-radius: 22px;
  background: rgba(255, 255, 255, .7); padding: 12px; box-sizing: border-box; overflow: hidden;
}
.workspace-works-panel__head { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-bottom: 8px; }
.workspace-works-panel__title-wrap { display: flex; align-items: center; gap: .25rem; min-width: 0; flex: 1; }
.workspace-works-panel__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--pd-accent); border: 2px solid var(--pd-stage-ink); flex-shrink: 0; }
.workspace-works-panel__title { display: block; font-size: var(--pd-font-body); line-height: 1.2; font-weight: 900; color: var(--pd-stage-ink); }
.workspace-works-panel__head-actions { flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* 「图纸口令」按钮（源站最近编辑标题栏那个黄色按钮） */
.workspace-works-panel__code {
  min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .3);
  background: #ffd35c; font-size: 12px; font-weight: 900; color: #35131f;
}
.workspace-works-panel__more {
  flex-shrink: 0; min-height: 30px; padding: 0 12px; border: 1px solid rgba(53, 19, 38, .26);
  border-radius: 12px; background: #ffffff; box-shadow: 0 4px 10px #3513260d;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--pd-font-caption); font-weight: 900; color: var(--pd-stage-ink); line-height: 1;
}
.workspace-works-panel__more:active { transform: translate(1px, 1px); box-shadow: 0 2px 6px #3513260d; }
.workspace-works-panel__list { display: flex; flex-direction: column; gap: 8px; }
.workspace-works-panel__empty {
  min-height: 76px; border: 2px dashed rgba(53, 19, 38, .28); border-radius: 18px;
  background: linear-gradient(90deg, rgba(53, 19, 38, .05) 1px, transparent 1px) 0 0 / 14px 14px,
              linear-gradient(rgba(53, 19, 38, .05) 1px, transparent 1px) 0 0 / 14px 14px,
              rgba(255, 246, 227, .72);
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: center;
  padding: 12px 14px; box-sizing: border-box;
}
.workspace-works-panel__empty-icon {
  grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 12px;
  background: rgba(255, 211, 92, .7); border: 1px solid rgba(53, 19, 38, .2);
  display: flex; align-items: center; justify-content: center; color: var(--pd-stage-ink);
}
.workspace-works-panel__empty-title { display: block; font-size: var(--pd-font-small); line-height: 1.25; font-weight: 900; color: var(--pd-stage-ink); }
.workspace-works-panel__empty-desc { display: block; margin-top: 3px; font-size: var(--pd-font-caption); line-height: 1.35; color: var(--pd-text-secondary); }

/* ---------------- 使用帮助 / 备案 ---------------- */
.pd-home__seo-links { width: 100%; border-radius: 18px; border: 1px solid rgba(226, 214, 222, .92); background: rgba(255, 255, 255, .82); padding: 12px 14px; box-shadow: 0 6px 18px #3513260a; box-sizing: border-box; }
.pd-home__seo-title { display: block; font-size: var(--pd-font-caption); color: #94a3b8; font-weight: 800; line-height: 1.3; }
.pd-home__seo-link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-home__seo-link { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: #fff8f3; color: #6d3b58; font-size: var(--pd-font-caption); font-weight: 800; line-height: 1; border: 0; }
.pd-home__seo-link:active { background: #ffe7b5; }
.pd-home__beian { width: 100%; box-sizing: border-box; padding: 2px 0 0; display: flex; justify-content: center; }
.pd-home__beian-link { color: #94a3b8; font-size: var(--pd-font-tiny); line-height: 1.45; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- 底部标签栏 ---------------- */
.pd-tab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  padding-bottom: env(safe-area-inset-bottom, 0rem);
  background: rgba(255, 248, 236, .86);
  -webkit-backdrop-filter: blur(.3rem); backdrop-filter: blur(.3rem);
  border-top: 1px solid rgba(53, 19, 38, .1);
  box-shadow: 0 -6px 18px #3513260a;
}
.pd-tab__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 18px 10px; max-width: 100%; box-sizing: border-box; }
.pd-tab__btn {
  width: 100%; max-width: 92px; height: 50px; border-radius: 16px; border: 1px solid transparent;
  justify-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; color: #94a3b8;
}
.pd-tab__btn--active { color: var(--pd-stage-ink); background: rgba(255, 255, 255, .62); border-color: #35132647; }
.pd-tab__label { font-size: var(--pd-font-caption); font-weight: 700; line-height: 1.2; }
.pd-tab__btn svg { width: 22px !important; height: 22px !important; }

/* ---------------- 顶栏（二级页面） ---------------- */
.pd-navbar-host { position: sticky; top: 0; z-index: 120; }
.pd-navbar-host--fixed { position: fixed; left: 0; right: 0; top: 0; }
.pd-navbar {
  background: rgba(255, 248, 236, .92);
  -webkit-backdrop-filter: blur(.3rem); backdrop-filter: blur(.3rem);
  border-bottom: 1px solid rgba(53, 19, 38, .08);
}
.pd-navbar__safe { height: env(safe-area-inset-top, 0rem); }
.pd-navbar__bar { display: grid; grid-template-columns: 62px minmax(0, 1fr) 62px; align-items: center; min-height: 48px; padding: 0 8px; }
.pd-navbar__left, .pd-navbar__actions { display: flex; align-items: center; gap: 6px; }
.pd-navbar__actions { justify-content: flex-end; }
.pd-navbar__back, .pd-navbar__home {
  width: 34px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(53, 19, 38, .5);
  background: #fff8ec; display: inline-flex; align-items: center; justify-content: center; color: var(--pd-stage-ink);
}
.pd-navbar__back:active, .pd-navbar__home:active { transform: translate(1px, 1px); }
.pd-navbar__center { min-width: 0; text-align: center; }
.pd-navbar__title { display: block; font-size: 15px; font-weight: 900; color: var(--pd-stage-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-navbar__subtitle { display: block; font-size: 11px; color: var(--pd-text-secondary); font-weight: 600; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-navbar__action {
  min-height: 32px; padding: 0 11px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .22);
  background: #fff8ec; font-size: 12px; font-weight: 900; color: var(--pd-stage-ink);
  display: inline-flex; align-items: center; gap: 5px;
}
.pd-navbar__action--primary { background: linear-gradient(180deg, #ffd45d 0%, #ffc33d 100%); border-color: rgba(53, 19, 38, .76); box-shadow: 0 3px rgba(53, 19, 38, .18); }

/* ---------------- 通用组件 ---------------- */
.pd-card { border: 1px solid rgba(53, 19, 38, .12); border-radius: 22px; background: rgba(255, 255, 255, .86); padding: 14px; box-shadow: 0 8px 22px #3513260f; }
.pd-btn {
  min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(53, 19, 38, .82);
  background: #ffd35c; color: var(--pd-stage-ink); font-size: 15px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px #3513262e; line-height: 1;
}
.pd-btn:active { transform: translateY(2px); box-shadow: 0 2px #3513262e; }
.pd-btn--default { background: #fff8ec; border-color: rgba(53, 19, 38, .35); box-shadow: 0 4px #35132614; }
.pd-btn--danger { background: #ffe3ec; border-color: rgba(220, 38, 98, .55); color: #9d174d; box-shadow: 0 4px #35132614; }
.pd-btn--block { width: 100%; }
.pd-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 12px; }
.pd-btn:disabled, .pd-btn[aria-disabled="true"] { background: #f5e8be; border-color: rgba(53, 19, 38, .42); color: rgba(53, 19, 38, .48); box-shadow: none; pointer-events: none; }

/* 裁剪构图 */
.pd-crop__tip { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; color: var(--pd-text-secondary); }
.pd-crop__stage {
  position: relative; width: 300px; height: 300px; margin: 0 auto;
  border-radius: 14px; overflow: hidden; background: #1b1220;
  touch-action: none; cursor: grab;
}
.pd-crop__stage:active { cursor: grabbing; }
.pd-crop__canvas { display: block; width: 300px; height: 300px; }
.pd-crop__zoom { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pd-crop__zoom-label { font-size: 12.5px; color: var(--pd-text-secondary); white-space: nowrap; }
.pd-crop__zoom input[type="range"] { flex: 1; accent-color: #ff5a8a; }
.pd-crop__actions { display: flex; gap: 10px; margin-top: 16px; }
.pd-crop__actions .pd-btn { flex: 1; }

/* 格数推荐 */
.pd-rec { margin-top: 10px; }
.pd-rec__hint { margin: 0 0 8px; font-size: 12.5px; line-height: 1.7; color: var(--pd-text-secondary); }
.pd-rec__tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-rectier {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 9px 10px; border-radius: 12px; border: 1.5px solid #f0e3ec;
  background: #fff; cursor: pointer; text-align: left; transition: .15s;
}
.pd-rectier b { font-size: 13px; color: var(--pd-text); }
.pd-rectier span { font-size: 11.5px; color: var(--pd-text-secondary); }
.pd-rectier.is-active { border-color: #d6336c; background: #fff5f9; }
.pd-chip--rec { position: relative; }
.pd-chip__rec {
  position: absolute; top: -8px; right: -6px; font-style: normal; font-size: 9.5px; font-weight: 800;
  padding: 1px 5px; border-radius: 8px; background: #ff5a8a; color: #fff; line-height: 1.5;
}

.pd-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip {
  min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .18);
  background: #fff; font-size: 13px; font-weight: 900; color: rgba(53, 19, 38, .68);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.pd-chip--active { background: #ffd35c; border-color: rgba(53, 19, 38, .78); color: var(--pd-stage-ink); box-shadow: 0 3px #3513261f; }

.pd-field { display: block; }
.pd-field__label { display: block; font-size: 12px; font-weight: 900; color: var(--pd-text-secondary); margin-bottom: 6px; }
.pd-input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid rgba(53, 19, 38, .18); background: #fff; font-size: 15px; font-weight: 700;
  color: var(--pd-stage-ink); outline: none;
}
.pd-input::placeholder { color: var(--pd-text-placeholder); font-weight: 600; }
.pd-input:focus { border-color: rgba(53, 19, 38, .6); }

.pd-switch {
  position: relative; width: 50px; height: 30px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .3);
  background: #ede4ea; transition: background .18s; flex-shrink: 0;
}
.pd-switch:after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 5px rgba(53, 19, 38, .3); transition: transform .18s;
}
.pd-switch--on { background: var(--pd-accent); border-color: rgba(53, 19, 38, .6); }
.pd-switch--on:after { transform: translateX(20px); }

.pd-list { display: flex; flex-direction: column; gap: 10px; }
.pd-row {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px;
  border-radius: 18px; border: 1px solid rgba(53, 19, 38, .1); background: rgba(255, 255, 255, .86);
}
.pd-row__icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(180deg, #fff8e5 0%, #ffe59e 100%);
  border: 1px solid rgba(53, 19, 38, .08);
  display: flex; align-items: center; justify-content: center; color: var(--pd-stage-ink);
}
.pd-row__body { flex: 1; min-width: 0; }
.pd-row__title { display: block; font-size: 14px; font-weight: 900; color: var(--pd-stage-ink); }
.pd-row__desc { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--pd-text-secondary); }
.pd-row__value { font-size: 13px; font-weight: 900; color: var(--pd-text-secondary); flex-shrink: 0; }
.pd-row__arrow { color: rgba(53, 19, 38, .3); flex-shrink: 0; display: flex; }

/* 豆豆 ---------------- */
.bean-amount { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; max-width: 100%; color: inherit; line-height: 1; white-space: nowrap; }
.bean-amount__prefix, .bean-amount__suffix, .bean-amount__value { display: block; line-height: 1; }
.bean-amount__value { font-weight: 900; font-variant-numeric: tabular-nums; }
.bean-amount__icon { flex: 0 0 auto; color: var(--pd-stage-ink); --pd-bean-fill: #ffc64a; --pd-bean-stroke: var(--pd-stage-ink); }
.bean-amount--small { gap: 4px; font-size: 12px; }

/* ---------------- 底部弹层 ---------------- */
.pd-mask {
  position: fixed; inset: 0; z-index: 1000; background: rgba(53, 19, 38, .34);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.pd-mask--center { align-items: center; }
.pd-mask--show { opacity: 1; }
.pd-sheet {
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  border-radius: 24px 24px 0 0; background: #fffaf4;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0rem));
  transform: translateY(14px); transition: transform .22s;
  box-shadow: 0 -12px 34px rgba(53, 19, 38, .2);
}
.pd-mask--show .pd-sheet { transform: translateY(0); }
.pd-sheet__grabber { width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 999px; background: #e3d3dc; }
.pd-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pd-sheet__title { font-size: 17px; font-weight: 900; color: var(--pd-stage-ink); }
.pd-sheet__close { width: 32px; height: 32px; border-radius: 999px; background: rgba(53, 19, 38, .06); display: inline-flex; align-items: center; justify-content: center; color: var(--pd-stage-ink); }
.pd-sheet__section { display: block; margin-bottom: 16px; }
.pd-sheet__section-title { display: block; font-size: 13px; font-weight: 900; color: var(--pd-stage-ink); margin-bottom: 8px; }
.pd-sheet__actions { display: flex; gap: 10px; margin-top: 6px; }
.pd-sheet__actions .pd-btn { flex: 1; }

/* ---------------- 生成设置 ---------------- */
.gen-preview { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; border: 1px dashed rgba(53, 19, 38, .22); background: rgba(255, 255, 255, .8); margin-bottom: 16px; }
.gen-preview__thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(53, 19, 38, .3); background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.gen-preview__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gen-preview__meta { min-width: 0; font-size: 12px; color: var(--pd-text-secondary); font-weight: 700; line-height: 1.6; }
.gen-preview__meta strong { color: var(--pd-stage-ink); font-weight: 900; }

/* ---------------- 处理中 ---------------- */
.pd-processing { position: fixed; inset: 0; z-index: 1400; background: rgba(53, 19, 38, .42); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pd-processing__card { width: 100%; max-width: 320px; border-radius: 22px; border: 2px solid var(--pd-stage-ink); background: #fffaf1; padding: 24px 20px; text-align: center; box-shadow: 0 18px 42px #35132633; }
.pd-processing__spinner { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 999px; border: 4px solid rgba(53, 19, 38, .12); border-top-color: var(--pd-brand); animation: pd-spin .9s linear infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd-processing__title { font-size: 16px; font-weight: 900; }
.pd-processing__desc { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--pd-text-secondary); line-height: 1.6; }
.pd-processing__bar { height: 8px; border-radius: 999px; background: rgba(53, 19, 38, .1); margin-top: 16px; overflow: hidden; }
.pd-processing__bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ffd35c, #ec4899); transition: width .2s; }

/* ---------------- 图纸列表项 ---------------- */
.pattern-item {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px;
  border-radius: 18px; border: 1.5px solid rgba(53, 19, 38, .14); background: #fff;
  box-shadow: 0 4px 12px #3513260b; align-items: center; text-align: left; width: 100%;
}
.pattern-item:active { transform: translateY(1px); }
.pattern-item__thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(53, 19, 38, .18); background: #f7f1ec; }
.pattern-item__thumb canvas, .pattern-item__thumb img { width: 100%; height: 100%; display: block; }
.pattern-item__body { min-width: 0; }
.pattern-item__title { display: block; font-size: 14px; font-weight: 900; color: var(--pd-stage-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pattern-item__meta { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--pd-text-secondary); line-height: 1.5; }
.pattern-item__actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pattern-item__action {
  min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .22);
  background: #fff8ec; font-size: 12px; font-weight: 900; color: var(--pd-stage-ink);
  display: inline-flex; align-items: center; gap: 5px;
}
.pattern-item__action--primary { background: #ffd35c; border-color: rgba(53, 19, 38, .7); }


/* 首页「最近编辑」条目：照源站做紧凑款（缩略图 + 标题/状态标 + 时间 + 铅笔/更多） */
.pd-home .pattern-item {
  grid-template-columns: 52px minmax(0, 1fr) auto; gap: 9px; padding: 8px; border-radius: 14px; align-items: center;
}
.pd-home .pattern-item__thumb { width: 52px; height: 52px; border-radius: 12px; }
.pd-home .pattern-item__titlerow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pd-home .pattern-item__title { font-size: 13px; }
.pd-home .pattern-item__meta { margin-top: 3px; font-size: 11px; line-height: 1.35; }
.pd-home .pattern-item__tag {
  flex: none; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 900;
  background: rgba(53, 19, 38, .07); color: rgba(109, 59, 88, .75);
}
.pd-home .pattern-item__tag--edit { background: #ffd35c; color: #35131f; }
.pd-home .pattern-item__acts { display: flex; align-items: center; gap: 6px; }
.pd-home .pattern-item__icon {
  width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .3);
  background: #ffd35c; color: #35131f; display: inline-flex; align-items: center; justify-content: center;
}
.pd-home .pattern-item__more {
  height: 30px; padding: 0 10px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .22);
  background: #fff8ec; font-size: 11.5px; font-weight: 900; color: var(--pd-stage-ink);
}

/* 个人页「最近编辑」条目：照源站做紧凑款（缩略图 + 标题/状态标 + 时间 + 铅笔/更多） */
.pd-prof .pattern-item {
  grid-template-columns: 52px minmax(0, 1fr) auto; gap: 9px; padding: 8px; border-radius: 14px; align-items: center;
}
.pd-prof .pattern-item__thumb { width: 52px; height: 52px; border-radius: 12px; }
.pd-prof .pattern-item__titlerow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pd-prof .pattern-item__title { font-size: 13px; }
.pd-prof .pattern-item__meta { margin-top: 3px; font-size: 11px; line-height: 1.35; }
.pd-prof .pattern-item__tag {
  flex: none; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 900;
  background: rgba(53, 19, 38, .07); color: rgba(109, 59, 88, .75);
}
.pd-prof .pattern-item__tag--edit { background: #ffd35c; color: #35131f; }
.pd-prof .pattern-item__acts { display: flex; align-items: center; gap: 6px; }
.pd-prof .pattern-item__icon {
  width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .3);
  background: #ffd35c; color: #35131f; display: inline-flex; align-items: center; justify-content: center;
}
.pd-prof .pattern-item__more {
  height: 30px; padding: 0 10px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .22);
  background: #fff8ec; font-size: 11.5px; font-weight: 900; color: var(--pd-stage-ink);
}

/* ---------------- 空状态 ---------------- */
.pd-empty {
  min-height: 220px; border: 1.5px solid rgba(53, 19, 38, .16); border-radius: 22px; background: #fff;
  box-shadow: 0 8px 22px #3513260f; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 18px; gap: 6px;
}
.pd-empty__icon { width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 211, 92, .55); border: 1px solid rgba(53, 19, 38, .16); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; color: var(--pd-stage-ink); }
.pd-empty__title { font-size: 16px; font-weight: 900; color: var(--pd-stage-ink); }
.pd-empty__desc { font-size: 12px; font-weight: 700; color: var(--pd-text-secondary); line-height: 1.6; max-width: 250px; }

/* ---------------- 图纸页 / 我的页 / 赚豆豆页 ---------------- */
.pd-page { width: 100%; max-width: 760px; margin: 0 auto; padding: 12px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.pd-page--wide { max-width: 1180px; }

.pd-profile-card { display: flex; align-items: center; gap: 14px; border-radius: 22px; background: #fff; padding: 16px; border: 1px solid rgba(255, 228, 230, .9); box-shadow: 0 6px 18px #3513260d; }
.pd-profile-card__avatar { width: 62px; height: 62px; border-radius: 18px; border: 1.5px solid rgba(53, 19, 38, .78); background: #ffd35c; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; flex-shrink: 0; }
.pd-profile-card__meta { flex: 1; min-width: 0; }
.pd-profile-card__name { font-size: 18px; font-weight: 900; }
.pd-profile-card__sub { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--pd-text-secondary); }

.bean-earning { display: flex; flex-direction: column; gap: 14px; }
.bean-earning__hero {
  position: relative; padding: 18px; border-radius: 24px; border: 1px solid rgba(255, 210, 222, .92);
  background: rgba(255, 255, 255, .93); box-shadow: 0 10px 28px #35132612;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.bean-earning__balance-label { font-size: 13px; font-weight: 900; color: #8b6276; }
.bean-earning__balance { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 38px; font-weight: 900; line-height: 1; color: var(--pd-stage-ink); }
.bean-earning__today { margin-top: 10px; font-size: 14px; font-weight: 900; color: #8b6276; }
.bean-earning__records { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .2); background: #fff8ec; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 900; flex-shrink: 0; }
.bean-earning__section {
  position: relative; overflow: hidden; padding: 16px 14px 14px; border-radius: 20px;
  border: 1.5px solid rgba(255, 211, 92, .92);
  background: radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .46), transparent 30%), linear-gradient(180deg, #ffe9ad 0%, #ffdc82 100%);
  box-shadow: 0 10px 24px #35132614; display: grid; gap: 13px;
}
.bean-earning__section:after { content: ""; position: absolute; right: -38px; top: -48px; width: 118px; height: 118px; border-radius: 999px; background: rgba(255, 255, 255, .28); pointer-events: none; }
.bean-earning__section-head { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bean-earning__section-title { font-size: 12px; font-weight: 900; color: var(--pd-stage-ink); }
.bean-earning__section-helper { font-size: 12px; font-weight: 900; color: #7d5468; }
.bean-earning__task {
  position: relative; z-index: 1; min-height: 76px; padding: 10px 11px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .95);
  box-shadow: 0 6px 16px #3513260e;
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px;
}
.bean-earning__task--done { background: rgba(255, 255, 255, .72); }
.bean-earning__icon { width: 46px; height: 46px; border-radius: 16px; border: 1px solid rgba(53, 19, 38, .08); background: linear-gradient(180deg, #fff8e5 0%, #ffe59e 100%); display: flex; align-items: center; justify-content: center; color: var(--pd-stage-ink); }
.bean-earning__task--checkin .bean-earning__icon { background: linear-gradient(180deg, #fff1c4 0%, #ffc94c 100%); color: #5a2f12; }
.bean-earning__task--upload .bean-earning__icon { background: linear-gradient(180deg, #fff4df 0%, #ffd69a 100%); color: #7a3f12; }
.bean-earning__task--invite .bean-earning__icon { background: linear-gradient(180deg, #fff1f7 0%, #e7bdcf 100%); color: #71314f; }
.bean-earning__title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.bean-earning__task-title { font-size: 13px; font-weight: 900; color: var(--pd-stage-ink); }
.bean-earning__reward { min-width: 42px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(53, 19, 38, .12); background: #fff8ec; color: #5b3246; font-size: 11px; font-weight: 900; text-align: center; white-space: nowrap; }
.bean-earning__desc { margin-top: 5px; font-size: 11px; font-weight: 700; color: #795064; line-height: 1.42; }
.bean-earning__action {
  min-width: 78px; min-height: 40px; padding: 0 12px; border-radius: 12px;
  border: 1.5px solid rgba(53, 19, 38, .24); background: #fff8e8; font-size: 12px; font-weight: 900;
  color: var(--pd-stage-ink); display: flex; align-items: center; justify-content: center;
}
.bean-earning__action--primary { border-color: rgba(53, 19, 38, .76); background: linear-gradient(180deg, #ffd45d 0%, #ffc33d 100%); box-shadow: 0 3px #3513262e; }
.bean-earning__action--done { border-color: rgba(53, 19, 38, .12); background: #efe7dc; color: #a38a98; pointer-events: none; }
.bean-earning__action:active { transform: translateY(1px); }

/* ---------------- 编辑 / 图纸详情 ---------------- */
.studio-page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 12px 0 130px; display: grid; gap: 12px; }
.studio-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.studio-toolbar__spacer { flex: 1; }
.studio-canvas-wrap {
  border-radius: 20px; border: 1px solid rgba(53, 19, 38, .14); background: #fff;
  padding: 12px; overflow: auto; box-shadow: 0 8px 22px #3513260f;
  max-height: 62vh; -webkit-overflow-scrolling: touch;
}
.studio-canvas-wrap canvas { margin: 0 auto; display: block; image-rendering: pixelated; }
.studio-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.studio-stat { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; border: 1px solid rgba(53, 19, 38, .1); background: #fff; }
.studio-stat__swatch { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(53, 19, 38, .35); flex-shrink: 0; }
.studio-stat__code { font-size: 13px; font-weight: 900; }
.studio-stat__meta { font-size: 11px; font-weight: 700; color: var(--pd-text-secondary); line-height: 1.35; }
.studio-info { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-info__item { padding: 7px 12px; border-radius: 999px; background: rgba(255, 211, 92, .28); border: 1px solid rgba(53, 19, 38, .12); font-size: 12px; font-weight: 900; }
.studio-section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; color: var(--pd-stage-ink); }
.studio-section-title .workspace-works-panel__dot { display: inline-block; }

/* ---------------- 登录 / 提示 ---------------- */
.login-page { width: 100%; max-width: 520px; margin: 0 auto; padding: 16px 0 24px; }
.login-page__mode-row { display: flex; gap: 10px; margin-bottom: 16px; }
.login-page__form { display: grid; gap: 14px; }
.login-page__field { display: block; }
.login-page__field-label { display: block; font-size: 12px; font-weight: 900; color: var(--pd-text-secondary); margin-bottom: 6px; }
.login-page__code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.login-page__hint { font-size: 12px; font-weight: 700; color: var(--pd-text-secondary); line-height: 1.6; }
.login-page__card { border-radius: 22px; border: 1.5px solid rgba(53, 19, 38, .14); background: #fff; padding: 18px; box-shadow: 0 8px 22px #3513260f; }

.pd-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(8px);
  z-index: 2000; max-width: 86vw; padding: 11px 18px; border-radius: 999px;
  background: rgba(53, 19, 38, .9); color: #fff8ec; font-size: 13px; font-weight: 800;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; text-align: center;
}
.pd-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- SVG 默认尺寸 ---------------- */
.pd-icon { display: block; }
.pd-tab__btn svg, .pd-row__icon svg, .pd-navbar__back svg, .pd-navbar__home svg, .pd-empty__icon svg, .workspace-works-panel__empty-icon svg, .pd-home__avatar-fallback svg { display: block; }

/* ---------------- 桌面布局 ---------------- */
@media (min-width: 1000px) {
  body {
    background: linear-gradient(180deg, #eef4fa 0%, #f8fafc 42%, #fff8ec 100%);
  }
  /* 二级页面的返回栏：桌面端原来 fixed top:0、z-index 120，被顶部标签栏（fixed top:12、z-index 500）压住，
     只露出 y=0~12 那一条文字（用户反馈「面包屑底下露出一部分」）。这里把它落到标签栏下方，
     并给带返回栏的页面补足上边距（:has 只在真有返回栏时生效，首页不受影响）。 */
  .pd-shell__inner > .pd-navbar-host--fixed { top: var(--pd-h5-desktop-top-nav); }
  .pd-shell__inner:has(> .pd-navbar-host) { padding-top: calc(var(--pd-h5-desktop-top-nav) + 54px); }

  .pd-shell__inner {
    width: min(1280px, calc(100vw - 64px));
    max-width: none;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--pd-h5-desktop-top-nav);
    padding-bottom: 48px;
  }
  .pd-home {
    max-width: none;
    min-height: calc(100vh - var(--pd-h5-desktop-top-nav) - 92px);
    padding: 8px 0 36px;
    gap: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(24px, 1fr) auto auto;   /* 6 行 = 6 条 areas：filler 是第 4 行 */
    /* 排列照源站首页：左列 照片/二维码，右列 最近编辑/文字 */
    grid-template-areas: "header header" "photo recent" "qr text" ". ." "seo seo" "beian beian";
    align-items: stretch;   /* 同一行两块等高（照片卡与最近编辑一样长） */
  }
  .pd-home__header-card { grid-area: header; width: 100%; max-width: none; min-height: 96px; padding: 12px 18px; align-self: start; border-radius: 18px; }
  .pd-home__avatar { width: 72px; height: 72px; border-radius: 18px; font-size: 28px; }
  .pd-home__name { font-size: 18px; font-weight: 900; }
  .pd-home__header-action { margin-left: auto; }
  .pd-home__upload { grid-area: upload; min-width: 0; }
  .pd-home__card { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
  .pd-home__card--photo { grid-area: photo; }
  .pd-home__card--qr { grid-area: qr; }
  .pd-home__card--text { grid-area: text; }
  .pd-home__card .studio-upload__feature-card { min-height: 150px; }
  .pd-home__card .studio-upload__feature-card { flex: 1 1 auto; }   /* 拉满整格高度，与同行另一块等高 */
  .pd-home__card .studio-upload__feature-card--text-pattern { min-height: 150px; }
  /* 源站的「照片变拼豆」卡更大：卡片更高、插画更大、标题与按钮也放大 */
.pd-home__card--photo .studio-upload__feature-card { min-height: 208px; }
.pd-home__card--photo .studio-upload__feature-title { font-size: 24px; }
.pd-home__card--photo .studio-upload__feature-desc { margin-top: 10px; font-size: 12.5px; }
.pd-home__card--photo .studio-upload__feature-action { min-height: 46px; margin-top: 18px; padding: 0 18px; font-size: 15.5px; }
.pd-home__card--photo .studio-upload__art-img { height: 196px; }
  .pd-home > .workspace-works-panel { grid-area: recent; min-width: 0; min-height: 200px; padding: 16px; border-radius: 18px; }
  .pd-home > .workspace-works-panel .workspace-works-panel__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pd-home > .workspace-works-panel .workspace-works-panel__head { margin-bottom: 14px; }
  .pd-home > .workspace-works-panel .workspace-works-panel__title { font-size: 18px; }
  .pd-home > .workspace-works-panel .workspace-works-panel__empty { min-height: 112px; padding: 18px 20px; }
  .pd-home__seo-links { grid-area: seo; width: auto; justify-self: center; align-self: end; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0; border: 0; background: transparent; box-shadow: none; opacity: .52; }
  .pd-home__seo-title { display: inline-flex; color: rgba(100, 116, 139, .52); font-size: 11px; line-height: 1.4; }
  .pd-home__seo-link-row { margin-top: 0; gap: 14px; }
  .pd-home__seo-link { min-height: 0; padding: 0; border-radius: 0; background: transparent; color: rgba(109, 59, 88, .58); font-size: 11px; font-weight: 700; line-height: 1.4; }
  .pd-home__beian { grid-area: beian; opacity: .48; }
  .pd-home__beian-link { color: rgba(100, 116, 139, .72); font-weight: 600; }

  /* 上传卡：两列网格 */
  .studio-upload__mode-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .studio-upload__feature-card { min-height: 170px; }
  .studio-upload__feature-copy { padding-left: 22px; }
  .studio-upload__feature-title { font-size: 20px; white-space: normal; }
  .studio-upload__feature-img { width: 112%; height: 154px; }
  .studio-upload__art-img { width: 112%; height: 154px; }
  .studio-upload__art-img--qr { width: 120%; height: 160px; }
  .studio-upload__feature-card--qr, .studio-upload__feature-card--convert, .studio-upload__feature-card--text-pattern { min-height: 130px; }
  .studio-upload__text-pattern-art { min-height: 104px; }
  .studio-upload__text-pattern-art__glyph { font-size: 28px; }

  /* 标签栏变成顶部胶囊导航 */
  .pd-tab {
    left: 50%; right: auto; top: 12px; bottom: auto; width: min(660px, calc(100vw - 72px));
    padding-bottom: 0; transform: translateX(-50%);
    border: 1px solid rgba(53, 19, 38, .14); border-radius: 999px;
    background: rgba(255, 255, 255, .82); box-shadow: 0 10px 30px #35132617;
    border-top: 1px solid rgba(53, 19, 38, .14);
  }
  .pd-tab__inner { max-width: none; margin: 0 auto; padding: 5px; gap: 6px; }
  .pd-tab__btn { max-width: none; height: 38px; border-radius: 999px; flex-direction: row; gap: 6px; }
  .pd-tab__btn svg { width: 18px !important; height: 18px !important; }
  .pd-tab__label { font-size: 12px; line-height: 1; }

  .pd-page { max-width: 1180px; padding-top: 12px; }
  .pd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .studio-stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .studio-canvas-wrap { max-height: none; }
  .pd-row { min-height: 62px; }
}

/* 滚动条 */
.studio-canvas-wrap::-webkit-scrollbar, .pd-sheet::-webkit-scrollbar { width: 8px; height: 8px; }
.studio-canvas-wrap::-webkit-scrollbar-thumb, .pd-sheet::-webkit-scrollbar-thumb { background: rgba(53, 19, 38, .18); border-radius: 999px; }

/* ---- 编辑器：图纸参数 + 图纸颜色（对齐目标站右栏） ---- */
.studio-param { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.studio-param__label { font-size: 13px; color: #7a5563; min-width: 62px; }
.studio-colors {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px; max-height: 300px; overflow: auto; padding: 2px;
}
.studio-color {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #f2e2ea; border-radius: 10px; padding: 6px 8px;
}
.studio-color__swatch {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(53,19,38,.18);
  cursor: pointer; padding: 0; flex: 0 0 auto;
}
.studio-color__code { font-size: 12px; font-weight: 600; color: #43303a; flex: 1 1 auto; }
.studio-color__count { font-size: 11px; color: #9a7f8b; }
.studio-color__del {
  border: none; background: transparent; color: #c9a9b6; font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0 2px;
}
.studio-color__del:hover { color: #e0576f; }


/* ---- 类型选择磁贴（照搬目标站底部弹层的结构：高亮标题 + 副标题 + 图标磁贴 + ✓） ---- */
.pd-ref-head { padding: 2px 2px 12px; }
.pd-ref-title { font-size: 17px; font-weight: 900; color: #3d2a33; letter-spacing: .2px; }
.pd-ref-title__accent { color: #e0576f; }
.pd-ref-subtitle { font-size: 12.5px; color: #9a7f8b; margin-top: 4px; }
.pd-ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-ref-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px 10px; border-radius: 14px; border: 1.5px solid #f0dfe7; background: #fff;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.pd-ref-tile--on { border-color: #e0576f; box-shadow: 0 0 0 3px rgba(224,87,111,.12); }
.pd-ref-tile__check { position: absolute; top: 6px; right: 8px; font-size: 12px; font-weight: 900; color: #e0576f; }
.pd-ref-tile__icon { font-size: 22px; line-height: 1; }
.pd-ref-tile__label { font-size: 12.5px; font-weight: 800; color: #3d2a33; }
.pd-ref-tile__sub { font-size: 10.5px; color: #a58d97; text-align: center; }
.pd-ref-benefit { margin: 4px 0; }

/* 二维码来源弹层（逐字照搬目标站 /css/index.4c466fce.css） */
.studio-upload__qr-source-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.studio-upload__qr-source-action {
  position: relative; min-height: 116px; padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid #e2e8f0; border-radius: 18px;
  background: radial-gradient(circle at 50% 10%, rgba(255, 211, 92, .24), transparent 58px), #ffffff;
  box-sizing: border-box; box-shadow: 0 6px 18px #3513260e;
  font-family: inherit; text-align: center; cursor: pointer;
}
.studio-upload__qr-source-action:active {
  transform: translateY(1px); border-color: #ec2f9885;
  background: radial-gradient(circle at 50% 10%, rgba(236, 47, 152, .12), transparent 58px), #fff7fb;
}
.studio-upload__qr-source-icon {
  width: 46px; height: 46px; border-radius: 16px; border: 1.5px solid rgba(53, 19, 38, .72);
  background: #ffd35c; color: #351326; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px #35132624;
}
.studio-upload__qr-source-icon svg { width: 22px; height: 22px; }
.studio-upload__qr-source-action-title {
  display: block; color: #351326; font-size: 14px; line-height: 1.25; font-weight: 900; text-align: center;
}

/* 二维码工坊面板（逐字照搬目标站：studio-page__qr-* / studio-page__param-*） */
.studio-page__scheme-card { width:100%; box-sizing:border-box; background:#ffffff; border:1px solid rgba(53,19,38,.32); border-radius:18px; padding:10px; margin-top:7px; box-shadow:0 8px 22px #35132612; }
.studio-page__size-head { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:.2rem; margin-bottom:7px; }
.studio-page__param-label { flex:0 0 auto; font-size:14px; font-weight:800; color:#556176; }
.studio-page__qr-title-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
.studio-page__qr-subtitle { display:block; font-size:11px; line-height:1.35; color:#8a6c7d; font-weight:700; }
.studio-page__qr-scale-grid { margin-top:12px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.studio-page__qr-scale-card { min-width:0; min-height:58px; box-sizing:border-box; border:1.5px solid rgba(53,19,38,.18); border-radius:12px; background:#ffffff; color:#351326; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; cursor:pointer; }
.studio-page__qr-scale-card--active { border-color:#351326; background:#fff7cf; box-shadow:inset 0 0 0 2px #ffcc4bb8; }
.studio-page__qr-scale-card--disabled { opacity:.68; pointer-events:none; }
.studio-page__qr-scale-main { display:block; font-size:12px; line-height:1; font-weight:900; }
.studio-page__qr-scale-sub { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; line-height:1; color:#8a6c7d; font-weight:800; }
.studio-page__qr-readability { margin-top:10px; min-height:34px; box-sizing:border-box; padding:8px 10px; border-radius:12px; border:1px solid rgba(255,204,75,.5); background:#fff8dc; display:flex; flex-direction:row; align-items:center; gap:8px; }
.studio-page__qr-readability-dot { width:10px; height:10px; border-radius:999px; background:#22c55e; flex:0 0 auto; }
.studio-page__qr-readability--warning .studio-page__qr-readability-dot { background:#f59e0b; }
.studio-page__qr-readability-text { min-width:0; display:block; font-size:11px; line-height:1.25; color:#351326; font-weight:800; }
.studio-page__param-pills { margin-top:14px; border:1px solid #dbe1ea; border-radius:11px; background:#f8fafc; padding:4px; display:grid; gap:4px; grid-template-columns:minmax(0,1.08fr) minmax(0,1.36fr) minmax(0,.72fr); }
.studio-page__param-pills--qr { grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); }
.studio-page__param-pill { min-height:30px; border-radius:9px; border:0; background:transparent; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:3px; min-width:0; }
.studio-page__param-muted { flex:0 0 auto; font-size:11px; color:#667287; }
.studio-page__param-strong { flex:0 0 auto; font-size:12px; font-weight:900; color:#351326; white-space:nowrap; }
.studio-page__param-caret { flex:0 0 auto; width:16px; height:16px; border:1px solid rgba(53,19,38,.18); border-radius:999px; background:#ffffff; color:#351326; display:flex; align-items:center; justify-content:center; font-size:11px; line-height:1; font-weight:900; }

/* 文字转图纸 · 两栏工作室（照搬目标站 /pages/text-pattern/index 布局） */
.tp-page { position:fixed; inset:0; z-index:80; background:#fff1f7; display:flex; flex-direction:column; }
.tp-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 16px; background:#fff; border-bottom:1px solid rgba(53,19,38,.08); }
.tp-back, .tp-help { width:34px; height:34px; border-radius:999px; border:1.5px solid rgba(53,19,38,.18); background:#fff; display:flex; align-items:center; justify-content:center; color:#351326; cursor:pointer; font-family:inherit; font-weight:900; }
.tp-title { font-size:16px; font-weight:900; color:#351326; }
.tp-body { flex:1; display:flex; gap:14px; padding:14px; overflow:auto; box-sizing:border-box; }
.tp-left { width:300px; flex:0 0 300px; display:flex; flex-direction:column; gap:10px; }
.tp-right { flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; }
.tp-card { background:#fff; border:1px solid rgba(53,19,38,.14); border-radius:14px; padding:12px; box-shadow:0 4px 12px #3513260b; }
.tp-label-row { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; }
.tp-label { font-size:13px; font-weight:800; color:#351326; }
.tp-count { font-size:12px; color:#94a3b8; font-weight:700; }
.tp-hint { font-size:11px; color:#8a6c7d; font-weight:700; text-align:right; }
.tp-swatch { display:inline-block; width:14px; height:14px; border-radius:4px; border:1px solid rgba(53,19,38,.2); margin-right:5px; vertical-align:-2px; }
.tp-two { display:flex; gap:10px; }
.tp-panel-btn { flex:1; min-height:58px; border-radius:14px; border:1.5px solid rgba(53,19,38,.18); background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-family:inherit; cursor:pointer; }
.tp-panel-btn span { font-size:13px; font-weight:900; color:#351326; }
.tp-panel-btn em { font-style:normal; font-size:11px; color:#8a6c7d; font-weight:700; }
.tp-spacer { flex:1; min-height:8px; }
.tp-next { min-height:48px; border-radius:14px; border:1.5px solid rgba(53,19,38,.82); background:#ffd35c; color:#351326; font-size:15px; font-weight:900; box-shadow:0 4px #3513262e; cursor:pointer; font-family:inherit; }
.tp-preview { flex:1; min-height:220px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid rgba(53,19,38,.14); border-radius:14px; padding:12px; overflow:auto; }
.tp-preview canvas { max-width:100%; max-height:100%; image-rendering:pixelated; }
.tp-stats { font-size:12px; color:#8a6c7d; font-weight:800; padding-left:4px; }
.tp-warn { font-size:12px; line-height:1.5; color:#a16207; background:#fffbeb; border:1px solid #fde68a; border-radius:10px; padding:10px; font-weight:700; }
@media (max-width: 760px) { .tp-body { flex-direction:column; } .tp-left { width:auto; flex:0 0 auto; } }

/* 编辑器两栏布局（左：信息+工具+画布；右：参数+颜色）—— 对齐源站 text-studio */
.studio-main { display: flex; gap: 12px; align-items: flex-start; }
.studio-left { flex: 1; min-width: 0; }
.studio-right { width: 320px; flex: 0 0 320px; display: flex; flex-direction: column; gap: 10px; }
.studio-right .pd-card { margin: 0; }
@media (max-width: 900px) {
  .studio-main { flex-direction: column; }
  .studio-right { width: auto; flex: 0 0 auto; }
}

/* 像素精修（对齐源站 text-studio 的左工具栏 + 精修工具条） */
.studio-shell { display: flex; gap: 10px; align-items: flex-start; }
.studio-rail { width: 56px; flex: 0 0 56px; display: flex; flex-direction: column; gap: 8px; }
.studio-rail__item {
  width: 56px; min-height: 56px; border-radius: 14px; border: 1.5px solid rgba(53,19,38,.16);
  background: #fff; color: #351326; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; font-family: inherit; font-size: 11px; font-weight: 800; cursor: pointer;
}
.studio-rail__item--active { border-color: #351326; background: #fff7cf; box-shadow: inset 0 0 0 2px #ffcc4bb8; }
.studio-refine {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px;
  padding: 8px 10px; border-radius: 12px; background: #fff8dc; border: 1px solid rgba(255,204,75,.5);
}
@media (max-width: 900px) { .studio-rail { flex-direction: row; width: auto; flex: 0 0 auto; } .studio-shell { flex-direction: column; } }

/* 图纸颜色面板（对齐源站：方格色块网格 + 右上角红 ✕ 徽章） */
.studio-colors-card { padding: 10px; }
.studio-colors__top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.studio-colors__brand {
  flex: 1; min-width: 0; text-align: left; border-radius: 10px; border: 1.5px solid rgba(53,19,38,.16);
  background: #fff; color: #351326; font-family: inherit; font-size: 13px; font-weight: 800;
  padding: 7px 10px; cursor: pointer;
}
.studio-colors__brand strong { font-weight: 900; }
.studio-colors__head { margin: 10px 0 8px; font-size: 13px; font-weight: 900; color: #351326; }
.studio-colors__hint { margin-left: 6px; font-size: 11px; font-weight: 700; color: #94a3b8; }
.studio-colors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.studio-color {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: visible;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid rgba(53,19,38,.12); box-sizing: border-box;
}
.studio-color__swatch { position: absolute; inset: 0; border-radius: 9px; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; }
.studio-color__code { position: relative; font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.studio-color__count { position: relative; font-size: 10px; font-weight: 800; color: #fff; opacity: .92; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.studio-color__del {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 999px;
  background: #ef4444; color: #fff; border: 2px solid #fff; font-size: 12px; line-height: 1;
  font-weight: 900; cursor: pointer; z-index: 2; padding: 0; font-family: inherit;
}
.studio-colors__total { margin-top: 10px; font-size: 14px; font-weight: 900; color: #351326; }
@media (max-width: 900px) { .studio-colors { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* 文字页顶部：居中白色胶囊（圆形返回 / 标题 / 圆形首页）+ 淡黄预览底 */
.tp-head {
  max-width: 1180px; margin: 10px auto 0; width: calc(100% - 24px);
  border-radius: 999px; background: #fff; border: 1px solid rgba(53,19,38,.08);
  box-shadow: 0 6px 18px #35132612; padding: 8px 14px;
}
.tp-back, .tp-help { width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid rgba(53,19,38,.16); background: #fff; }
.tp-title { font-size: 16px; }
.tp-body { background: #fffdf3; }

/* 文字页顶部（对齐源站）：两侧圆形按钮 + 中间独立白色标题胶囊；浮层要盖住 App 导航 */
.tp-page { z-index: 2000; }
.tp-head {
  max-width: none; width: auto; margin: 0; border-radius: 0; background: transparent;
  border: 0; box-shadow: none; padding: 12px 20px;
}
.tp-title {
  background: #fff; border: 1px solid rgba(53,19,38,.08); border-radius: 999px;
  padding: 10px 44px; box-shadow: 0 6px 18px #35132612;
}

/* 编辑器撑满外壳（之前内容只占约 645px，右侧留大片空白 —— 比例不对） */
.studio-shell { width: 100%; box-sizing: border-box; }
.studio-main { width: 100%; }
.studio-left { flex: 1 1 auto; min-width: 0; }
.studio-right { flex: 0 0 320px; width: 320px; }
.studio-canvas-wrap { width: 100%; }
@media (min-width: 900px) {
  .studio-left .pd-card { padding: 12px; }
  .studio-canvas-wrap { max-height: 70vh; }
}

/* 「像素精修」按钮固定在画布右下角（对齐源站位置） */
.studio-canvas-wrap { position: relative; }
.studio-pixel-refine {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px;
  border-radius: 999px; border: 1.5px solid rgba(53,19,38,.22); background: rgba(255,255,255,.96);
  color: #351326; font-family: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 12px #3513261f;
}
.studio-pixel-refine:active { transform: translateY(1px); }

/* 右栏底部主按钮（对齐源站「转成图纸(含色号、镜像)」的黄色大按钮） */
.studio-main-action {
  width: 100%; min-height: 52px; margin-top: 10px; border-radius: 16px;
  border: 1.5px solid rgba(53,19,38,.82); background: #ffd35c; color: #351326;
  font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px #3513262e;
}
.studio-main-action:active { transform: translateY(1px); }

/* 信息行移到画布下方并居中（对齐源站） */
.studio-info--bottom { justify-content: center; margin-top: 8px; gap: 14px; }

/* 左工具栏改成独立浮起的小白卡，和画布拉开间距（源站：不贴着画布） */
.studio-shell { gap: 16px; }
.studio-rail {
  background: #fff; border-radius: 16px; padding: 6px; align-self: flex-start;
  box-shadow: 0 6px 16px #35132612; border: 1px solid rgba(53,19,38,.06);
}
.studio-rail__item { width: 48px; min-height: 48px; border: 0; background: transparent; border-radius: 12px; }
.studio-rail__item--active { background: #fff7cf; box-shadow: inset 0 0 0 2px #ffcc4bb8; }
/* 画布下方信息行：纯文字两段（源站 studio-page__craft-tip） */
.studio-craft-tip { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin-top: 8px; }
.studio-craft-tip__size, .studio-craft-tip__count { font-size: 13px; font-weight: 800; color: #351326; }
.studio-craft-tip__count { color: #8a6c7d; }
.studio-color__code, .studio-color__count { text-shadow: none; }
/* 精修布局（照源站结构：工具在左栏 / 操作在右栏 / 缩放条在画布左下）—— 间距按层级给 */
.studio-rail { gap: 4px; }
.studio-rail__item { min-height: 46px; font-size: 11px; gap: 2px; }
.studio-zoom-bar {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.96);
  border: 1px solid rgba(53,19,38,.1); box-shadow: 0 4px 12px #35132614;
}
.studio-zoom-bar__btn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(53,19,38,.16);
  background: #fff; color: #351326; font-size: 16px; font-weight: 900; cursor: pointer; font-family: inherit;
}
.studio-zoom-bar__fit {
  height: 28px; padding: 0 12px; border-radius: 8px; border: 1.5px solid rgba(53,19,38,.82);
  background: #ffd35c; color: #351326; font-size: 12px; font-weight: 900; cursor: pointer; font-family: inherit;
}
.studio-zoom-bar__hint { font-size: 11px; font-weight: 700; color: #8a6c7d; }
.studio-refine-actions { padding: 10px; }
.studio-refine-actions__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.studio-refine-actions__btn {
  min-height: 40px; border-radius: 12px; border: 1.5px solid rgba(53,19,38,.16); background: #fff;
  color: #351326; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.studio-refine-actions__btn--primary { border-color: rgba(53,19,38,.82); background: #ffd35c; }
.studio-refine-actions__hint { margin-top: 8px; font-size: 11px; font-weight: 700; color: #8a6c7d; text-align: center; }

/* ===== 编辑器间距层级（照源站 studio-page 的 CSS 原文，不是我自己拍的）===== */
/* 主网格：rail | 1fr | side，gap 取源站 --editor-gap 的典型值 */
.studio-main { display: grid; grid-template-columns: 88px minmax(0,1fr) 336px; gap: 12px; align-items: start; }
.studio-left { min-width: 0; }
.studio-right { width: auto; flex: none; display: flex; flex-direction: column; gap: 12px; }
/* 左栏（源站 pc-tool-rail：padding 16px 6px / gap 10px / radius 18px） */
.studio-rail {
  width: 88px; flex: none; padding: 16px 6px; gap: 10px; border-radius: 18px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(38,50,77,.1);
  box-shadow: 0 14px 32px #16203314;
}
.studio-rail__item { width: 100%; min-height: 52px; border: 0; background: transparent; border-radius: 14px; font-size: 11px; gap: 3px; }
.studio-rail__item--active { background: #fff7cf; box-shadow: inset 0 0 0 2px #ffcc4bb8; }
/* 画布卡（源站 canvas-card：padding 12px / gap 8px / radius 18px） */
.studio-left .pd-card {
  padding: 12px; gap: 8px; border-radius: 18px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(38,50,77,.1);
  box-shadow: 0 14px 32px #16203314;
}
/* 画布壳（源站 canvas-shell：padding 8px / radius 14px / 浅灰底） */
.studio-canvas-wrap { padding: 8px; border-radius: 14px; background: #f8fafc; border: 1px solid #26324d1a; }
/* 右栏卡片间距由 .studio-right 的 gap 控制，卡片自身不再加外边距 */
.studio-right .pd-card { margin: 0; }
.studio-shell { gap: 12px; }

/* ===== 间距层级：数值全部来自源站线上计算样式（--editor-*）=====
 *   --editor-gap 16PX / --editor-rail-width 64PX / --editor-side-width 360PX
 *   --editor-workbench-max 1600PX / --editor-safe-x 24PX
 * 覆盖前面的估算值
 */
.studio-shell { width: min(1600px, calc(100vw - 48px)); margin: 0 auto; }
.studio-main { display: grid; grid-template-columns: 64px minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.studio-rail { width: 64px; flex: none; padding: 16px 6px; gap: 10px; border-radius: 18px; }
.studio-rail__item { width: 100%; min-height: 52px; font-size: 11px; }
.studio-right { width: auto; flex: none; display: flex; flex-direction: column; gap: 16px; }

/* ===================================================================
   编辑器（studio）—— 结构与间距逐条取自源站 index.31abf969.css 的
   @media (min-width:1000px) 规则，类名沿用源站 studio-page__*。
   =================================================================== */
.studio-page {
  width: 100%; max-width: none; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
  padding: 0 24px 22px; box-sizing: border-box;
  background: linear-gradient(180deg,#eef4fa 0%,#f7f8fb 46%,#fff7e6 100%);
  color: #162033; overflow-x: hidden;
}
/* 主网格：rail | 画布 | 侧栏（源站 3 列 × 2 行，第 2 行给底部状态栏） */
.studio-page__desktop-main {
  width: min(1600px, 100%); margin: 0 auto; box-sizing: border-box;
  display: grid; grid-template-columns: 64px minmax(0,1fr) 360px;
  grid-template-rows: minmax(0,1fr) auto; align-items: stretch; gap: 16px;
  min-height: calc(100vh - 150px);
}
/* ---- 左栏：pc-tool-rail ---- */
.studio-page__pc-tool-rail {
  min-width: 0; padding: 16px 6px; border: 1px solid rgba(38,50,77,.1); border-radius: 18px;
  background: rgba(255,255,255,.92); box-shadow: 0 14px 32px #16203314;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
}
.studio-page__pc-rail-spacer { width: 28px; height: 12px; flex: 0 0 12px; }
.studio-page__pc-rail-item {
  width: 50px; min-height: 52px; box-sizing: border-box; padding: 7px 4px 6px; border: 0;
  border-radius: 14px; color: #667085; background: transparent; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; transition: background .14s ease, color .14s ease, transform .14s ease;
}
.studio-page__pc-rail-item:hover { background: #eef2f7; color: #162033; }
.studio-page__pc-rail-item:active { transform: translateY(1px); }
.studio-page__pc-rail-item--active { background: #162033; color: #fff; box-shadow: 0 8px 18px #1620332e; }
.studio-page__pc-rail-label { color: inherit; font-size: 10px; font-weight: 900; line-height: 1; white-space: nowrap; }
/* ---- 中栏：canvas-card（工具行 + 内嵌画布壳 + 信息卡） ---- */
.studio-page__desktop-canvas-pane { min-width: 0; height: 100%; display: flex; flex-direction: column; }
.studio-page__canvas-card {
  height: calc(100vh - 150px); min-height: 0; box-sizing: border-box; padding: 12px;
  border: 1px solid rgba(38,50,77,.1); border-radius: 18px; background: rgba(255,255,255,.94);
  box-shadow: 0 14px 32px #16203314; display: flex; flex-direction: column; gap: 8px;
  min-width: 0; overflow: hidden;
}
.studio-page__canvas-toolbar {
  flex: 0 0 auto; min-width: 0; padding: 0 8px;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px;
}
.studio-view-group { display: flex; align-items: center; gap: 6px; }
.studio-view-btn {
  width: 28px; height: 28px; padding: 0; border-radius: 9px; border: 1px solid rgba(38,50,77,.14);
  background: #fff; color: #162033; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit;
}
.studio-view-btn:hover { background: #eef2f7; }
.studio-view-fit {
  height: 28px; padding: 0 12px; border-radius: 9px; border: 0; background: #162033; color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 900; cursor: pointer;
}
.studio-view-hint {
  min-width: 0; font-size: 11px; font-weight: 800; color: #68738a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.studio-page__canvas-shell {
  position: relative; width: 100%; min-height: 0; flex: 1 1 auto; box-sizing: border-box; padding: 8px;
  border: 1px solid #26324d1a; border-radius: 14px; background: #f8fafc; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.studio-page__canvas-shell canvas { display: block; margin: auto; image-rendering: pixelated; }
.studio-page__pixel-refine-entry {
  position: absolute; right: 12px; bottom: 12px; z-index: 8;
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px;
  border: 1.5px solid rgba(53,19,38,.22); background: rgba(255,255,255,.96); color: #351326;
  font-family: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 12px #3513261f;
}
.studio-page__pixel-refine-entry:active { transform: translateY(1px); }
.studio-page__craft-tip {
  flex: 0 0 auto; margin-top: 8px; padding: 7px 9px; border-radius: 12px;
  background: #fff8ec; border: 1px solid rgba(53,19,38,.08);
  display: flex; flex-direction: column; gap: 2px;
}
.studio-page__craft-tip-main {
  display: block; font-size: 13px; line-height: 1.2; font-weight: 900; color: #351326;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.studio-page__craft-tip-split { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-page__craft-tip-size, .studio-page__craft-tip-count {
  display: block; min-width: 0; font-size: 13px; line-height: 1.2; font-weight: 900; color: #351326;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.studio-page__craft-tip-size { flex: 1 1 auto; }
.studio-page__craft-tip-count { flex: 0 0 auto; text-align: right; color: #7a425d; }
/* ---- 右栏：side-pane（sticky 卡片栈，gap 12px） ---- */
.studio-page__desktop-side-pane {
  min-width: 0; max-height: calc(100vh - 150px); position: sticky; top: 78px;
  display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-gutter: stable;
}
.studio-page__desktop-side-pane .pd-card { margin: 0; }
.studio-page__scheme-card, .studio-page__stats-card {
  border: 1px solid rgba(38,50,77,.1); border-radius: 16px; background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px #16203312;
}
.studio-page__scheme-card { flex: 0 0 auto; }
.studio-page__stats-card { min-height: 0; flex: 1 1 auto; overflow: hidden; }
.studio-page__bottom-bar {
  flex: 0 0 auto; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid rgba(38,50,77,.1); border-radius: 16px; background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px #16203312;
}
.studio-page__bottom-bar .studio-main-action { margin-top: 0; min-height: 48px; }
@media (max-width: 999px) {
  .studio-page { padding: 0 12px 16px; }
  .studio-page__desktop-main { grid-template-columns: minmax(0,1fr); grid-template-rows: none; min-height: 0; gap: 12px; }
  .studio-page__pc-tool-rail { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 8px; }
  .studio-page__canvas-card { height: auto; }
  .studio-page__canvas-shell { flex: 0 0 auto; height: 62vh; }
  .studio-page__desktop-side-pane { position: static; max-height: none; overflow: visible; }
}

/* ---- 精修态 manual-edit（规则取自源站 .studio-page--manual-edit / .palette-dock--desktop-inline） ---- */
.studio-page--manual-edit .studio-page__scheme-card,
.studio-page--manual-edit .studio-page__stats-card,
.studio-page--manual-edit .studio-page__bottom-bar { display: none !important; }
.studio-edit__tool-pane {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  max-height: calc(100vh - 150px); position: sticky; top: 78px; overflow: hidden;
}
.palette-dock--desktop-inline.palette-dock {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(38,50,77,.1); border-radius: 18px; background: rgba(255,255,255,.96);
  box-shadow: 0 14px 32px #16203314;
}
.palette-dock--desktop-inline.palette-dock--open { max-height: calc(100vh - 150px); padding-bottom: 12px; }
.palette-dock__head { padding: 10px 10px 12px; }
.palette-dock__tools {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding: 0 10px; box-sizing: border-box; overflow: visible;
}
.palette-dock__tools .studio-refine-actions__btn { width: 100%; min-width: 0; }
.palette-dock__scroll {
  flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto;
  overscroll-behavior: contain; padding: 12px 10px 0; box-sizing: border-box;
}
.palette-dock__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  justify-content: start; box-sizing: border-box; column-gap: 8px; row-gap: 8px;
}
.palette-dock__grid .studio-color { width: 100%; max-width: 52px; aspect-ratio: 1; }
.palette-dock__foot { flex: 0 0 auto; padding: 10px 10px 0; font-size: 11px; font-weight: 800; color: #68738a; text-align: center; }
.studio-edit__canvas-actions {
  flex: 0 0 auto; min-height: 42px; margin-top: 8px; padding: 8px 10px; box-sizing: border-box;
  border-radius: 12px; background: #f8fafc; border: 1px solid rgba(38,50,77,.08);
  display: flex; flex-direction: row; align-items: center; gap: 6px;
}
.studio-edit__canvas-hint-text { text-align: left; color: #48556c; font-size: 12px; font-weight: 800; }
@media (max-width: 999px) {
  .studio-edit__tool-pane { position: static; max-height: none; overflow: visible; }
  .palette-dock--desktop-inline.palette-dock { max-height: none; }
  .palette-dock__scroll { max-height: 46vh; }
}

/* 编辑器是通栏页（源站 studio 不套 1180 容器，自己定宽 min(1600px,100vw-48px)） */
.pd-page--bleed { max-width: none; padding: 0; }
/* bleed 页（编辑器）：容器通栏，宽度交给页面自己（min(1600px, 100%)） */
.pd-shell__inner--bleed { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }

/* 图纸颜色面板：照源站 .studio-page__color-grid / .studio-page__color-chip
   flex-wrap + 44×44 色片（radius 5 / padding 4 3 / inset 4% 叠色），原先的 grid + overflow:auto 会多出一条横向滚动条 */
.studio-page__stats-card .studio-colors {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px;
  padding: 6px 6px .1rem 0; overflow: visible;
}
.studio-page__stats-card .studio-color {
  position: relative; width: 44px; height: 44px; aspect-ratio: auto;
  border-radius: 5px; padding: 4px 3px; box-sizing: border-box;
  border: 1px solid transparent; overflow: visible;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .04);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.studio-page__stats-card .studio-color__swatch { position: absolute; inset: 0; border-radius: 5px; }
.studio-page__stats-card .studio-color__code { font-size: 12px; font-weight: 900; }
.studio-page__stats-card .studio-color__count { font-size: 10px; font-weight: 800; }
.studio-page__stats-card .studio-color__code,
.studio-page__stats-card .studio-color__count { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }

/* ===== 二维码变拼豆：调整二维码区域（照源站截图：白色页 + 黑底舞台 + 黄色四角手柄） ===== */
.qr-crop {
  position: fixed; inset: 0; z-index: 2000; background: #ffffff;
  display: flex; flex-direction: column; gap: 12px;
  padding: 12px 18px 18px; box-sizing: border-box; overflow: hidden;
}
.qr-crop__head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.qr-crop__round {
  flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(38, 50, 77, .12); background: #fff; color: #162033;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px #1620330f;
}
.qr-crop__round:active { transform: translateY(1px); }
.qr-crop__titles { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.qr-crop__title { font-size: 15px; font-weight: 900; color: #162033; line-height: 1.1; }
.qr-crop__subtitle { font-size: 11px; font-weight: 800; color: #8a93a6; line-height: 1; }
.qr-crop__stage {
  flex: 1 1 auto; min-height: 52vh; border-radius: 14px; background: #0b1220;
  overflow: hidden; position: relative; touch-action: none;
  display: flex; align-items: center; justify-content: center;
}
.qr-crop__stage canvas { display: block; width: 100%; height: 100%; }
.qr-crop__zoombar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid rgba(38, 50, 77, .12); border-radius: 14px; background: #fff;
}
.qr-crop__zoom-label { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: #8a93a6; }
.qr-crop__zoombar input[type="range"] {
  flex: 1 1 auto; min-width: 0; height: 6px; margin: 0; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, #ffe6a3 0%, #ffd35c 55%, #ffc42e 100%);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.qr-crop__zoombar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 999px;
  background: #ffd35c; border: 3px solid #fff; box-shadow: 0 2px 8px #16203333; cursor: pointer;
}
.qr-crop__zoombar input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 999px; background: #ffd35c; border: 3px solid #fff;
  box-shadow: 0 2px 8px #16203333; cursor: pointer;
}
.qr-crop__row { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qr-crop__btn {
  min-height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(38, 50, 77, .12);
  background: #fff; color: #162033; font-family: inherit; font-size: 13px; font-weight: 900;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 12px #1620330f;
}
.qr-crop__btn:active { transform: translateY(1px); }
.qr-crop__hint {
  flex: 0 0 auto; margin: 0; text-align: center;
  font-size: 11px; font-weight: 800; color: #8a93a6; line-height: 1.4;
}
.qr-crop__next {
  flex: 0 0 auto; min-height: 52px; border-radius: 14px;
  border: 1.5px solid rgba(53, 19, 38, .28); background: #ffd35c; color: #351326;
  font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px #35132614;
}
.qr-crop__next:active { transform: translateY(1px); }
@media (max-width: 760px) {
  .qr-crop { padding: 10px 12px 14px; gap: 10px; }
  .qr-crop__stage { min-height: 44vh; }
}

/* ===== 「正在识别二维码」进度层（照源站：圆形 QR 进度环 + 三步清单） ===== */
.qr-scan {
  position: fixed; inset: 0; z-index: 2100; padding: 20px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.qr-scan__card {
  width: 100%; max-width: 372px; box-sizing: border-box; padding: 22px 22px 20px;
  border-radius: 18px; background: #fff; box-shadow: 0 18px 46px #1620332e; text-align: center;
}
.qr-scan__badge { position: relative; width: 76px; height: 76px; margin: 2px auto 14px; }
.qr-scan__ring { display: block; width: 76px; height: 76px; }
.qr-scan__arc { transition: stroke-dashoffset .3s ease; }
.qr-scan__badge-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #351326; letter-spacing: .02em;
}
.qr-scan__title { font-size: 17px; font-weight: 900; color: #351326; line-height: 1.2; }
.qr-scan__desc { margin-top: 8px; font-size: 13px; font-weight: 800; color: #8a93a6; line-height: 1.5; }
.qr-scan__bar { height: 8px; margin: 16px 0; border-radius: 999px; background: #f1efec; overflow: hidden; }
.qr-scan__bar i {
  display: block; width: 5%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ffe08a, #ffd35c); transition: width .3s ease;
}
.qr-scan__steps { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; text-align: left; padding-left: 2px; }
.qr-scan__step {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 900; color: #c3c9d4; transition: color .2s ease;
}
.qr-scan__dot {
  flex: 0 0 auto; width: 11px; height: 11px; border-radius: 999px; box-sizing: border-box;
  border: 1.6px solid #cfd5df; background: transparent; transition: background .2s ease, border-color .2s ease;
}
.qr-scan__step--active { color: #351326; }
.qr-scan__step--active .qr-scan__dot { border-color: #351326; background: #351326; }
.qr-scan--fail .qr-scan__step--now { color: #c2410c; }
.qr-scan--fail .qr-scan__step--now .qr-scan__dot { border-color: #c2410c; background: #c2410c; }
.qr-scan__retry {
  width: 100%; min-height: 46px; margin-top: 18px; border-radius: 14px;
  border: 1.5px solid rgba(53, 19, 38, .28); background: #ffd35c; color: #351326;
  font-family: inherit; font-size: 14px; font-weight: 900; cursor: pointer;
}
.qr-scan__retry:active { transform: translateY(1px); }

/* 二维码拼前安全提示（照搬源站 studio-page__qr-safety-notice） */
.studio-page__qr-safety-notice {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 0;
  padding: 8px 10px; border-radius: 12px;
  background: #fff8ec; border: 1px solid rgba(53, 19, 38, .08);
}
.studio-page__qr-safety-mark {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 999px;
  background: #ffd35c; color: #351326; font-size: 12px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}
.studio-page__qr-safety-text { font-size: 11px; font-weight: 800; color: #7a425d; line-height: 1.4; }

/* ===== 链接生成二维码页（照搬源站 qr-link-* 结构） ===== */
.qr-link-page {
  position: fixed; inset: 0; z-index: 2000; background: #fff; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
/* 宽屏居中，避免拉成一条 */
.qr-link__head, .qr-link__content, .qr-link__footer { width: 100%; max-width: 720px; box-sizing: border-box; }
.qr-link__head { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.qr-link__round {
  flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(38, 50, 77, .12); background: #fff; color: #162033;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px #1620330f;
}
.qr-link__round:active { transform: translateY(1px); }
.qr-link__titles { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.qr-link__title { font-size: 15px; font-weight: 900; color: #162033; line-height: 1.1; }
.qr-link__subtitle { font-size: 11px; font-weight: 800; color: #8a93a6; line-height: 1; }
.qr-link__content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 18px; overflow: hidden; }
.qr-link__card { flex: 0 0 auto; padding: 12px; border: 1px solid rgba(38, 50, 77, .12); border-radius: 16px; background: #fff; }
.qr-link__label { display: block; font-size: 13px; font-weight: 900; color: #162033; margin-bottom: 8px; }
.qr-link__input-shell {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px;
  border: 1px solid rgba(38, 50, 77, .14); border-radius: 12px; background: #f8fafc; box-sizing: border-box;
}
.qr-link__input-shell--error { border-color: #e03131; background: #fff5f5; }
.qr-link__input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 14px; font-weight: 700; color: #162033;
}
.qr-link__clear {
  flex: 0 0 auto; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 999px;
  background: #e9edf3; color: #68738a; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.qr-link__error { margin-top: 8px; font-size: 12px; font-weight: 800; color: #e03131; }
.qr-link__style-card {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  padding: 12px; border: 1px solid rgba(38, 50, 77, .12); border-radius: 16px; background: #fff;
}
.qr-link__style-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qr-link__style-head .qr-link__label { margin-bottom: 0; }
.qr-link__style-count { font-size: 11px; font-weight: 800; color: #8a93a6; }
.qr-link__density-tip { margin-top: 6px; font-size: 11px; font-weight: 800; color: #a9761a; }
.qr-link__style-scroll { flex: 1 1 auto; min-height: 0; margin-top: 10px; overflow-y: auto; }
.qr-link__style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.qr-link__style-option {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 6px; border: 1.5px solid rgba(38, 50, 77, .1); border-radius: 14px;
  background: #fff; cursor: pointer; transition: border-color .14s ease, box-shadow .14s ease;
}
.qr-link__style-option--selected { border-color: #162033; box-shadow: 0 6px 16px #1620331f; }
.qr-link__style-option--disabled { opacity: .45; cursor: not-allowed; }
.qr-link__style-option-badge {
  position: absolute; top: -8px; right: -4px; z-index: 1; padding: 2px 6px; border-radius: 999px;
  background: #ffd35c; color: #351326; font-size: 9px; font-weight: 900; white-space: nowrap;
}
.qr-link__style-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(38, 50, 77, .08); background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.qr-link__style-thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-link__style-option-title { font-size: 10.5px; font-weight: 900; color: #162033; text-align: center; line-height: 1.2; }
.qr-link__footer { flex: 0 0 auto; padding: 12px 18px 18px; }
.qr-link__confirm {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid rgba(53, 19, 38, .28);
  background: #ffd35c; color: #351326; font-family: inherit; font-size: 15px; font-weight: 900;
  cursor: pointer; box-shadow: 0 4px #35132614;
}
.qr-link__confirm:active { transform: translateY(1px); }
.qr-link__confirm--disabled {
  opacity: .5; border-color: rgba(53, 19, 38, .14); background: #f1efec; color: #8a93a6; cursor: not-allowed;
}
/* 不定进度条（源站 qr-process-overlay__progress-fill--indeterminate） */
.qr-scan--indeterminate .qr-scan__bar i {
  width: 38%; background: linear-gradient(90deg, rgba(255, 211, 92, 0), #ffd35c, rgba(255, 211, 92, 0));
  animation: qr-scan-slide 1.15s ease-in-out infinite;
}
@keyframes qr-scan-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }

/* 图纸颜色面板：排除/恢复（照搬源站 stats-head / stats-restore / 已排除 N 种颜色） */
.studio-colors__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.studio-colors__title { min-width: 0; }
.studio-colors__restore {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(38, 50, 77, .16); background: #fff; color: #162033;
  font-family: inherit; font-size: 11px; font-weight: 800; cursor: pointer;
}
.studio-colors__restore:active { transform: translateY(1px); }
.studio-colors__excluded { font-size: 12px; font-weight: 800; color: #a9761a; }

/* 工作室里的二维码安全提示：源站是粉色警示条（不是奶黄） */
.studio-page__qr-safety-notice {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 0;
  padding: 8px 10px; border-radius: 12px;
  background: #fdeef3; border: 1px solid rgba(214, 51, 108, .18);
}
.studio-page__qr-safety-mark {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 999px;
  background: #e8597e; color: #fff; font-size: 11px; font-weight: 900; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.studio-page__qr-safety-text { font-size: 11px; font-weight: 800; color: #a8305c; line-height: 1.4; }
/* 尺寸档位在工作室里是按钮 */
.studio-page__qr-scale-card { font-family: inherit; cursor: pointer; }
.studio-page__qr-scale-card:active { transform: translateY(1px); }


/* ---------------- 图纸库 ---------------- */
.pd-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-gcard {
  border: 1px solid rgba(53, 19, 38, .12); border-radius: 16px; background: #fff; padding: 10px;
  box-shadow: 0 6px 16px #3513260e; box-sizing: border-box;
}
.pd-gcard:active { transform: translateY(1px); }
.pd-gcard__thumb {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: #faf6f1; display: flex; align-items: center; justify-content: center;
}
.pd-gcard__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-gcard__ph { color: rgba(53, 19, 38, .25); }
.pd-gcard__fav {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid rgba(53, 19, 38, .14); background: rgba(255, 255, 255, .92);
  display: inline-flex; align-items: center; justify-content: center; color: rgba(53, 19, 38, .5);
}
.pd-gcard__fav.is-on { color: #e5484d; border-color: rgba(229, 72, 77, .5); }
.pd-gcard__title { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 900; color: var(--pd-stage-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-gcard__meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11.5px; font-weight: 800; color: rgba(53, 19, 38, .6); }
.pd-gcard__meta span { display: inline-flex; align-items: center; gap: 3px; }
.pd-gtag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #ffd35c; color: #35131f; font-size: 10px; font-weight: 900; vertical-align: middle; }
@media (min-width: 1000px) {
  .pd-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}


/* ---------------- 赚豆豆：两栏（照源站） ---------------- */
.bean-earning { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.bean-earning__aside { display: flex; flex-direction: column; gap: 12px; }
.bean-earning__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bean-earning__balance-card {
  background: #fff; border: 1px solid rgba(53, 19, 38, .12); border-radius: 18px; padding: 16px;
  box-shadow: 0 6px 16px #3513260e;
}
.bean-earning__balance-label { font-size: 12.5px; font-weight: 800; color: rgba(53, 19, 38, .6); }
.bean-earning__balance { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 34px; font-weight: 900; color: var(--pd-stage-ink); }
.bean-earning__today { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 800; color: rgba(53, 19, 38, .6); }
.bean-earning__records {
  margin-top: 14px; width: 100%; min-height: 36px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .22);
  background: #fff8ec; font-size: 12.5px; font-weight: 900; color: var(--pd-stage-ink);
}
.bean-earning__mini { background: #fff; border: 1px solid rgba(53, 19, 38, .12); border-radius: 14px; padding: 12px; }
.bean-earning__mini-label { font-size: 11px; font-weight: 800; color: rgba(53, 19, 38, .55); }
.bean-earning__mini-value { display: block; margin-top: 4px; font-size: 14px; font-weight: 900; color: var(--pd-stage-ink); }
.bean-earning__panel {
  background: linear-gradient(180deg, #fff6e2, #fffdf7); border: 1px solid rgba(255, 199, 70, .6);
  border-radius: 18px; padding: 14px;
}
.bean-earning__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bean-earning__panel-title { font-size: 15px; font-weight: 900; color: var(--pd-stage-ink); }
.bean-earning__panel-hint { font-size: 12px; font-weight: 800; color: rgba(53, 19, 38, .6); }
.bean-earning__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 1000px) {
  .bean-earning { grid-template-columns: 268px minmax(0, 1fr); gap: 18px; align-items: start; }
  .bean-earning__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ============================================================
 * 补齐：这些类在 JS 里用了、但 CSS 里从来没有定义过
 * （都是弹层里的内容，缺样式时标题/金额会掉成裸文本超大字）
 *   - 豆子明细 / 收藏夹 / 咨询服务表单 / 若干小件
 * ============================================================ */
/* 豆子明细 */
.pd-prof__list { display: flex; flex-direction: column; gap: 8px; }
.pd-prof__row {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px;
  border: 1px solid rgba(53, 19, 38, .1); border-radius: 14px; background: #fff;
}
.pd-prof__thumb {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(180deg, #eafaf0, #c8f0d4); border: 1px solid rgba(53, 19, 38, .08);
}
.pd-prof__thumb--ph { background: linear-gradient(180deg, #fdeef2, #f8d8de); }
.pd-prof__row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-prof__row-date { font-size: 13.5px; font-weight: 900; color: var(--pd-stage-ink); }
.pd-prof__row-sub { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--pd-text-secondary); }
.pd-prof__row-actions { flex: none; display: flex; align-items: center; gap: 8px; }

/* 收藏夹列表 */
.pd-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pd-work-card {
  display: flex; align-items: center; gap: 10px; padding: 8px; text-align: left;
  border: 1px solid rgba(53, 19, 38, .12); border-radius: 14px; background: #fff;
}
.pd-work-card__thumb {
  width: 52px; height: 52px; border-radius: 12px; flex: none; overflow: hidden; background: #f7f1ec;
  display: flex; align-items: center; justify-content: center; color: rgba(53, 19, 38, .3);
}
.pd-work-card__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-work-card__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-work-card__title { font-size: 13px; font-weight: 900; color: var(--pd-stage-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-work-card__desc { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--pd-text-secondary); }

/* 咨询服务表单 */
.contact-consult__form { display: flex; flex-direction: column; gap: 12px; }
.contact-consult__field { display: block; }
.contact-consult__label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 800; color: var(--pd-stage-ink); }
.contact-consult__input, .contact-consult__textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; font-family: inherit;
  border: 1.5px solid rgba(53, 19, 38, .16); background: #fff; font-size: 13.5px; font-weight: 600;
  color: var(--pd-stage-ink);
}
.contact-consult__textarea { min-height: 88px; resize: vertical; }
.contact-consult__textarea-wrap { position: relative; }

/* 小件 */
.pd-loading { padding: 28px 0; text-align: center; font-size: 13px; font-weight: 800; color: var(--pd-text-secondary); }
.pd-error {
  padding: 22px 14px; text-align: center; font-size: 13px; font-weight: 800; color: #b4453f;
  background: #fff3f2; border: 1px solid rgba(180, 69, 63, .25); border-radius: 14px;
}
.pd-btn--ghost { background: #fff; }
.bean-earning__copy { min-width: 0; flex: 1; }
.bean-amount--large { font-size: 22px; }


/* ---------------- 订单中心（源站 orders-page：白色空态卡） ---------------- */
.orders-page__empty-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; border-radius: 20px; background: #fff; text-align: center;
  width: 100%; max-width: 680px; margin: 0 auto;
  border: 1px solid rgba(53, 19, 38, .1); box-shadow: 0 8px 22px #3513260f;
}
.orders-page__empty-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 10px;
  background: linear-gradient(180deg, #fff8e5, #ffe59e); border: 1px solid rgba(53, 19, 38, .1);
  display: inline-flex; align-items: center; justify-content: center; color: var(--pd-stage-ink);
}
.orders-page__empty-title { display: block; font-size: 15.5px; font-weight: 900; color: var(--pd-stage-ink); }
.orders-page__empty-desc { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--pd-text-secondary); }
.orders-page__primary-btn { min-width: 200px; min-height: 46px; font-size: 15px; font-weight: 900; }

/* ---------------- 二级页面（shell）的内容上边距 ----------------
   移动端只有返回栏 60px；桌面端还有顶部标签栏，所以有返回栏的页面要多让 54px。
   以前 shell() 写死内联 padding-top:60px，把这里的 :has() 规则盖掉了。 */
.pd-shell__inner { padding-top: 60px; }
.pd-shell__inner--flush { padding-top: 0; }
@media (min-width: 1000px) {
  .pd-shell__inner { padding-top: var(--pd-h5-desktop-top-nav); }
  .pd-shell__inner--flush { padding-top: 0; }
  .pd-shell__inner:has(> .pd-navbar-host) { padding-top: calc(var(--pd-h5-desktop-top-nav) + 54px); }
}


/* ---------------- 隐私政策（照源站：kicker + 大标题 + 卡片分栏） ---------------- */
.pd-legal { max-width: 1040px; margin: 0 auto; }
.pd-legal__kicker { display: block; color: #e8547c; font-size: 13px; font-weight: 900; }
.pd-legal__title { display: block; margin-top: 8px; font-size: 28px; font-weight: 900; color: var(--pd-stage-ink); }
.pd-legal__date { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; color: #9aa3af; }
.pd-legal__intro { display: block; margin-top: 16px; font-size: 13.5px; line-height: 1.85; color: var(--pd-stage-ink); }
.pd-legal__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
.pd-legal__card {
  background: #fff; border: 1px solid rgba(53, 19, 38, .1); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 6px 16px #3513260a; box-sizing: border-box;
}
.pd-legal__card--full { grid-column: 1 / -1; }
.pd-legal__card-title { display: block; font-size: 15px; font-weight: 900; color: var(--pd-stage-ink); }
.pd-legal__p { display: block; margin-top: 10px; font-size: 13px; line-height: 1.85; color: rgba(53, 19, 38, .82); }
.pd-legal__p b { font-weight: 900; color: var(--pd-stage-ink); }
@media (min-width: 900px) {
  .pd-legal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

/* 不要顶部返回栏的整页（隐私政策）：移动端不需要上边距，桌面端仍要让开顶部标签栏 */
.pd-shell__inner--nonav { padding-top: 0; }
@media (min-width: 1000px) { .pd-shell__inner--nonav { padding-top: var(--pd-h5-desktop-top-nav); } }


/* ---------------- 编辑资料（源站：首页铅笔 -> 整页） ---------------- */
.pd-edit { width: 100%; max-width: 1040px; margin: 0 auto; }
.pd-edit__card {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: #fff; border: 1px solid rgba(53, 19, 38, .1); border-radius: 18px;
  padding: 24px; box-shadow: 0 6px 16px #3513260a;
}
.pd-edit__avatar-col { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.pd-edit__avatar {
  width: 84px; height: 84px; border-radius: 20px; overflow: hidden; flex: none;
  border: 1.5px solid rgba(53, 19, 38, .35); background: #fff8ec; color: var(--pd-stage-ink);
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900;
}
.pd-edit__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-edit__pick { min-height: 38px; padding: 0 18px; font-size: 13px; }
.pd-edit__field { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 16px; }
.pd-edit__label { flex: none; font-size: 14px; font-weight: 900; color: var(--pd-stage-ink); }
.pd-edit__input { flex: 1; min-width: 0; height: 46px; }
.pd-edit__foot { display: flex; justify-content: flex-end; margin-top: 22px; }
.pd-edit__save { min-width: 250px; min-height: 50px; font-size: 15px; font-weight: 900; }
@media (max-width: 700px) {
  .pd-edit__field { flex-direction: column; align-items: stretch; gap: 8px; }
  .pd-edit__save { width: 100%; min-width: 0; }
}

.pd-home__header-action--icon { width: 46px; padding: 0; }


/* ---------------- 图纸库详情弹层（照源站） ---------------- */
.pd-gdetail__head { display: flex; align-items: flex-start; gap: 10px; }
.pd-gdetail__head-main { flex: 1; min-width: 0; }
.pd-gdetail__title { display: block; font-size: 16px; font-weight: 900; color: var(--pd-stage-ink); }
.pd-gdetail__meta { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--pd-text-secondary); }
.pd-gdetail__view {
  margin-top: 12px; border-radius: 14px; background: #faf6f1; border: 1px solid rgba(53, 19, 38, .1);
  min-height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pd-gdetail__view img { width: 100%; max-height: 380px; object-fit: contain; display: block; }
.pd-gdetail__dl { margin-top: 14px; min-height: 48px; font-size: 14.5px; font-weight: 900; gap: 8px; }

/* 图纸库详情：三个页签（照源站：像素图 / 拼豆图纸 / 镜像图纸） */
.pd-gdetail__tabs { display: flex; gap: 8px; margin-top: 14px; }
.pd-gdetail__tab {
  flex: 1; min-height: 38px; border-radius: 999px; border: 1.5px solid rgba(53, 19, 38, .16);
  background: #fff; font-size: 13px; font-weight: 900; color: var(--pd-stage-ink);
}
.pd-gdetail__tab.is-on { background: #ffd35c; border-color: rgba(53, 19, 38, .62); }
.pd-gdetail__view.is-mirror img { transform: scaleX(-1); }
.pd-gdetail__view.is-grid img { image-rendering: pixelated; }
.pd-gdetail__view.is-grid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(53,19,38,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(53,19,38,.14) 1px, transparent 1px);
  background-size: 8px 8px;
}
.pd-gdetail__view { position: relative; }

.pd-gdetail__mirror { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--pd-stage-ink); }
.pd-gdetail__mirror input { width: 16px; height: 16px; accent-color: #ffd35c; }
.pd-gdetail__view canvas { max-width: none; height: auto; display: block; }
.pd-gdetail__ph { color: rgba(53, 19, 38, .3); }

.pd-gdetail__tools { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pd-gdetail__tools .pd-chip { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.pd-gdetail__zoomv { font-size: 12px; font-weight: 800; color: var(--pd-text-secondary); min-width: 62px; text-align: center; }

/* 立体拼豆（立方体展开图） */
.pd-cube__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-cube__field { display: inline-flex; align-items: center; gap: 6px; }
.pd-cube__label { font-size: 12.5px; font-weight: 800; color: var(--pd-stage-ink); }
.pd-cube__select { width: 110px; height: 34px; }
.pd-cube__hint { font-size: 12.5px; font-weight: 700; color: var(--pd-text-secondary); }
.pd-cube__stage { background: #fff; border: 1px solid rgba(53,19,38,.1); border-radius: 18px; padding: 14px; overflow: auto; }
.pd-cube__stage canvas { display: block; height: auto; }
.pd-cube__tip { margin-top: 12px; font-size: 12.5px; line-height: 1.8; color: var(--pd-text-secondary); }


/* ---------------- 立体拼豆：可旋转 3D 预览（纯 CSS transform） ---------------- */
.pd-cube3d {
  --cube-size: 190px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 26px 0 8px; perspective: 900px; touch-action: none; user-select: none;
}
.pd-cube3d__cube { position: relative; width: var(--cube-size); height: var(--cube-size); transform-style: preserve-3d; cursor: grab; }
.pd-cube3d__cube:active { cursor: grabbing; }
.pd-cube3d__face {
  position: absolute; inset: 0; border: 1px solid rgba(53, 19, 38, .28);
  background-color: #fbfaf7; background-size: 100% 100%; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: rgba(53, 19, 38, .35);
}
.pd-cube3d__hint { font-size: 12.5px; font-weight: 700; color: var(--pd-text-secondary); }

/* 立体拼豆·轮廓立牌：板件保留自身比例，底座是一块横板 */
.pd-cube3d[data-standee] .pd-cube3d__face,
.pd-cube3d__face { background-size: contain !important; background-repeat: no-repeat; background-position: center bottom; border: 0; }
.pd-cube3d__base {
  position: absolute; left: -6%; right: -6%; bottom: 0; height: 8px;
  background: #e8dfcc; border: 1px solid rgba(53,19,38,.3); border-radius: 2px;
}

/* 画布容器：拖动 = 原生滚动平移（源站「拖动可平移」的做法，跟手带惯性） */
.studio-canvas-wrap { overflow: auto; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.studio-canvas-wrap canvas { touch-action: pan-x pan-y; }

/* 画布尺寸由内联 style 决定（缩放会真的放大画布 -> 容器必然可滚 -> 拖动/滚动都有东西可动）。
   注意：这里**不要**写 width/max-width 的 !important，否则会压住内联尺寸，缩放就不再改变画布大小。 */
.studio-canvas-wrap canvas { max-width: none; margin: 0; }

/* 图纸库详情：放大要看得出效果 —— 画布按自身尺寸显示、容器负责滚动。
   之前 .pd-gdetail__view 是 overflow:hidden，canvas 是 max-width:100%，
   一个钉死宽度一个裁掉超出 -> 内部画布放大了、屏幕上看不出来（用户反馈「只有水印变大」）。 */
.pd-gdetail__view { overflow: auto; }
.pd-gdetail__view canvas { max-width: none; height: auto; display: block; }

/* 图纸参数：下拉与滑杆（对齐源站 pindoule.cn 的参数面板） */
.studio-select {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 10px;
  border: 1.5px solid rgba(53, 19, 38, .16); background: #fff; color: var(--pd-text);
  font-size: 13.5px; font-weight: 700; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(53,19,38,.55) 50%), linear-gradient(135deg, rgba(53,19,38,.55) 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.studio-slider { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.studio-slider__btn {
  width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid rgba(53, 19, 38, .16);
  background: #fff; color: var(--pd-text); font-size: 18px; font-weight: 800; line-height: 1;
}
.studio-slider__range { flex: 1; min-width: 0; accent-color: #ffd35c; height: 34px; }
.studio-slider__val {
  min-width: 42px; text-align: center; font-weight: 800; font-size: 13.5px;
  color: var(--pd-text); background: #ffd35c; border-radius: 9px; padding: 5px 8px;
}

/* 工具条移到画布下方（对齐源站：工具栏在图片下面，更好按） */
.studio-page__canvas-toolbar { margin: 10px 0 0; }

/* 工具栏移到画布下方（移动端）—— 对齐源站：图标排在图片下面，手指够得到。
   移动端 .studio-page__desktop-main 是单列网格，原本 rail 是第一格（排在最上面）。 */
@media (max-width: 900px) {
  .studio-page__desktop-canvas-pane { order: 1; }
  .studio-page__pc-tool-rail {
    order: 2;
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    padding: 8px 6px; gap: 6px; border-radius: 16px;
  }
  .studio-page__pc-rail-spacer { display: none; }
  .studio-page__pc-rail-item { width: auto; min-width: 52px; min-height: 48px; }
  .studio-page__desktop-side-pane { order: 3; }
}

/* 移动端：画布卡片自适应高度（原来写死 calc(100vh - 150px)，手机上把下面内容挤出屏幕 -> 「显示不全」） */
@media (max-width: 900px) {
  .studio-page__canvas-card { height: auto; }
  .studio-page__canvas-shell { height: min(46vh, 380px); }
  .studio-page__desktop-main { min-height: 0; gap: 10px; }
  .studio-page__canvas-toolbar { justify-content: center; }
}
