/* ═══════════════════════════════════════════════════════════════
   餐饮 Banner 生成中心 — V3 Light UI Foundation
   Batch A: additive UI layer only. No business logic changes.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --v3-bg-page: #F6FAFC;
  --v3-bg-page-soft: #F1F7F8;
  --v3-bg-surface: #FFFFFF;
  --v3-bg-glass: rgba(255, 255, 255, 0.62);
  --v3-bg-glass-strong: rgba(255, 255, 255, 0.82);
  --v3-border-glass: rgba(255, 255, 255, 0.88);
  --v3-border-soft: rgba(148, 163, 184, 0.22);
  --v3-text: #0F172A;
  --v3-text-secondary: #64748B;
  --v3-text-muted: #94A3B8;
  --v3-primary: #0E9F76;
  --v3-primary-2: #12B981;
  --v3-primary-soft: #DDF8F2;
  --v3-danger: #EF4444;
  --v3-warning: #F59E0B;
  --v3-radius-xl: 24px;
  --v3-radius-lg: 18px;
  --v3-radius-md: 14px;
  --v3-radius-pill: 999px;
  --v3-shadow-soft: 0 16px 44px rgba(15, 23, 42, 0.08);
  --v3-shadow-card: 0 10px 28px rgba(15, 23, 42, 0.07);
  --v3-shadow-button: 0 12px 24px rgba(14, 159, 118, 0.22);
  --v3-mobile-gutter: 16px;
  --v3-safe-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

html { background: var(--v3-bg-page); }

body {
  background:
    radial-gradient(circle at 16% 0%, rgba(221, 248, 242, 0.9), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(226, 245, 255, 0.86), transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, var(--v3-bg-page) 42%, var(--v3-bg-page-soft) 100%) !important;
  color: var(--v3-text) !important;
  letter-spacing: -0.01em;
}

body::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(18, 185, 129, 0.08), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(14, 165, 233, 0.07), transparent 30%) !important;
}

body, input, textarea, select, button {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app-layout, .main-content { background: transparent !important; }

.main-content {
  color: var(--v3-text) !important;
}

.content-area,
.page-content,
.home-content {
  width: 100%;
}

.sidebar {
  background: rgba(255, 255, 255, 0.66) !important;
  border-right: 1px solid var(--v3-border-glass) !important;
  box-shadow: 18px 0 44px rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.sidebar-logo,
.sidebar-footer,
.top-header,
.mobile-header {
  background: rgba(255, 255, 255, 0.58) !important;
  border-color: var(--v3-border-glass) !important;
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
}

.sidebar-logo-text,
.mobile-header-logo,
.top-header,
.header-tab,
.sidebar-item,
.sidebar-item span,
.page-title,
h1, h2, h3, h4 {
  color: var(--v3-text) !important;
}

.sidebar-logo-text small,
.page-subtitle,
.header-user-phone,
.quota-label,
.card p,
.help-text,
.muted {
  color: var(--v3-text-secondary) !important;
}

.sidebar-item {
  border-radius: var(--v3-radius-md) !important;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-item:hover,
.sidebar-item.active,
.header-tab:hover,
.header-tab.active {
  background: rgba(221, 248, 242, 0.82) !important;
  color: var(--v3-primary) !important;
  box-shadow: 0 8px 22px rgba(14, 159, 118, 0.10) !important;
}

.sidebar-item:hover { transform: translateY(-1px); }

.sidebar-logo-icon,
.avatar {
  background: linear-gradient(135deg, var(--v3-primary-soft), #FFFFFF) !important;
  color: var(--v3-primary) !important;
  border: 1px solid rgba(14, 159, 118, 0.14) !important;
  box-shadow: 0 8px 18px rgba(14, 159, 118, 0.12) !important;
}

.card,
.home-card,
.case-card,
.template-card,
.task-card,
.upload-card,
.result-card,
.panel-card,
.work-card,
.form-card,
.quota-card,
.stats-card,
.detail-card,
.option-card,
.select-card,
.quick-card,
.feature-card,
.info-card,
.page-section,
.result-container,
.panel-left,
.panel-right,
.workspace-card,
.task-floating-card,
.modal-content,
.detail-modal,
.detail-content {
  background: var(--v3-bg-glass) !important;
  border: 1px solid var(--v3-border-glass) !important;
  border-radius: var(--v3-radius-xl) !important;
  box-shadow: var(--v3-shadow-card) !important;
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  color: var(--v3-text) !important;
}

.card:hover,
.home-card:hover,
.case-card:hover,
.template-card:hover,
.task-card:hover,
.work-card:hover,
.upload-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v3-shadow-soft) !important;
  border-color: rgba(18, 185, 129, 0.22) !important;
}

button,
.btn,
.primary-btn,
.btn-primary,
.generate-btn,
.quota-btn,
.action-btn,
.download-btn,
.panel-download-btn,
.task-floating-action,
.mobile-primary-action {
  min-height: 44px;
  border-radius: var(--v3-radius-md) !important;
  border: 1px solid transparent !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn-primary,
.primary-btn,
.generate-btn,
.quota-btn,
button[type="submit"],
#btn-gen,
#btnGenerate,
#btnAnalyze,
#btnUseEdited {
  background: linear-gradient(135deg, var(--v3-primary), var(--v3-primary-2)) !important;
  color: #FFFFFF !important;
  box-shadow: var(--v3-shadow-button) !important;
}

button:hover,
.btn:hover,
.primary-btn:hover,
.btn-primary:hover,
.generate-btn:hover,
.quota-btn:hover,
.action-btn:hover,
.download-btn:hover,
.panel-download-btn:hover {
  transform: translateY(-1px);
}

button:disabled,
.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
}

.secondary-btn,
.btn-secondary,
.ghost-btn,
.tab,
.page-tab,
.filter-chip,
.category-chip,
.style-chip,
.tag-select,
.header-tab {
  background: rgba(255, 255, 255, 0.68) !important;
  color: var(--v3-text-secondary) !important;
  border: 1px solid var(--v3-border-soft) !important;
  border-radius: var(--v3-radius-pill) !important;
}

.tab.active,
.page-tab.active,
.filter-chip.active,
.category-chip.active,
.style-chip.active,
.tag-select.selected,
.tag-select.active {
  background: var(--v3-primary-soft) !important;
  color: var(--v3-primary) !important;
  border-color: rgba(14, 159, 118, 0.28) !important;
}

input,
textarea,
select,
.input,
.form-input,
.form-select,
.form-textarea,
.search-input {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--v3-text) !important;
  border: 1px solid var(--v3-border-soft) !important;
  border-radius: var(--v3-radius-md) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  outline: none;
}

textarea { line-height: 1.6; }

input::placeholder,
textarea::placeholder { color: var(--v3-text-muted) !important; }

input:focus,
textarea:focus,
select:focus,
.input:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.search-input:focus {
  border-color: rgba(18, 185, 129, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(18, 185, 129, 0.10) !important;
}

.remaining-badge,
.badge,
.status-badge,
.task-status-badge,
.pill,
.label-pill {
  border-radius: var(--v3-radius-pill) !important;
  background: rgba(221, 248, 242, 0.86) !important;
  border: 1px solid rgba(14, 159, 118, 0.16) !important;
  color: var(--v3-primary) !important;
}

.quota-number,
.quota-number .count,
.remaining-badge .count,
#quota-count,
#mobile-quota-count,
#quota-number-val {
  color: var(--v3-primary) !important;
}

.v3-quota-recharge-badge {
  gap: 8px !important;
  white-space: nowrap;
}

.v3-quota-recharge-btn {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #0e9f76);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 26px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(14, 159, 118, 0.18);
}

.v3-quota-recharge-btn:active {
  transform: translateY(1px);
}

.v3-quota-help-link,
.v3-quota-help-mini {
  border: 0 !important;
  background: transparent !important;
  color: #0f766e !important;
  box-shadow: none !important;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.v3-quota-help-link {
  min-height: auto;
  margin-top: 8px;
  padding: 0 !important;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.v3-quota-help-mini {
  min-height: 24px;
  height: 24px;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: rgba(14, 159, 118, 0.08) !important;
  font-size: 11px;
}

.v3-quota-help-link:hover,
.v3-quota-help-mini:hover {
  color: #065f46 !important;
  background: rgba(14, 159, 118, 0.12) !important;
  transform: none;
}

.quota-bar,
.progress-track,
.progress-bar-bg {
  background: rgba(148, 163, 184, 0.18) !important;
  border-radius: var(--v3-radius-pill) !important;
}

.quota-bar-fill,
.progress-fill,
.progress-bar,
#genProgressBar {
  background: linear-gradient(90deg, var(--v3-primary), var(--v3-primary-2)) !important;
  border-radius: var(--v3-radius-pill) !important;
}

.page-header,
.hero-section {
  background: transparent !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

.banner-preview,
.banner-preview-img,
.banner-image,
.result-banner,
.case-card-image,
.template-card-image,
.task-preview img,
.work-preview img {
  border-radius: var(--v3-radius-lg) !important;
  overflow: hidden;
}

.banner-preview,
.banner-preview-wrap,
.banner-preview-container,
.result-banner-wrap {
  aspect-ratio: 3 / 1;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid var(--v3-border-glass) !important;
  border-radius: var(--v3-radius-xl) !important;
  overflow: hidden;
}

.panel-preview-card,
.panel-card,
.panel-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.panels-preview-grid,
.panel-grid,
.panels-grid {
  gap: 12px !important;
}

.loading-state,
.empty-state,
.error-state,
.toast,
.toast-message,
.global-error,
#globalError {
  border-radius: var(--v3-radius-lg) !important;
  background: var(--v3-bg-glass-strong) !important;
  border: 1px solid var(--v3-border-glass) !important;
  color: var(--v3-text) !important;
  box-shadow: var(--v3-shadow-card) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.error-state,
.global-error,
#globalError { border-color: rgba(239, 68, 68, 0.18) !important; }

.timeline-item,
.quick-step,
.gen-step,
.step-item {
  color: var(--v3-text-secondary) !important;
}

.timeline-item.active,
.quick-step.active,
.gen-step.active,
.step-item.active {
  color: var(--v3-primary) !important;
}

.timeline-dot,
.quick-step-icon,
.step-dot {
  background: var(--v3-primary-soft) !important;
  color: var(--v3-primary) !important;
  border-color: rgba(14, 159, 118, 0.22) !important;
}

.mobile-nav {
  background: rgba(255, 255, 255, 0.76) !important;
  border-top: 1px solid var(--v3-border-glass) !important;
  box-shadow: 0 -16px 34px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.mobile-nav-item {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--v3-radius-md) !important;
  color: var(--v3-text-secondary) !important;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--v3-primary) !important;
  background: var(--v3-primary-soft) !important;
}

@media (max-width: 768px) {
  body {
    padding-bottom: var(--v3-safe-bottom);
  }

  .main-content,
  .content-area,
  .page-content,
  .home-content {
    padding-left: var(--v3-mobile-gutter) !important;
    padding-right: var(--v3-mobile-gutter) !important;
  }

  .mobile-header {
    min-height: 60px;
    padding-left: var(--v3-mobile-gutter) !important;
    padding-right: var(--v3-mobile-gutter) !important;
  }

  .card,
  .home-card,
  .case-card,
  .template-card,
  .task-card,
  .work-card,
  .upload-card,
  .result-card,
  .quota-card,
  .page-section,
  .result-container,
  .panel-left,
  .panel-right,
  .workspace-card {
    border-radius: var(--v3-radius-xl) !important;
  }

  button,
  .btn,
  .primary-btn,
  .btn-primary,
  .generate-btn,
  #btn-gen,
  #btnGenerate {
    min-height: 52px;
  }

  input,
  textarea,
  select,
  .input,
  .form-input,
  .form-select,
  .search-input {
    min-height: 50px;
    font-size: 16px;
  }

  .page-header,
  .hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 430px) {
  :root { --v3-mobile-gutter: 16px; }

  .mobile-header-logo span,
  .sidebar-logo-text {
    font-size: 15px !important;
  }

  .remaining-badge {
    min-height: 34px;
    padding: 6px 10px !important;
  }

  .panels-preview-grid,
  .panel-grid,
  .panels-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 390px) {
  :root { --v3-mobile-gutter: 14px; }

  .mobile-header-right { gap: 8px !important; }

  .remaining-badge { font-size: 12px !important; }

  .avatar { width: 36px !important; height: 36px !important; }
}

@media (min-width: 1024px) {
  .content-area,
  .page-content,
  .home-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  .main-content {
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Batch B: Home mobile app redesign. UI-only; keeps links, auth,
   quota IDs and existing business routes untouched.
   ═══════════════════════════════════════════════════════════════ */
