/* ============================================
   ImgForge - Minimalist Design System
   ============================================ */

/* Design Tokens */
:root {
  /* 颜色 - Surface */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-muted: #fafafa;
  --color-brand-subtle: #f4f4f5;

  /* 颜色 - Text */
  --color-text: #18181b;
  --color-text-muted: #71717a;

  /* 颜色 - Primary (深色按钮) */
  --color-primary: #18181b;
  --color-primary-foreground: #fafafa;

  /* 颜色 - Brand (蓝色品牌色) */
  --color-brand: #2563eb;
  --color-brand-hover: #1d4ed8;

  /* 颜色 - Border */
  --color-border: #e4e4e7;
  --color-border-strong: #d4d4d8;

  /* 颜色 - Status */
  --color-danger-600: #dc2626;
  --color-danger-50: #fef2f2;
  --color-success-600: #16a34a;
  --color-success-50: #f0fdf4;
  --color-warning-600: #f59e0b;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 20px -6px rgba(0, 0, 0, 0.08);

  /* 过渡 */
  --transition: 150ms ease;

  /* 字号 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', monospace;

  /* 布局 */
  --navbar-height: 60px;

  /* 断点(供JS读取,媒体查询中仍使用px) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

.dark {
  --color-bg: #18181b;
  --color-surface: #18181b;
  --color-surface-muted: #27272a;
  --color-text: #fafafa;
  --color-text-muted: #a1a1aa;
  --color-primary: #fafafa;
  --color-primary-foreground: #18181b;
  --color-border: #3f3f46;
  --color-border-strong: #52525b;
  --color-brand-subtle: #27272a;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 20px -6px rgba(0, 0, 0, 0.5);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-surface);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--color-text);
  line-height: 1.7;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-text-muted);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-brand-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6);
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-6);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar-logo span {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.875rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.navbar-link > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-link svg {
  display: block;
  width: 16px;
  height: 16px;
}

.navbar-link:hover {
  color: var(--color-text);
  background-color: var(--color-brand-subtle);
}

.navbar-link.active {
  color: var(--color-text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 1.1rem;
  transition: background-color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  background-color: var(--color-brand-subtle);
  border-color: var(--color-border-strong);
}

/* ============================================
   Sidebar Layout (T0.3) - Left 220px fixed nav
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-logo span {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.75rem;
  display: block;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-3) var(--space-2);
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-3) var(--space-3) 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.sidebar-link:hover {
  background: var(--color-brand-subtle);
  color: var(--color-text);
}

.sidebar-link.active {
  background: var(--color-brand-subtle);
  color: var(--color-text);
  font-weight: 600;
}

.sidebar-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-footer-user {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-content {
  margin-left: 220px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: 56px;
  position: sticky;
  top: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: var(--color-brand-subtle);
  border-color: var(--color-border-strong);
}

/* Public topbar: logo + nav links + auth buttons (unauthed layout) */
.topbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  white-space: nowrap;
}

.topbar-logo span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.topbar-nav-link:hover {
  color: var(--color-brand);
}

.topbar-nav-link.active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.topbar-auth-buttons {
  gap: var(--space-3);
}

.topbar-menu-toggle {
  display: none;
}

/* Public layout: hide sidebar (topbar carries nav) */
.sidebar.is-hidden-public {
  display: none;
}

.main-content.no-sidebar {
  margin-left: 0;
}

/* Page content (sidebar layout) */
.page-content {
  flex: 1;
  padding: var(--space-6);
  min-height: calc(100vh - 56px);
}

/* Mobile: sidebar collapses into off-canvas drawer */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .sidebar-toggle {
    display: flex;
  }
  .page-content {
    padding: var(--space-4);
  }
  /* Public topbar: nav collapses into dropdown drawer */
  .topbar-menu-toggle {
    display: flex;
  }
  .topbar-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    gap: var(--space-2);
    transform: translateY(-100%);
    transition: transform var(--transition);
    z-index: 99;
    pointer-events: none;
  }
  .topbar-nav.open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .topbar-nav-link {
    padding: var(--space-3) var(--space-2);
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .topbar-nav-link.active {
    border-bottom-color: transparent;
    border-left-color: var(--color-brand);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-brand-subtle);
}

.btn-secondary:active:not(:disabled) {
  background-color: var(--color-border);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--color-brand-subtle);
}

.btn-ghost:active:not(:disabled) {
  background-color: var(--color-border);
}

.btn-danger {
  background-color: var(--color-danger-600);
  color: #ffffff; /* token: special - danger 背景上的白色文字 */
  border-color: var(--color-danger-600);
}

