/* ============================================================
   创艺AI - 设计系统
   纯黑 + 橙红 (#FF6B35) 暗色主题
   ============================================================ */

:root {
  /* 颜色 - 基础 */
  --c-bg: #0A0A0A;
  --c-bg-2: #0F0F12;
  --c-surface: #1A1A1F;
  --c-surface-2: #14141A;
  --c-surface-3: #1F1812;
  --c-border: rgba(255, 255, 255, 0.06);
  --c-border-2: rgba(255, 255, 255, 0.04);
  --c-border-3: rgba(255, 255, 255, 0.08);
  --c-border-4: rgba(255, 255, 255, 0.10);

  /* 颜色 - 文字 */
  --c-text: #FFFFFF;
  --c-text-2: rgba(255, 255, 255, 0.7);
  --c-text-3: rgba(255, 255, 255, 0.5);
  --c-text-4: rgba(255, 255, 255, 0.4);
  --c-text-5: rgba(255, 255, 255, 0.3);
  --c-text-6: rgba(255, 255, 255, 0.6);

  /* 颜色 - 品牌 */
  --c-primary: #FF6B35;
  --c-primary-2: #E71D36;
  --c-gold: #FFB800;
  --c-success: #06A77D;
  --c-teal: #2EC4B6;
  --c-blue: #3A86FF;
  --c-purple: #8338EC;
  --c-danger: #E71D36;

  /* 渐变 */
  --g-primary: linear-gradient(135deg, #FF6B35 0%, #E71D36 100%);
  --g-orange: linear-gradient(135deg, #FF6B35 0%, #F7C59F 100%);
  --g-teal: linear-gradient(135deg, #2EC4B6 0%, #C8FAE5 100%);
  --g-red: linear-gradient(135deg, #E71D36 0%, #FFB3B3 100%);
  --g-blue: linear-gradient(135deg, #3A86FF 0%, #BDE0FE 100%);
  --g-purple: linear-gradient(135deg, #8338EC 0%, #E0AAFF 100%);
  --g-gold: radial-gradient(ellipse 100% 100% at 80% 0%, rgba(255, 184, 0, 0.25) 0%, transparent 60%),
            linear-gradient(135deg, #1F1812 0%, #14141A 100%);
  --g-loading: linear-gradient(90deg, #FF6B35, #E71D36);

  /* 阴影 */
  --sh-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --sh-md: 0 8px 24px rgba(255, 107, 53, 0.3);
  --sh-lg: 0 12px 32px rgba(255, 107, 53, 0.3);
  --sh-glow: 0 0 40px rgba(255, 107, 53, 0.4);

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --r-3xl: 18px;
  --r-4xl: 20px;
  --r-5xl: 24px;
  --r-full: 999px;

  /* 间距 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;

  /* 字号 */
  --t-xs: 10px;
  --t-sm: 11px;
  --t-base: 13px;
  --t-md: 14px;
  --t-lg: 15px;
  --t-xl: 17px;
  --t-2xl: 20px;
  --t-3xl: 24px;
  --t-4xl: 28px;
  --t-5xl: 32px;
  --t-6xl: 38px;

  /* 设备 */
  --screen-w: 390px;
  --screen-h: 844px;
  --nav-h: 52px;
  --tabbar-h: 84px;

  /* 字体 */
  --ff: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ff-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --d-fast: 150ms;
  --d-base: 220ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

/* 全局 SVG 默认尺寸 - 防止在 flex 中取默认巨大尺寸 */
svg { width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }
.status-right { font-size: 16px; }
.status-right svg { color: currentColor; }
.action-icon-bg { font-size: 22px; }
.action-icon-bg svg { color: inherit; }
.list__icon { font-size: 18px; }
.setting-icon-bg { font-size: 16px; }
.about-tile__icon { font-size: 20px; }
.about-tile__icon svg { color: var(--c-primary); }
.about-list-row svg,
.setting-arrow svg,
.list__extra svg { font-size: 14px; color: var(--c-text-3); }
.search-bar { font-size: 16px; }
.search-bar svg { color: var(--c-text-3); }
.fav-badge { font-size: 14px; }
.fav-badge svg { color: #fff; fill: currentColor; }
.work-label,
.t-name { font-size: 11px; }
.empty-state svg,
.coin-icon-bg svg,
.action-icon-bg svg,
.about-tile__icon svg,
.setting-icon-bg svg { color: inherit; }
.login-check svg { font-size: 10px; }
.login-feature { font-size: 24px; }
.login-feature svg { color: var(--c-primary); }
.btn-wechat { font-size: 20px; }
.btn-wechat svg { color: #fff; }
.coin-icon-bg { font-size: 32px; }
.coin-icon-bg svg { color: var(--c-gold); }
.empty-state { font-size: 48px; color: var(--c-text-5); }
.vip-perk { font-size: 11px; }
.vip-perk svg { font-size: 16px; color: var(--c-gold); }
.detail-nav { font-size: 20px; }
.detail-nav svg { color: #fff; }
.page-link { font-size: 14px; }
.page-link svg { font-size: 14px; color: var(--c-text-3); }
.detail-actions button { font-size: 16px; }
.detail-actions svg { color: #fff; }
.detail-actions .btn-full svg { color: var(--c-primary); }
.detail-actions .btn-full:last-of-type svg { color: #fff; }
html, body { height: 100%; width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: 0; outline: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }

body {
  font-family: var(--ff);
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--c-text);
  background: #0A0A0A;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "tnum" on;
  overflow: hidden;
}

/* ============================================================
   桌面外壳
   ============================================================ */
.device-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  align-content: flex-start;
  background: #0A0A0A;
  padding: 48px 32px 32px;
  overflow-y: auto;
}

/* 这里只展示一个主设备，详细页面在预览中 */
.device-frame {
  position: relative;
  width: 390px;
  height: 844px;
  background: #0F0F12;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.device-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 100;
}
.device-frame .phone {
  width: 100%;
  height: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  /* 给 fixed tab-bar 留出空间(桌面演示模式) */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
.device-frame .phone::-webkit-scrollbar { display: none; }

/* 移动端：全屏 */
.app--native {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--c-bg-2);
  position: relative;
  overflow: hidden;
}
.app--native .phone {
  width: 100%;
  height: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  /* 给 fixed tab-bar 留出空间 */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
.app--native .phone::-webkit-scrollbar { display: none; }

@media (max-width: 480px) {
  .device-shell { display: none; }
}
@media (min-width: 481px) {
  .app--native { display: none !important; }
}

/* ============================================================
   状态栏
   ============================================================ */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  padding-top: 18px;
  font-size: var(--t-md);
  font-weight: 600;
  color: #FFF;
  background: transparent;
  flex-shrink: 0;
}
.status-right { display: flex; align-items: center; gap: 6px; color: #FFF; }
.status-right svg { width: 16px; height: 16px; }
.status-right .battery { width: 20px; height: 20px; }

/* ============================================================
   顶部导航
   ============================================================ */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: transparent;
  flex-shrink: 0;
}
.brand { font-size: 19px; font-weight: 700; letter-spacing: 0.5px; }
.vip-chip {
  font-size: var(--t-sm);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  cursor: pointer;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--c-bg-2);
  flex-shrink: 0;
}
.page-title {
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -0.6px;
}
.page-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--t-base);
  color: var(--c-text-3);
  cursor: pointer;
}

/* ============================================================
   Quick actions 快捷入口
   ============================================================ */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-4) 0;
}
.action-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3xl);
  padding: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease);
}
.action-card:active { transform: scale(.98); }
.action-icon-bg {
  width: 40px; height: 40px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-orange { background: rgba(255, 107, 53, 0.12); }
.bg-teal { background: rgba(46, 196, 182, 0.12); }
.action-text { flex: 1; min-width: 0; }
.action-title {
  font-size: var(--t-lg);
  font-weight: 600;
  color: #FFF;
  margin-bottom: 2px;
}
.action-desc {
  font-size: var(--t-sm);
  color: var(--c-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Section 通用
   ============================================================ */
.section { margin-top: var(--s-6); padding: 0 var(--s-4); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.section-title {
  font-size: var(--t-xl);
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.2px;
}
.section-more {
  font-size: var(--t-sm);
  color: var(--c-text-5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ============================================================
   Template scroll
   ============================================================ */
.t-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px;
  scrollbar-width: none;
}
.t-scroll::-webkit-scrollbar { display: none; }
.t-card { flex-shrink: 0; width: 100px; cursor: pointer; }
.t-name {
  font-size: var(--t-sm);
  color: var(--c-text-6);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Work image (统一图片块)
   ============================================================ */
.work-img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  padding: var(--s-2);
  margin-bottom: 10px;
  box-shadow: var(--sh-sm);
  background-color: var(--c-muted);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.work-label {
  font-size: var(--t-xs);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px var(--s-2);
  border-radius: 6px;
}
.work-watermark {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ============================================================
   Masonry 作品瀑布流
   ============================================================ */
.masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.masonry .m-col { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   首页 Hero（带背景图版）
   ============================================================ */
.hero {
  position: relative;
  height: 280px;
  border-radius: 24px;
  margin: 12px 16px 20px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) saturate(120%);
  transform: scale(1.1);
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-bg--active { opacity: 1; }
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}
.hero-dot--active {
  width: 18px;
  background: var(--c-primary);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,10,12,0.85) 0%, rgba(10,10,12,0.4) 50%, rgba(255,107,53,0.3) 100%);
  z-index: 1;
}
.hero-glow {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,107,53,0.5), transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.hero-eyebrow {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: #FFB890;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: 30px;
  font-weight: 800;
  color: #FFF;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  max-width: 260px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.btn-hero {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF6B35, #FF8E53);
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  transition: transform 0.15s ease;
}
.btn-hero:active { transform: scale(0.96); }
.btn-hero svg { width: 16px; height: 16px; }
.hero-stats {
  display: flex;
  gap: 16px;
  flex: 1;
}
.hero-stats .stat { text-align: left; }
.hero-stats .stat-num {
  font-size: 16px;
  font-weight: 700;
  color: #FFF;
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* VIP chip 状态色 */
.vip-chip.vip-active {
  background: linear-gradient(135deg, #FFB800, #FF6B35) !important;
  color: #FFF !important;
  border-color: transparent !important;
}

/* ============================================================
   首页 - 风格网格
   ============================================================ */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 16px;
}
.style-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--c-surface);
  transition: transform 0.2s ease;
}
.style-card:active { transform: scale(0.97); }
.style-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: var(--c-surface);
}
.style-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}
.style-name {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: #FFF;
  font-size: 15px;
  font-weight: 700;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.style-desc {
  padding: 8px 4px 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   首页 - 社区精选作品墙
   ============================================================ */
.wall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 16px;
}
.wall-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}
.wall-card:active { transform: scale(0.98); }
.wall-img {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--c-surface);
}
.wall-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: #FFF;
}
.wall-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 107, 53, 0.85);
  color: #FFF;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
}
.wall-title {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  display: flex;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255, 107, 53, 0.18);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  padding: 10px 0 calc(18px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.tab-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color var(--d-fast) var(--ease);
}
.tab.active { color: var(--c-primary); }
.tab-label { font-size: var(--t-xs); font-weight: 500; }
.tab svg { width: 22px; height: 22px; }

/* ============================================================
   Mode grid (创作中心)
   ============================================================ */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-4) 0;
}
.mode-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3xl);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease);
}
.mode-card:active { transform: scale(.98); }
.mode-illust {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto var(--s-3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.mode-illust svg { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.9); }
.mode-name {
  font-size: var(--t-lg);
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}
.mode-desc {
  font-size: var(--t-sm);
  color: var(--c-text-3);
}

/* ============================================================
   Sub tabs
   ============================================================ */
.sub-tabs {
  display: flex;
  gap: 4px;
  margin: var(--s-5) var(--s-4) 0;
  padding: 4px;
  background: var(--c-surface);
  border-radius: var(--r-lg);
}
.sub-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: var(--t-md);
  color: var(--c-text-3);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.sub-tab.active {
  background: var(--c-primary);
  color: #FFF;
  font-weight: 600;
}

/* ============================================================
   Upload card
   ============================================================ */
.upload-card {
  background: var(--c-surface);
  border: 2px dashed var(--c-border-4);
  border-radius: var(--r-3xl);
  padding: var(--s-7) var(--s-4);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--d-fast) var(--ease);
}
.upload-card:hover { border-color: var(--c-primary); }
.upload-icon { margin-bottom: var(--s-3); }
.upload-icon svg { width: 32px; height: 32px; color: var(--c-text-5); }
.upload-text {
  font-size: var(--t-lg);
  color: #FFF;
  font-weight: 600;
  margin-bottom: 4px;
}
.upload-hint {
  font-size: var(--t-sm);
  color: var(--c-text-5);
}

