/* ==========================================================================
   像素贺卡工坊 Pro v2.0 — 4款高颜值掌机皮肤 × 8-bit 阶梯像素设计系统
   ========================================================================== */
:root {
  --bg-deep: #0c0e1a;
  --bg-shell: #1d2138;
  --shell-border: #5b659e;
  --shell-highlight: rgba(255, 255, 255, 0.14);
  --shell-text: #a5b0dc;
  --bg-screen: #111424;
  --bg-panel: #1a1f36;
  --border-pixel: #394068;
  --border-bright: #6873b0;
  --text-main: #f5f7ff;
  --text-sub: #a0a9cf;
  --text-dim: #6c759e;
  --accent-mint: #4ce0b3;
  --accent-mint-dark: #0f766e;
  --accent-amber: #fbbf24;
  --accent-amber-dark: #92400e;
  --accent-pink: #f472b6;
  --accent-purple: #a78bfa;
  --accent-purple-dark: #4c1d95;
  --ab-a: #e11d48;
  --ab-a-ring: #fda4af;
  --ab-b: #6d28d9;
  --ab-b-ring: #c4b5fd;
  --dpad-bg: #2a3052;
  --dpad-border: #4a5382;
  --font-pixel: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, 'PingFang SC', 'Microsoft YaHei', monospace;
}

/* 皮肤 2：樱花粉甜心 (女生/闺蜜/情侣爆款) */
body[data-skin="sakura"] {
  --bg-deep: #241320;
  --bg-shell: #ffd6e7;
  --shell-border: #f472b6;
  --shell-highlight: rgba(255, 255, 255, 0.65);
  --shell-text: #9d174d;
  --bg-screen: #2b1626;
  --bg-panel: #3b1e34;
  --border-pixel: #7a3868;
  --border-bright: #f472b6;
  --accent-mint: #ff85b3;
  --accent-mint-dark: #be185d;
  --accent-amber: #fcd34d;
  --accent-amber-dark: #b45309;
  --ab-a: #db2777;
  --ab-a-ring: #fbcfe8;
  --ab-b: #f59e0b;
  --ab-b-ring: #fde68a;
  --dpad-bg: #f9a8d4;
  --dpad-border: #db2777;
}

/* 皮肤 3：奶油薄荷绿 (小清新/治愈系) */
body[data-skin="mint"] {
  --bg-deep: #0e201e;
  --bg-shell: #c7f2e3;
  --shell-border: #2dd4bf;
  --shell-highlight: rgba(255, 255, 255, 0.7);
  --shell-text: #115e59;
  --bg-screen: #122624;
  --bg-panel: #1a3633;
  --border-pixel: #2e665f;
  --border-bright: #5eead4;
  --accent-mint: #5eead4;
  --accent-mint-dark: #0f766e;
  --accent-amber: #fde047;
  --accent-amber-dark: #a16207;
  --ab-a: #0d9488;
  --ab-a-ring: #99f6e4;
  --ab-b: #f59e0b;
  --ab-b-ring: #fef08a;
  --dpad-bg: #81e6d9;
  --dpad-border: #0f766e;
}

/* 皮肤 4：Game Boy 经典复古灰 */
body[data-skin="classic"] {
  --bg-deep: #181a18;
  --bg-shell: #d4d3cb;
  --shell-border: #8b8a82;
  --shell-highlight: rgba(255, 255, 255, 0.72);
  --shell-text: #3d3e38;
  --bg-screen: #18281b;
  --bg-panel: #223826;
  --border-pixel: #446648;
  --border-bright: #8bac0f;
  --text-main: #eef7d4;
  --text-sub: #b7cc8f;
  --accent-mint: #9bbc0f;
  --accent-mint-dark: #306230;
  --accent-amber: #fbbf24;
  --accent-amber-dark: #92400e;
  --ab-a: #8f1d44;
  --ab-a-ring: #d65a81;
  --ab-b: #8f1d44;
  --ab-b-ring: #d65a81;
  --dpad-bg: #3b3c3a;
  --dpad-border: #1f201e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-pixel);
  overflow-x: hidden;
  transition: background 0.3s ease;
}

/* 像素网格星空背景 */
.pixel-bg {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 18% 18%, rgba(76, 224, 179, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 82% 82%, rgba(244, 114, 182, 0.1) 0%, transparent 45%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px;
}

/* 顶部引流条 */
.top-promo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(12, 14, 26, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-pixel);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.top-promo-bar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-mint);
  font-weight: 700;
}
.top-promo-bar .cta-mini {
  background: var(--accent-mint);
  color: #062820;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.4);
  transition: transform 0.12s;
}
.top-promo-bar .cta-mini:hover { transform: translateY(-1px); }