.v3-home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -4%, rgba(185, 245, 229, 0.95), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(220, 239, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #F9FCFB 0%, #F2F8F7 48%, #EEF6F4 100%) !important;
}

.v3-home-page a { text-decoration: none; }

.v3-icon-mark,
.v3-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v3-icon-mark svg,
.v3-card-icon svg,
.v3-nav-svg svg {
  width: 20px;
  height: 20px;
  display: block;
}

.v3-icon-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--v3-primary);
  background: linear-gradient(135deg, #E8FFF8 0%, #FFFFFF 100%);
  border: 1px solid rgba(14, 159, 118, 0.13);
  box-shadow: 0 12px 24px rgba(14, 159, 118, 0.13);
}

.v3-nav-svg {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v3-home-topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin: 14px 18px 0;
  border-radius: 24px !important;
  min-height: 68px;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.70) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07) !important;
}

.v3-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.v3-mobile-brand strong {
  display: block;
  color: var(--v3-text);
  font-size: 16px;
  line-height: 1.2;
}

.v3-mobile-brand span {
  display: block;
  margin-top: 2px;
  color: var(--v3-text-secondary);
  font-size: 12px;
  line-height: 1.2;
}

.v3-header-actions { gap: 10px !important; }

.v3-user-info {
  align-items: center;
  gap: 10px;
  color: var(--v3-text-secondary);
  font-size: 13px;
}

.v3-home-shell {
  padding: 28px 24px 42px !important;
}

.v3-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 28px;
  overflow: hidden;
  padding: 34px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 18%, rgba(18, 185, 129, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(244,252,250,0.68));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
}

.v3-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -28% 38%;
  height: 260px;
  background: radial-gradient(circle, rgba(14, 159, 118, 0.18), transparent 66%);
  pointer-events: none;
}

.v3-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 680px;
}

.v3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--v3-radius-pill);
  color: var(--v3-primary);
  background: rgba(221, 248, 242, 0.86);
  border: 1px solid rgba(14, 159, 118, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.v3-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v3-primary-2);
  box-shadow: 0 0 0 5px rgba(18, 185, 129, 0.13);
}

.v3-hero-copy h1 {
  margin: 18px 0 14px;
  max-width: 760px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  color: var(--v3-text) !important;
}

.v3-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--v3-text-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.v3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.v3-primary-link,
.v3-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.v3-primary-link {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--v3-primary), var(--v3-primary-2));
  box-shadow: var(--v3-shadow-button);
}

.v3-secondary-link {
  color: var(--v3-text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--v3-border-soft);
}

.v3-primary-link:hover,
.v3-secondary-link:hover { transform: translateY(-2px); }

.v3-phone-preview {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 330px;
  justify-self: center;
  padding: 14px;
  border-radius: 38px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.v3-phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  padding: 0 10px 8px;
}

.v3-phone-status span:first-child {
  width: 42px;
  height: 5px;
  border-radius: var(--v3-radius-pill);
  background: rgba(15, 23, 42, 0.18);
}

.v3-phone-status span:last-child {
  width: 28px;
  height: 5px;
  border-radius: var(--v3-radius-pill);
  background: rgba(18, 185, 129, 0.45);
}

.v3-preview-banner {
  aspect-ratio: 3 / 1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 72% 48%, rgba(253, 186, 116, 0.92), transparent 18%),
    radial-gradient(circle at 30% 58%, rgba(239, 68, 68, 0.72), transparent 22%),
    linear-gradient(135deg, #FFF7ED, #FDE68A 48%, #FED7AA);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.v3-preview-title {
  margin: 14px 2px 12px;
  color: var(--v3-text);
  font-size: 16px;
  font-weight: 900;
}

