:root {
  --bg-page: #f8fafc;
  --bg-mesh: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.14) 0px, transparent 50%),
             radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.12) 0px, transparent 50%),
             radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-elevated: #ffffff;
  --surface-muted: #f1f5f9;
  --border-subtle: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(99, 102, 241, 0.35);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --brand-primary: #4f46e5;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #0ea5e9 100%);
  --shadow-card: 0 12px 36px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 44px -10px rgba(79, 70, 229, 0.18);

  --wechat-color: #07C160;
  --alipay-color: #1677FF;
  --paypal-color: #003087;
  --qq-color: #0099FF;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

html.dark {
  --bg-page: #090d16;
  --bg-mesh: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.22) 0px, transparent 50%),
             radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.16) 0px, transparent 50%),
             radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.12) 0px, transparent 50%);
  --surface-card: rgba(15, 23, 42, 0.86);
  --surface-elevated: #1e293b;
  --surface-muted: #0f172a;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(129, 140, 248, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --shadow-card: 0 16px 40px -8px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  background-image: var(--bg-mesh);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.glass-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Primitives */
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  line-height: 1.2;
}

.tp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.tp-btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.4);
}

.tp-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(79, 70, 229, 0.55);
}

.tp-btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.tp-btn-secondary:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.tp-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.25);
}

.tp-btn-danger:hover:not(:disabled) {
  background: #ef4444;
  color: #ffffff;
}