/* ============================================================
   Slider
   ============================================================ */
.slider-section { padding: 0 var(--s-4); margin-top: var(--s-4); }
.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.slider-label { font-size: var(--t-md); color: #FFF; font-weight: 600; }
.slider-val { font-size: var(--t-md); color: var(--c-primary); font-weight: 700; }
.slider {
  position: relative;
  height: 4px;
  background: var(--c-surface);
  border-radius: 2px;
}
.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 70%;
  background: var(--c-primary);
  border-radius: 2px;
}
.slider-knob {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.slider-hint {
  font-size: var(--t-sm);
  color: var(--c-text-5);
  margin-top: var(--s-2);
}

/* ============================================================
   Chip row
   ============================================================ */
.chip-row {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: var(--t-base);
  color: var(--c-text-6);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.chip.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFF;
  font-weight: 600;
}

/* ============================================================
   Ratio / Count grid
   ============================================================ */
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-2);
}
.ratio-cell {
  padding: 12px 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--t-base);
  color: var(--c-text-6);
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.ratio-cell.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFF;
  font-weight: 600;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.count-cell {
  padding: 12px 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--t-md);
  color: var(--c-text-6);
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.count-cell.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #FFF;
  font-weight: 600;
}

/* ============================================================
   Prompt section
   ============================================================ */