.btn-danger:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-danger:active:not(:disabled) {
  transform: translateY(1px);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card-hover:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.card-header {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.card-body {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-text-muted);
  box-shadow: 0 0 0 3px var(--color-brand-subtle);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-error {
  color: var(--color-danger-600);
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1.2em;
}

.form-hint {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.tab {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.tab:hover {
  color: var(--color-text);
}

.tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px var(--space-6) 60px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Features */
.features-section {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-brand-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

/* How It Works */
.how-it-works {
  padding: 60px 0;
  background-color: var(--color-surface-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: 40px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Pricing */
.pricing-section {
  padding: 60px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.highlighted {
  border-color: var(--color-primary);
  border-width: 2px;
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  margin: var(--space-6) 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: var(--space-2) 0;
  font-size: 0.9rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--color-success-600);
  font-weight: 700;
}

.pricing-features li.disabled {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.pricing-features li.disabled::before {
  content: '\2715';
  color: var(--color-text-muted);
}

/* Pricing Teaser (landing page summary) */
.pricing-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-teaser-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-teaser-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-teaser-card.featured {
  border-color: var(--color-primary);
  border-width: 2px;
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.pricing-teaser-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-teaser-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-teaser-price-wrap {
  margin-bottom: var(--space-4);
}

.pricing-teaser-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-teaser-price-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-teaser-features {
  list-style: none;
  margin: 0 0 var(--space-5) 0;
  padding: 0;
  flex-grow: 1;
}

.pricing-teaser-features li {
  padding: var(--space-1) 0;
  font-size: 0.875rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pricing-teaser-features li::before {
  content: '\2713';
  color: var(--color-success-600);
  font-weight: 700;
  flex-shrink: 0;
}

/* Pricing Teaser responsive — align with .pricing-grid breakpoints */
@media (max-width: 768px) {
  .pricing-teaser-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .pricing-teaser-card.featured {
    transform: none;
  }
  .pricing-teaser-card {
    padding: var(--space-5);
  }
  .pricing-teaser-price {
    font-size: 1.75rem;
  }
}

/* FAQ */
.faq-section {
  padding: 60px 0;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  text-align: left;
  font-family: var(--font-sans);
}

.faq-answer {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* Generation Layout */
.generate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.generate-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.result-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.result-preview {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-md);
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.result-preview img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.result-empty {
  text-align: center;
  color: var(--color-text-muted);
}

.result-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

.result-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.result-thumbnails {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-1);
}

.result-thumbnail {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background-color: var(--color-surface-muted);
}

.result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-thumbnail.active {
  border-color: var(--color-primary);
}

/* Template Grid */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.template-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.template-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.template-preview {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-text-muted);
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* 仅文字占位符（无图片时）保持半透明 */
.template-preview:not(:has(img)) {
  opacity: 0.4;
}

.template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-info {
  padding: var(--space-3);
}

.template-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.template-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Template Variables Panel */
.template-variables-panel {
  border: 2px solid var(--color-brand, #2563eb);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  padding: var(--space-4);
  margin-top: var(--space-4);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.template-variables-panel.hidden {
  display: none;
}

.template-variables-panel.animate-in {
  animation: var-panel-appear 0.4s ease-out;
}

@keyframes var-panel-appear {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.template-variables-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.template-variables-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-brand, #2563eb);
  flex-shrink: 0;
}

.premium-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* token: special - 半透明黑色背景上的白色文字 */
  font-size: 1.5rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background-color: var(--color-surface-muted);
}

.gallery-item-info {
  padding: var(--space-3);
}

.gallery-item-prompt {
  font-size: 0.8rem;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: var(--space-1);
}

.gallery-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.size-badge {
  background-color: var(--color-brand-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.gallery-item-delete {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff; /* token: special - 半透明黑色背景上的白色文字 */
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-delete {
  opacity: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px var(--space-6);
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.2;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.empty-state p {
  margin-bottom: var(--space-6);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: fadeIn 150ms ease;
}

.modal {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  gap: var(--space-3);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) 20px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastSlideIn 300ms ease;
}

.toast.removing {
  animation: toastSlideOut 300ms ease forwards;
}

.toast-success {
  border-left: 4px solid var(--color-success-600);
}

.toast-error {
  border-left: 4px solid var(--color-danger-600);
}

.toast-info {
  border-left: 4px solid var(--color-text-muted);
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  border-radius: var(--radius-md);
  opacity: 0.8;
}

.spinner-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Upload progress indicator */
.upload-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
}

.upload-elapsed {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-brand);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-brand-subtle) 25%,
    var(--color-border) 50%,
    var(--color-brand-subtle) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 1;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-brand-subtle);
  color: var(--color-text-muted);
}

.badge-success {
  background-color: var(--color-success-50);
  color: var(--color-success-600);
}

.badge-danger {
  background-color: var(--color-danger-50);
  color: var(--color-danger-600);
}

/* Auth Pages */
.auth-container {
  max-width: 420px;
  margin: 60px auto;
  padding: var(--space-6);
}

.auth-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.auth-footer a {
  font-weight: 600;
  color: var(--color-text);
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.stat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.usage-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-brand-subtle);
  border-radius: var(--radius-full);
  margin-top: var(--space-3);
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 300ms ease;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 60px 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

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

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.hidden { display: none !important; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.flex-1 { flex-grow: 1; }
.relative { position: relative; }
.cursor-pointer { cursor: pointer; }
.opacity-50 { opacity: 0.5; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 60px 16px 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .container {
    padding: var(--space-4);
  }

  .navbar-inner {
    padding: 0 var(--space-4);
  }

  .navbar-links {
    gap: 0;
  }

  .navbar-link {
    padding: var(--space-2) 10px;
    font-size: 0.85rem;
  }

  .navbar-link .link-text {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .pricing-card.highlighted {
    transform: none;
  }

  .generate-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
  }

  .auth-card {
    padding: var(--space-6);
  }

  .cta-section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .navbar-logo span {
    display: none;
  }

  .navbar-link {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card {
    padding: 20px;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .container {
    padding: var(--space-3);
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}

/* ============================================
   Batch Set Styles
   ============================================ */

.badge-info {
  background: #e0e7ff; /* token: special - info badge 浅色背景 */
  color: #4338ca; /* token: special - info badge 深色文字 */
}

.upload-area {
  border: 2px dashed var(--color-border);
  border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
  position: relative;
}

.upload-area:hover {
  border-color: var(--color-brand);
  background-color: var(--color-brand-subtle);
}

.upload-area.drag-over {
  border-color: var(--color-brand);
  background-color: var(--color-brand-subtle);
}

.upload-area.uploading {
  pointer-events: none;
  opacity: 0.6;
  cursor: wait;
}

.upload-placeholder {
  pointer-events: none;
}

.upload-icon {
  font-size: 2rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.upload-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  object-fit: cover;
}

.batch-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============ V2-FIX: 套图模式预设 + 光源 + 平台 ============ */
.set-mode-presets,
.light-direction-picker,
.platform-preset-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.set-preset-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
}
.set-preset-btn .set-preset-desc {
  font-size: 0.72rem;
  opacity: 0.65;
  font-weight: 400;
}
.set-preset-btn.active {
  border-color: var(--color-primary, #4f46e5);
  background: var(--color-primary-50, #eef2ff);
  color: var(--color-primary, #4f46e5);
  font-weight: 600;
}

.light-dir-btn,
.platform-preset-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-bg-card, #fff);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.light-dir-btn.active,
.platform-preset-btn.active {
  border-color: var(--color-primary, #4f46e5);
  background: var(--color-primary-50, #eef2ff);
  color: var(--color-primary, #4f46e5);
  font-weight: 600;
}

/* V5-FIX (2026-08-06): 外观保真度选择器 */
.fidelity-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-bg-card, #fff);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fidelity-btn .fidelity-desc {
  font-size: 0.72rem;
  color: var(--color-text-muted, #64748b);
}
.fidelity-btn.active {
  border-color: var(--color-primary, #4f46e5);
  background: var(--color-primary-50, #eef2ff);
  color: var(--color-primary, #4f46e5);
  font-weight: 600;
}
.fidelity-btn.active .fidelity-desc {
  color: var(--color-primary, #4f46e5);
}

/* 套图结果分组展示 */
.batch-set-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
}
.batch-set-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.batch-set-count {
  font-size: 0.85rem;
  color: var(--color-text-muted, #64748b);
}
.batch-set-section {
  margin-bottom: 16px;
}
.batch-set-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* 历史页套图视图 */
.history-view-toggle {
  display: flex;
  gap: 8px;
}
.history-view-btn.active {
  border-color: var(--color-primary, #4f46e5);
  background: var(--color-primary-50, #eef2ff);
  color: var(--color-primary, #4f46e5);
}
.image-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.image-set-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-bg-card, #fff);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.image-set-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.image-set-cover {
  position: relative;
  aspect-ratio: 1;
  background: #f8fafc;
}
.image-set-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-set-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}
.image-set-info {
  padding: 10px 12px;
}
.image-set-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-set-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.image-set-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border, #e2e8f0);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--color-primary, #4f46e5);
  transition: width 0.3s ease;
}

/* 套图详情模态框 */
.image-set-detail-modal {
  max-width: 900px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
}
.image-set-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.image-set-detail-header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.image-set-detail-stats {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.image-set-detail-content {
  padding: 0 20px 16px;
}
.image-set-detail-group {
  margin-bottom: 20px;
}
.image-set-detail-label {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.image-set-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.image-set-detail-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-bg-card, #fff);
}
.image-set-detail-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f8fafc;
}
.image-set-detail-name {
  font-size: 0.78rem;
  padding: 6px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-set-detail-meta {
  padding: 0 8px 8px;
}
.image-set-detail-modal .modal-footer {
  position: sticky;
  bottom: 0;
  background: var(--color-bg-card, #fff);
  border-top: 1px solid var(--color-border, #e2e8f0);
  padding: 12px 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.batch-progress-list {
  margin-top: var(--space-3);
}

.batch-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.batch-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.batch-result-card {
  border: 1px solid var(--color-border);
  border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--transition);
}

.batch-result-card:hover {
  box-shadow: var(--shadow-sm);
}

.batch-result-image {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.batch-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.batch-result-placeholder {
  font-size: 2rem;
  color: var(--color-danger-600);
}

.batch-result-info {
  padding: var(--space-2) var(--space-3);
}

.batch-result-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batch-result-meta {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.batch-result-card .batch-download-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  opacity: 0;
  transition: opacity var(--transition);
}

.batch-result-card:hover .batch-download-btn {
  opacity: 1;
}

@media (max-width: 768px) {
  .batch-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
  }

  .batch-categories {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* ============================================
   Cases Page Styles
   ============================================ */
.cases-page { padding: 2rem 0; }
.cases-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
  justify-content: center;
}
.cases-filter {
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cases-filter:hover {
  background: var(--color-brand-subtle);
}
.cases-filter.active {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}
.cases-filter:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.case-card {
  background: var(--color-surface);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer; position: relative;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.case-card-info { padding: var(--space-4); }
.case-card-info h3 { font-size: 1rem; margin-bottom: var(--space-2); }
.case-card-info p { font-size: 0.875rem; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: rgba(0,0,0,0.7); color: #fff; /* token: special - 深色背景上的白色文字 */
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-size: 0.75rem; text-transform: capitalize;
}
.case-featured {
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: var(--color-warning-600); color: #fff; /* token: special - warning 背景上的白色文字 */
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-full);
  font-size: 0.75rem;
}
.case-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 1rem;
  animation: caseFadeIn 0.2s ease;
}
@keyframes caseFadeIn { from { opacity: 0; } to { opacity: 1; } }

.case-lightbox-inner {
  max-width: 1100px; width: 100%; max-height: 92vh;
  background: var(--color-surface); border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3); /* token: special - lightbox 大阴影 */
}

.case-lightbox-close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: rgba(0,0,0,0.6); color: #fff; /* token: special - 半透明黑色背景上的白色文字 */
  border: none; border-radius: 50%; width: 36px; height: 36px;
  font-size: 1.25rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  z-index: 10; transition: background var(--transition);
}
.case-lightbox-close:hover { background: rgba(0,0,0,0.85); }

.case-lightbox-main {
  display: flex; flex-direction: row;
  height: 100%; overflow: hidden;
}

/* Left: Main image viewer */
/* 注: lightbox媒体区使用极深色背景以突出图片,保留硬编码 */
.case-lightbox-media {
  flex: 1 1 60%; min-width: 0; position: relative;
  background: #0a0a0a; display: flex;
  align-items: center; justify-content: center;
  min-height: 300px;
}
.case-lightbox-media img {
  max-width: 100%; max-height: 70vh; object-fit: contain;
  border-radius: 0;
}

.case-lightbox-prev, .case-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; /* token: special - 半透明黑色背景上的白色文字 */
  border: none; border-radius: 50%; width: 44px; height: 44px;
  font-size: 1.75rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background var(--transition); z-index: 5;
}
.case-lightbox-prev { left: var(--space-3); }
.case-lightbox-next { right: var(--space-3); }
.case-lightbox-prev:hover, .case-lightbox-next:hover { background: rgba(0,0,0,0.8); }

.case-lightbox-counter {
  position: absolute; bottom: var(--space-3); left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff; /* token: special - 半透明黑色背景上的白色文字 */
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-size: 0.8rem; white-space: nowrap;
}
.case-lightbox-label {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff; /* token: special - 半透明黑色背景上的白色文字 */
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-size: 0.75rem; white-space: nowrap;
  max-width: 80%; overflow: hidden; text-overflow: ellipsis;
}

/* Right: Info panel with thumbnails */
.case-lightbox-info {
  flex: 0 0 40%; max-width: 420px; min-width: 0;
  padding: 1.5rem; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1rem;
}

.case-lightbox-head {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.case-lightbox-head h3 {
  font-size: 1.25rem; margin: 0; line-height: 1.3;
  color: var(--color-text);
}
.case-lightbox-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.case-lightbox-tags .case-badge {
  position: static; background: var(--color-brand); color: #fff; /* token: special - 品牌色背景上的白色文字 */
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: 0.75rem;
}
.case-lightbox-tags .case-featured-badge {
  position: static; background: var(--color-warning-600); color: #fff; /* token: special - warning 背景上的白色文字 */
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-full); font-size: 0.75rem;
}
.case-lightbox-desc {
  font-size: 0.875rem; color: var(--color-text-muted);
  line-height: 1.5; margin: 0;
}

.case-lightbox-set-info {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}
.case-lightbox-set-count {
  font-size: 0.875rem; font-weight: 600;
  color: var(--color-text);
}

/* Thumbnail grid inside lightbox */
.case-lightbox-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}
.case-lightbox-thumb {
  position: relative; cursor: pointer; border-radius: 8px;
  overflow: hidden; border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.15s;
  aspect-ratio: 1;
}
.case-lightbox-thumb:hover { transform: scale(1.05); }
.case-lightbox-thumb.active { border-color: var(--color-brand); }
.case-lightbox-thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.case-lightbox-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6); color: #fff; /* token: special - 半透明黑色背景上的白色文字 */
  font-size: 0.65rem; padding: 0.15rem 0.25rem;
  text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* CTA section */
.case-lightbox-cta {
  margin-top: auto; padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.case-lightbox-cta p {
  font-size: 0.875rem; color: var(--color-text-muted);
  margin-bottom: var(--space-3); text-align: center;
}

/* Case card enhancements */
.case-card-image {
  position: relative; overflow: hidden;
}
.case-card-image img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.case-card:hover .case-card-image img { transform: scale(1.05); }

.case-card-body { padding: 1rem; }
.case-card-title {
  font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.3;
}
.case-card-desc {
  font-size: 0.875rem; color: var(--color-text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: var(--space-2);
}

.case-card-thumbs {
  display: flex; gap: 0.375rem; margin-bottom: 0.5rem;
}
.case-card-thumb-wrap {
  position: relative; flex: 1; border-radius: 6px; overflow: hidden;
  aspect-ratio: 1;
}
.case-card-thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.case-card-thumb-more {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  color: #fff; /* token: special - 半透明黑色背景上的白色文字 */ display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-sm);
}
.case-card-view-all {
  font-size: 0.8rem; color: var(--color-brand);
  font-weight: 500; display: block;
}

.case-photo-count {
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: rgba(0,0,0,0.7); color: #fff; /* token: special - 半透明黑色背景上的白色文字 */
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.7rem; z-index: 2;
}
.case-featured-badge {
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: var(--color-warning-600); color: #fff; /* token: special - warning 背景上的白色文字 */
  padding: 0.2rem 0.5rem; border-radius: var(--radius-full);
  font-size: 0.7rem; z-index: 2;
}
.case-photo-count + .case-featured-badge {
  top: 2.5rem;
}

/* Mobile: stack lightbox vertically */
@media (max-width: 768px) {
  .case-lightbox-main { flex-direction: column; }
  .case-lightbox-media { flex: 0 0 auto; min-height: 200px; }
  .case-lightbox-media img { max-height: 40vh; }
  .case-lightbox-info { flex: 1; max-width: 100%; }
  .case-lightbox-thumbs { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
}

/* Dark mode - 注: case-lightbox使用专门的暗色配色,保留硬编码因与主暗色token略有差异 */
.dark .case-lightbox-inner { background: #1e1e2e; /* token: special - lightbox 暗色背景 */ }
.dark .case-lightbox-head h3 { color: #e0e0e0; /* token: special - lightbox 暗色标题 */ }
.dark .case-lightbox-desc { color: #a0a0b0; /* token: special - lightbox 暗色描述 */ }
.dark .case-lightbox-set-info,
.dark .case-lightbox-cta { border-color: #3a3a4a; /* token: special - lightbox 暗色边框 */ }
.dark .case-card-view-all { color: #60a5fa; /* token: special - view-all 链接蓝色400 */ }

/* ============================================
   Admin Dashboard Styles
   ============================================ */
.admin-page { padding: 2rem 0; }
.admin-header { margin-bottom: 2rem; }
.admin-tabs {
  display: flex; gap: var(--space-2); margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
}
.admin-tab {
  padding: var(--space-3) var(--space-6); border: none; background: none;
  cursor: pointer; font-size: 0.95rem; color: var(--color-text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.admin-tab:hover { color: var(--color-text); }
.admin-tab-active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}
.admin-toolbar {
  display: flex; gap: 1rem; margin-bottom: 1.5rem;
  align-items: center; flex-wrap: wrap;
}
.admin-search {
  flex: 1; min-width: 200px; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong); border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  font-size: 0.9rem;
}
.admin-case-list { display: flex; flex-direction: column; gap: var(--space-3); }
.admin-case-item {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3); background: var(--color-surface);
  border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */ box-shadow: var(--shadow-sm);
}
.admin-case-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.admin-case-info { flex: 1; }
.admin-case-info h4 { font-size: 0.95rem; margin-bottom: var(--space-1); }
.admin-case-info p { font-size: 0.8rem; color: var(--color-text-muted); }
.admin-case-actions { display: flex; gap: var(--space-2); }
.admin-gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}
.admin-gen-card {
  background: var(--color-surface); border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  overflow: hidden; box-shadow: var(--shadow-sm);
  position: relative;
}
.admin-gen-card img { width: 100%; height: 160px; object-fit: cover; }
.admin-gen-card-info { padding: var(--space-2); }
.admin-gen-card-info p { font-size: 0.75rem; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-gen-publish {
  position: absolute; bottom: var(--space-2); right: var(--space-2);
  background: var(--color-brand); color: #fff; /* token: special - 品牌色背景上的白色文字 */
  border: none; border-radius: var(--radius-sm); padding: 0.4rem 0.8rem;
  font-size: 0.75rem; cursor: pointer;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.admin-stat-card {
  background: var(--color-surface); padding: var(--space-6);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  text-align: center;
}
.admin-stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--color-brand); }
.admin-stat-card .stat-label { font-size: 0.85rem; color: var(--color-text-muted); margin-top: var(--space-1); }
.admin-modal, .publish-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: var(--space-4);
}
.admin-modal-content, .publish-modal-content {
  background: var(--color-surface); border-radius: var(--radius-md);
  padding: 2rem; max-width: 500px; width: 100%; max-height: 90vh;
  overflow-y: auto;
}
.admin-modal-content h3, .publish-modal-content h3 { margin-bottom: var(--space-4); }
.admin-modal-content input,
.admin-modal-content textarea,
.admin-modal-content select,
.publish-modal-content input,
.publish-modal-content textarea,
.publish-modal-content select {
  width: 100%; padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3);
  border: 1px solid var(--color-border-strong); border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  font-size: 0.9rem;
}
.admin-modal-content textarea,
.publish-modal-content textarea { min-height: 80px; resize: vertical; }
.admin-modal-actions, .publish-modal-actions {
  display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem;
}
.status-badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: var(--radius-md);
  font-size: 0.7rem; font-weight: 600;
}
/* 注: status-badge使用专门的状态色组合,保留硬编码因无对应token */
.status-badge-published { background: #d1fae5; color: #065f46; /* token: special - published 状态色 */ }
.status-badge-unpublished { background: #f3f4f6; color: #6b7280; /* token: special - unpublished 状态色 */ }
.status-badge-featured { background: #fef3c7; color: #92400e; /* token: special - featured 状态色 */ }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.9rem; }

/* ============================================
   Cases Section on Landing Page
   ============================================ */
.landing-cases-section { margin: 3rem 0; }
.landing-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.landing-case-card {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  cursor: pointer; aspect-ratio: 1;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  outline: none;
}
.landing-case-card:hover,
.landing-case-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}
.landing-case-image-wrap {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: var(--radius-md);
}
.landing-case-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.landing-case-card:hover img { transform: scale(1.05); }
/* Stacked second image for multi-image cases */
.landing-case-stacked {
  position: absolute; top: 6px; right: -6px;
  width: 60%; height: 60%; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
  opacity: 0.85; z-index: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.landing-case-card:hover .landing-case-stacked {
  transform: translateX(-4px);
  opacity: 1;
}
.landing-case-image-wrap > img:first-child {
  position: relative; z-index: 1;
}
/* Photo count badge */
.landing-case-photo-count {
  position: absolute; top: var(--space-2); left: var(--space-2); z-index: 2;
  background: rgba(0,0,0,0.75); color: #fff; /* token: special - 半透明黑色背景上的白色文字 */
  font-size: 0.7rem; font-weight: 600;
  padding: 3px var(--space-2); border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: 3px;
}
.landing-case-card .landing-case-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-3); opacity: 0;
  transition: opacity var(--transition);
}
.landing-case-card:hover .landing-case-overlay,
.landing-case-card:focus-visible .landing-case-overlay { opacity: 1; }
.landing-case-overlay h4 { color: #fff; /* token: special - 渐变深色背景上的白色文字 */ font-size: 0.85rem; margin: 0; }
/* 注: view-all链接使用蓝色400,与主品牌色不同,保留硬编码 */
.landing-case-view-all {
  color: #60a5fa; font-size: 0.75rem; font-weight: 600;
  margin-top: 4px; display: inline-flex; align-items: center; gap: 2px;
}
/* Dark mode */
.dark .landing-case-card { border-color: var(--color-border); }
.dark .landing-case-stacked { border-color: var(--color-surface); }

/* Dark mode overrides - 通过 .dark { --color-*: ... } 标准token自动生效,无需并行变量覆盖 */

/* ============================================
 * Generate Page Enhancement: Tab hints, Style picker, Batch counts, Reference gallery
 * ============================================ */

/* Tab 功能说明 */
.tab-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-brand);
}

/* Batch 类别 + 数量步进器 */
.batch-cat-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.batch-cat-item .checkbox-label {
  flex: 1;
  min-width: 140px;
}
.batch-cat-count {
  width: 56px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
}

/* 风格选择器 */
.style-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.style-card {
  cursor: pointer;
  border: 2px solid var(--color-border);
  border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  padding: var(--space-2);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.style-card:hover {
  border-color: var(--color-border-strong);
}
.style-card.active {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); /* token: special - 品牌色光晕 */
}
.style-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
  overflow: hidden;
  background-color: var(--color-brand-subtle);
}
.style-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.style-preview .style-label {
  position: absolute;
  bottom: var(--space-1);
  left: var(--space-1);
  background: rgba(0, 0, 0, 0.65);
  color: #fff; /* token: special - 半透明黑色背景上的白色文字 */
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px var(--space-1);
  border-radius: 3px; /* token: special - 3px 不在 radius token 体系内 */
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.style-card span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* 参考图画廊 */
.batch-reference {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.reference-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
}
.reference-card {
  border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.reference-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.reference-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.reference-info {
  padding: var(--space-1) var(--space-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
}
.reference-title {
  font-size: 0.75rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}
.reference-count {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .style-picker { grid-template-columns: repeat(3, 1fr); }
  .reference-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Homepage AI Chat Section
   ============================================ */

/* Hero Chat Scroll Hint */
.hero-chat-scroll-hint {
  margin-top: 1.5rem;
  text-align: center;
}
.hero-chat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  animation: heroChatPulse 2s ease-in-out infinite;
}
.hero-chat-link:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}
.hero-chat-link-icon {
  font-size: 1.125rem;
}
.hero-chat-link-arrow {
  font-size: 0.875rem;
  animation: bounceDown 1.5s ease-in-out infinite;
}
@keyframes heroChatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 24, 27, 0.08); }
  50% { box-shadow: 0 0 0 8px rgba(24, 24, 27, 0); }
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Prominent Homepage Chat Section */
.homepage-chat-prominent {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, var(--color-brand-subtle) 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.homepage-chat-prominent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 0 3px 3px;
}
.homepage-chat-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.homepage-chat-prominent .homepage-chat-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.homepage-chat-prominent .homepage-chat-panel:focus-within {
  border-color: var(--color-primary);
}
.homepage-chat-prominent .chat-messages {
  max-height: 280px;
  min-height: 120px;
}
.homepage-chat-prominent .chat-input {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}
.homepage-chat-prominent .chat-send-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

/* Homepage AI Chat Section (base) */
.homepage-chat-section {
  padding: 3rem 0 2rem;
  background: var(--color-brand-subtle);
}
.homepage-chat-section .section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.homepage-chat-section .section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.homepage-chat-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.chat-messages {
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-message {
  max-width: 85%;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-message.user {
  align-self: flex-end;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}
.chat-message.assistant {
  align-self: flex-start;
  background: var(--color-surface-muted);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.chat-message.welcome {
  align-self: center;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  background: transparent;
  border: none;
  padding: 1rem;
}
.chat-quick-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
}
.chat-quick-btn {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.chat-quick-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.chat-input-area {
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1.25rem 1rem;
}
.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.chat-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: var(--color-brand-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.chat-attachment img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.chat-attachment .remove-att {
  cursor: pointer;
  opacity: 0.6;
}
.chat-attachment .remove-att:hover { opacity: 1; }
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-input-row .chat-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 1.125rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-input-row .chat-icon-btn:hover {
  border-color: var(--color-primary);
}
.chat-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: var(--transition);
}
.chat-input:focus { border-color: var(--color-primary); }
.chat-send-btn {
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { opacity: 0.9; }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-file-hint {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  text-align: center;
}
.chat-action-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 0.5rem;
  flex-wrap: wrap;
}
.chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}
.chat-action-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-brand-subtle);
}
.chat-action-generate {
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}
.chat-action-generate:hover {
  opacity: 0.9;
  background: var(--color-primary);
}
.chat-login-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--color-brand-subtle);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 0.8125rem;
}
.chat-login-banner-text {
  color: var(--color-text-muted);
}
.chat-login-banner-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.chat-login-banner-link:hover {
  text-decoration: underline;
}
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.5rem 1rem;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: chatTyping 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTyping {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

/* Recent Saves on homepage */
.home-recent-saves-section {
  padding: 2rem 0 3rem;
}
.home-recent-saves-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.home-recent-saves-section .section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.home-recent-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.home-recent-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

/* ============================================
   Tool Pages (Remove BG, Upscale)
   ============================================ */
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.page-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.tool-layout {
  max-width: 900px;
  margin: 0 auto;
}
.tool-upload-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.tool-upload-area:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-subtle);
}
.tool-upload-area.drag-over {
  border-color: var(--color-brand);
  background: var(--color-brand-subtle);
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.upload-icon {
  font-size: 2.5rem;
  color: var(--color-text-muted);
  line-height: 1;
}
.upload-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.result-comparison {
  margin-top: 1.5rem;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.result-original h3,
.result-processed h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.result-original img,
.result-processed img {
  width: 100%;
  border-radius: 8px; /* token: special - 8px 不在 radius token 体系内 */
  border: 1px solid var(--color-border);
}
.upscale-options {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem;
}
.scale-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.scale-selector label {
  font-weight: 600;
  font-size: 0.95rem;
}
.scale-btn.active {
  background: var(--color-brand);
  color: #fff; /* token: special - 品牌色背景上的白色文字 */
  border-color: var(--color-brand);
}
.processing-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.use-template-btn {
  margin-top: 0.75rem;
  width: 100%;
}

/* Responsive: stack result columns on mobile */
@media (max-width: 640px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
  .upscale-options {
    flex-direction: column;
  }
}
.home-recent-item:hover { box-shadow: var(--shadow-md); }
.home-recent-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.home-recent-item-info {
  padding: 0.5rem 0.625rem;
}
.home-recent-item-prompt {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-recent-item-date {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ============================================
   Floating Chat Widget
   ============================================ */

/* Floating Chat Widget */
#chat-widget-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}
.chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab.active { transform: rotate(45deg); }
.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-height: 500px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open {
  display: flex;
  animation: chatPanelSlide 200ms ease;
}
@keyframes chatPanelSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-panel .chat-panel-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-panel .chat-panel-close {
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}
.chat-panel .chat-messages {
  max-height: 300px;
  flex: 1;
}
.chat-panel .chat-input-area { padding: 0.625rem 1rem 0.875rem; }
.chat-panel .chat-input-row .chat-input { font-size: 0.8125rem; }
@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 3rem);
    right: -0.5rem;
  }
}

/* ============================================
   Assets / Recipes / Models / Tutorials Pages
   ============================================ */

/* Assets Page */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.asset-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  transition: var(--transition);
}
.asset-card:hover { box-shadow: var(--shadow-md); }
.asset-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.asset-card-info {
  padding: 0.625rem 0.75rem;
}
.asset-card-name {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-card-meta {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.asset-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.75rem 0.625rem;
}

/* Recipes Page */
.recipes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.recipe-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: var(--transition);
}
.recipe-card:hover { box-shadow: var(--shadow-sm); }
.recipe-card-info { flex: 1; }
.recipe-card-name { font-weight: 600; font-size: 0.9375rem; }
.recipe-card-desc { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 0.25rem; }
.recipe-card-meta { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.375rem; }
.recipe-card-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Models Page */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.model-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  transition: var(--transition);
}
.model-card:hover { box-shadow: var(--shadow-md); }
.model-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.model-card-info {
  padding: 0.625rem 0.75rem;
}
.model-card-name { font-size: 0.875rem; font-weight: 500; }
.model-card-meta { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 0.25rem; }

/* Tutorials Page */
.tutorials-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}
.tutorial-chapter {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.tutorial-chapter h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.tutorial-chapter p, .tutorial-chapter li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
}
.tutorial-chapter ul, .tutorial-chapter ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}
.tutorial-chapter li { margin-bottom: 0.375rem; }

/* Upload zone shared style */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-brand-subtle);
}
.upload-zone p { color: var(--color-text-muted); font-size: 0.875rem; }

/* AI Help button in generate page */
.ai-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.ai-help-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Recipe modal */
.recipe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.recipe-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.recipe-modal h3 { margin-bottom: 1rem; }
.recipe-modal input, .recipe-modal textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.875rem;
}
.recipe-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ============================================
   Language Selector (i18n)
   ============================================ */

.lang-selector {
  appearance: none;
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  outline: none;
}
.lang-selector:hover {
  border-color: var(--color-border-strong);
  background-color: var(--color-brand-subtle);
}
.lang-selector:focus {
  border-color: var(--color-text-muted);
  box-shadow: 0 0 0 3px var(--color-brand-subtle);
}

/* ============================================
   Size Guide Component (editor + generate)
   ============================================ */

.size-spec-hint {
  margin-top: 6px;
  padding: var(--space-2) 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-brand-subtle);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
  line-height: 1.5;
  min-height: 1.5em;
}

.size-custom-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.size-custom-inputs.hidden { display: none; }
.size-custom-inputs input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  font-size: 0.85rem;
}
.size-custom-inputs span {
  color: var(--color-text-muted);
  font-weight: 600;
}

.size-preview-container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--color-brand-subtle);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}
.size-preview-container canvas {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-width: 200px;
  max-height: 200px;
}
.size-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.size-preview-info > div {
  font-size: 0.8rem;
  color: var(--color-text);
  font-weight: 500;
}
.size-preview-info > div:nth-child(2) {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.guide-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-3);
  padding: 10px;
  background: var(--color-surface-muted);
  border-radius: var(--radius-sm);
}
.guide-toggle-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--color-text);
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
.guide-toggle-row input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

/* ============================================
   Editor Side Panel (Reference Size & Guides)
   ============================================ */

/* === 编辑器布局修复（补全未定义类） === */
.editor-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.editor-canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  overflow: auto;
  background: var(--color-surface-muted);
  padding: var(--space-4);
}

.editor-layout.has-side-panel {
  flex-direction: row;
}
.editor-layout.has-side-panel > .editor-canvas-container {
  flex: 1;
  min-width: 0;
}

.editor-side-panel {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-4);
  z-index: 10;
}
.editor-side-panel.hidden { display: none; }
.editor-side-panel h3 {
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.editor-side-panel .form-group {
  margin-bottom: var(--space-3);
}
.editor-side-panel .btn {
  margin-top: var(--space-2);
}

/* ============================================
   Platform Style Cards (generate page)
   ============================================ */

.platform-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.platform-style-card {
  position: relative;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-surface);
}
.platform-style-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.platform-style-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-brand-subtle);
}
.platform-style-card .style-preview {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}
.platform-style-card .style-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.platform-style-card .style-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-1) var(--space-2);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #ffffff; /* token: special - 渐变深色背景上的白色文字 */
  font-size: 0.75rem;
  font-weight: 600;
}
.platform-style-card .style-badge {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  padding: 2px var(--space-1);
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 3px; /* token: special - 3px 不在 radius token 体系内 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Responsive adjustments
   ============================================ */

@media (max-width: 768px) {
  .editor-side-panel {
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
  }
  .platform-style-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .size-preview-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .size-preview-container canvas {
    max-width: 150px;
    max-height: 150px;
  }
}

/* === Product Cards === */
.product-card { cursor: pointer; }
.product-reference-banner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--color-surface-muted);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

/* === Variant List === */
.variant-list { display: flex; flex-direction: column; gap: var(--space-2); }
.variant-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.variant-thumb, .variant-thumb-placeholder {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.variant-thumb-placeholder { background: var(--color-surface-muted); }
.variant-info { flex: 1; display: flex; flex-direction: column; }

/* === Batch Toolbar (history multi-select) === */
.batch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  gap: var(--space-2);
}
.batch-toolbar-info { font-weight: 500; }
.batch-toolbar-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.history-mode-toggle { margin-bottom: var(--space-3); }
.gallery-item-checkbox {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  width: 18px;
  height: 18px;
}
.gallery-item { position: relative; }

/* === Export Dialog === */
.export-dialog {
  box-shadow: var(--shadow-lg);
}
.export-dialog-overlay {
  z-index: 1000;
}
.platform-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.platform-export-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.platform-export-option:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-muted);
}
.platform-export-option input { margin: 0; }
.platform-export-option input:checked + span {
  font-weight: 600;
}
.platform-export-option:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-brand-subtle);
}
.platform-export-option small { color: var(--color-text-muted); }
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-surface-muted);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--color-brand);
  transition: width 0.3s ease;
}