.v3-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.v3-preview-grid div {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(221, 248, 242, 0.95), rgba(255,255,255,0.72));
  border: 1px solid rgba(14, 159, 118, 0.10);
}

.v3-preview-grid div:nth-child(2) { background: linear-gradient(135deg, #FFF7ED, #FFFFFF); }
.v3-preview-grid div:nth-child(3) { background: linear-gradient(135deg, #EFF6FF, #FFFFFF); }
.v3-preview-grid div:nth-child(4) { background: linear-gradient(135deg, #F0FDFA, #FFFFFF); }

.v3-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.v3-action-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 22px;
  border-radius: 28px;
  color: var(--v3-text);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--v3-shadow-card);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.v3-action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--v3-shadow-soft);
  border-color: rgba(18, 185, 129, 0.24);
}

.v3-action-card-featured {
  background: linear-gradient(135deg, rgba(221,248,242,0.94), rgba(255,255,255,0.76));
}

.v3-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--v3-primary);
  background: #FFFFFF;
  border: 1px solid rgba(14, 159, 118, 0.12);
  box-shadow: 0 10px 24px rgba(14, 159, 118, 0.12);
}

.v3-action-card strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.v3-action-card small {
  color: var(--v3-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.v3-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 2px 16px;
}

.v3-section-head.compact { margin-top: 0; }

.v3-section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--v3-primary);
  font-size: 13px;
  font-weight: 900;
}

.v3-section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.05em;
}

.v3-section-head a {
  flex-shrink: 0;
  color: var(--v3-primary);
  font-size: 14px;
  font-weight: 900;
}

.v3-case-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.v3-case-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  border-radius: 30px;
  color: #FFFFFF;
  box-shadow: var(--v3-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.v3-case-tile:hover { transform: translateY(-3px); box-shadow: var(--v3-shadow-soft); }

.v3-case-tile::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
}