.prompt-section {
  margin: var(--s-6) var(--s-4) var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border-3);
  border-radius: var(--r-3xl);
  padding: var(--s-3) var(--s-4);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.prompt-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-sm);
  color: var(--c-text-3);
  margin-bottom: var(--s-2);
  font-weight: 500;
}
.prompt-tool {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--c-text-3);
  cursor: pointer;
}
.prompt-input {
  font-size: var(--t-md);
  color: #FFF;
  line-height: 1.5;
  margin-bottom: var(--s-3);
  min-height: 40px;
  outline: none;
}
.prompt-foot {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.char-count {
  font-size: var(--t-sm);
  color: var(--c-text-5);
  white-space: nowrap;
}

/* ============================================================
   Buttons (主按钮)
   ============================================================ */
.btn-primary {
  flex: 1;
  padding: 14px;
  background: var(--c-primary);
  color: #FFF;
  border: none;
  border-radius: var(--r-lg);
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform var(--d-fast) var(--ease);
}
.btn-primary:active { transform: scale(.98); }
.btn-primary.btn-full { width: 100%; flex: none; }

.btn-ghost {
  flex: 1;
  padding: 14px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--c-primary);
  border: none;
  border-radius: var(--r-lg);
  font-size: var(--t-lg);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--d-fast) var(--ease);
}
.btn-ghost:hover { background: rgba(255, 107, 53, 0.18); }
.btn-ghost:active { transform: scale(.98); }