/* === Editor Enhancements === */
.color-swatch:hover { transform: scale(1.1); }

/* === Quota Warning Bar === */
.quota-warning-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: var(--space-2) var(--space-4);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9999;
  animation: slideDown 0.3s ease;
}
/* 注: quota状态条使用专门的浅色背景+深色文字组合,保留硬编码因无对应token */
.quota-warning-bar.quota-warning {
  background: #fef3c7; /* token: special - warning 浅色背景 */
  color: #92400e; /* token: special - warning 深色文字 */
  border-bottom: 1px solid #fbbf24; /* token: special - warning 边框 */
}
.quota-warning-bar.quota-critical {
  background: #fee2e2; /* token: special - critical 浅色背景 */
  color: #991b1b; /* token: special - critical 深色文字 */
  border-bottom: 1px solid #ef4444; /* token: special - critical 边框 */
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* === btn-danger === */
/* 注: 此处重复定义.btn-danger,使用红色500作为默认背景,保留硬编码因无对应token */
.btn-danger {
  background: #ef4444; /* token: special - danger 红色500 */
  color: white; /* token: special - danger 背景上的白色文字 */
  border: none;
}
.btn-danger:hover { background: var(--color-danger-600); }

/* === Quota Estimate Dialog === */
.quota-estimate-dialog .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Wizard Stepper (T1.1 - 4-step wizard)
   ============================================ */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-4) 0 var(--space-6);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: default;
  transition: opacity var(--transition);
  opacity: 0.5;
}