.v3-case-tile span,
.v3-case-tile strong { position: relative; z-index: 1; display: block; }
.v3-case-tile span { font-size: 13px; font-weight: 800; opacity: 0.86; }
.v3-case-tile strong { margin-top: 8px; max-width: 180px; font-size: 24px; line-height: 1.12; letter-spacing: -0.04em; }
.v3-case-tile-a { background: linear-gradient(135deg, #EF4444, #F97316); }
.v3-case-tile-b { background: linear-gradient(135deg, #0EA5E9, #14B8A6); }
.v3-case-tile-c { background: linear-gradient(135deg, #111827, #64748B); }

.v3-guide-panel {
  margin-top: 18px;
  padding: 24px;
  border-radius: 32px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: var(--v3-shadow-card);
}

.v3-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.v3-guide-grid div {
  padding: 16px;
  border-radius: 22px;
  background: rgba(246, 250, 252, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.v3-guide-grid b {
  display: block;
  color: var(--v3-primary);
  font-size: 13px;
  margin-bottom: 10px;
}

.v3-guide-grid strong {
  display: block;
  color: var(--v3-text);
  font-size: 16px;
  margin-bottom: 6px;
}

.v3-guide-grid span {
  display: block;
  color: var(--v3-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.v3-mobile-nav .mobile-nav-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: -22px;
  border-radius: 20px;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--v3-primary), var(--v3-primary-2));
  box-shadow: 0 14px 28px rgba(14, 159, 118, 0.28);
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}

@media (min-width: 1440px) {
  .content-area,
  .page-content,
  .home-content {
    max-width: 1360px;
  }
}

@media (max-width: 1180px) {
  .v3-hero-card { grid-template-columns: 1fr; }
  .v3-phone-preview { display: none; }
  .v3-guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .v3-desktop-sidebar,
  .v3-desktop-tabs { display: none !important; }

  .v3-main-content { width: 100% !important; margin-left: 0 !important; }

  .v3-home-topbar {
    top: 10px;
    margin: 10px 12px 0;
    min-height: 62px;
  }

  .v3-mobile-brand { display: flex; }

  .v3-header-actions .v3-user-info,
  .v3-header-actions #adminEntry { display: none !important; }

  .v3-home-shell { padding: 16px 14px 26px !important; }

  .v3-hero-card {
    padding: 24px 20px;
    border-radius: 32px;
  }

  .v3-hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 0.98;
  }

  .v3-hero-copy p { font-size: 15px; line-height: 1.72; }

  .v3-hero-actions { display: grid; grid-template-columns: 1fr; }

  .v3-primary-link,
  .v3-secondary-link { width: 100%; }

  .v3-quick-actions { grid-template-columns: 1fr; gap: 12px; }

  .v3-action-card {
    min-height: auto;
    grid-template-columns: 48px 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  .v3-action-card small { grid-column: 2; margin-top: -6px; }

  .v3-section-head { align-items: start; margin-top: 26px; }
  .v3-section-head h2 { font-size: 26px; }

  .v3-case-strip { grid-template-columns: 1fr; }
  .v3-case-tile { min-height: 142px; border-radius: 26px; }

  .v3-guide-panel { padding: 18px; border-radius: 28px; }
  .v3-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .v3-home-shell { padding-left: 12px !important; padding-right: 12px !important; }
  .v3-home-topbar { margin-left: 10px; margin-right: 10px; }
  .v3-mobile-brand .v3-icon-mark { width: 38px; height: 38px; border-radius: 14px; }
  .v3-mobile-brand strong { font-size: 15px; }
  .v3-mobile-brand span { font-size: 11px; }
  .v3-hero-card { padding: 22px 18px; }
  .v3-hero-copy h1 { font-size: 38px; }
  .v3-eyebrow { font-size: 12px; }
  .v3-header-actions .remaining-badge { padding: 7px 10px !important; font-size: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Batch C: Quick generate page visual refresh. UI-only.
   ═══════════════════════════════════════════════════════════════ */
.v3-standard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -4%, rgba(185, 245, 229, 0.95), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(220, 239, 255, 0.86), transparent 34%),
    linear-gradient(180deg, #F9FCFB 0%, #F2F8F7 48%, #EEF6F4 100%) !important;
}

.v3-standard-shell {
  padding: 28px 24px 42px !important;
}

.v3-standard-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px !important;
  padding: 30px !important;
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 24%, rgba(18, 185, 129, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(244,252,250,0.72));
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 20px 52px rgba(15,23,42,0.08);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.v3-standard-hero .page-title {
  max-width: 820px;
  margin: 14px 0 10px !important;
  font-size: clamp(34px, 5vw, 58px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.065em !important;
}

.v3-standard-hero .page-subtitle {
  max-width: 720px;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.78 !important;
}

.v3-quick-workspace {
  display: grid !important;
  grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1.18fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.v3-quick-form {
  display: grid;
  gap: 14px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.v3-form-card {
  margin: 0 !important;
  padding: 20px !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,0.70) !important;
  border: 1px solid rgba(255,255,255,0.88) !important;
  box-shadow: 0 12px 32px rgba(15,23,42,0.07) !important;
  backdrop-filter: blur(20px) saturate(1.22);
  -webkit-backdrop-filter: blur(20px) saturate(1.22);
}

.v3-form-card:first-of-type {
  background: linear-gradient(135deg, rgba(221,248,242,0.94), rgba(255,255,255,0.76)) !important;
}

.v3-form-card .quick-form-title {
  color: var(--v3-text) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em;
  margin-bottom: 16px !important;
}

.v3-form-card .quick-form-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 15px !important;
  background: #FFFFFF !important;
  box-shadow: 0 10px 22px rgba(14,159,118,0.12);
}

.v3-prompt-input {
  min-height: 158px !important;
  resize: vertical;
}

.v3-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.v3-prompt-chips button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(14,159,118,0.16);
  border-radius: var(--v3-radius-pill);
  color: var(--v3-primary);
  background: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.v3-prompt-chips button:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.v3-generate-button {
  min-height: 56px !important;
  border-radius: 20px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  box-shadow: var(--v3-shadow-button) !important;
}

.v3-form-hint {
  color: var(--v3-text-secondary);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.v3-quick-result {
  min-height: 640px !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 82% 12%, rgba(253,186,116,0.18), transparent 30%),
    rgba(255,255,255,0.70) !important;
  border: 1px solid rgba(255,255,255,0.88) !important;
  box-shadow: 0 18px 48px rgba(15,23,42,0.08) !important;
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
}

.v3-quick-placeholder {
  display: flex !important;
  min-height: 500px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--v3-text-secondary);
}

.v3-placeholder-art {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 92px !important;
  height: 92px !important;
  border-radius: 30px !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--v3-primary), #FDBA74) !important;
  box-shadow: 0 18px 38px rgba(14,159,118,0.18);
  font-size: 28px !important;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.v3-placeholder-title {
  margin-top: 18px;
  color: var(--v3-text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.v3-placeholder-text {
  max-width: 320px;
  margin-top: 8px;
  color: var(--v3-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.v3-result-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 10px;
  margin-top: 24px;
}

.v3-result-skeleton span {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(221,248,242,0.95), rgba(255,255,255,0.72));
  border: 1px solid rgba(14,159,118,0.10);
}

.v3-template-notice {
  align-items: center;
  gap: 8px;
  margin-bottom: 0 !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: rgba(221,248,242,0.88) !important;
  border: 1px solid rgba(14,159,118,0.16) !important;
  color: var(--v3-primary) !important;
  font-size: 13px !important;
  font-weight: 800;
}

.v3-notice-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v3-primary-2);
}

@media (max-width: 1180px) {
  .v3-quick-workspace {
    grid-template-columns: 1fr !important;
  }
  .v3-quick-result { min-height: 420px !important; }
}

@media (max-width: 768px) {
  .v3-standard-shell { padding: 16px 14px 26px !important; }
  .v3-standard-hero { padding: 24px 20px !important; border-radius: 32px; }
  .v3-standard-hero .page-title { font-size: clamp(34px, 10.8vw, 46px) !important; }
  .v3-form-card { padding: 18px !important; border-radius: 26px !important; }
  .v3-quick-result { min-height: 360px !important; border-radius: 28px !important; }
  .v3-quick-placeholder { min-height: 300px; }
  .v3-prompt-input { min-height: 138px !important; }
}

@media (max-width: 430px) {
  .v3-standard-shell { padding-left: 12px !important; padding-right: 12px !important; }
  .v3-standard-hero { padding: 22px 18px !important; }
  .v3-standard-hero .page-title { font-size: 36px !important; }
  .v3-result-skeleton { grid-template-columns: repeat(3, 54px); }
}

/* ═══════════════════════════════════════════════════════════════
   Batch D/E/F: Remaining user pages visual coverage. UI-only.
   Covers template generation, case plaza, tasks, pro page and login.
   ═══════════════════════════════════════════════════════════════ */
.v3-onclick-page,
.v3-cases-page,
.v3-tasks-page,
.v3-pro-page,
.v3-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -4%, rgba(185, 245, 229, 0.92), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(220, 239, 255, 0.82), transparent 34%),
    linear-gradient(180deg, #F9FCFB 0%, #F2F8F7 48%, #EEF6F4 100%) !important;
}

.v3-onclick-page .content-area,
.v3-cases-page .content-area,
.v3-pro-page .content-area,
.v3-tasks-page .container {
  padding: 28px 24px 42px !important;
}

.v3-onclick-page .page-header,
.v3-cases-page .page-header,
.v3-tasks-page .header,
.v3-pro-page .mode-switch,
.v3-login-page .login-container {
  border-radius: 32px !important;
  background:
    radial-gradient(circle at 86% 20%, rgba(18, 185, 129, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
}

.v3-onclick-page .page-header,
.v3-cases-page .page-header,
.v3-tasks-page .header {
  padding: 28px !important;
  margin-bottom: 18px !important;
}

.v3-onclick-page .page-title,
.v3-cases-page .page-title,
.v3-tasks-page .header h1,
.v3-pro-page .mode-switch .mode-btn.active {
  color: var(--v3-text) !important;
  letter-spacing: -0.055em;
}

.v3-onclick-page .page-subtitle,
.v3-cases-page .page-subtitle,
.v3-tasks-page .header p {
  color: var(--v3-text-secondary) !important;
}

.v3-onclick-page .page-tabs,
.v3-cases-page .filters-card,
.v3-tasks-page .tabs,
.v3-pro-page .panel-left,
.v3-pro-page .result-area,
.v3-onclick-page #workspace,
.v3-cases-page #cases-container,
.v3-tasks-page #tasks-container {
  border-radius: 28px !important;
}

.v3-onclick-page .page-tabs,
.v3-cases-page .filters-card,
.v3-tasks-page .tabs,
.v3-pro-page .panel-left,
.v3-pro-page .result-area {
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

.v3-onclick-page .page-tab,
.v3-cases-page .filter-btn,
.v3-tasks-page .tab,
.v3-pro-page .mode-btn,
.v3-pro-page .tag-select,
.v3-pro-page .toggle-switch {
  border-radius: 999px !important;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
}

.v3-onclick-page .page-tab.active,
.v3-cases-page .filter-btn.active,
.v3-tasks-page .tab.active,
.v3-pro-page .mode-btn.active,
.v3-pro-page .tag-select.active {
  background: rgba(221, 248, 242, 0.92) !important;
  color: var(--v3-primary) !important;
  box-shadow: 0 8px 22px rgba(14, 159, 118, 0.10) !important;
}

.v3-onclick-page .upload-zone,
.v3-onclick-page .card,
.v3-cases-page .case-card,
.v3-tasks-page .task-card,
.v3-tasks-page .work-card,
.v3-tasks-page .favorite-card,
.v3-pro-page .section-card,
.v3-pro-page .result-placeholder {
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
}

.v3-onclick-page .upload-zone {
  min-height: 260px;
  background:
    radial-gradient(circle at 50% 18%, rgba(18, 185, 129, 0.16), transparent 26%),
    rgba(255, 255, 255, 0.72) !important;
}

.v3-onclick-page .upload-zone:hover,
.v3-cases-page .case-card:hover,
.v3-tasks-page .task-card:hover,
.v3-tasks-page .work-card:hover,
.v3-tasks-page .favorite-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10) !important;
}

.v3-cases-page .case-card img.case-card-image,
.v3-onclick-page #platform-grid img,
.v3-tasks-page .task-preview img,
.v3-tasks-page .work-preview img {
  border-radius: 22px !important;
}

.v3-cases-page .search-box,
.v3-login-page input,
.v3-pro-page .form-input,
.v3-onclick-page .form-input,
.v3-cases-page input,
.v3-cases-page select {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: var(--v3-text) !important;
  border-radius: 18px !important;
}

.v3-login-page {
  overflow: auto !important;
  padding: 24px 16px;
}

.v3-login-page .bg-pattern {
  background:
    radial-gradient(circle at 20% 12%, rgba(18,185,129,0.16), transparent 30%),
    radial-gradient(circle at 80% 4%, rgba(14,165,233,0.12), transparent 30%) !important;
}

.v3-login-page .login-container {
  max-width: 420px !important;
  padding: 34px 28px !important;
  color: var(--v3-text) !important;
}

.v3-login-page .logo h1,
.v3-login-page label {
  color: var(--v3-text) !important;
}

.v3-login-page .logo p,
.v3-login-page .divider,
.v3-login-page .btn-admin-link {
  color: var(--v3-text-secondary) !important;
}

.v3-login-page .tab-bar {
  background: rgba(241, 247, 248, 0.92) !important;
  border-radius: 18px !important;
}

.v3-login-page .tab-btn.active,
.v3-login-page .btn-primary {
  background: linear-gradient(135deg, var(--v3-primary), var(--v3-primary-2)) !important;
  color: #FFFFFF !important;
  box-shadow: var(--v3-shadow-button) !important;
}

.v3-login-page .btn-guest {
  background: rgba(255,255,255,0.70) !important;
  color: var(--v3-text) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
}

@media (max-width: 768px) {
  .v3-onclick-page .content-area,
  .v3-cases-page .content-area,
  .v3-pro-page .content-area,
  .v3-tasks-page .container {
    padding: 16px 14px 26px !important;
  }

  .v3-onclick-page .page-header,
  .v3-cases-page .page-header,
  .v3-tasks-page .header {
    padding: 22px 18px !important;
    border-radius: 30px !important;
  }

  .v3-onclick-page .page-title,
  .v3-cases-page .page-title,
  .v3-tasks-page .header h1 {
    font-size: clamp(30px, 9.6vw, 42px) !important;
    line-height: 1.04 !important;
  }

  .v3-onclick-page .upload-zone { min-height: 220px; }
  .v3-login-page { align-items: flex-start !important; }
}

@media (max-width: 430px) {
  .v3-onclick-page .content-area,
  .v3-cases-page .content-area,
  .v3-pro-page .content-area,
  .v3-tasks-page .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .v3-login-page .login-container { padding: 28px 22px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Batch G: mobile app replica refinement. UI-only.
   Adds app-style tool grid, compact mobile headers, no new backend logic.
   ═══════════════════════════════════════════════════════════════ */
.v3-home-page,
.v3-standard-page,
.v3-onclick-page,
.v3-cases-page,
.v3-tasks-page,
.v3-pro-page,
.v3-login-page {
  --v3-bg-page: #F3FAF8;
  --v3-primary: #16A981;
  --v3-primary-2: #46D7AE;
  --v3-primary-soft: #E0FAF3;
  --v3-shadow-card: 0 14px 34px rgba(15, 23, 42, 0.075);
  --v3-shadow-soft: 0 22px 54px rgba(15, 23, 42, 0.10);
  background:
    radial-gradient(circle at 18% -6%, rgba(189, 252, 232, 0.95), transparent 34%),
    radial-gradient(circle at 98% 4%, rgba(223, 241, 255, 0.92), transparent 32%),
    linear-gradient(180deg, #FBFEFD 0%, #F4FBF8 44%, #EEF8F5 100%) !important;
}

.v3-chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: var(--v3-radius-pill);
  color: var(--v3-primary) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(22, 169, 129, 0.18) !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.v3-tool-studio {
  margin-top: 18px;
  padding: 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 8%, rgba(70, 215, 174, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--v3-shadow-card);
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
}

.v3-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.v3-tool-card {
  appearance: none;
  border: 0;
  text-align: left;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 136px;
  padding: 16px;
  border-radius: 26px;
  color: var(--v3-text) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055) !important;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.v3-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--v3-shadow-soft) !important;
  border-color: rgba(22, 169, 129, 0.24) !important;
}

.v3-tool-card.is-coming {
  opacity: 0.88;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.86), rgba(255, 255, 255, 0.70)) !important;
}

.v3-tool-card.is-coming small {
  color: #B7791F !important;
}

.v3-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  color: var(--v3-primary);
  background: linear-gradient(135deg, #E5FFF7, #FFFFFF);
  border: 1px solid rgba(22, 169, 129, 0.13);
  box-shadow: 0 10px 22px rgba(22, 169, 129, 0.10);
}

.v3-tool-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.v3-tool-card strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.v3-tool-card small {
  display: block;
  color: var(--v3-text-secondary) !important;
  font-size: 12px;
  line-height: 1.45;
}

.v3-mobile-nav {
  left: 12px !important;
  right: 12px !important;
  bottom: 10px !important;
  width: auto !important;
  border-radius: 28px 28px 30px 30px !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 -10px 34px rgba(15, 23, 42, 0.10), 0 10px 30px rgba(15, 23, 42, 0.07) !important;
  overflow: visible !important;
}

.v3-mobile-nav .mobile-nav-items {
  min-height: 66px;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
}

.v3-mobile-nav .mobile-nav-item {
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.v3-mobile-nav .mobile-nav-item:hover {
  transform: translateY(-1px);
}

.v3-mobile-nav .mobile-nav-center {
  border: 4px solid rgba(255, 255, 255, 0.86);
}

.v3-standard-page .top-header,
.v3-onclick-page .top-header,
.v3-cases-page .top-header,
.v3-pro-page .top-header {
  border-radius: 24px !important;
}

.v3-standard-page .quick-form-icon,
.v3-pro-page .section-icon,
.v3-cases-page .sidebar-logo-icon,
.v3-standard-page .sidebar-logo-icon,
.v3-onclick-page .sidebar-logo-icon,
.v3-pro-page .sidebar-logo-icon {
  color: transparent !important;
  font-size: 0 !important;
  position: relative;
}

.v3-standard-page .quick-form-icon::before,
.v3-pro-page .section-icon::before,
.v3-cases-page .sidebar-logo-icon::before,
.v3-standard-page .sidebar-logo-icon::before,
.v3-onclick-page .sidebar-logo-icon::before,
.v3-pro-page .sidebar-logo-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--v3-primary), var(--v3-primary-2));
  box-shadow: 0 7px 16px rgba(22, 169, 129, 0.18);
}

.mobile-nav-item .icon {
  color: transparent !important;
  font-size: 0 !important;
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-item .icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 8px;
  border: 2px solid currentColor;
  color: var(--v3-text-secondary);
}

.mobile-nav-item.active .icon::before,
.mobile-nav-item:hover .icon::before {
  color: var(--v3-primary);
}

.v3-standard-page .quick-placeholder-icon,
.v3-pro-page .quick-placeholder-icon,
.v3-pro-page [style*="font-size:64px"] {
  color: var(--v3-primary) !important;
  opacity: 0.82 !important;
}

.v3-login-page .login-header h1 {
  font-size: 0 !important;
}

.v3-login-page .login-header h1::before {
  content: "餐饮 Banner 生成中心";
  display: block;
  color: var(--v3-text);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.v3-login-page .btn-admin-link,
.v3-login-page .unlock-modal h3 {
  font-size: 0 !important;
}

.v3-login-page .btn-admin-link::before {
  content: "输入解锁码增加次数";
  font-size: 14px;
}

.v3-login-page .unlock-modal h3::before {
  content: "输入解锁码";
  font-size: 20px;
  color: var(--v3-text);
}

@media (max-width: 768px) {
  .v3-home-topbar,
  .v3-standard-page .top-header,
  .v3-onclick-page .top-header,
  .v3-cases-page .top-header,
  .v3-pro-page .top-header {
    position: sticky !important;
    top: 10px !important;
    margin: 10px 10px 12px !important;
    min-height: 60px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.76) !important;
  }

  .v3-hero-card,
  .v3-standard-hero,
  .v3-onclick-page .page-header,
  .v3-cases-page .page-header,
  .v3-tasks-page .header,
  .v3-login-page .login-container {
    border-radius: 32px !important;
    box-shadow: var(--v3-shadow-card) !important;
  }

  .v3-hero-card {
    background:
      radial-gradient(circle at 90% 12%, rgba(70, 215, 174, 0.20), transparent 30%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(234, 252, 246, 0.76)) !important;
  }

  .v3-tool-studio {
    padding: 18px;
    border-radius: 30px;
  }

  .v3-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .v3-tool-card {
    min-height: 126px;
    padding: 14px;
    border-radius: 24px;
  }

  .v3-tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .v3-section-head.compact {
    align-items: center;
  }

  .v3-standard-page .quick-workspace,
  .v3-standard-page .v3-quick-workspace,
  .v3-onclick-page .workspace,
  .v3-pro-page .pro-workspace {
    grid-template-columns: 1fr !important;
  }

  .v3-cases-page .cases-grid,
  .v3-tasks-page .tasks-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  .v3-hero-copy h1,
  .v3-standard-hero .page-title,
  .v3-onclick-page .page-title,
  .v3-cases-page .page-title,
  .v3-tasks-page .header h1 {
    font-size: 34px !important;
    letter-spacing: -0.06em !important;
  }

  .v3-tool-card strong { font-size: 15px; }
  .v3-tool-card small { font-size: 11px; }
  .v3-mobile-nav { left: 10px !important; right: 10px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Batch H: exact mobile app reference pass. UI-only.
   Reference: mint glass iOS dashboard with hero carousel, quick cards,
   progress card, utility grid and recent works list.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --v3-ref-bg: #F5FAF8;
  --v3-ref-mint: #16A67D;
  --v3-ref-mint-2: #2EC9A0;
  --v3-ref-mint-soft: #DDF8EF;
  --v3-ref-text: #101827;
  --v3-ref-muted: #697886;
  --v3-ref-card: rgba(255, 255, 255, 0.82);
  --v3-ref-border: rgba(255, 255, 255, 0.96);
  --v3-ref-shadow: 0 18px 44px rgba(31, 75, 64, 0.10);
}

body.v3-home-page,
body.v3-standard-page,
body.v3-onclick-page,
body.v3-cases-page,
body.v3-tasks-page,
body.v3-pro-page,
body.v3-login-page {
  --v3-primary: var(--v3-ref-mint);
  --v3-primary-2: var(--v3-ref-mint-2);
  --v3-primary-soft: var(--v3-ref-mint-soft);
  --v3-text: var(--v3-ref-text);
  --v3-text-secondary: var(--v3-ref-muted);
  background:
    radial-gradient(circle at 12% 8%, rgba(204, 249, 235, 0.95), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(219, 243, 255, 0.88), transparent 36%),
    linear-gradient(180deg, #FBFEFD 0%, #F4FBF8 46%, #EEF8F4 100%) !important;
}

.v3-home-page .v3-main-content {
  max-width: 100% !important;
}

.v3-mobile-replica-shell {
  max-width: 980px;
  margin: 0 auto;
}

.v3-replica-hero,
.v3-progress-card,
.v3-recent-card,
.v3-replica-section {
  position: relative;
  border-radius: 30px;
  background: var(--v3-ref-card);
  border: 1px solid var(--v3-ref-border);
  box-shadow: var(--v3-ref-shadow);
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
}

.v3-replica-hero {
  min-height: 300px;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 44%, rgba(255, 255, 255, 0.92), transparent 18%),
    radial-gradient(circle at 82% 38%, rgba(88, 210, 186, 0.25), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(225, 249, 242, 0.82)) !important;
}

.v3-replica-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 32px;
  width: 360px;
  height: 220px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 60% 45%, rgba(255,255,255,0.96), transparent 18%),
    conic-gradient(from 130deg, rgba(28, 168, 130, 0.06), rgba(28, 168, 130, 0.38), rgba(255,255,255,0.74), rgba(28, 168, 130, 0.10));
  filter: blur(0.3px);
  opacity: 0.86;
  transform: rotate(-13deg);
}

.v3-hero-glass-art {
  position: absolute;
  right: 34px;
  top: 58px;
  width: 260px;
  height: 170px;
  pointer-events: none;
  z-index: 1;
}

.v3-hero-glass-art span {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.85);
  background: linear-gradient(135deg, rgba(255,255,255,0.66), rgba(41, 181, 145, 0.18));
  box-shadow: inset 0 0 24px rgba(255,255,255,0.52), 0 18px 38px rgba(25, 122, 99, 0.12);
  transform: rotate(-18deg);
}

.v3-hero-glass-art span:nth-child(1) { width: 190px; height: 72px; right: 0; top: 50px; border-radius: 60px 60px 28px 28px; }
.v3-hero-glass-art span:nth-child(2) { width: 148px; height: 54px; right: 48px; top: 12px; border-radius: 999px; opacity: 0.72; }
.v3-hero-glass-art span:nth-child(3) { width: 96px; height: 96px; right: 86px; top: 58px; border-radius: 50%; opacity: 0.56; }

.v3-platform-cloud {
  position: absolute;
  right: 26px;
  top: 24px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px;
  pointer-events: none;
}

.v3-platform-logo {
  min-width: 66px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 30px rgba(15,23,42,0.14), inset 0 1px 0 rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.68);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.v3-platform-meituan { background: linear-gradient(135deg, #FFD43B, #FF9F1C); color: #3f2a00; }
.v3-platform-shop { background: linear-gradient(135deg, #10B981, #047857); }
.v3-platform-rednote { background: linear-gradient(135deg, #FF2442, #E11D48); }
.v3-platform-douyin { background: linear-gradient(135deg, #111827, #0F172A); }

.v3-replica-hero .v3-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.v3-replica-hero .v3-eyebrow {
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--v3-ref-mint) !important;
  background: rgba(221, 248, 239, 0.82) !important;
  border: 1px solid rgba(21, 166, 125, 0.13) !important;
  font-size: 13px;
  font-weight: 900;
}

.v3-replica-hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(42px, 8vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.075em;
  color: var(--v3-ref-text) !important;
  font-weight: 950;
}

.v3-replica-hero h1 em {
  font-style: normal;
  color: var(--v3-ref-mint);
}

.v3-replica-hero p {
  max-width: 470px;
  color: var(--v3-ref-muted) !important;
  font-size: 15px;
  line-height: 1.75;
}

.v3-hero-tags {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.v3-hero-tags span {
  position: relative;
  padding-left: 20px;
  color: #3D655B;
  font-size: 13px;
  font-weight: 800;
}

.v3-hero-tags span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(22, 166, 125, 0.12);
  border: 4px solid var(--v3-ref-mint);
  transform: translateY(-50%);
}

.v3-replica-section,
.v3-progress-card,
.v3-recent-card {
  margin-top: 24px;
  padding: 24px;
}

.v3-replica-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.v3-replica-head h2 {
  margin: 0;
  color: var(--v3-ref-text) !important;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.v3-replica-head a,
.v3-replica-head button {
  appearance: none;
  border: 0;
  background: transparent !important;
  color: var(--v3-ref-muted) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  min-height: auto;
  padding: 0;
  box-shadow: none !important;
  cursor: pointer;
}

.v3-start-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.v3-start-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(231, 244, 240, 0.96);
  box-shadow: 0 14px 32px rgba(38, 82, 72, 0.07);
  color: var(--v3-ref-text) !important;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
}

.v3-start-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: var(--v3-ref-mint);
  background: linear-gradient(145deg, #E4FFF7, #FFFFFF);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.86), 0 12px 28px rgba(22,166,125,0.12);
}

.v3-start-icon svg { width: 32px; height: 32px; }
.v3-start-card strong { font-size: 17px; font-weight: 950; letter-spacing: -0.04em; }
.v3-start-card small { color: var(--v3-ref-muted) !important; font-size: 12px; line-height: 1.45; }
.v3-start-card b { margin-top: auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--v3-ref-mint), var(--v3-ref-mint-2)); color: white; box-shadow: 0 10px 20px rgba(22,166,125,0.22); }

.v3-start-card-recommended {
  border-color: rgba(245, 158, 11, 0.26) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,251,235,0.72)) !important;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.12), 0 12px 26px rgba(31,75,64,0.06) !important;
}

.v3-recommend-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24);
}

.v3-progress-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
}

.v3-progress-thumb,
.v3-recent-thumb {
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.10), rgba(17,24,39,0.00)),
    linear-gradient(135deg, #1F2A20, #A04421 48%, #F4BD61);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
  color: #FFF5D6;
  overflow: hidden;
}

