/* ==========================================================
   星雀短剧工场 · 设计系统
   深空底色 + 霓虹渐变 + 玻璃拟态，桌面与移动端自适应
   ========================================================== */

:root {
  --bg: #07060f;
  --bg-soft: #0b0918;
  --panel: rgba(255, 255, 255, 0.042);
  --panel-2: rgba(255, 255, 255, 0.068);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ff;
  --muted: #9d98ba;
  --muted-2: #726d92;
  --brand: #b06bff;
  --brand-2: #ff5fa2;
  --cyan: #45d9ff;
  --ok: #3ddc97;
  --warn: #ffc75f;
  --danger: #ff6b7a;
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 70px rgba(5, 2, 18, 0.6);
  --shadow: 0 16px 40px rgba(5, 2, 18, 0.45);
  --grad: linear-gradient(135deg, #b06bff 0%, #ff5fa2 100%);
  --grad-soft: linear-gradient(135deg, rgba(176, 107, 255, 0.18), rgba(255, 95, 162, 0.14));
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* hidden 属性必须始终生效：避免被 display:grid / flex 覆盖 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(176, 107, 255, 0.4); }

/* ---------- 背景光效 ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 12% -10%, rgba(120, 60, 220, 0.28), transparent 65%),
    radial-gradient(900px 500px at 92% 0%, rgba(255, 95, 162, 0.16), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(69, 217, 255, 0.12), transparent 65%),
    #07060f;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 22s ease-in-out infinite;
}
.orb-1 { width: 460px; height: 460px; background: #6b2cff; top: -120px; left: -100px; }
.orb-2 { width: 380px; height: 380px; background: #ff3d8b; top: 32%; right: -120px; animation-delay: -7s; }
.orb-3 { width: 420px; height: 420px; background: #14c8ff; bottom: -160px; left: 38%; opacity: 0.28; animation-delay: -13s; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
}

/* ---------- 通用 ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt { margin-top: 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}
.chip.ok { color: var(--ok); border-color: rgba(61, 220, 151, 0.32); background: rgba(61, 220, 151, 0.1); }
.chip.warn { color: var(--warn); border-color: rgba(255, 199, 95, 0.32); background: rgba(255, 199, 95, 0.1); }
.chip.bad { color: var(--danger); border-color: rgba(255, 107, 122, 0.32); background: rgba(255, 107, 122, 0.1); }
.chip.brand { color: #d9b8ff; border-color: rgba(176, 107, 255, 0.35); background: rgba(176, 107, 255, 0.14); }

.link {
  background: none;
  border: 0;
  color: #c9a6ff;
  font-size: 13px;
  padding: 0;
}
.link:hover { color: #e5d3ff; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text);
  background: var(--panel-2);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, opacity 0.2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--grad);
  border: 0;
  box-shadow: 0 12px 30px rgba(176, 107, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 18px 40px rgba(255, 95, 162, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost.danger { color: #ffb0ba; border-color: rgba(255, 107, 122, 0.32); }
.btn-block { width: 100%; }
.btn-lg { height: 52px; font-size: 15.5px; padding: 0 28px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 20px; }
.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ddd6f5;
  margin-bottom: 9px;
}
.field-label em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-2);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.field-hint { display: block; margin-top: 7px; font-size: 12px; color: var(--muted-2); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 8, 22, 0.55);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #5f5a7c; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(176, 107, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(176, 107, 255, 0.13);
  background: rgba(14, 10, 30, 0.75);
}
textarea { resize: vertical; min-height: 88px; line-height: 1.65; }
select { appearance: none; background-image: none; }

/* ---------- 登录页 ---------- */
.auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 64px clamp(24px, 6vw, 96px);
  max-width: 1440px;
  margin: 0 auto;
}