.wizard-step-indicator.active,
.wizard-step-indicator.completed {
  opacity: 1;
}

.wizard-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border-strong);
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.wizard-step-indicator.active .wizard-step-num {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.wizard-step-indicator.completed .wizard-step-num {
  background-color: var(--color-success-600);
  border-color: var(--color-success-600);
  color: white;
}

.wizard-step-indicator.completed .wizard-step-num::after {
  content: "\2713";
}

.wizard-step-indicator.completed .wizard-step-num {
  font-size: 0;
}

.wizard-step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

.wizard-step-indicator.active .wizard-step-label {
  color: var(--color-text);
  font-weight: 600;
}

.wizard-step-connector {
  flex: 1;
  height: 2px;
  background-color: var(--color-border);
  margin: 0 8px;
  position: relative;
  top: -10px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: wizard-fade-in 200ms ease;
}

@keyframes wizard-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-step-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: 20px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.wizard-step-nav .wizard-next-btn {
  margin-left: auto;
}

@media (max-width: 640px) {
  .wizard-stepper {
    flex-wrap: wrap;
    gap: 8px;
  }
  .wizard-step-connector {
    display: none;
  }
  .wizard-step-indicator {
    flex: 1 1 40%;
  }
  .wizard-step-label {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-step.active {
    animation: none;
  }
  .wizard-step-num {
    transition: none;
  }
}

/* ============================================
   Pricing Extensions (T1.4)
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background-color: var(--color-surface-muted);
  font-weight: 600;
  color: var(--color-text);
}

.comparison-table tr:hover td {
  background-color: var(--color-brand-subtle);
}

.comparison-cell-yes {
  color: var(--color-success-600);
  font-weight: 600;
}

.comparison-cell-no {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.subscription-status {
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: var(--space-6);
}

.subscription-progress {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.subscription-progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  transition: width 300ms ease;
}

.coupon-input-group {
  display: flex;
  gap: var(--space-2);
  max-width: 400px;
  margin: var(--space-4) 0;
}

.coupon-input-group input {
  flex: 1;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin: var(--space-8) 0;
  padding: 20px;
  border-top: 1px solid var(--color-border);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.trust-badge::before {
  content: "\2713";
  color: var(--color-success-600);
  font-weight: 700;
}

/* ============================================
 * Layer 2 UI Optimization — T2.1 + T2.2
 * Added: 2026-08-01
 * T2.1: Three-step process flow visualization
 * T2.2: Case showcase standardization (3-col grid, 4:3 ratio, hover scale, category tags)
 * ============================================ */

/* ---------- T2.1: Process Flow ---------- */
.process-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  flex-wrap: nowrap;
}

.process-step {
  flex: 1 1 0;
  max-width: 320px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.process-step-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.process-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-brand-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition);
}