.v3-progress-thumb {
  aspect-ratio: 16 / 9;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.v3-progress-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.45));
  pointer-events: none;
}

.v3-progress-thumb span,
.v3-progress-thumb strong {
  position: relative;
  z-index: 1;
}

.v3-progress-thumb span { font-size: 13px; opacity: 0.9; }
.v3-progress-thumb strong { font-size: 24px; line-height: 1.06; letter-spacing: -0.04em; }
.v3-progress-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.v3-progress-title-row > strong { display: block; font-size: 18px; color: var(--v3-ref-text); }
.v3-progress-percent { flex: 0 0 auto; min-width: 58px; padding: 7px 10px; border-radius: 999px; background: #E8FFF7; color: var(--v3-ref-mint); font-size: 13px; font-weight: 950; text-align: center; }
.v3-progress-card.is-running .v3-progress-percent { animation: v3PulseMint 1.4s ease-in-out infinite; }
.v3-progress-card.is-running .v3-progress-thumb::before { content: ""; position: absolute; top: 12px; right: 12px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.60); border-top-color: #fff; animation: v3Spin 0.8s linear infinite; }
.v3-progress-info > small { display: block; color: var(--v3-ref-muted); margin-bottom: 18px; }
.v3-progress-line { height: 8px; border-radius: 999px; background: #E7F1EE; overflow: hidden; }
.v3-progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--v3-ref-mint), var(--v3-ref-mint-2)); transition: width 0.35s ease; }
.v3-progress-card.is-running .v3-progress-line span { background-size: 160% 100%; animation: v3ProgressShimmer 1.4s linear infinite; }
.v3-progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; color: #A0A9B2; font-size: 12px; }
.v3-progress-steps span { position: relative; padding-top: 20px; text-align: center; }
.v3-progress-steps span::before { content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #E5ECEA; transform: translateX(-50%); }
.v3-progress-steps .done::before { background: var(--v3-ref-mint); box-shadow: 0 0 0 5px rgba(22,166,125,0.12); }
.v3-progress-steps .active { color: var(--v3-ref-text); font-weight: 900; }
.v3-progress-steps .active::before { background: linear-gradient(135deg, var(--v3-ref-mint), #FFFFFF); box-shadow: 0 0 0 6px rgba(22,166,125,0.16); animation: v3PulseMint 1.4s ease-in-out infinite; }
@keyframes v3Spin { to { transform: rotate(360deg); } }
@keyframes v3PulseMint { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,166,125,0.18); } 50% { box-shadow: 0 0 0 7px rgba(22,166,125,0.08); } }
@keyframes v3ProgressShimmer { 0% { background-position: 0 0; } 100% { background-position: 160% 0; } }

.v3-utility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.v3-utility-grid button {
  min-height: 88px;
  border-radius: 20px !important;
  padding: 14px 12px !important;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  text-align: left;
  background: rgba(255,255,255,0.82) !important;
  border: 1px solid rgba(231,244,240,0.96) !important;
  box-shadow: 0 12px 26px rgba(38,82,72,0.055) !important;
  color: var(--v3-ref-text) !important;
  cursor: pointer;
}

.v3-utility-grid button span { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--v3-ref-mint); background: #EEFFF9; font-weight: 950; }
.v3-utility-grid button strong { font-size: 14px; }
.v3-utility-grid button small { color: var(--v3-ref-muted); font-size: 11px; }

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

.v3-recent-item {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(231,244,240,0.96);
  color: var(--v3-ref-text) !important;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.v3-recent-item:hover {
  border-color: rgba(22,166,125,0.22);
  box-shadow: 0 12px 26px rgba(31,75,64,0.08);
  background: rgba(255,255,255,0.94);
}

.v3-recent-thumb { width: 118px; aspect-ratio: 16 / 9; }
.v3-recent-item strong { display: block; font-size: 15px; margin-bottom: 7px; }
.v3-recent-item small { color: var(--v3-ref-muted); }
.v3-recent-item > span { font-size: 24px; color: var(--v3-ref-muted); }

.v3-cases-page .filter-bar {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(231, 244, 240, 0.96) !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 34px rgba(31,75,64,0.075) !important;
}

.v3-cases-page .filter-label { color: var(--v3-ref-text) !important; }
.v3-cases-page .filter-btn { background: rgba(244, 251, 248, 0.92) !important; color: #60766F !important; border-color: rgba(22,166,125,0.10) !important; }
.v3-cases-page .filter-btn.active { background: var(--v3-ref-mint-soft) !important; color: var(--v3-ref-mint) !important; border-color: rgba(22,166,125,0.20) !important; box-shadow: none !important; }
.v3-cases-page .search-box { background: rgba(255,255,255,0.92) !important; border-color: rgba(231,244,240,0.96) !important; border-radius: 999px !important; }
.v3-cases-page .case-card { background: rgba(255,255,255,0.86) !important; border-color: rgba(231,244,240,0.96) !important; box-shadow: 0 16px 34px rgba(31,75,64,0.08) !important; }
.v3-cases-page .case-card-title { color: var(--v3-ref-text) !important; }
.v3-section-dot { width: 10px; height: 10px; display: inline-flex; border-radius: 50%; background: var(--v3-ref-mint); box-shadow: 0 0 0 5px rgba(22,166,125,0.12); }
.v3-case-mark { width: 52px; height: 52px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(22,166,125,0.28)); border: 1px solid rgba(255,255,255,0.75); box-shadow: inset 0 0 18px rgba(255,255,255,0.55); }
.v3-cases-page .page-header { background: rgba(255,255,255,0.70) !important; border: 1px solid rgba(255,255,255,0.96) !important; box-shadow: var(--v3-ref-shadow) !important; }

.v3-first-guide-overlay,
.v3-admin-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
}

.v3-first-guide-overlay.show,
.v3-admin-contact-overlay.show { display: flex; }

.v3-first-guide-panel,
.v3-admin-contact-panel {
  position: relative;
  width: min(560px, 100%);
  border-radius: 30px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,253,248,0.94));
  border: 1px solid rgba(255,255,255,0.94);
  box-shadow: 0 32px 90px rgba(15,23,42,0.26);
  color: var(--v3-ref-text);
}