.btn-full {
  width: 100%;
  padding: 14px;
  background: var(--c-surface);
  color: #FFF;
  border: 1px solid var(--c-border-3);
  border-radius: var(--r-lg);
  font-size: var(--t-md);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease);
}
.btn-full:hover { background: var(--c-surface-2); }
.btn-full:active { transform: scale(.98); }

/* ============================================================
   Result - loading
   ============================================================ */
.result-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px var(--s-6) 0;
}
.loading-orb {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-7);
}
.orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}
.orb-core {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  background: var(--c-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.3);
}
.orb-core svg { width: 40px; height: 40px; color: var(--c-primary); }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}
.loading-title {
  font-size: var(--t-2xl);
  font-weight: 700;
  color: #FFF;
  margin-bottom: 6px;
}
.loading-sub {
  font-size: var(--t-md);
  color: var(--c-text-3);
  margin-bottom: var(--s-6);
}
.progress-bar {
  width: 80%;
  height: 6px;
  background: var(--c-surface);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--s-6);
}
.progress-fill {
  height: 100%;
  background: var(--g-loading);
  border-radius: 3px;
  transition: width 0.5s ease;
}
.loading-tip {
  font-size: var(--t-sm);
  color: var(--c-text-5);
  margin-bottom: 4px;
}
.result-loading .btn-ghost {
  margin-top: var(--s-6);
  width: auto;
  padding: 12px var(--s-7);
  flex: none;
}

/* ============================================================
   Result - success
   ============================================================ */
.result-success { padding: 24px var(--s-4) var(--s-7); }
.success-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.success-head svg { width: 24px; height: 24px; color: var(--c-success); }
.success-title {
  font-size: var(--t-3xl);
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.5px;
}
.result-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.result-grid .work-img { aspect-ratio: 1; width: 100%; margin-bottom: 0; }
.result-actions { display: flex; gap: var(--s-3); }

/* ============================================================
   History
   ============================================================ */
.hist-list { padding: var(--s-5) var(--s-4) 0; }
.hist-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-xl);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease);
}
.hist-item:active { transform: scale(.99); }
.hist-item .work-img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin-bottom: 0;
  border-radius: var(--r-md);
}
.hist-info { flex: 1; min-width: 0; }
.hist-prompt {
  font-size: var(--t-base);
  color: #FFF;
  font-weight: 500;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-sm);
  color: var(--c-text-3);
}
.hist-meta span { display: flex; align-items: center; gap: 4px; }
.hist-status.success { color: var(--c-success); }

.empty-hint {
  text-align: center;
  font-size: var(--t-sm);
  color: var(--c-text-5);
  padding: var(--s-6);
}

/* ============================================================
   Filter bar (作品库)
   ============================================================ */
.filter-bar {
  display: flex;
  gap: var(--s-6);
  padding: var(--s-5) var(--s-5) var(--s-3);
}
.filter {
  font-size: var(--t-md);
  color: var(--c-text-5);
  padding-bottom: var(--s-2);
  position: relative;
  font-weight: 500;
  cursor: pointer;
}
.filter.active {
  color: #FFF;
  font-weight: 700;
}
.filter.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 1px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 var(--s-4) var(--s-4);
  padding: 10px var(--s-3);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border-2);
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  font-size: var(--t-md);
  font-family: inherit;
}
.search-input::placeholder { color: var(--c-text-5); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  padding: 0 var(--s-3);
}
.g-col .work-img { margin-bottom: var(--s-2); }
.fav-badge {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  width: 28px;
  height: 28px;
  background: rgba(255, 107, 157, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ============================================================
   Detail
   ============================================================ */
.detail-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-4);
  background: var(--c-bg-2);
  flex-shrink: 0;
}
.detail-nav-title {
  font-size: var(--t-xl);
  font-weight: 700;
  color: #FFF;
}
.detail-img {
  margin: 16px var(--s-4) var(--s-4);
  border-radius: var(--r-4xl);
  overflow: hidden;
}
.detail-img .work-img { aspect-ratio: 1; margin-bottom: 0; border-radius: 0; }
.detail-body { padding: 0 var(--s-4) 100px; }
.detail-prompt {
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-xl);
  padding: var(--s-3);
  margin-bottom: var(--s-4);
}
.detail-prompt-label {
  font-size: var(--t-sm);
  color: var(--c-text-5);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.detail-prompt-text { font-size: var(--t-md); color: #FFF; line-height: 1.5; }
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.meta-item {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--s-3);
}
.meta-label {
  font-size: var(--t-sm);
  color: var(--c-text-5);
  margin-bottom: 4px;
}
.meta-val { font-size: var(--t-base); color: #FFF; font-weight: 500; }
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.detail-actions-row {
  display: flex;
  gap: var(--s-3);
}
.detail-regen {
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-xl);
  padding: var(--s-3);
}
.regen-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-base);
  color: var(--c-text-3);
  margin-bottom: var(--s-3);
  font-weight: 500;
}

/* ============================================================
   VIP 会员
   ============================================================ */