.process-step:hover .process-step-icon {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.process-step-number {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--color-surface);
}

.process-step h3 {
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
  font-weight: 700;
}

.process-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  color: var(--color-text-muted);
  opacity: 0.55;
}

/* ---------- T2.2: Case Showcase Overrides ---------- */
/* Override existing .landing-cases-grid to a fixed 3-column layout */
.landing-cases-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Override .landing-case-card aspect ratio to 4:3 */
.landing-case-card {
  aspect-ratio: 4 / 3;
}

/* Override hover: scale up + stronger shadow */
.landing-case-card:hover,
.landing-case-card:focus-visible {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}

/* Case category tag (top-right corner) */
.landing-case-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.landing-case-tag-white  { background: rgba(255, 255, 255, 0.95); color: #374151; /* token: special - white tag 配色 */ }
.landing-case-tag-scene  { background: rgba(34, 197, 94, 0.92);  color: #ffffff; /* token: special - scene tag 绿色配色 */ }
.landing-case-tag-detail { background: rgba(59, 130, 246, 0.92); color: #ffffff; /* token: special - detail tag 蓝色配色 */ }
.landing-case-tag-social { background: rgba(236, 72, 153, 0.92); color: #ffffff; /* token: special - social tag 粉色配色 */ }

/* Dark mode tag adjustments */
.dark .landing-case-tag-white { background: rgba(255, 255, 255, 0.15); color: #fafafa; /* token: special - dark mode white tag */ }

/* ---------- T2.1 + T2.2 Responsive: Tablet (2-col cases) ---------- */
@media (max-width: 1024px) {
  .landing-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- T2.1 + T2.2 Responsive: Mobile (vertical flow + 1-col cases) ---------- */
@media (max-width: 768px) {
  .process-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .process-step {
    max-width: 100%;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-4);
    padding: 20px;
  }
  .process-step-head {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
  .process-step h3 {
    margin-bottom: var(--space-1);
  }
  .process-connector {
    width: 100%;
    height: 40px;
    flex: 0 0 auto;
  }
  .process-connector svg {
    transform: rotate(90deg);
  }
  .landing-cases-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Case Before/After Comparison (T1.6)
   ============================================ */
.landing-case-card.case-card-compare {
  grid-column: span 2;
}
.case-card-compare .compare-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  min-height: 200px;
}
.case-card-compare .compare-side {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.case-card-compare .compare-side img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.case-card-compare .compare-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}
.case-card-compare .compare-arrow {
  font-size: 1.5rem;
  color: var(--color-primary, #0070f3);
  font-weight: 700;
  flex-shrink: 0;
}
.case-card-compare .landing-case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  z-index: 3;
}
.case-card-compare .landing-case-overlay h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  color: #fff;
}
.case-card-compare .landing-case-view-all {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.25rem;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  .landing-case-card.case-card-compare {
    grid-column: span 1;
  }
  .case-card-compare .compare-container {
    flex-direction: column;
    min-height: auto;
  }
  .case-card-compare .compare-arrow {
    transform: rotate(90deg);
  }
  .case-card-compare .compare-side {
    width: 100%;
    aspect-ratio: 1;
  }
}

/* === Stage 3: Hero trust badge + Process step thumbnail === */
.hero-trust { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-trust-text { font-size: 0.9rem; color: var(--color-text-muted, #6b7280); }
.hero-trust-stars { color: #fbbf24; letter-spacing: 2px; }
.hero-trust-rating { font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.process-step-thumb { position: relative; margin: 0.75rem 0; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: var(--color-bg-alt, #f3f4f6); }
.process-step-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.process-step-tag { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,0.75); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
@media (max-width: 768px) { .hero-trust { flex-direction: column; gap: 0.5rem; } }