.v3-admin-contact-panel { width: min(420px, 100%); text-align: center; }

.v3-first-guide-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px !important;
  border: 1px solid rgba(148,163,184,0.22) !important;
  background: rgba(255,255,255,0.78) !important;
  color: #64748b !important;
  box-shadow: none !important;
  cursor: pointer;
}

.v3-guide-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(14,159,118,0.10);
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.v3-first-guide-head h2,
.v3-admin-contact-panel h2 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.05em;
  color: var(--v3-ref-text);
}

.v3-first-guide-head p,
.v3-admin-contact-panel p {
  margin: 0;
  color: var(--v3-ref-muted);
  font-size: 14px;
  line-height: 1.7;
}

.v3-first-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.v3-first-guide-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 136px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(226,232,240,0.86);
  color: var(--v3-ref-text) !important;
  text-decoration: none;
  cursor: pointer;
}

.v3-first-guide-step span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--v3-ref-mint), var(--v3-ref-mint-2));
  color: #fff;
  font-weight: 950;
}

.v3-first-guide-step strong { font-size: 14px; font-weight: 950; }
.v3-first-guide-step small { color: var(--v3-ref-muted); line-height: 1.45; }

.v3-first-guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.v3-guide-primary,
.v3-guide-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px !important;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.v3-guide-primary {
  border: 0 !important;
  background: linear-gradient(135deg, var(--v3-ref-mint), var(--v3-ref-mint-2)) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(14,159,118,0.20) !important;
}