/* Input Primitives */
.tp-input,
.tp-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.tp-input:focus,
.tp-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.tp-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Toast Notification */
.tp-toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.tp-toast {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
  animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Platform Gradients */
.wechat-bg { background: linear-gradient(135deg, #07C160 0%, #059669 100%); }
.alipay-bg { background: linear-gradient(135deg, #1677FF 0%, #0958D9 100%); }
.paypal-bg { background: linear-gradient(135deg, #003087 0%, #0070E0 100%); }
.qq-bg     { background: linear-gradient(135deg, #0099FF 0%, #0052D9 100%); }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 3px;
}


/* SEO Knowledge Base & FAQ Accordion */
.seo-faq-section {
  margin-top: 44px;
  padding: 36px 32px;
}

.seo-faq-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.seo-faq-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.seo-faq-head p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
}

.faq-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.site-seo-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .seo-faq-section {
    padding: 24px 18px;
  }
}


.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pro-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--brand-primary);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-pill-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.count-badge {
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-icon-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.main-view {
  flex: 1;
}

/* History Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.history-drawer {
  width: 100%;
  max-width: 440px;
  height: 100%;
  border-radius: 24px 0 0 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.drawer-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.close-btn {
  background: var(--surface-muted);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
}

.empty-history {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
}

.empty-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.history-card:hover {
  border-color: var(--brand-primary);
}

.history-meta {
  flex: 1;
  cursor: pointer;
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.slug-tag {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-elevated);
  color: var(--brand-primary);
}

.history-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ch-mini-dot {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
}
.ch-mini-dot.wechat { background: #07C160; }
.ch-mini-dot.alipay { background: #1677FF; }
.ch-mini-dot.paypal { background: #003087; }
.ch-mini-dot.qq     { background: #0099FF; }

.time-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.history-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 12px 16px;
  }
  .logo-sub {
    display: none;
  }
  .history-drawer {
    max-width: 100%;
    border-radius: 0;
  }
}



.home-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.hero-banner {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 36px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: var(--brand-primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Studio Two-Column Grid */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

.studio-main {
  padding: 32px;
}

.studio-block {
  margin-bottom: 32px;
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.step-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

.block-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Purify Toggle */
.purify-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
}

.purify-toggle input {
  accent-color: var(--brand-primary);
}

/* Smart Batch Dropzone */
.smart-batch-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 2px dashed var(--border-strong);
  background: rgba(79, 70, 229, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.smart-batch-zone:hover,
.smart-batch-zone.is-dragover {
  background: rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

.batch-icon {
  font-size: 1.8rem;
}

.batch-copy {
  flex: 1;
}

.batch-copy strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 3px;
}

.batch-copy p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.batch-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 4-Channel Grid */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.channel-slot {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}

.channel-slot.has-content {
  border-color: var(--brand-primary);
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.decoded-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.uploaded-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--brand-primary);
}

.slot-drop-area {
  min-height: 130px;
  border-radius: 12px;
  border: 1.5px dashed var(--border-subtle);
  background: var(--surface-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s;
}

.slot-drop-area:hover {
  border-color: var(--brand-primary);
}

.slot-plus {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 6px;
}

.slot-Action {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.slot-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.slot-preview-area {
  min-height: 130px;
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slot-qr-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--border-subtle);
}

.slot-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-action-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.mini-action-btn.danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.slot-url-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}

.slot-url-input:focus {
  border-color: var(--brand-primary);
}

/* Form Layout */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.char-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 400;
}

.presets-input-row {
  display: flex;
  gap: 10px;
}

.preset-quick-btn {
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Theme Picker */
.theme-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.theme-card {
  padding: 10px;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-elevated);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.theme-card.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
}

.theme-info {
  display: flex;
  flex-direction: column;
}

.theme-info strong {
  font-size: 0.84rem;
}

.theme-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.submit-main-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Right Column: Phone Preview */
.preview-sticky {
  position: sticky;
  top: 90px;
}

.preview-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.phone-mockup {
  border-radius: 36px;
  padding: 18px 18px 24px;
  color: #ffffff;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35);
  border: 6px solid rgba(255, 255, 255, 0.18);
}

.phone-notch {
  width: 96px;
  height: 18px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  margin: 0 auto 20px;
}

.phone-body {
  text-align: center;
}

.mock-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.mock-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mock-desc {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

.mock-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.mock-amt-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
}

.mock-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 20px;
}

.mock-channel-item {
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.mock-channel-item strong {
  font-size: 0.92rem;
  display: block;
}

.mock-channel-item p {
  font-size: 0.72rem;
  opacity: 0.88;
}

.mock-arrow {
  font-weight: 700;
  opacity: 0.85;
}

.mock-footer {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* Bento Features */
.bento-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bento-card {
  padding: 24px;
}

.bento-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.bento-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .bento-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-page {
    padding: 20px 14px 48px;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .studio-main {
    padding: 20px 16px;
  }
  .channel-grid,
  .form-row-2,
  .bento-features {
    grid-template-columns: 1fr;
  }
  .smart-batch-zone {
    flex-direction: column;
    text-align: center;
  }
}



.generate-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.generate-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 28px;
  align-items: start;
}

.poster-showcase {
  padding: 24px;
  text-align: center;
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.badge-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(79, 70, 229, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.theme-mini-pills {
  display: flex;
  gap: 6px;
}

.theme-dot-btn {
  border: 2px solid transparent;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.2s;
}

.theme-dot-btn.active {
  opacity: 1;
  transform: scale(1.06);
  border-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.poster-canvas-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  margin-bottom: 18px;
  background: var(--surface-muted);
}

.poster-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.poster-download-bar {
  display: flex;
  gap: 10px;
}

.poster-download-bar .tp-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.88rem;
}

/* Right Panel */
.manage-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-check {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.panel-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-box {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.stat-value small {
  font-size: 0.85rem;
  font-weight: 500;
}

.active-ch-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ch-pill {
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.ch-pill.wechat { background: #07C160; }
.ch-pill.alipay { background: #1677FF; }
.ch-pill.paypal { background: #003087; }
.ch-pill.qq     { background: #0099FF; }

.link-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
}

.link-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.copy-inline-btn {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.link-code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  word-break: break-all;
}

.quick-actions-row {
  display: flex;
  gap: 12px;
}

/* Edit Section */
.edit-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 0;
}

.edit-body {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.token-hint {
  font-size: 0.74rem;
  color: #10b981;
}

.edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .generate-grid {
    grid-template-columns: 1fr;
  }
}



.pay-screen {
  min-height: 100vh;
  padding: 28px 16px 48px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pay-center-state {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.spinner-ring {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.err-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.checkout-shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.merchant-header {
  text-align: center;
  padding-top: 8px;
}

.merchant-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 auto 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.merchant-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.merchant-desc {
  font-size: 0.88rem;
  opacity: 0.86;
}

.env-banner {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  text-align: center;
}

.presets-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 16px;
}

.presets-title {
  font-size: 0.76rem;
  opacity: 0.85;
  display: block;
  margin-bottom: 8px;
}

.presets-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amt-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.amt-pill.selected {
  background: #ffffff;
  color: #0f172a;
}

/* Active QR Card */
.active-qr-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.qr-card-top {
  padding: 14px 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-card-platform {
  font-size: 1.05rem;
  font-weight: 800;
}

.qr-card-tip {
  font-size: 0.78rem;
  opacity: 0.9;
}

.qr-card-body {
  padding: 24px 20px;
  text-align: center;
}

.qr-img-frame {
  display: inline-block;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  margin-bottom: 14px;
}

.pay-qr-img {
  width: 230px;
  height: 230px;
  object-fit: contain;
  display: block;
}

.longpress-hint {
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 16px;
}

.deep-link-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deep-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Channel Switcher */
.channel-switcher {
  margin-top: 4px;
}

.switcher-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 10px;
  padding-left: 4px;
}

.switcher-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.channel-row.active {
  background: rgba(255, 255, 255, 0.26);
  border-color: #ffffff;
}

.ch-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ch-color-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.ch-row-left strong {
  font-size: 0.95rem;
  display: block;
}

.ch-row-left p {
  font-size: 0.74rem;
  opacity: 0.82;
}

.ch-select-indicator {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
}

.pay-footer {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.65;
  margin-top: 12px;
}