/* 复古掌机外壳（带阶梯立体感） */
.stage-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 14px 28px;
}

.console-shell {
  width: 382px;
  max-width: 100%;
  background: var(--bg-shell);
  border: 4px solid var(--shell-border);
  border-radius: 22px 22px 46px 22px;
  padding: 15px 15px 20px;
  box-shadow:
    0 12px 0 rgba(0, 0, 0, 0.38),
    0 24px 54px rgba(0, 0, 0, 0.65),
    inset 0 3px 0 var(--shell-highlight),
    inset 0 -5px 0 rgba(0, 0, 0, 0.22);
  position: relative;
  user-select: none;
  transition: background 0.3s, border-color 0.3s;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.led-group {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--shell-text);
  letter-spacing: 1px;
}
.led-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseLed 2s infinite;
}
@keyframes pulseLed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.console-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-chip {
  background: rgba(0,0,0,0.22);
  border: 1.5px solid var(--shell-border);
  color: var(--shell-text);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.icon-chip.active {
  background: var(--accent-mint-dark);
  border-color: var(--accent-mint);
  color: #ffffff;
}

/* CRT 屏幕区域（阶梯像素内框） */
.crt-bezel {
  background: #141622;
  border-radius: 12px 12px 24px 12px;
  padding: 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}
.crt-screen {
  background: var(--bg-screen);
  border: 3px solid #07080f;
  border-radius: 8px;
  padding: 16px 13px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 26px rgba(0,0,0,0.8);
  min-height: 446px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.13) 0px,
    rgba(0, 0, 0, 0.13) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.42;
}

.screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: screenFade 0.35s ease;
}
.screen.hidden { display: none; }
@keyframes screenFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.merchant-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.15);
  border: 2px solid rgba(251, 191, 36, 0.6);
  color: var(--accent-amber);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* 8-bit 阶梯像素标签 */
.pixel-tag {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-mint);
  color: #062820;
  padding: 3px 10px;
  letter-spacing: 1.5px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.55);
}
.screen-title {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 4px;
  text-align: center;
  line-height: 1.4;
}
.screen-hint {
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* 像素头像框 */
.pixel-avatar-box {
  width: 76px;
  height: 76px;
  border: 3px solid var(--accent-amber);
  overflow: hidden;
  margin: 4px 0 8px;
  background: #090b14;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
  display: none;
}
.pixel-avatar-box.show { display: block; }
.pixel-avatar-box img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: cover;
  display: block;
}

/* 8-bit 阶梯硬阴影按钮 */
.btn-px {
  width: 100%;
  border: 2px solid var(--accent-mint);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  background: var(--accent-mint-dark);
  color: #ffffff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55), inset 0 2px 0 rgba(255,255,255,0.18);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.btn-px:hover:not(:disabled) { filter: brightness(1.12); }
.btn-px:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}
.btn-px:disabled { opacity: 0.42; cursor: not-allowed; }
.btn-px.amber { background: var(--accent-amber-dark); border-color: var(--accent-amber); color: #fffbeb; }
.btn-px.purple { background: var(--accent-purple-dark); border-color: var(--accent-purple); color: #f5f3ff; }
.btn-px.ghost { background: transparent; border-color: var(--border-bright); color: var(--text-sub); box-shadow: none; }
.btn-px.sm { padding: 9px 10px; font-size: 12px; }

/* 拆信动画 */
.envelope-svg .env-flap {
  transform-origin: 100px 40px;
  transition: transform 0.45s ease;
}
.envelope-svg .env-seal {
  transform-origin: 100px 62px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.envelope-svg .env-letter {
  transition: transform 0.5s ease 0.18s;
}
.envelope-svg.opening .env-seal {
  transform: scale(1.6);
  opacity: 0;
}
.envelope-svg.opening .env-flap {
  transform: scaleY(-1);
}
.envelope-svg.opening .env-letter {
  transform: translateY(-22px);
}

/* RPG 对话框打字机气泡 */
.rpg-dialog {
  width: 100%;
  background: #090c18;
  border: 2px solid var(--accent-mint);
  padding: 11px 12px;
  margin: 6px 0 8px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-main);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  min-height: 62px;
  position: relative;
}
.rpg-dialog .rpg-speaker {
  font-size: 10px;
  color: var(--accent-amber);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.rpg-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent-mint);
  margin-left: 3px;
  vertical-align: middle;
  animation: blinkCur 0.7s steps(2) infinite;
}
@keyframes blinkCur { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 实体感像素大红包（点击拆开） */
.redpacket-cover {
  width: 100%;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border: 3px solid #fbbf24;
  padding: 16px 12px;
  margin-top: 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
  position: relative;
  animation: shakeGift 2.4s ease-in-out infinite;
}
@keyframes shakeGift {
  0%, 86%, 100% { transform: rotate(0deg); }
  89% { transform: rotate(-2deg); }
  92% { transform: rotate(2deg); }
  95% { transform: rotate(-1.5deg); }
  98% { transform: rotate(1.5deg); }
}
.redpacket-seal {
  width: 48px;
  height: 48px;
  margin: 6px auto 8px;
  background: #fbbf24;
  border: 3px solid #fef08a;
  color: #991b1b;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #78350f;
}

/* 信息卡片面板 */
.info-panel {
  width: 100%;
  margin-top: 10px;
  background: var(--bg-panel);
  border: 2px solid var(--border-pixel);
  padding: 11px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}
.info-panel .k {
  font-size: 11px;
  color: var(--accent-mint);
  font-weight: 700;
  margin-bottom: 4px;
}
.info-panel .code-box {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-amber);
  background: rgba(0,0,0,0.35);
  border: 1.5px dashed rgba(251,191,36,0.5);
  padding: 8px;
  margin: 6px 0 8px;
  text-align: center;
  word-break: break-all;
}

/* 吹蜡烛/长按/麦克风互动区 */
.candle-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 12px;
}
.candle-dot {
  width: 24px;
  height: 24px;
  background: #f59e0b;
  border: 2px solid #fde68a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.75);
  transition: all 0.25s;
  position: relative;
}
.candle-dot.blown {
  background: #232742;
  border-color: #424973;
  box-shadow: none;
  transform: scale(0.88);
}
/* 吹灭后飘起的像素青烟 */
.candle-dot.blown::after {
  content: "☁";
  position: absolute;
  top: -16px;
  left: 3px;
  font-size: 12px;
  color: #cbd5e1;
  animation: smokeRise 0.9s ease-out forwards;
}
@keyframes smokeRise {
  0% { opacity: 0.9; transform: translateY(4px) scale(0.7); }
  100% { opacity: 0; transform: translateY(-16px) scale(1.25); }
}