.v3-guide-secondary {
  border: 1px solid rgba(148,163,184,0.28) !important;
  background: rgba(255,255,255,0.72) !important;
  color: #64748b !important;
  box-shadow: none !important;
}

.v3-admin-wechat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  min-width: 160px;
  height: 48px;
  border-radius: 999px;
  background: rgba(14,159,118,0.10);
  color: #047857;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.v3-admin-contact-panel small { display: block; margin-top: 12px; color: var(--v3-ref-muted); line-height: 1.55; }

@media (max-width: 768px) {
  .v3-mobile-replica-shell { padding: 12px 14px 92px !important; }
  .v3-home-page .v3-home-topbar { display: flex !important; background: transparent !important; box-shadow: none !important; border: 0 !important; margin: 4px 16px 8px !important; padding: 0 !important; min-height: 58px !important; }
  .v3-home-page .v3-mobile-brand .v3-icon-mark { width: 44px; height: 44px; border-radius: 16px; }
  .v3-home-page .v3-mobile-brand strong { font-size: 15px; }
  .v3-home-page .v3-mobile-brand span { font-size: 11px; }
  .v3-home-page #quota-badge { display: inline-flex !important; align-items: center !important; gap: 6px !important; padding: 7px 8px 7px 11px !important; border-radius: 999px !important; background: rgba(255,255,255,0.86) !important; box-shadow: 0 10px 24px rgba(31,75,64,0.08) !important; }
  .v3-home-page .v3-quota-recharge-btn { height: 24px; padding: 0 9px; font-size: 11px; line-height: 24px; }
  .v3-home-page .v3-quota-help-mini { display: none; }
  .v3-ref-avatar { display: none; }

  .v3-platform-cloud { right: 18px; top: 18px; gap: 7px; grid-template-columns: repeat(2, max-content); transform: scale(0.86); transform-origin: top right; }
  .v3-platform-logo { min-width: 56px; height: 28px; padding: 0 9px; font-size: 11px; }

  .v3-replica-hero { min-height: 286px; padding: 24px; border-radius: 28px; }
  .v3-replica-hero::after { width: 250px; height: 160px; right: -72px; top: 64px; opacity: 0.74; }
  .v3-hero-glass-art { width: 170px; height: 120px; right: -18px; top: 95px; opacity: 0.82; }
  .v3-replica-hero h1 { font-size: 35px !important; line-height: 1.04 !important; margin-top: 18px; max-width: 260px; }
  .v3-replica-hero p { font-size: 13px; max-width: 260px; }
  .v3-hero-tags { gap: 9px; margin-top: 16px; max-width: 270px; }
  .v3-hero-tags span { font-size: 11px; padding-left: 16px; }

  .v3-first-guide-overlay,
  .v3-admin-contact-overlay { align-items: flex-end; padding: 12px; }
  .v3-first-guide-panel,
  .v3-admin-contact-panel { border-radius: 28px; padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .v3-first-guide-head h2,
  .v3-admin-contact-panel h2 { font-size: 24px; }
  .v3-first-guide-steps { grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
  .v3-first-guide-step { min-height: auto; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 13px; }
  .v3-first-guide-step span { grid-row: 1 / 3; }
  .v3-first-guide-actions { display: grid; grid-template-columns: 1fr; }
  .v3-guide-primary,
  .v3-guide-secondary { width: 100%; }

  .v3-replica-section, .v3-progress-card, .v3-recent-card { margin-top: 18px; padding: 18px; border-radius: 26px; }
  .v3-start-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
  .v3-start-card { min-height: 164px; padding: 16px 10px 14px; border-radius: 18px; }
  .v3-start-icon { width: 52px; height: 52px; border-radius: 18px; }
  .v3-start-icon svg { width: 28px; height: 28px; }
  .v3-start-card strong { font-size: 14px; }
  .v3-start-card small { font-size: 10px; }
  .v3-start-card b { width: 28px; height: 28px; }

  .v3-progress-body { grid-template-columns: 120px 1fr; gap: 12px; }
  .v3-progress-thumb { border-radius: 16px; padding: 10px; }
  .v3-progress-thumb strong { font-size: 17px; }
  .v3-progress-thumb span { font-size: 10px; }
  .v3-progress-info > strong { font-size: 14px; }
  .v3-progress-info > small { font-size: 11px; margin-bottom: 12px; }
  .v3-progress-steps { font-size: 10px; gap: 2px; }

  .v3-utility-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .v3-utility-grid button { min-height: 86px; grid-template-columns: 1fr; grid-template-rows: auto auto auto; text-align: center; justify-items: center; gap: 4px; padding: 12px 6px !important; border-radius: 18px !important; }
  .v3-utility-grid button span { grid-row: auto; width: 32px; height: 32px; }
  .v3-utility-grid button strong { font-size: 12px; }
  .v3-utility-grid button small { font-size: 10px; }

  .v3-recent-list { gap: 9px; }
  .v3-recent-item { grid-template-columns: 82px 1fr auto; gap: 10px; border-radius: 18px; }
  .v3-recent-thumb { width: 82px; }
  .v3-recent-item strong { font-size: 13px; }
  .v3-recent-item small { font-size: 11px; }
  .v3-progress-title-row { align-items: center; }
  .v3-progress-percent { min-width: 52px; padding: 6px 9px; font-size: 12px; }

  .v3-cases-page .content-area { padding-top: 6px !important; }
  .v3-cases-page .filter-bar { margin-bottom: 12px !important; padding: 14px !important; }
  .v3-cases-page .filter-group { gap: 7px !important; }
  .v3-cases-page .filter-btn { padding: 7px 12px !important; font-size: 12px !important; }
}

@media (max-width: 430px) {
  .v3-home-page .v3-main-content { padding-bottom: 0 !important; }
  .v3-mobile-replica-shell { padding-left: 14px !important; padding-right: 14px !important; }
  .v3-replica-head h2 { font-size: 18px; }
  .v3-start-grid { gap: 8px; }
  .v3-start-card { min-height: 158px; }
  .v3-start-card small { line-height: 1.35; }
  .v3-progress-body { grid-template-columns: 112px 1fr; }
}

@media (max-width: 380px) {
  .v3-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-start-card { min-height: 138px; }
  .v3-utility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-progress-body { grid-template-columns: 1fr; }
}

/* ─── 智能快速生成 V2 弹窗样式 ─── */
.smart-quick-steps { min-height: 200px; }
.smart-quick-step { animation: sqv2FadeIn 0.3s ease; }
@keyframes sqv2FadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.smart-quick-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--v3-text-primary);
  font-size: 14px;
}
.smart-quick-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--v3-border-soft);
  border-radius: var(--v3-radius-md);
  font-size: 15px;
  color: var(--v3-text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.smart-quick-input:focus {
  border-color: rgba(18,185,129,0.55);
  box-shadow: 0 0 0 4px rgba(18,185,129,0.10);
}
.smart-quick-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--v3-text-secondary);
}
.smart-quick-progress {
  text-align: center;
  font-size: 13px;
  color: var(--v3-text-secondary);
  margin: 10px 0;
  font-weight: 600;
}
.smart-quick-result-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,253,248,0.94));
  border: 1px solid rgba(255,255,255,0.94);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.07);
}
.smart-quick-template-preview img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.smart-quick-match-info {
  margin-top: 10px;
  font-size: 14px;
  color: var(--v3-text-primary);
}
.smart-quick-plan-summary {
  margin-top: 10px;
  font-size: 13px;
  color: var(--v3-text-secondary);
  line-height: 1.6;
}