.auth-brand { max-width: 560px; animation: rise 0.7s ease both; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 15.5px;
  margin-bottom: 40px;
}
.brand-mark svg { width: 40px; height: 40px; }
.brand-mark.small { margin-bottom: 30px; font-size: 14.5px; }
.brand-mark.small svg { width: 34px; height: 34px; }
.brand-mark.tiny { font-size: 13.5px; margin: 0; }
.brand-mark.tiny svg { width: 30px; height: 30px; }

.auth-brand h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.16;
  letter-spacing: -1px;
  font-weight: 800;
}
.auth-sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 460px;
}

.auth-points {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 13px;
}
.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: #c8c2e2;
}
.dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(176, 107, 255, 0.9);
}

.auth-glow-card {
  margin-top: 40px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--grad-soft);
  max-width: 420px;
}
.auth-glow-card p { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item {
  height: 82px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: shimmerSlide 6s ease-in-out infinite;
}
.gi-1 { background: linear-gradient(140deg, #4a1e8f, #ff5fa2); }
.gi-2 { background: linear-gradient(140deg, #1b3a8f, #45d9ff); animation-delay: -2s; }
.gi-3 { background: linear-gradient(140deg, #8f1e5c, #ffc75f); animation-delay: -4s; }

@keyframes shimmerSlide {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.3) brightness(1.15); }
}

.auth-panel { display: flex; justify-content: center; animation: rise 0.7s 0.1s ease both; }
.auth-card { width: min(420px, 100%); padding: 32px; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.tab {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.tab.is-active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(176, 107, 255, 0.32); }

.auth-form .field { margin-bottom: 16px; }
.auth-form .btn { margin-top: 8px; }
.form-hint { margin-top: 16px; font-size: 12.5px; color: var(--muted-2); text-align: center; }

/* ---------- 应用骨架 ---------- */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(9, 7, 20, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav { display: grid; gap: 6px; margin-top: 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav-item.is-active {
  color: #fff;
  background: var(--grad-soft);
  border-color: rgba(176, 107, 255, 0.34);
  box-shadow: inset 0 0 22px rgba(176, 107, 255, 0.12);
}

.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.mini-wallet {
  position: relative;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(176, 107, 255, 0.26);
  background: linear-gradient(150deg, rgba(176, 107, 255, 0.16), rgba(255, 95, 162, 0.08));
  overflow: hidden;
}
.mini-wallet-label { font-size: 12px; color: #c3b7e8; }
.mini-wallet strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.mini-wallet-btn {
  position: absolute;
  right: 12px;
  bottom: 14px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
}
.mini-wallet-btn:hover { background: rgba(255, 255, 255, 0.2); }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; }
.user-name { font-size: 13.5px; font-weight: 600; }
.user-role { font-size: 11.5px; color: var(--muted-2); }

.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(176, 107, 255, 0.35);
}
.avatar.xl { width: 62px; height: 62px; border-radius: 20px; font-size: 24px; }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }

.pages { padding: 34px clamp(20px, 3.2vw, 44px) 110px; }
.page { max-width: 1300px; margin: 0 auto; animation: rise 0.45s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 34px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(176, 107, 255, 0.3);
  background: rgba(176, 107, 255, 0.1);
  color: #d3b6ff;
  font-size: 12px;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 800;
}
.hero p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 520px; }
.hero-stats { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div { display: grid; }
.hero-stats strong { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.hero-stats small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.hero-stats span { font-size: 12px; color: var(--muted-2); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.phone {
  width: 178px;
  height: 322px;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(120, 60, 220, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: rotate(-4deg);
  animation: tilt 9s ease-in-out infinite;
}
@keyframes tilt {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-10px); }
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 23px;
  background: linear-gradient(165deg, #241246, #0d0a1c 55%, #2a0f33);
  overflow: hidden;
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-badge {
  align-self: flex-start;
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e6dcff;
  margin-bottom: 6px;
}
.phone-line { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); }
.phone-line.w70 { width: 70%; }
.phone-line.w50 { width: 50%; background: rgba(255, 255, 255, 0.09); }
.phone-line.w85 { width: 85%; background: rgba(255, 255, 255, 0.07); }
.phone-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.13) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sweep 3.4s ease-in-out infinite;
}
@keyframes sweep {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 12, 32, 0.82);
  backdrop-filter: blur(14px);
  font-size: 12px;
  color: #d6cfee;
  box-shadow: var(--shadow);
}
.fc-1 { top: 26px; right: 4px; animation: rise 0.8s 0.3s both; }
.fc-2 { bottom: 30px; left: 0; animation: rise 0.8s 0.5s both; }
.fc-dot { width: 7px; height: 7px; border-radius: 50%; }
.fc-dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.fc-dot.brand { background: var(--brand); box-shadow: 0 0 10px var(--brand); }

/* ---------- 创作台布局 ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 22px;
  align-items: start;
}
.wizard { padding: 0; overflow: hidden; }
.wizard-head { padding: 18px 22px 0; border-bottom: 1px solid var(--line); }

.stepper { display: flex; gap: 6px; }
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px 15px;
  border: 0;
  background: none;
  color: var(--muted-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s;
}
.step i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-style: normal;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.step.is-active { color: #fff; }
.step.is-active i { background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px rgba(176, 107, 255, 0.4); }
.step.is-done { color: #c9b8f0; }
.step.is-done i { background: rgba(61, 220, 151, 0.16); border-color: rgba(61, 220, 151, 0.4); color: var(--ok); }
.step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.25s;
}
.step.is-active::after { background: var(--grad); }

.wizard-body { padding: 26px 24px 6px; }
.wizard-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(11, 9, 24, 0.72);
  backdrop-filter: blur(18px);
}
.wizard-foot .price-tag { margin-left: auto; display: flex; align-items: baseline; gap: 5px; font-size: 12.5px; color: var(--muted); }
.wizard-foot .price-tag strong { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }

/* 上传区 */
.dropzone {
  position: relative;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  padding: 26px 20px;
  text-align: center;
  transition: all 0.22s ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-over {
  border-color: rgba(176, 107, 255, 0.62);
  background: rgba(176, 107, 255, 0.08);
  transform: translateY(-1px);
}
.dropzone.compact { padding: 20px 16px; }
.dz-inner svg { width: 30px; height: 30px; color: #a487e6; margin-bottom: 10px; }
.dz-inner p { font-size: 14px; font-weight: 600; }
.dz-inner small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted-2); line-height: 1.55; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #100d20;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(8, 6, 16, 0.78);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.thumb-remove:hover { background: var(--danger); }
.thumb-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 6, 18, 0.6); }
.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 选择器 */
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.pill:hover { border-color: rgba(176, 107, 255, 0.4); color: #e4dbff; }
.pill.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(176, 107, 255, 0.35);
}

.pill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; }
.option-card {
  text-align: left;
  padding: 13px 15px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: all 0.2s;
}
.option-card strong { display: block; font-size: 13.5px; margin-bottom: 3px; }
.option-card span { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.option-card:hover { border-color: rgba(176, 107, 255, 0.4); transform: translateY(-1px); }
.option-card.is-active {
  border-color: rgba(176, 107, 255, 0.7);
  background: var(--grad-soft);
  box-shadow: 0 10px 26px rgba(176, 107, 255, 0.18);
}

.ratio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ratio-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  transition: all 0.2s;
}
.ratio-card b { font-size: 13.5px; color: var(--text); font-weight: 600; }
.ratio-card small { font-size: 11px; color: var(--muted-2); }
.ratio-shape { border: 1.6px solid currentColor; border-radius: 4px; opacity: 0.7; }
.ratio-card:hover { border-color: rgba(176, 107, 255, 0.4); }
.ratio-card.is-active { border-color: rgba(176, 107, 255, 0.75); background: var(--grad-soft); color: #d8bcff; box-shadow: 0 10px 26px rgba(176, 107, 255, 0.16); }

.model-list { display: grid; gap: 9px; }
.model-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.032);
  text-align: left;
  color: var(--text);
  transition: all 0.2s;
}
.model-item:hover { border-color: rgba(176, 107, 255, 0.4); }
.model-item.is-active { border-color: rgba(176, 107, 255, 0.72); background: var(--grad-soft); }
.model-radio {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
}
.model-item.is-active .model-radio { border-color: transparent; background: var(--grad); }
.model-item.is-active .model-radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.model-info { min-width: 0; flex: 1; }
.model-info strong { font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.model-info p { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.model-tag { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #d6cbf2; font-weight: 500; }
.model-price { font-size: 12.5px; color: #cbb6ff; font-weight: 700; white-space: nowrap; }

.switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.032);
  margin-bottom: 12px;
}
.switch-title { font-size: 14px; font-weight: 600; }
.switch-desc { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.switch {
  flex: none;
  width: 50px;
  height: 29px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  transition: background 0.22s, border-color 0.22s;
}
.switch i {
  display: block;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #cfc7e8;
  transition: transform 0.22s, background 0.22s;
}
.switch.is-on { background: var(--grad); border-color: transparent; box-shadow: 0 6px 18px rgba(176, 107, 255, 0.35); }
.switch.is-on i { transform: translateX(21px); background: #fff; }

.promo-panel { padding: 16px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.02); animation: rise 0.3s ease both; }

/* 确认页 */
.confirm-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
}
.confirm-card h3 { font-size: 14.5px; margin-bottom: 14px; }
.summary { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; margin: 0; font-size: 13.5px; }
.summary dt { color: var(--muted-2); }
.summary dd { margin: 0; color: #e6e0fb; word-break: break-all; }
.prompt-preview {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  color: #c9c0e6;
  background: rgba(6, 4, 14, 0.6);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  max-height: 260px;
  overflow: auto;
  margin: 0;
}

/* 右栏 */
.rail { display: grid; gap: 14px; position: sticky; top: 24px; }
.rail-card { padding: 18px; border-radius: 20px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.wallet-hero { background: linear-gradient(155deg, rgba(176, 107, 255, 0.18), rgba(255, 95, 162, 0.07)); border-color: rgba(176, 107, 255, 0.28); }
.big-num { display: block; font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.wallet-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: #bdb2dd; }
.wallet-meta b { color: #fff; }

.order-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.order-lines b { color: #eae4ff; font-weight: 600; text-align: right; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-lines li.total { padding-top: 11px; border-top: 1px dashed var(--line); font-size: 14px; }
.order-lines li.total b { font-size: 17px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tip-card { background: rgba(69, 217, 255, 0.055); border-color: rgba(69, 217, 255, 0.18); }
.tip-title { font-size: 12.5px; font-weight: 700; color: #8fe6ff; margin-bottom: 6px; }
.tip-card p { font-size: 12.5px; color: #a9c4d6; line-height: 1.65; }

/* 进行中任务 */
.active-jobs { margin-top: 34px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 16.5px; font-weight: 700; }
.job-list { display: grid; gap: 12px; }
.job-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  animation: rise 0.4s ease both;
}
.ring { position: relative; width: 54px; height: 54px; }
.ring svg { transform: rotate(-90deg); }
.ring-bg { stroke: rgba(255, 255, 255, 0.1); }
.ring-fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.ring-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; }

.job-main { min-width: 0; }
.job-title { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; }
.job-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-step { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.job-actions { display: flex; gap: 8px; align-items: center; }

.bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; margin-top: 9px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.6s ease; position: relative; }
.bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: sweep 1.8s linear infinite;
}

/* ---------- 页面头部 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.6px; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 14px; }

/* ---------- 作品 ---------- */
.filter-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  transition: all 0.2s;
}
.chip-btn:hover { color: #fff; border-color: var(--line-strong); }
.chip-btn.is-active { background: var(--grad); border-color: transparent; color: #fff; }

.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.work-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  animation: rise 0.4s ease both;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(176, 107, 255, 0.34); }
.work-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, #1a1030, #0d0a1c);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.work-media video, .work-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-media .play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(6, 4, 14, 0) 40%, rgba(6, 4, 14, 0.55));
  opacity: 0;
  transition: opacity 0.2s;
}
.work-card:hover .play-badge { opacity: 1; }
.play-badge span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.play-badge svg { width: 20px; height: 20px; fill: #fff; }
.work-placeholder { display: grid; place-items: center; gap: 8px; color: var(--muted-2); font-size: 12px; }
.work-placeholder svg { width: 34px; height: 34px; opacity: 0.6; }
.work-body { padding: 14px 16px 16px; }
.work-name { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted-2); }
.work-actions { display: flex; gap: 8px; margin-top: 13px; }
.work-actions .btn { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }

.empty { text-align: center; padding: 70px 20px; display: grid; justify-items: center; gap: 10px; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--muted); font-size: 13.5px; }
.empty .btn { margin-top: 12px; }
.empty-art {
  width: 130px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(176, 107, 255, 0.2), rgba(69, 217, 255, 0.12));
  box-shadow: inset 0 0 40px rgba(176, 107, 255, 0.2);
  margin-bottom: 8px;
}

/* ---------- 充值 ---------- */
.balance-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  margin-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(176, 107, 255, 0.2), rgba(255, 95, 162, 0.08) 60%, rgba(69, 217, 255, 0.07));
}
.balance-label { font-size: 13px; color: #c9bce8; }
.balance-num { display: block; font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1.1; }
.balance-sub { font-size: 12.5px; color: var(--muted); }
.balance-sub b { color: #fff; }
.balance-art {
  width: 200px;
  height: 120px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 40%),
    linear-gradient(135deg, rgba(176, 107, 255, 0.6), rgba(255, 95, 162, 0.35));
  filter: blur(2px);
  opacity: 0.7;
  transform: rotate(-6deg);
}

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 14px; margin-bottom: 20px; }
.pkg-card {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
  color: var(--text);
  transition: all 0.25s;
  overflow: hidden;
}
.pkg-card::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 107, 255, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.pkg-card:hover { transform: translateY(-3px); border-color: rgba(176, 107, 255, 0.45); box-shadow: var(--shadow); }
.pkg-card:hover::after { opacity: 1; }
.pkg-card.is-hot { border-color: rgba(255, 95, 162, 0.45); background: linear-gradient(155deg, rgba(255, 95, 162, 0.13), rgba(176, 107, 255, 0.07)); }
.pkg-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 12px;
  border-bottom-left-radius: 12px;
  background: var(--grad);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.pkg-name { font-size: 13.5px; color: #cfc4ea; }
.pkg-credits { display: flex; align-items: baseline; gap: 5px; margin: 6px 0 2px; }
.pkg-credits strong { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.pkg-credits span { font-size: 12px; color: var(--muted); }
.pkg-price { font-size: 19px; font-weight: 700; color: #fff; margin-top: 8px; }
.pkg-tagline { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; min-height: 32px; }
.pkg-card .btn { width: 100%; margin-top: 10px; height: 38px; font-size: 13px; }

.redeem-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; margin-bottom: 20px; flex-wrap: wrap; }
.redeem-card h3 { font-size: 15px; margin-bottom: 4px; }
.redeem-card p { font-size: 12.5px; color: var(--muted-2); }
.redeem-form { display: flex; gap: 9px; }
.redeem-form input { width: 220px; }

.ledger-card { padding: 22px 24px; }
.ledger { display: grid; gap: 2px; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); font-size: 13px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-left { min-width: 0; }
.ledger-note { color: #ded6f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-time { font-size: 11.5px; color: var(--muted-2); }
.ledger-delta { font-weight: 700; white-space: nowrap; }
.ledger-delta.plus { color: var(--ok); }
.ledger-delta.minus { color: #ff9aa5; }
.ledger-empty { color: var(--muted-2); font-size: 13px; padding: 18px 0; text-align: center; }

/* ---------- 账户 ---------- */
.account-card { padding: 24px; margin-bottom: 16px; }
.account-card.row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.account-main { display: flex; align-items: center; gap: 18px; }
.account-card h2 { font-size: 19px; }
.account-card h3 { font-size: 15px; margin-bottom: 10px; }
.account-card .btn { margin-left: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 20px; }
.stat {
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.stat span { font-size: 11.5px; color: var(--muted-2); }
.stat strong { display: block; font-size: 22px; font-weight: 800; margin-top: 3px; letter-spacing: -0.5px; }
.admin-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
.admin-block { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.022); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { width: 100px; }
.code-output { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.code-pill { font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(176, 107, 255, 0.14); border: 1px solid rgba(176, 107, 255, 0.3); cursor: pointer; }
.user-table { display: grid; gap: 6px; max-height: 220px; overflow: auto; font-size: 12.5px; }
.user-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--muted); }
.user-row b { color: #e8e1ff; font-weight: 600; }

/* ---------- 移动端底栏 ---------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(10, 8, 20, 0.86);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tab-item {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 0;
  border-radius: 13px;
  color: var(--muted-2);
  font-size: 10.5px;
  transition: all 0.2s;
}
.tab-item svg { width: 21px; height: 21px; }
.tab-item.is-active { color: #fff; background: rgba(176, 107, 255, 0.16); }

/* ---------- 抽屉 ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.drawer-mask { position: absolute; inset: 0; background: rgba(4, 2, 10, 0.6); backdrop-filter: blur(4px); animation: fade 0.25s ease both; }
.drawer-panel {
  position: relative;
  width: min(520px, 94vw);
  height: 100%;
  border-radius: 26px 0 0 26px;
  background: rgba(13, 10, 26, 0.94);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 16px; }
.drawer-body { padding: 20px 22px 40px; overflow: auto; }
.drawer-body video { max-height: 42vh; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.detail-grid { display: grid; grid-template-columns: 90px 1fr; gap: 10px 14px; font-size: 13px; margin-bottom: 18px; }
.detail-grid dt { color: var(--muted-2); }
.detail-grid dd { margin: 0; color: #e9e3ff; word-break: break-word; }
.log-list { display: grid; gap: 9px; font-size: 12.5px; }
.log-item { display: flex; gap: 10px; color: #c5bcdd; }
.log-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 7px; }
.log-time { color: var(--muted-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.log-item.err { color: #ffa8b2; }
.log-item.err .log-dot { background: var(--danger); }
.log-item.warn { color: #ffd89a; }
.log-item.warn .log-dot { background: var(--warn); }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox-mask { position: absolute; inset: 0; background: rgba(3, 2, 8, 0.88); backdrop-filter: blur(12px); animation: fade 0.2s ease both; }
.lightbox-body { position: relative; width: min(420px, 92vw); animation: rise 0.3s ease both; }
.lightbox-body video, .lightbox-body img { width: 100%; border-radius: 22px; display: block; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7); background: #000; }
.lb-close { position: absolute; top: -46px; right: 0; background: rgba(255, 255, 255, 0.12); }
.lightbox-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 9px; width: max-content; max-width: 92vw; }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 14, 32, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  animation: toastIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.toast.ok { border-color: rgba(61, 220, 151, 0.42); }
.toast.ok::before { content: "✓"; color: var(--ok); font-weight: 700; }
.toast.err { border-color: rgba(255, 107, 122, 0.45); }
.toast.err::before { content: "!"; color: var(--danger); font-weight: 700; }
.toast.info::before { content: "i"; color: var(--cyan); font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut 0.25s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(0.97); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); display: grid; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(9, 7, 19, 0.82);
    backdrop-filter: blur(18px);
  }
  .wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(176, 107, 255, 0.32);
    background: rgba(176, 107, 255, 0.13);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }
  .wallet-chip svg { width: 16px; height: 16px; color: #d3b6ff; }
  .tabbar { display: flex; }
  .pages { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .admin-actions { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; padding: 36px 20px 48px; gap: 28px; }
  .auth-brand h1 { font-size: 32px; }
  .auth-glow-card, .auth-points { display: none; }
  .auth-card { padding: 24px; }
  .brand-mark { margin-bottom: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 14px; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 20px; }
  .wizard-head { padding: 12px 14px 0; overflow-x: auto; }
  .stepper { min-width: max-content; }
  .step { padding: 11px 8px 13px; font-size: 11.5px; gap: 6px; }
  .step span { display: inline; }
  .step i { width: 22px; height: 22px; font-size: 11px; }
  .wizard-body { padding: 18px 16px 4px; }
  .wizard-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .wizard-foot .btn { height: 42px; padding: 0 16px; font-size: 13.5px; }
  .wizard-foot .price-tag { font-size: 11.5px; }
  .wizard-foot .price-tag strong { font-size: 18px; }
  .ratio-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ratio-card { padding: 12px 6px; }
  .ratio-card small { display: none; }
  .pill-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 44px minmax(0, 1fr); row-gap: 10px; }
  .ring { width: 44px; height: 44px; }
  .job-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .balance-hero { padding: 22px; }
  .balance-num { font-size: 40px; }
  .balance-art { display: none; }
  .pkg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pkg-card { padding: 16px 14px; }
  .pkg-credits strong { font-size: 24px; }
  .pkg-tagline { display: none; }
  .redeem-form { width: 100%; }
  .redeem-form input { flex: 1; width: auto; }
  .drawer-panel { width: 100%; border-radius: 24px 24px 0 0; height: 92%; align-self: flex-end; animation: sheetIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .detail-grid { grid-template-columns: 82px 1fr; }
  .account-main { flex-wrap: wrap; }
  .account-card .btn { margin-left: 0; width: 100%; }
  .toasts { top: 12px; }
}

@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============ 扫码支付弹窗 ============ */
.pay-modal-body {
  position: relative;
  width: min(400px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow: auto;
  padding: 26px 26px 22px;
  text-align: center;
}
.pay-title { font-size: 19px; margin-bottom: 6px; }
.pay-amount { margin: 4px 0 14px; }
.pay-amount span { font-size: 34px; font-weight: 800; color: #ffd479; }
.pay-amount small { display: block; color: var(--muted); margin-top: 4px; }
.pay-qr-wrap {
  width: 240px; height: 240px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
}
.pay-qr-wrap img { width: 100%; height: 100%; object-fit: contain; }
.pay-qr-empty { padding: 16px; color: #7a1f2e; font-size: 13.5px; text-align: center; }
.pay-qr-empty .small { font-size: 12px; opacity: .75; margin-top: 6px; }
.pay-steps { text-align: left; margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.pay-steps b { color: #ffd479; }
.btn-lg { width: 100%; padding: 13px; font-size: 15px; }
.pay-note { margin-top: 10px; }

/* ============ 订单列表 ============ */
.order-list { width: 100%; max-height: 260px; overflow: auto; }
.order-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.order-row:last-child { border-bottom: none; }
.order-name { font-size: 13.5px; color: #e8e1ff; }
.order-right { text-align: right; display: flex; align-items: center; gap: 10px; }
.order-right b { color: #ffd479; }

/* ============ 到账确认（管理员） ============ */
.claim-list { display: flex; flex-direction: column; gap: 10px; }
.claim-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
}
.claim-info b { font-size: 13.5px; color: #e8e1ff; display: block; }
.claim-info .small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.claim-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
#qr-file { font-size: 12px; max-width: 220px; }

@media (max-width: 640px) {
  .claim-row { flex-direction: column; align-items: stretch; }
  .claim-actions { justify-content: flex-end; }
  .pay-modal-body { padding: 20px 16px; }
}