.vip-hero {
  margin: 8px var(--s-4) 0;
  background: var(--g-gold);
  border: 1px solid rgba(255, 184, 0, 0.15);
  border-radius: var(--r-5xl);
  padding: var(--s-6) var(--s-5);
  text-align: center;
}
.vip-hero-title {
  font-size: var(--t-3xl);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #FFF;
  margin-bottom: 6px;
}
.vip-hero-sub {
  font-size: var(--t-base);
  color: var(--c-text-6);
  margin-bottom: var(--s-5);
}
.vip-perks {
  display: flex;
  justify-content: center;
  gap: var(--s-4);
  flex-wrap: nowrap;
}
.vip-perk {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--t-sm);
  color: var(--c-gold);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.vip-perk svg { width: 16px; height: 16px; flex-shrink: 0; }
.vip-tabs {
  display: flex;
  margin: var(--s-4);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 4px;
}
.vip-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: var(--t-md);
  color: var(--c-text-3);
  border-radius: var(--r-md);
  font-weight: 500;
  cursor: pointer;
}
.vip-tab.active {
  background: var(--c-primary);
  color: #FFF;
  font-weight: 600;
}
.pkg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding: 0 var(--s-4);
}
.pkg-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3xl);
  padding: var(--s-5) var(--s-3);
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease);
}
.pkg-card:active { transform: scale(.98); }
.pkg-card.popular {
  border-color: var(--c-primary);
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.08) 0%, var(--c-surface) 50%);
}
.pkg-badge {
  position: absolute;
  top: 0;
  right: var(--s-3);
  padding: 4px var(--s-3);
  background: var(--c-primary);
  color: #FFF;
  font-size: var(--t-xs);
  font-weight: 700;
  border-radius: 0 0 var(--s-2) var(--s-2);
  letter-spacing: 0.5px;
}
.pkg-name {
  font-size: var(--t-lg);
  font-weight: 600;
  color: #FFF;
  margin-bottom: var(--s-2);
}
.pkg-price { margin-bottom: 6px; }
.pkg-currency {
  font-size: var(--t-md);
  color: var(--c-primary);
  font-weight: 600;
}
.pkg-num {
  font-size: var(--t-5xl);
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -1px;
}
.pkg-coins {
  font-size: var(--t-sm);
  color: var(--c-text-3);
  margin-bottom: 2px;
}
.pkg-days {
  font-size: var(--t-sm);
  color: var(--c-text-5);
}
.agreement-tip {
  text-align: center;
  font-size: var(--t-sm);
  color: var(--c-text-5);
  padding: var(--s-5) 0 var(--s-7);
}
.agreement-tip .link { color: var(--c-primary); cursor: pointer; }

/* ============================================================
   Coins
   ============================================================ */
.coin-hero {
  margin: 8px var(--s-4) 0;
  background: linear-gradient(135deg, #1F1812 0%, #14141A 100%);
  border: 1px solid rgba(255, 184, 0, 0.15);
  border-radius: var(--r-4xl);
  padding: var(--s-7) var(--s-5);
  text-align: center;
}
.coin-icon-bg {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-4);
  background: rgba(255, 184, 0, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coin-icon-bg svg { width: 32px; height: 32px; color: var(--c-gold); }
.coin-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--c-gold);
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.coin-label {
  font-size: var(--t-base);
  color: var(--c-text-3);
  margin-top: 4px;
}
.action-row { padding: var(--s-5) var(--s-4) 0; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--s-7) 0;
  gap: var(--s-3);
}
.empty-state svg { width: 48px; height: 48px; color: var(--c-text-5); }
.empty-text {
  font-size: var(--t-base);
  color: var(--c-text-5);
}

/* 未登录引导卡（空状态升级版） */
.login-cta {
  margin: 32px 16px;
  padding: 32px 20px 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 107, 53, 0.12), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255, 184, 0, 0.10), transparent 50%),
    linear-gradient(180deg, #1a1a1f, #14141a);
  border: 1px solid rgba(255, 107, 53, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: block;
  width: calc(100% - 32px);
  box-sizing: border-box;
}
.login-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.login-cta-illust {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.login-cta-illust .illust-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 53, 0.3);
  animation: pulse-ring 2.4s ease-in-out infinite;
}
.login-cta-illust .illust-ring.r2 { inset: 8px; animation-delay: 0.4s; opacity: 0.6; }
.login-cta-illust .illust-ring.r3 { inset: 16px; animation-delay: 0.8s; opacity: 0.3; }
.login-cta-illust .illust-core {
  position: absolute;
  inset: 24px;
  background: linear-gradient(135deg, #FF6B35, #FF8E53);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFF;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}
.login-cta-illust .illust-core svg { width: 32px; height: 32px; }
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.2; }
}
.login-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.login-cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.login-cta-perks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
  padding: 0 4px;
  flex-wrap: wrap;
}
.login-cta-perks .perk {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 10.5px;
}
.login-cta-perks .perk .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.6);
  flex-shrink: 0;
}
.login-cta-btn {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FF6B35, #FF8E53);
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
  transition: transform 0.15s ease;
  position: relative;
  z-index: 1;
}
.login-cta-btn:active { transform: scale(0.97); }
.login-cta-btn svg { width: 18px; height: 18px; }
.login-cta-skip {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.login-cta-skip:hover { color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   登录页 - 手机号登录
   ============================================================ */
.btn-phone {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.btn-phone:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.12); }
.btn-phone svg { width: 18px; height: 18px; }

.login-phone-wrap {
  position: relative;
  min-height: 100vh;
  padding: 60px 24px 40px;
  overflow: hidden;
}
.login-phone-card {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 24, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 22px 24px;
  margin-top: 32px;
}
.lp-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 6px;
}
.lp-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}
.lp-field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 14px;
  height: 48px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.lp-field:focus-within {
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 107, 53, 0.05);
}
.lp-prefix {
  font-size: 15px;
  color: #FFF;
  font-weight: 500;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 12px;
}
.lp-input {
  flex: 1;
  min-width: 0;  /* 关键:让 flex 子项可以收缩到比内容更窄,避免把按钮挤出容器 */
  background: transparent;
  border: 0;
  outline: none;
  color: #FFF;
  font-size: 15px;
  height: 100%;
}
.lp-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.lp-input-phone { letter-spacing: 0.5px; }
.lp-input-code { letter-spacing: 4px; }
.lp-field-code { padding-right: 4px; gap: 8px; }
.lp-field-code .lp-input { padding: 0 12px; }
.lp-send-code {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,142,83,0.2));
  color: #FF8E53;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 53, 0.3);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lp-send-code:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}