/* v8.5: 内嵌模板推荐卡片 */
.smart-quick-rec-card {
  position: relative;
  background: linear-gradient(135deg, rgba(14,159,118,0.06), rgba(14,159,118,0.02));
  border: 1px solid rgba(14,159,118,0.18);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  animation: sqv2RecFadeIn 0.35s ease;
}
@keyframes sqv2RecFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.smart-quick-rec-dismiss {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--v3-text-muted);
  font-size: 18px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.smart-quick-rec-dismiss:hover {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
}
.smart-quick-rec-thumb {
  flex: 0 0 100px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--v3-bg-tertiary);
}
.smart-quick-rec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.smart-quick-rec-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--v3-text-primary);
  margin-bottom: 3px;
}
.smart-quick-rec-meta {
  font-size: 12px;
  color: var(--v3-primary);
  margin-bottom: 4px;
}
.smart-quick-rec-hint {
  font-size: 11px;
  color: var(--v3-text-muted);
  line-height: 1.4;
}

/* ─── v8.6: 生成结果 & 编辑面板 ─── */
.smart-quick-spinner {
  width: 40px; height: 40px;
  margin: 0 auto;
  border: 3px solid rgba(148,163,184,0.2);
  border-top-color: var(--v3-primary, #f97316);
  border-radius: 50%;
  animation: sqv2-spin 0.8s linear infinite;
}
@keyframes sqv2-spin { to { transform: rotate(360deg); } }

.smart-quick-suggestion-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  background: rgba(148,163,184,0.1);
  color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.15);
  transition: all 0.2s;
  user-select: none;
}
.smart-quick-suggestion-chip:hover {
  background: rgba(249,115,22,0.15);
  color: var(--v3-primary, #f97316);
  border-color: rgba(249,115,22,0.3);
}
.smart-quick-suggestion-chip.active {
  background: rgba(249,115,22,0.2);
  color: var(--v3-primary, #f97316);
  border-color: rgba(249,115,22,0.4);
}

#sqv2-edit-prompt {
  min-height: 60px;
  resize: vertical;
}

#sqv2-result-img {
  min-height: 120px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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