#holdZone {
  width: 100%;
  padding: 18px 12px;
  margin-top: 4px;
  border: 2px dashed var(--accent-purple);
  background: rgba(167, 139, 250, 0.08);
  text-align: center;
  cursor: pointer;
  touch-action: none;
  transition: background 0.15s, border-color 0.15s;
}
#holdZone.holding {
  background: rgba(167, 139, 250, 0.22);
  border-color: var(--accent-amber);
}
#progressBar {
  width: 88%;
  height: 12px;
  background: #17192e;
  border: 2px solid var(--accent-purple);
  margin: 10px auto 0;
  overflow: hidden;
}
#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-amber));
  transition: width 0.05s linear;
}
.mic-btn {
  margin-top: 10px;
  width: 100%;
  background: rgba(76, 224, 179, 0.12);
  border: 1.5px solid var(--accent-mint);
  color: var(--accent-mint);
  padding: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mic-btn.listening {
  background: rgba(251, 191, 36, 0.2);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  animation: pulseLed 1s infinite;
}

/* 定时倒计时锁屏 */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin: 14px 0;
}
.cd-cell {
  background: var(--bg-panel);
  border: 2px solid var(--border-bright);
  padding: 10px 4px;
  text-align: center;
}
.cd-num { font-size: 20px; font-weight: 700; color: var(--accent-amber); display: block; }
.cd-lbl { font-size: 10px; color: var(--text-sub); }

/* 掌机底部装饰 */
.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 8px;
}
.dpad {
  width: 44px;
  height: 44px;
  position: relative;
}
.dpad::before, .dpad::after {
  content: "";
  position: absolute;
  background: var(--dpad-bg);
  border: 2px solid var(--dpad-border);
  border-radius: 3px;
}
.dpad::before { left: 15px; top: 0; width: 14px; height: 44px; }
.dpad::after  { top: 15px; left: 0; width: 44px; height: 14px; }

.speaker-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--shell-text);
  letter-spacing: 1.5px;
  text-align: center;
  opacity: 0.78;
}
.ab-btns {
  display: flex;
  gap: 9px;
  transform: rotate(-14deg);
}
.ab-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ab-a);
  border: 2px solid var(--ab-a-ring);
  box-shadow: 0 3px 0 rgba(0,0,0,0.4);
}
.ab-dot.b {
  background: var(--ab-b);
  border-color: var(--ab-b-ring);
  margin-top: 9px;
}

@keyframes flicker {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.55; transform: translateY(-1px); }
}
.flame { animation: flicker 0.5s infinite; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.float-svg { animation: floatSlow 2.6s ease-in-out infinite; }

#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
}

#ambientCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

.stage-wrap {
  position: relative;
  z-index: 2;
}

/* 复古拍立得回忆照片卡（拆信后呈现） */
.polaroid-card {
  width: 86%;
  background: #fdfbf7;
  color: #1e293b;
  padding: 10px 10px 14px;
  border: 2px solid #e2e8f0;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.55);
  transform: rotate(-1.8deg);
  margin: 8px 0 12px;
  transition: transform 0.25s ease;
  position: relative;
}
.polaroid-card:hover {
  transform: rotate(0deg) scale(1.02);
}
.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.polaroid-caption {
  margin-top: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-align: center;
  line-height: 1.45;
}
.polaroid-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 10px;
  color: #64748b;
}
.photo-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 10px;
}
.photo-dot {
  width: 8px;
  height: 8px;
  background: var(--border-pixel);
  cursor: pointer;
}
.photo-dot.active {
  background: var(--accent-amber);
  transform: scale(1.2);
}

/* 封面底部氛围小统计条（告别空旷感） */
.cover-stats {
  display: flex;
  gap: 6px;
  width: 100%;
  margin: 4px 0 8px;
}
.stat-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-pixel);
  padding: 5px 4px;
  text-align: center;
  font-size: 10px;
  color: var(--text-sub);
}
.stat-pill strong {
  display: block;
  font-size: 12px;
  color: var(--accent-amber);
  margin-bottom: 2px;
}

#qr {
  background: #ffffff;
  padding: 8px;
  border-radius: 6px;
  margin-top: 10px;
  display: inline-block;
}
#qr canvas, #qr img { display: block; }

.watermark-bar {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
}
.watermark-bar a { color: var(--accent-mint); text-decoration: none; }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid var(--accent-mint);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  width: 370px;
  max-width: 100%;
  background: #1b1e32;
  color: #f4f6ff;
  border: 3px solid #6873b0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-box img {
  width: 100%;
  border-radius: 6px;
  border: 2px solid #394068;
  margin: 10px 0;
}

/* ==========================================================================
   制卡工坊（Studio）布局
   ========================================================================== */
.studio-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 18px 60px;
}
.studio-hero { text-align: center; margin-bottom: 26px; }
.studio-hero h1 {
  font-size: 28px;
  margin: 12px 0 8px;
  background: linear-gradient(90deg, #4ce0b3, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.studio-hero p { font-size: 13px; color: var(--text-sub); max-width: 660px; margin: 0 auto; line-height: 1.6; }
.studio-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) { .studio-grid { grid-template-columns: 1fr; } }

.editor-card {
  background: #1b1e32;
  border: 2px solid #394068;
  border-radius: 14px;
  padding: 20px;
}
.editor-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #394068;
}
.editor-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sec-title {
  font-size: 13px;
  font-weight: 700;
  color: #4ce0b3;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pro-badge {
  font-size: 10px;
  background: linear-gradient(90deg, #f59e0b, #fb7185);
  color: #111827;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}
.biz-badge {
  font-size: 10px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  color: #0f172a;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 12px; color: #a0a9cf; margin-bottom: 5px; }
.field input[type="text"],
.field input[type="number"],
.field input[type="datetime-local"],
.field textarea {
  width: 100%;
  background: #111424;
  border: 1.5px solid #394068;
  border-radius: 6px;
  padding: 9px 11px;
  color: #f5f7ff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: #4ce0b3; }

.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 560px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
.tpl-btn {
  background: #111424;
  border: 2px solid #394068;
  border-radius: 8px;
  padding: 10px 6px;
  color: #a0a9cf;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.tpl-btn.active {
  border-color: #4ce0b3;
  background: rgba(76, 224, 179, 0.14);
  color: #ffffff;
  font-weight: 700;
}
.tpl-btn .em { font-size: 20px; display: block; margin-bottom: 4px; }

/* 皮肤色块选择器 */
.skin-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.5);
  vertical-align: middle;
  margin-bottom: 4px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 780px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #1b1e32;
  border: 2px solid #394068;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: #fbbf24; box-shadow: 0 0 26px rgba(251, 191, 36, 0.16); }
.price-card h3 { font-size: 16px; margin-bottom: 6px; }
.price-num { font-size: 28px; font-weight: 700; color: #fbbf24; margin: 8px 0 12px; }
.price-num span { font-size: 12px; color: #a0a9cf; font-weight: 400; }
.price-list { list-style: none; font-size: 12px; color: #a0a9cf; line-height: 1.9; margin-bottom: 16px; flex: 1; }
.price-list li::before { content: "✓ "; color: #4ce0b3; font-weight: 700; }