.lp-submit {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #FF6B35, #FF8E53);
  color: #FFF;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
  transition: transform 0.15s ease;
}
.lp-submit:active { transform: scale(0.97); }
.lp-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}
.lp-back:hover { color: #FFF; }
.lp-back svg { width: 18px; height: 18px; }

/* ============================================================
   Orders
   ============================================================ */
.order-list { padding: var(--s-5) var(--s-4) 0; }
.order-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  margin-bottom: 10px;
  cursor: pointer;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-2);
}
.order-row.sub { margin-bottom: 0; }
.order-name {
  font-size: var(--t-lg);
  font-weight: 600;
  color: #FFF;
}
.order-amount {
  font-size: var(--t-xl);
  font-weight: 700;
  color: #FFF;
}
.order-meta {
  font-size: var(--t-sm);
  color: var(--c-text-5);
}
.order-status {
  font-size: var(--t-sm);
  font-weight: 600;
}
.order-status.paid { color: var(--c-success); }
.order-status.pending { color: var(--c-gold); }

/* ============================================================
   Order detail
   ============================================================ */
.order-status-card {
  margin: var(--s-5) var(--s-4) var(--s-4);
  background: var(--c-surface);
  border: 1px solid rgba(6, 167, 125, 0.2);
  border-radius: var(--r-3xl);
  padding: var(--s-6) var(--s-5);
  text-align: center;
}
.order-status-card .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-3);
  background: rgba(6, 167, 125, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-status-card .success-icon svg { width: 28px; height: 28px; color: var(--c-success); }
.order-status-title {
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--c-success);
  margin-bottom: 4px;
}
.order-status-time {
  font-size: var(--t-sm);
  color: var(--c-text-5);
}
.info-card {
  margin: 0 var(--s-4) var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-xl);
  padding: 0 var(--s-4);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-border-2);
  font-size: var(--t-base);
}
.info-row:last-child { border-bottom: none; }
.info-row.total { font-size: var(--t-lg); font-weight: 600; }
.info-label { color: var(--c-text-6); }
.info-val { color: #FFF; }
.info-val.mono {
  font-family: var(--ff-mono);
  font-size: var(--t-sm);
}

/* ============================================================
   Settings
   ============================================================ */
.settings-list { padding: var(--s-5) var(--s-4) 0; }
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-2);
  cursor: pointer;
  transition: background var(--d-fast) var(--ease);
}
.setting-item:hover { background: var(--c-surface-2); }
.setting-item.danger { color: var(--c-danger); }
.setting-item.danger .setting-left span { color: var(--c-danger); }
.setting-left {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-md);
  color: #FFF;
}
.setting-icon-bg {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--s-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.setting-icon-bg svg { width: 16px; height: 16px; color: var(--c-text-6); }
.setting-right {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.setting-sub {
  font-size: var(--t-sm);
  color: var(--c-text-5);
}
.setting-arrow svg { width: 14px; height: 14px; color: var(--c-text-5); }

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.switch::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 20px;
  height: 20px;
  background: var(--c-text-3);
  border-radius: 50%;
  transition: all 200ms var(--ease);
}
.switch.on { background: var(--c-primary); border-color: var(--c-primary); }
.switch.on::after { background: #FFF; transform: translateX(20px); }

.agreement-line {
  text-align: center;
  font-size: var(--t-sm);
  color: var(--c-text-5);
  padding: var(--s-5) 0 var(--s-7);
}

/* ============================================================
   About
   ============================================================ */
.about-hero {
  margin: var(--s-5) var(--s-4) var(--s-6);
  text-align: center;
  padding: var(--s-7) 0;
}
.about-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--s-4);
  background: var(--g-primary);
  border-radius: var(--r-5xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-lg);
}
.about-logo svg { width: 36px; height: 36px; color: #FFF; }
.about-name {
  font-size: var(--t-2xl);
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
}
.about-version {
  font-size: var(--t-sm);
  color: var(--c-text-5);
  margin-bottom: var(--s-2);
}
.about-tagline {
  font-size: var(--t-md);
  color: var(--c-text-6);
}
.about-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding: 0 var(--s-4);
}
.about-tile {
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  padding: var(--s-4);
  text-align: center;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease);
}
.about-tile:active { transform: scale(.98); }
.about-tile-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--s-2);
  background: rgba(255, 107, 53, 0.12);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-tile-icon svg { width: 20px; height: 20px; color: var(--c-primary); }
