/* ============================================================
 * H5 紫调深色 — 按 docs/UI 原型单独设计
 * 只在 html[data-theme="purple-dark"] 生效。
 * 原版青蓝是 app.css + ambience.css，用 :not(purple-dark) 隔开，互不叠皮。
 * ============================================================ */

html[data-theme="purple-dark"] {
  --screen-bg: linear-gradient(180deg, #0a1628 0%, #0f1f3d 30%, #1a1a4e 70%, #1e1b4b 100%);
  --bg: #0a1628;
  --surface: #0f2744;
  --surface-2: #132d52;
  --border: rgba(99, 102, 241, 0.25);
  --border-strong: rgba(139, 92, 246, 0.45);
  --text: #ffffff;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --text-strong: #ffffff;
  --text-soft: #e2e8f0;
  --text-placeholder: #64748b;
  --brand: #8b5cf6;
  --brand-dark: #7c3aed;
  --brand-strong: #a78bfa;
  --brand-soft: rgba(139, 92, 246, 0.2);
  --on-brand: #ffffff;
  --accent: #22d3ee;
  --cta-bg: #ffffff;
  --cta-fg: #0f172a;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.16);
  --warning: #fbbf24;
  --danger: #f87171;
  --danger-soft: rgba(239, 68, 68, 0.08);
  --shadow-sm: none;
  --shadow-md: 0 0 20px rgba(139, 92, 246, 0.18);
  --shadow-lg: 0 0 40px rgba(139, 92, 246, 0.28);
  /* 原型底栏 83px 含 Home Indicator；真机用 safe-area，内容区留给 36 圆 + 字 */
  --tabbar-h: 80px;
}

html[data-theme="purple-dark"],
html[data-theme="purple-dark"] body {
  background: #0a0e1a !important;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 原版星空浮层关掉：原型屏幕自己就是渐变底 */
html[data-theme="purple-dark"] .fx {
  display: none !important;
}

html[data-theme="purple-dark"] .app {
  background: var(--screen-bg) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin: 0 auto !important;
  height: 100% !important;
  max-height: none !important;
  max-width: 560px;
  position: relative;
  overflow: hidden;
}

html[data-theme="purple-dark"] .app::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(34, 211, 238, 0.3), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(139, 92, 246, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(99, 102, 241, 0.3), transparent),
    radial-gradient(2px 2px at 30% 80%, rgba(34, 211, 238, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(139, 92, 246, 0.25), transparent);
  animation: protoFloatDots 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes protoFloatDots {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
html[data-theme="purple-dark"] .topbar,
html[data-theme="purple-dark"] .view,
html[data-theme="purple-dark"] .tabbar {
  position: relative;
  z-index: 1;
}

/* ---------- 顶栏：原型 nav-bar ---------- */
html[data-theme="purple-dark"] .topbar {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 10px !important;
}
html[data-theme="purple-dark"] .topbar__logo {
  color: #22d3ee !important;
  animation: none !important;
  filter: none !important;
  transform: none !important;
}
html[data-theme="purple-dark"] .topbar__logo svg {
  width: 18px !important;
  height: 18px !important;
  animation: protoTwinkle 1.8s ease-in-out infinite !important;
  transform-origin: center;
}
html[data-theme="purple-dark"] .topbar__brand:hover .topbar__logo,
html[data-theme="purple-dark"] .topbar__brand:active .topbar__logo {
  animation: none !important;
  transform: none !important;
  filter: none !important;
}
html[data-theme="purple-dark"] .topbar__brand:hover .topbar__logo svg,
html[data-theme="purple-dark"] .topbar__brand:active .topbar__logo svg {
  animation: protoTwinkle 1.8s ease-in-out infinite !important;
  transform: none !important;
  filter: none !important;
}
@keyframes protoTwinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px #22d3ee); }
  50% { opacity: 0.7; transform: scale(1.25) rotate(15deg); filter: drop-shadow(0 0 12px #22d3ee); }
}
html[data-theme="purple-dark"] .topbar__title {
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
}
html[data-theme="purple-dark"] .topbar__brand {
  gap: 8px;
}
html[data-theme="purple-dark"] .balance-chip {
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  color: #a5b4fc !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 600;
  gap: 4px !important;
  min-height: 0 !important;
  border-radius: 20px !important;
}
html[data-theme="purple-dark"] .balance-chip__icon svg {
  width: 12px !important;
  height: 12px !important;
  color: #a5b4fc;
}
html[data-theme="purple-dark"] .balance-chip__unit {
  font-size: 12px !important;
  font-weight: 600;
  opacity: 1 !important;
  color: #a5b4fc !important;
}
html[data-theme="purple-dark"] .balance-chip #balanceText,
html[data-theme="purple-dark"] .balance-chip b {
  color: #818cf8 !important;
  font-weight: 700;
}
html[data-theme="purple-dark"] .topbar__theme,
html[data-theme="purple-dark"] .topbar__home {
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  border-radius: 8px !important;
  color: #a5b4fc !important;
}

/* ---------- 首页积分卡 ---------- */
html[data-theme="purple-dark"] .home--dark .home-balance {
  background: linear-gradient(135deg, #0f2744 0%, #162d5a 100%) !important;
  border: 1px solid rgba(34, 211, 238, 0.4) !important;
  border-radius: 18px !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 18px 20px !important;
  position: relative;
  overflow: hidden;
  align-items: flex-start !important;
}
html[data-theme="purple-dark"] .home-balance__title,
html[data-theme="purple-dark"] .home--dark .home-balance__title {
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 400;
}
html[data-theme="purple-dark"] .home--dark .home-balance__value {
  color: #fff !important;
  font-size: 32px !important;
  font-weight: 700;
  line-height: 1.1;
  margin: 4px 0 0 !important;
  text-shadow: 0 0 25px rgba(129, 140, 248, 0.4);
}
html[data-theme="purple-dark"] .home-balance__sub {
  color: #64748b !important;
  font-size: 11px !important;
  margin-top: 6px !important;
}
html[data-theme="purple-dark"] .home--dark .home-balance__cta,
html[data-theme="purple-dark"] .home-balance__cta {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  font-weight: 600;
  font-size: 13px !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding: 8px 18px !important;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
html[data-theme="purple-dark"] .home-balance__cta:hover {
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.6) !important;
  transform: translateY(-1px);
}

/* ---------- 新建创作：原型对角线渐变 + 呼吸光 ---------- */
html[data-theme="purple-dark"] .home-create--hero {
  background: linear-gradient(45deg, #7c3aed 0%, #5b5bd6 35%, #3b82f6 65%, #06b6d4 100%) !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.3), 0 0 60px rgba(6, 182, 212, 0.15);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 36px 20px !important;
  color: #fff !important;
  gap: 0 !important;
  animation: protoBreathe 2.5s ease-in-out infinite;
  overflow: hidden;
  position: relative;
}
@keyframes protoBreathe {
  0%, 100% { box-shadow: 0 0 25px rgba(124, 58, 237, 0.3), 0 0 60px rgba(6, 182, 212, 0.15); }
  50% { box-shadow: 0 0 55px rgba(124, 58, 237, 0.5), 0 0 100px rgba(6, 182, 212, 0.3); }
}
html[data-theme="purple-dark"] .home-create--hero::before {
  content: none !important;
  display: none !important;
  animation: none !important;
  background: none !important;
}
html[data-theme="purple-dark"] .home-create--hero::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: auto;
  left: -100%;
  right: auto;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: none;
  pointer-events: none;
  opacity: 1;
}
html[data-theme="purple-dark"] .home-create--hero:hover::after,
html[data-theme="purple-dark"] .home-create--hero:active::after {
  animation: protoShine 0.8s ease-out forwards;
}
@keyframes protoShine {
  0% { left: -100%; }
  100% { left: 150%; }
}
@keyframes protoShineStay {
  0%, 55% { left: -100%; }
  100% { left: 150%; }
}
@media (hover: none) {
  html[data-theme="purple-dark"] .home-create--hero::after,
  html[data-theme="purple-dark"] .home-entry::after,
  html[data-theme="purple-dark"] .home-balance::after {
    animation: protoShineStay 2.8s ease-out infinite;
  }
}
html[data-theme="purple-dark"] .home-create--hero .home-create__plus {
  width: 56px !important;
  height: 56px !important;
  background: #fff !important;
  color: #1e293b !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  animation: none !important;
  margin: 0 auto 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}
html[data-theme="purple-dark"] .home-create--hero .home-create__plus::before {
  content: '+';
  color: #1e293b;
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
}
html[data-theme="purple-dark"] .home-create--hero .home-create__plus::after {
  display: none !important;
}
html[data-theme="purple-dark"] .home-create--hero .home-create__plus svg {
  display: none !important;
}
html[data-theme="purple-dark"] .home-create--hero:hover .home-create__plus,
html[data-theme="purple-dark"] .home-create--hero:active .home-create__plus {
  transform: rotate(90deg) scale(1.1) !important;
  animation: none !important;
  box-shadow: none !important;
}
html[data-theme="purple-dark"] .home-create--hero:hover .home-create__plus svg,
html[data-theme="purple-dark"] .home-create--hero:active .home-create__plus svg {
  transform: none !important;
}
html[data-theme="purple-dark"] .home-create--hero .home-create__label {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 6px;
}
html[data-theme="purple-dark"] .home-create--hero .home-create__hint {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 12px !important;
}
html[data-theme="purple-dark"] .home--compact-create .home-create--hero {
  flex-direction: column !important;
  padding: 36px 20px !important;
  text-align: center !important;
  min-height: 0 !important;
}
html[data-theme="purple-dark"] .home--compact-create .home-create--hero .home-create__plus {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  margin: 0 auto 14px !important;
}
html[data-theme="purple-dark"] .home--compact-create .home-create--hero .home-create__hint {
  display: block !important;
}

/* ---------- 学爆款青边 / AI 制作紫边 ---------- */
html[data-theme="purple-dark"] .home-entry {
  display: block !important;
  background: linear-gradient(135deg, #0f2744 0%, #132d52 100%) !important;
  border-radius: 16px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
  overflow: hidden;
  padding: 16px !important;
  min-height: 0 !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
html[data-theme="purple-dark"] .home-entry-grid {
  gap: 12px !important;
  margin-bottom: 20px !important;
}
html[data-theme="purple-dark"] .home-entry::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: none;
}
html[data-theme="purple-dark"] .home-entry:hover::after,
html[data-theme="purple-dark"] .home-entry:active::after {
  animation: protoShine 0.8s ease-out forwards;
}
html[data-theme="purple-dark"] #homeViral {
  border: 1px solid rgba(34, 211, 238, 0.5) !important;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15), inset 0 0 20px rgba(34, 211, 238, 0.05);
}
html[data-theme="purple-dark"] #homeAi {
  border: 1px solid rgba(139, 92, 246, 0.5) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15), inset 0 0 20px rgba(139, 92, 246, 0.05);
}
html[data-theme="purple-dark"] .home-entry:hover {
  transform: translateY(-4px) scale(1.02);
}
html[data-theme="purple-dark"] #homeViral:hover {
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.4), inset 0 0 25px rgba(34, 211, 238, 0.1);
}
html[data-theme="purple-dark"] #homeAi:hover {
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.4), inset 0 0 25px rgba(139, 92, 246, 0.1);
}
html[data-theme="purple-dark"] .home-entry__title {
  display: block !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700;
  margin-bottom: 4px;
}
html[data-theme="purple-dark"] .home-entry__desc {
  display: block !important;
  color: #64748b !important;
  font-size: 11px !important;
  margin-top: 0 !important;
}
html[data-theme="purple-dark"] .home-entry__ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  width: auto !important;
  max-width: max-content !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
  border: none !important;
  animation: none !important;
  transform: none !important;
  box-shadow: none !important;
}
html[data-theme="purple-dark"] .home-entry__ico svg {
  display: none !important;
}
html[data-theme="purple-dark"] #homeAi .home-entry__ico {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #a78bfa !important;
}
html[data-theme="purple-dark"] #homeViral:hover .home-entry__ico,
html[data-theme="purple-dark"] #homeAi:hover .home-entry__ico,
html[data-theme="purple-dark"] #homeViral:active .home-entry__ico,
html[data-theme="purple-dark"] #homeAi:active .home-entry__ico {
  animation: none !important;
  transform: none !important;
  box-shadow: none !important;
}
html[data-theme="purple-dark"] .home-entry__dot {
  width: 8px !important;
  height: 8px !important;
  background: #22d3ee !important;
  animation: protoDot 1.8s ease-in-out infinite;
}
@keyframes protoDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22d3ee, 0 0 16px rgba(34, 211, 238, 0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 16px #22d3ee, 0 0 30px rgba(34, 211, 238, 0.8); }
}
html[data-theme="purple-dark"] .home-works {
  gap: 0 !important;
}
html[data-theme="purple-dark"] .home-works__count { display: none !important; }
html[data-theme="purple-dark"] .home-works__bar {
  align-items: center !important;
  margin-bottom: 12px;
}
html[data-theme="purple-dark"] .home-works__title {
  font-size: 16px !important;
  font-weight: 700;
  color: #fff !important;
}
html[data-theme="purple-dark"] .home-works__more {
  color: #22d3ee !important;
  font-size: 13px !important;
}
html[data-theme="purple-dark"] .home-works__empty {
  color: #64748b !important;
  font-size: 13px !important;
}
html[data-theme="purple-dark"] .home-continue {
  background: #0f2744 !important;
  border: 1px dashed rgba(139, 92, 246, 0.4) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* ---------- 步骤条 / 选项卡 ---------- */
html[data-theme="purple-dark"] .stepper {
  gap: 6px;
  overflow-x: auto;
}
html[data-theme="purple-dark"] .stepper__item {
  background: transparent !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  color: #64748b !important;
  backdrop-filter: none !important;
  border-radius: 20px !important;
  flex: 0 0 auto;
  padding: 7px 12px !important;
  white-space: nowrap;
}
html[data-theme="purple-dark"] .stepper__item.is-active {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
}
html[data-theme="purple-dark"] .choice__item,
html[data-theme="purple-dark"] .choice--cards .choice__item,
html[data-theme="purple-dark"] .card {
  background: #0f2744 !important;
  border: 1px solid rgba(34, 211, 238, 0.25) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  position: relative;
}
html[data-theme="purple-dark"] .choice__item.is-selected,
html[data-theme="purple-dark"] .choice--cards .choice__item.is-selected {
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: #0f2744 !important;
  box-shadow: none !important;
}
html[data-theme="purple-dark"] .choice__item.is-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #22d3ee, #8b5cf6);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}
html[data-theme="purple-dark"] .choice__item.is-selected .choice__icon {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
  color: #fff !important;
}

html[data-theme="purple-dark"] .btn--primary,
html[data-theme="purple-dark"] button.btn--primary,
html[data-theme="purple-dark"] .wizard__foot .btn--primary {
  background: #fff !important;
  color: #0f172a !important;
  border: none !important;
  border-radius: 26px !important;
  font-weight: 600;
}

/* ---------- 我的 ---------- */
html[data-theme="purple-dark"] .me-profile__av {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
}
html[data-theme="purple-dark"] .me-balance {
  background: linear-gradient(135deg, #162a4a 0%, #4f46e5 60%, #7c3aed 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html[data-theme="purple-dark"] .me-balance__k { color: rgba(255, 255, 255, 0.7) !important; }
html[data-theme="purple-dark"] .me-balance__v { color: #fff !important; }
html[data-theme="purple-dark"] .me-balance__cta {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
  color: #fff !important;
  border-radius: 20px !important;
}
html[data-theme="purple-dark"] .me-list--card {
  background: #0f2744 !important;
  border: 1px solid rgba(34, 211, 238, 0.25) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html[data-theme="purple-dark"] .me-list--card .me-row {
  border-bottom-color: rgba(34, 211, 238, 0.1) !important;
  color: #e2e8f0 !important;
}
html[data-theme="purple-dark"] .me-logout {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  border-radius: 16px !important;
  font-weight: 600;
}

/* ---------- 底栏：原型 tab-bar（36px 圆、选中蓝/紫） ---------- */
html[data-theme="purple-dark"] .tabbar {
  height: calc(var(--tabbar-h) + var(--safe-b)) !important;
  padding-top: 8px !important;
  padding-bottom: calc(12px + var(--safe-b)) !important;
  background: rgba(10, 18, 40, 0.95) !important;
  border-top: 1px solid rgba(99, 102, 241, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  z-index: 4;
}
html[data-theme="purple-dark"] body[data-tab="chat"] .tabbar,
html[data-theme="purple-dark"] body[data-tab="works"] .tabbar,
html[data-theme="purple-dark"] body[data-tab="me"] .tabbar {
  background: linear-gradient(180deg, rgba(76, 29, 149, 0.85), rgba(59, 7, 100, 0.95)) !important;
}
html[data-theme="purple-dark"] .tabbar__item {
  color: #64748b !important;
  gap: 4px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  justify-content: center !important;
  min-height: 0;
}
html[data-theme="purple-dark"] .tabbar__item.is-active { color: #818cf8 !important; }
html[data-theme="purple-dark"] .tabbar__icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.3s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html[data-theme="purple-dark"] .tabbar__item svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2;
}
html[data-theme="purple-dark"] .tabbar__item:hover .tabbar__icon,
html[data-theme="purple-dark"] .tabbar__item:active .tabbar__icon {
  transform: scale(1.15);
}
html[data-theme="purple-dark"] .tabbar__item.is-active .tabbar__icon {
  box-shadow: none !important;
}
html[data-theme="purple-dark"] .tabbar__item.is-active[data-tab="home"] .tabbar__icon {
  background: rgba(59, 130, 246, 0.25) !important;
  color: #60a5fa !important;
}
html[data-theme="purple-dark"] .tabbar__item.is-active[data-tab="chat"] .tabbar__icon,
html[data-theme="purple-dark"] .tabbar__item.is-active[data-tab="works"] .tabbar__icon,
html[data-theme="purple-dark"] .tabbar__item.is-active[data-tab="me"] .tabbar__icon {
  background: rgba(139, 92, 246, 0.25) !important;
  color: #a78bfa !important;
}

/* ---------- 表单 / 弹层 / 登录 / 作品 ---------- */
html[data-theme="purple-dark"] .input,
html[data-theme="purple-dark"] .textarea,
html[data-theme="purple-dark"] .select {
  background: #0f2744 !important;
  border-color: rgba(34, 211, 238, 0.3) !important;
  color: #fff !important;
}
html[data-theme="purple-dark"] .sheet__panel,
html[data-theme="purple-dark"] .busy-mask__card {
  background: rgba(10, 22, 48, 0.96) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  backdrop-filter: none !important;
}
html[data-theme="purple-dark"] .auth {
  background: var(--screen-bg) !important;
}
html[data-theme="purple-dark"] .auth__panel {
  background: linear-gradient(135deg, #0f2744 0%, #162d5a 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.25) !important;
  backdrop-filter: none !important;
}
html[data-theme="purple-dark"] .works__filter {
  background: #0f2744;
  border-color: rgba(34, 211, 238, 0.25);
}
html[data-theme="purple-dark"] .btn.work__detail { color: #67e8f9; }
html[data-theme="purple-dark"] .work-row,
html[data-theme="purple-dark"] .home-thumb__img {
  background: #0f2744 !important;
  border-color: rgba(34, 211, 238, 0.25) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-theme="purple-dark"] .page.home {
  padding: 8px 20px calc(24px + var(--safe-b));
  animation: protoPageIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="purple-dark"] .home {
  gap: 16px;
}
html[data-theme="purple-dark"] .home-create--hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
@keyframes protoPageIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes protoSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
html[data-theme="purple-dark"] .home-balance,
html[data-theme="purple-dark"] .view.is-enter .home > .home-balance {
  animation: protoSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s backwards !important;
}
html[data-theme="purple-dark"] .home-create--hero,
html[data-theme="purple-dark"] .view.is-enter .home > .home-create--hero,
html[data-theme="purple-dark"] .home--compact-create .home-create--hero {
  animation: protoBreathe 2.5s ease-in-out infinite, protoSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards !important;
}
html[data-theme="purple-dark"] .home-entry-grid,
html[data-theme="purple-dark"] .view.is-enter .home > .home-entry-grid {
  animation: protoSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s backwards !important;
}
html[data-theme="purple-dark"] .home-works,
html[data-theme="purple-dark"] .view.is-enter .home > .home-works {
  animation: protoSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s backwards !important;
}

html[data-theme="purple-dark"] .home-balance::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: none;
}
html[data-theme="purple-dark"] .home-balance:hover::after,
html[data-theme="purple-dark"] .home-balance:active::after {
  animation: protoShine 0.8s ease-out forwards;
}
html[data-theme="purple-dark"] .home-balance__cta,
html[data-theme="purple-dark"] .me-balance__cta,
html[data-theme="purple-dark"] .btn--primary {
  position: relative;
  overflow: hidden;
}
html[data-theme="purple-dark"] .home-balance__cta::after,
html[data-theme="purple-dark"] .me-balance__cta::after,
html[data-theme="purple-dark"] .btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: none;
}
html[data-theme="purple-dark"] .home-balance__cta:hover::after,
html[data-theme="purple-dark"] .me-balance__cta:hover::after,
html[data-theme="purple-dark"] .btn--primary:hover::after,
html[data-theme="purple-dark"] .home-balance__cta:active::after,
html[data-theme="purple-dark"] .me-balance__cta:active::after,
html[data-theme="purple-dark"] .btn--primary:active::after {
  animation: protoShine 0.8s ease-out forwards;
}
html[data-theme="purple-dark"] .home-balance__cta:active,
html[data-theme="purple-dark"] .btn--primary:active {
  transform: scale(0.93);
}