.about-tile-label {
  font-size: var(--t-md);
  color: #FFF;
}
.copyright {
  text-align: center;
  font-size: var(--t-sm);
  color: var(--c-text-5);
  padding: var(--s-6) 0;
}

/* ============================================================
   Feedback
   ============================================================ */
.feedback-form { padding: var(--s-5) var(--s-4) 0; }
.ftype-row { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); }
.ftype-chip {
  padding: 8px var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: var(--t-base);
  color: var(--c-text-6);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.ftype-chip.active {
  background: rgba(255, 107, 53, 0.12);
  border-color: var(--c-primary);
  color: var(--c-primary);
  font-weight: 600;
}
.fb-textarea {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  min-height: 120px;
  font-size: var(--t-md);
  color: #FFF;
  resize: none;
  outline: none;
  font-family: inherit;
}
.fb-textarea::placeholder { color: var(--c-text-5); }
.fb-contact {
  width: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  font-size: var(--t-md);
  color: #FFF;
  outline: none;
  font-family: inherit;
}
.fb-contact::placeholder { color: var(--c-text-5); }
.fb-counter { text-align: right; font-size: var(--t-sm); color: var(--c-text-5); margin-top: 4px; }
.fb-submit { padding: var(--s-5) var(--s-4) 100px; }

/* ============================================================
   Login
   ============================================================ */
.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.login-hero {
  flex: 0 0 auto;
  position: relative;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #1A0F1A 0%, #0F0F12 100%);
  text-align: center;
  overflow: hidden;
}
.login-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 60%);
  filter: blur(40px);
}
.login-logo {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--s-6);
  background: var(--g-primary);
  border-radius: var(--r-4xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.4);
}
.login-logo svg { width: 48px; height: 48px; color: #FFF; }
.login-brand {
  position: relative;
  z-index: 1;
  font-size: var(--t-4xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.login-tagline {
  position: relative;
  z-index: 1;
  font-size: var(--t-md);
  color: var(--c-text-6);
}
.login-features {
  flex: 1;
  padding: var(--s-7) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.login-feature {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-3xl);
}
.login-feature-text { flex: 1; }
.login-feature-title {
  font-size: var(--t-lg);
  font-weight: 600;
  color: #FFF;
  margin-bottom: 2px;
}
.login-feature-desc {
  font-size: var(--t-sm);
  color: var(--c-text-3);
}
.login-footer {
  padding: 0 var(--s-6) var(--s-7);
}
.login-agree {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  color: var(--c-text-3);
  margin-bottom: var(--s-4);
  line-height: 1.5;
}
.agree-check {
  width: 16px;
  height: 16px;
  background: var(--c-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agree-check svg { width: 10px; height: 10px; color: #FFF; }
.link { color: var(--c-primary); cursor: pointer; }
.btn-wechat {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: var(--c-success);
  color: #FFF;
  border: none;
  border-radius: var(--r-lg);
  font-size: var(--t-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(6, 167, 125, 0.3);
  margin-bottom: var(--s-3);
  transition: transform var(--d-fast) var(--ease);
}
.btn-wechat:active { transform: scale(.98); }
.btn-wechat svg { width: 20px; height: 20px; }
.login-skip {
  text-align: center;
  font-size: var(--t-base);
  color: var(--c-text-5);
  cursor: pointer;
}

/* ============================================================
   Legal
   ============================================================ */
.legal-content { padding: var(--s-5) var(--s-6) var(--s-7); }
.legal-title {
  font-size: var(--t-2xl);
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
}
.legal-update {
  font-size: var(--t-sm);
  color: var(--c-text-5);
  margin-bottom: var(--s-6);
}
.legal-section { margin-bottom: var(--s-5); }
.legal-h {
  font-size: var(--t-md);
  font-weight: 700;
  color: #FFF;
  margin-bottom: var(--s-2);
}
.legal-p {
  font-size: var(--t-base);
  color: var(--c-text-6);
  line-height: 1.7;
}

/* ============================================================
   通用辅助
   ============================================================ */
.text-success { color: var(--c-success); }
.text-gold { color: var(--c-gold); }
.text-muted { color: var(--c-text-5); }
.numeric { font-variant-numeric: tabular-nums; }

/* ============================================================
   风格模板（awesome-gpt-image-2 · 工业级）
   ============================================================ */
.section-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  color: var(--c-primary);
  background: rgba(255, 107, 53, 0.15);
  border-radius: 4px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.stpl-cat-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -16px 12px;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.stpl-cat-row::-webkit-scrollbar { display: none; }
.stpl-cat-chip {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: var(--t-sm);
  color: var(--c-text-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border-3);
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--d-fast) var(--ease);
}
.stpl-cat-chip:active { transform: scale(0.96); }
.stpl-cat-chip.active {
  color: #FFF;
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.stpl-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 0 16px 4px;
  scrollbar-width: none;
}
.stpl-scroll::-webkit-scrollbar { display: none; }
.stpl-card {
  flex-shrink: 0;
  width: 130px;
  cursor: pointer;
}
.stpl-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px;
  margin-bottom: 6px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.stpl-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
  transition: opacity 0.3s;
}
.stpl-cover:hover .stpl-cover-img { opacity: 0.7; }
.stpl-cover-icon,
.stpl-cover-cat {
  position: relative;
  z-index: 1;
}
.stpl-cover-icon {
  font-size: 22px;
  line-height: 1;
}
.stpl-cover-cat {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  align-self: flex-end;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.stpl-name {
  font-size: var(--t-sm);
  font-weight: 600;
  color: #FFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stpl-desc {
  font-size: 11px;
  color: var(--c-text-5);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 30px;
}

/* 风格模板弹窗 */
.stpl-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: stplFadeIn 0.2s ease-out;
}
@keyframes stplFadeIn { from { opacity: 0; } to { opacity: 1; } }

.stpl-modal {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  background: var(--c-bg, #0A0A0A);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: stplSlideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes stplSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.stpl-modal-hero {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
}
.stpl-modal-hero-icon {
  font-size: 40px;
  line-height: 1;
  margin-right: 12px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.stpl-modal-hero-cat {
  font-size: var(--t-md);
  font-weight: 600;
  color: #FFF;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.stpl-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  border-radius: 50%;
  cursor: pointer;
  color: #FFF;
}
.stpl-modal-close svg { width: 16px; height: 16px; }

.stpl-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 8px;
  -webkit-overflow-scrolling: touch;
}
.stpl-modal-body::-webkit-scrollbar { width: 4px; }
.stpl-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.stpl-modal-title {
  font-size: var(--t-xl, 18px);
  font-weight: 700;
  color: #FFF;
  margin-bottom: 6px;
}
.stpl-modal-desc {
  font-size: var(--t-base);
  color: var(--c-text-5);
  line-height: 1.55;
  margin-bottom: 16px;
}

.stpl-modal-section { margin-bottom: 16px; }
.stpl-modal-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-text-6);
  margin-bottom: 8px;
}
.stpl-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.stpl-dot-when { background: #39a0ed; }
.stpl-dot-do { background: #22c55e; }
.stpl-dot-no { background: #ef4444; }
.stpl-dot-seed { background: #fbbf24; }
.stpl-dot-case { background: #a78bfa; }

.stpl-modal-text {
  font-size: var(--t-base);
  color: var(--c-text-6);
  line-height: 1.65;
  padding: 10px 12px;
  background: var(--c-surface);
  border-radius: 10px;
  border-left: 2px solid #39a0ed;
}

.stpl-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: var(--t-sm);
  color: var(--c-text-6);
  line-height: 1.55;
  background: var(--c-surface);
  border-radius: 8px;
}
.stpl-tip-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #FFF;
  margin-top: 1px;
}
.stpl-tip-do .stpl-tip-mark { background: #22c55e; }
.stpl-tip-no .stpl-tip-mark { background: #ef4444; }
.stpl-tip span:last-child { flex: 1; }

.stpl-seed {
  font-size: 12px;
  color: var(--c-text-6);
  line-height: 1.6;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
  border: 1px dashed rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  word-break: break-all;
}

.stpl-cases-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-5);
  flex-wrap: wrap;
}
.stpl-cases-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
}
.stpl-cases-link:hover { text-decoration: underline; }

.stpl-modal-foot {
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-border-3);
  background: var(--c-bg, #0A0A0A);
  flex-shrink: 0;
}
.stpl-modal-foot .btn-primary,
.stpl-modal-foot .btn-ghost {
  flex: 1;
  padding: 12px;
  font-size: var(--t-md);
}

/* 灵感来源署名 */
.attribution {
  text-align: center;
  font-size: 11px;
  color: var(--c-text-5);
  padding: 16px 16px 8px;
  line-height: 1.6;
}
.attribution-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
}
.attribution-link:hover { text-decoration: underline; }

/* ============================================================
   微信扫码支付弹窗
   ============================================================ */
.wpay-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: wpayFade 0.2s ease-out;
}
@keyframes wpayFade { from { opacity: 0; } to { opacity: 1; } }
.wpay-modal {
  background: #1A1A1F;
  border-radius: 20px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: wpaySlide 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes wpaySlide { from { transform: translateY(20px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.wpay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wpay-title { font-size: 16px; font-weight: 600; color: #FFF; }
.wpay-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #FFF;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.wpay-close:active { background: rgba(255, 255, 255, 0.15); }

.wpay-body {
  padding: 20px 24px 24px;
  text-align: center;
}
.wpay-product {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
.wpay-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}
.wpay-currency { font-size: 18px; color: var(--c-primary); font-weight: 600; }
.wpay-num { font-size: 36px; font-weight: 800; color: var(--c-primary); letter-spacing: -1px; }
.wpay-qr-box {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.wpay-qr-svg {
  background: #FFF;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
}
.wpay-qr-svg svg { display: block; width: 220px; height: 220px; }
.wpay-qr-fallback {
  width: 244px; height: 244px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wpay-tip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}
.wpay-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.wpay-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  animation: wpayPulse 1.2s ease-in-out infinite;
}
.wpay-dot--ok { background: #22c55e; animation: none; }
.wpay-dot--err { background: #ef4444; animation: none; }
@keyframes wpayPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
