/* ============================================================
   365Lab 广告代码生成器 — 设计增强层
   Modern Creative Studio / Professional SaaS Aesthetic
   主色: Emerald var(--brand-600) | 字体: DM Sans + Noto Sans SC
   版本: 2026-07-06 v3.0 — 全站统一美化
   ============================================================ */

/* ============================================================
   TABLE OF CONTENTS
   1.  Hero & Page Hero Sections
   2.  Typography Refinements
   3.  Card System (Multi-shadow + Backdrop)
   4.  Button System (Glow + Shimmer)
   5.  Navigation & Sidebar
   6.  Form Elements
   7.  About Page Components
   8.  Help Page Components
   9.  FAQ Page Components
   10. Contact Page Components
   11. Generator Page Layout
   12. Footer Refinements
   13. Micro-interactions & Animations
   14. Utility Classes
   15. Responsive Fine-tuning
   16. Accessibility & Reduced Motion
   ============================================================ */

/* ============================================================
   1. HERO & PAGE HERO SECTIONS
   ============================================================ */

.hero {
  background: linear-gradient(165deg, var(--brand-50) 0%, var(--brand-50) 30%, #f0fdf4 60%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(5,150,105,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(5,150,105,0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(5,150,105,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(5,150,105,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Page Hero for sub-pages */
.page-hero {
  background: linear-gradient(180deg, var(--brand-50) 0%, #fafafa 100%);
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid rgba(5,150,105,0.08);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5,150,105,0.04) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  position: relative;
}

.page-hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   2. TYPOGRAPHY REFINEMENTS
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

p { line-height: 1.75; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-title + p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-10);
}

/* ============================================================
   3. CARD SYSTEM — Multi-Shadow + Subtle Backdrop
   ============================================================ */

.feature-card {
  background: linear-gradient(180deg, var(--white) 0%, #fafcfb 100%);
  border: 1px solid rgba(5,150,105,0.08);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.03),
    0 4px 12px rgba(0,0,0,0.02);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(5,150,105,0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5,150,105,0.2);
  box-shadow:
    0 2px 4px rgba(5,150,105,0.04),
    0 8px 24px rgba(5,150,105,0.08),
    0 24px 56px rgba(0,0,0,0.06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Grid-specific feature cards (about/help pages) */
.feature-grid .feature-card {
  padding: 32px 24px;
  text-align: center;
}
.feature-grid .feature-card:hover {
  border-color: var(--brand-300);
  box-shadow:
    0 4px 16px rgba(5,150,105,0.1),
    0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

/* Team value cards */
.team-value-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.team-value-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 16px rgba(5,150,105,0.1),
    0 16px 40px rgba(0,0,0,0.08);
  border-color: var(--brand-400);
}

.team-value-icon {
  font-size: 40px;
  margin-bottom: 20px;
  line-height: 1;
  transition: transform 0.35s ease;
}
.team-value-card:hover .team-value-icon {
  transform: scale(1.2) rotate(-8deg);
}

/* ============================================================
   4. BUTTON SYSTEM — Glow + Shimmer + Depth
   ============================================================ */

.btn {
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
  box-shadow:
    0 2px 8px rgba(5,150,105,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 100%);
  box-shadow:
    0 4px 16px rgba(5,150,105,0.35),
    0 8px 32px rgba(5,150,105,0.12);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  border: 2px solid var(--brand-400);
  color: var(--brand-600);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand-50);
  border-color: var(--brand-600);
  color: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(5,150,105,0.1);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}


/* Secondary / ghost button */
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--text-primary);
  border-color: var(--gray-200);
}

/* ============================================================
   5. NAVIGATION & SIDEBAR
   ============================================================ */

.header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(5,150,105,0.08);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: box-shadow 0.3s ease;
}


/* Logo */


.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* Nav links */
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--brand-600);
  background: var(--brand-50);
}

.nav-link.active {
  color: var(--brand-700);
  font-weight: 600;
  background: var(--brand-100);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--brand-500);
  border-radius: 2px;
}

/* Breadcrumb */
.breadcrumb {
  background: linear-gradient(180deg, rgba(5,150,105,0.04) 0%, rgba(250,250,250,1) 100%);
  border-bottom: 1px solid rgba(5,150,105,0.06);
}

.breadcrumb a:hover {
  color: var(--brand-600);
}

/* Language switch */
.lang-switch {
  border: 1px solid var(--gray-200);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
}
.lang-switch:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

/* ============================================================
   6. FORM ELEMENTS
   ============================================================ */

.form-input,
.form-select,
.form-textarea {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--brand-300);
  box-shadow: 0 2px 8px rgba(5,150,105,0.05);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-500);
  box-shadow:
    0 0 0 3px rgba(5,150,105,0.12),
    0 4px 12px rgba(5,150,105,0.06);
  outline: none;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-section:hover {
  border-color: rgba(5,150,105,0.15);
  box-shadow: 0 4px 16px rgba(5,150,105,0.05);
}

.form-section-title {
  background: var(--brand-50);
  border-left: 4px solid var(--brand-500);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-700);
  letter-spacing: 0.01em;
  margin: -20px -20px 16px -20px;
}

/* ============================================================
   7. ABOUT PAGE COMPONENTS
   ============================================================ */

.about-intro {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.about-intro h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.about-intro .lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-intro p {
  color: var(--text-secondary);
  line-height: 1.85;
}

.about-features h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 60px 0 32px;
}

.about-team {
  max-width: 960px;
  margin: 50px auto 0;
  padding: 0 24px;
  text-align: center;
}

.about-team h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-team .lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 40px;
}

.team-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.team-cta {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-50) 50%, var(--brand-100) 100%);
  border: 1px solid var(--brand-200);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  margin-top: 20px;
}

.team-cta-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.team-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* About/Help CTA */
.about-cta,
.help-cta {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  margin-top: var(--space-12);
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-50) 50%, var(--brand-100) 100%);
  border-radius: 16px;
  border: 1px solid var(--brand-200);
  position: relative;
  overflow: hidden;
}

.about-cta::before,
.help-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.about-cta h3,
.help-cta h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-cta p,
.help-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ============================================================
   8. HELP PAGE COMPONENTS
   ============================================================ */

.help-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.help-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.03),
    0 4px 12px rgba(0,0,0,0.02);
}

.help-sidebar h2, .help-sidebar h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.help-sidebar ul { list-style: none; padding: 0; margin: 0; }
.help-sidebar li { margin-bottom: 2px; }

.help-sidebar a {
  display: block;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.help-sidebar a:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.help-sidebar a.active {
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 600;
}

.help-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-100);
}
.help-section:last-of-type { border-bottom: none; }
.help-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.help-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-700);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  transform: translateX(4px);
}

.step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5,150,105,0.2);
}

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Help ad-type cards */
.help-ad-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.help-ad-type-grid .ad-type-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.help-ad-type-grid .ad-type-card:hover {
  border-color: var(--brand-400);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.1);
}

.help-ad-type-grid .ad-type-icon { font-size: 32px; margin-bottom: 12px; transition: transform 0.3s ease; }
.help-ad-type-grid .ad-type-card:hover .ad-type-icon { transform: scale(1.2); }
.help-ad-type-grid .ad-type-card h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin: 0 0 4px; }
.help-ad-type-grid .ad-type-card p { font-size: 12px; color: var(--text-tertiary); margin: 0; line-height: 1.5; }

/* ============================================================
   9. FAQ PAGE COMPONENTS
   ============================================================ */

.faq-search {
  max-width: 560px;
  margin: 0 auto 40px;
  display: flex;
  gap: 12px;
}

.faq-search input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  background: white;
  transition: all 0.25s ease;
}

.faq-search input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}

.faq-search button {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(5,150,105,0.2);
}

.faq-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

.faq-categories {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.faq-cat-btn {
  padding: 8px 22px;
  border: 1.5px solid var(--gray-200);
  background: var(--bg-card);
  border-radius: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.faq-cat-btn:hover {
  border-color: var(--brand-300);
  color: var(--brand-600);
  background: var(--brand-50);
}

.faq-cat-btn.active {
  background: var(--brand-600);
  color: white;
  border-color: var(--brand-600);
  box-shadow: 0 2px 12px rgba(5,150,105,0.25);
}

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--brand-200);
  box-shadow: 0 4px 16px rgba(5,150,105,0.06);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--gray-50); }

.faq-icon {
  font-size: 20px;
  color: var(--text-tertiary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-600);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question[aria-expanded="true"] + .faq-answer,
.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-list .faq-item h3 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-size: 14px;
}

.faq-more {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-50) 100%);
  border-radius: 16px;
  border: 1px solid var(--brand-200);
}

.faq-more h2, .faq-more h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-more p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ============================================================
   10. CONTACT PAGE COMPONENTS
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: 0 8px 24px rgba(5,150,105,0.1);
}

.contact-icon {
  font-size: 44px;
  margin-bottom: 16px;
  transition: transform 0.35s ease;
}
.contact-card:hover .contact-icon { transform: scale(1.15); }

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.contact-card .btn {
  width: 100%;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
}

.contact-info-panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px;
}

.contact-info-panel h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.contact-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-reasons li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-reasons li:last-child { border-bottom: none; }

.reason-icon { font-size: 22px; flex-shrink: 0; line-height: 1.3; }

.contact-reasons strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-reasons p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   11. GENERATOR PAGE LAYOUT REFINEMENTS
   ============================================================ */

.generator-layout {
  padding: 24px 0 0;
  max-width: 1440px;
  margin: 0 auto;
}

.editor-panel {
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.03),
    0 4px 16px rgba(0,0,0,0.02);
  border: 1px solid var(--gray-200);
}

.preview-panel {
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.03),
    0 4px 16px rgba(0,0,0,0.02);
  border: 1px solid var(--gray-200);
}

/* Ad type buttons in sidebar */
.ad-type-btn {
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.ad-type-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.12);
  border-color: var(--brand-300);
}

.ad-type-btn .icon {
  transition: transform 0.3s ease;
}

.ad-type-btn:hover .icon { transform: scale(1.15); }

.ad-type-btn.active {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  border-color: var(--brand-500);
  box-shadow: 0 2px 6px -1px rgba(5,150,105,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Device buttons - Modern segmented control */
.device-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-200) 100%);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.6);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
  position: relative;
}
.device-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.device-btn .device-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.device-btn:hover:not(.active) .device-icon {
  transform: scale(1.08);
}
.device-btn.active .device-icon {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}
.device-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-700);
  transform: translateY(-1px);
}
.device-btn.active {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 100%);
  color: var(--white);
  font-weight: 600;
  box-shadow: 
    0 2px 8px rgba(5, 150, 105, 0.35),
    0 1px 2px rgba(5, 150, 105, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.device-btn.active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.device-btn:active:not(.active) {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.9);
}

/* Code panel */
.code-panel {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.code-tab {
  border-radius: 6px;
  transition: all 0.2s ease;
}
.code-tab:hover { background: rgba(5,150,105,0.15); color: var(--brand-300); }
.code-tab.active {
  background: rgba(5,150,105,0.2);
  color: var(--brand-300);
  box-shadow: 0 1px 4px rgba(5,150,105,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Emoji selector */
.emoji-item {
  border-radius: 8px;
  transition: all 0.2s ease;
}
.emoji-item:hover {
  transform: scale(1.2);
  background: var(--brand-100);
}

.emoji-cat-btn {
  border-radius: 20px;
  transition: all 0.2s ease;
}
.emoji-cat-btn:hover {
  background: var(--brand-100);
  transform: scale(1.05);
}

/* ============================================================
   12. FOOTER REFINEMENTS
   ============================================================ */

.footer {
  background: linear-gradient(180deg, #0d1b17 0%, #07120f 50%, #050d0a 100%);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(5,150,105,0.1);
}

.footer-brand {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-400) 0%, var(--brand-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 16px;
}

.footer h4 {
  color: var(--gray-300);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--brand-500);
  border-radius: 2px;
}

.footer-links a {
  color: var(--gray-500);
  font-size: 14px;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: var(--gray-200);
  transform: translateX(4px);
}

.footer-links a::before {
  content: '›';
  color: var(--brand-500);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
  font-weight: 700;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   13. MICRO-INTERACTIONS & ANIMATIONS
   ============================================================ */

/* Smooth page scroll */
html { scroll-behavior: smooth; }

/* Entry animation classes */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="left"] { transform: translateX(-24px); }
[data-animate="left"].visible { transform: translateX(0); }

[data-animate="right"] { transform: translateX(24px); }
[data-animate="right"].visible { transform: translateX(0); }

[data-animate="scale"] { transform: scale(0.92); }
[data-animate="scale"].visible { transform: scale(1); }

/* Stagger delays */

/* Toast animation */
@keyframes toastSlideIn {
  from { transform: translateX(120%) scale(0.8); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

.toast.show { animation: toastSlideIn 0.4s cubic-bezier(0.4,0,0.2,1); }

.toast.success {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  border-left: 4px solid var(--brand-500);
  box-shadow: 0 8px 32px rgba(5,150,105,0.3);
}

.toast.error {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-600) 100%);
  border-left: 4px solid var(--danger-300);
  box-shadow: 0 8px 32px rgba(220,38,38,0.3);
}

/* Modal animation */
@keyframes modalBounceIn {
  from { transform: translateY(30px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal { border-radius: 20px; }
.modal-overlay.open .modal { animation: modalBounceIn 0.4s cubic-bezier(0.4,0,0.2,1); }

/* Cookie notice */

/* ============================================================
   14. UTILITY CLASSES
   ============================================================ */

.text-secondary { color: var(--text-secondary); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.feature-list li {
  padding: 10px 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '✓';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--brand-100);
  color: var(--brand-600);
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  line-height: 22px;
  margin-right: 10px;
}


/* Legal page styling */
.page-content { max-width: 760px; margin: 0 auto; }

.last-updated {
  display: inline-block;
  padding: 8px 16px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 8px;
  font-size: 13px;
  color: var(--brand-700);
  margin-bottom: 32px;
  font-weight: 500;
}

.legal-section { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--gray-100); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.legal-section p { color: var(--text-secondary); line-height: 1.85; margin-bottom: 16px; }
.legal-section ul { margin: 16px 0; padding-left: 24px; }
.legal-section li { color: var(--text-secondary); line-height: 1.85; margin-bottom: 8px; }
.legal-section strong { color: var(--text-primary); font-weight: 600; }

/* Hero stats */


/* ============================================================
   15. RESPONSIVE FINE-TUNING
   ============================================================ */

@media (max-width: 1024px) {
  .help-layout { grid-template-columns: 220px 1fr; gap: 32px; }
  .help-ad-type-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .page-hero-title { font-size: 32px; }
}

/* feature-grid 2列/3列布局及最后一张卡片居中规则统一在 style.css 中定义，避免重复 */

@media (max-width: 768px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-sidebar { position: static; margin-bottom: 24px; }
  .help-ad-type-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .team-values { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature-card { padding: 28px 20px; }
  .feature-card:hover { transform: translateY(-3px); }
}

@media (max-width: 480px) {
  .page-hero-title { font-size: 26px; }
  .about-intro h2 { font-size: 24px; }
  .help-ad-type-grid { grid-template-columns: 1fr 1fr; }
  .breadcrumb { padding: 10px 0; }
}

/* ============================================================
   16. ACCESSIBILITY & REDUCED MOTION
   ============================================================ */

/* Focus ring */
*:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link:focus {
  top: 12px;
  background: var(--brand-600);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

/* Reduced motion (已删除重复定义：style.css 第 1781 行已有相同规则) */

/* High contrast */
@media (prefers-contrast: high) {
  body { background: white; color: black; }
  .header, .footer { background: white; border: 1px solid black; }
  .nav-link, .breadcrumb a, .footer a { color: #000; text-decoration: underline; }
  .nav-link.active { background: #000; color: #fff; }
  .btn-primary { background: #000; color: #fff; border: 2px solid #000; }
  .btn-outline { border: 2px solid #000; color: #000; background: white; }
  .form-input, .form-select, .form-textarea { border: 2px solid #000; background: white; color: black; }
  .feature-card, .team-value-card, .contact-card, .faq-item, .help-sidebar, .modal {
    border: 2px solid #000; background: white;
  }
  .text-secondary, .text-tertiary { color: #000 !important; }
  .preview-frame { border: 2px solid #000; background: white; }
  .code-panel { background: #000; color: #fff; border: 2px solid #000; }
  :focus-visible { outline: 3px solid #000 !important; outline-offset: 2px !important; }
}

/* Selection */
::selection {
  background: rgba(5,150,105,0.2);
  color: var(--text-primary);
}

/* ============================================================
   17. HERO SECTION — Immersive Experience
   ============================================================ */

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: 24px;
  padding: 6px 18px;
  font-size: 14px;
  color: var(--brand-700);
  font-weight: 500;
  animation: badgeBobble 3s ease-in-out infinite;
}

@keyframes badgeBobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--brand-500);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(5,150,105,0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 0 8px rgba(5,150,105,0); }
}

.hero .highlight {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 40%, var(--brand-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Floating decorative shapes */
.hero-floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--brand-600);
}

.hero-float-shape:nth-child(1) { width: 120px; height: 120px; top: 15%; left: 5%; animation: heroFloatSlow 8s ease-in-out infinite; }
.hero-float-shape:nth-child(2) { width: 60px; height: 60px; top: 60%; left: 85%; animation: heroFloatSlow 10s ease-in-out infinite reverse; }
.hero-float-shape:nth-child(3) { width: 80px; height: 80px; top: 25%; left: 60%; animation: heroFloatSlow 9s ease-in-out infinite 1s; }
.hero-float-shape:nth-child(4) { width: 40px; height: 40px; top: 70%; left: 15%; animation: heroFloatSlow 7s ease-in-out infinite 2s reverse; }

@keyframes heroFloatSlow {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(-15px, 25px); }
  75% { transform: translate(20px, 10px); }
}

/* ============================================================
   18. STEPS SECTION — Connected Flow
   ============================================================ */

.how-it-works {
  background: linear-gradient(180deg, #fafafa 0%, white 100%);
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-300) 15%, var(--brand-400) 50%, var(--brand-300) 85%, transparent 100%);
  z-index: 0;
}

.step-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px 28px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-300);
  box-shadow: 0 4px 16px rgba(5,150,105,0.08), 0 16px 40px rgba(5,150,105,0.12);
}

.step-card .step-number {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: white;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(5,150,105,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(5,150,105,0.35);
}

.step-card h3 {
  font-size: 19px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.7; margin: 0;
}

/* ============================================================
   19. FAQ ACCORDION — Homepage
   ============================================================ */

.home-faq-list { max-width: 720px; margin: 0 auto; }

.home-faq-list .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.home-faq-list .faq-item:hover {
  border-color: var(--brand-200);
  box-shadow: 0 4px 16px rgba(5,150,105,0.05);
}

.home-faq-list .faq-item h3 {
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  user-select: none;
}

.home-faq-list .faq-item h3 button.faq-question {
  width: 100%;
  padding: 18px 24px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}

.home-faq-list .faq-item h3 button.faq-question:hover { background: var(--gray-50); }

.home-faq-list .faq-item h3 button.faq-question::after {
  content: '+';
  font-size: 22px; font-weight: 300;
  color: var(--text-tertiary);
  transition: all 0.3s ease;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  flex-shrink: 0;
}

.home-faq-list .faq-item.open h3 button.faq-question::after {
  content: '−';
  color: var(--brand-600);
  background: var(--brand-50);
  transform: rotate(180deg);
}

.home-faq-list .faq-item p {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 24px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 14px;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s cubic-bezier(0.4,0,0.2,1);
}

.home-faq-list .faq-item.open p {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ============================================================
   20. 404 PAGE — Creative Treatment
   ============================================================ */

.not-found-page {
  min-height: calc(100vh - var(--header-height) - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.not-found-content { max-width: 520px; }

.not-found-emoji {
  font-size: 100px;
  line-height: 1;
  margin-bottom: 16px;
  animation: notFoundBounce 3s ease-in-out infinite;
}

@keyframes notFoundBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-30px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-15px); }
  60% { transform: translateY(0); }
}

.not-found-content h1 {
  font-size: 72px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--brand-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.not-found-content h2 {
  font-size: 20px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.not-found-content p {
  font-size: 15px; color: var(--text-tertiary);
  margin-bottom: 28px; line-height: 1.7;
}

.not-found-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.not-found-search {
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

.not-found-search h3 {
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 12px;
}

.not-found-search .search-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.not-found-search .search-link {
  padding: 6px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.not-found-search .search-link:hover {
  background: var(--brand-50);
  color: var(--brand-600);
  border-color: var(--brand-300);
}

/* ============================================================
   21. SCROLL REVEAL — Universal Animation System
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

[data-reveal].revealed { opacity: 1; transform: translateY(0); }

[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="left"].revealed { transform: translateX(0); }

[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="right"].revealed { transform: translateX(0); }

[data-reveal="scale"] { transform: scale(0.9); opacity: 0; }
[data-reveal="scale"].revealed { transform: scale(1); opacity: 1; }

[data-reveal="zoom"] { transform: scale(1.1); opacity: 0; }
[data-reveal="zoom"].revealed { transform: scale(1); opacity: 1; }


/* ============================================================
   22. SMOOTH PAGE TRANSITIONS
   ============================================================ */

.page-content, .container + * {
  animation: pageFadeIn 0.5s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   23. RESPONSIVE — Additional Breakpoints
   ============================================================ */

@media (max-width: 900px) {
  .steps-grid::before { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; }
  .step-card { padding: 28px 24px; }
  .not-found-content h1 { font-size: 52px; }
  .not-found-emoji { font-size: 72px; }
}

@media (max-width: 600px) {
  .not-found-content h1 { font-size: 40px; }
  .not-found-emoji { font-size: 56px; }
  .not-found-actions { flex-direction: column; align-items: center; }
}
/* End of enhancement layer v3.1 */

/* === 23. 代码面板操作按钮 === */
.code-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-code-copy {
  background: var(--brand-600, #059669);
  color: white;
  border: none;
  border-radius: var(--radius-sm, 8px);
  padding: 6px 14px;
  font-size: var(--font-size-xs, 0.8rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-code-copy:hover {
  background: var(--brand-700, #047857);
  box-shadow: 0 2px 12px rgba(5,150,105,0.35);
  transform: translateY(-1px);
}
.btn-code-copy:active {
  transform: scale(0.96);
  background: var(--brand-800, #065f46);
}
.btn-code-copy.copied {
  background: var(--brand-500);
}

.btn-code-download {
  background: rgba(255,255,255,0.06);
  color: #b0bdd4;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm, 8px);
  padding: 6px 14px;
  font-size: var(--font-size-xs, 0.8rem);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-code-download:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-code-download:active {
  transform: scale(0.96);
}

/* Keep existing .btn-white.copied for other contexts */

/* ============================================================
   17. Preview Panel Overflow Fix (2026-07-07)
   ============================================================ */

/* Ensure preview frame never clips content */
.preview-frame.desktop {
  overflow: hidden;
  min-height: 0;
  height: auto;
}

/* #adPreview width:100% fills frame; overflow hidden to prevent scrollbars */
.preview-frame #adPreview {
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: 0;
}

/* Override base style.css .preview-frame overflow-x:auto to prevent horizontal scrollbars in desktop preview */
.preview-frame {
  overflow-x: hidden;
}

/* Comparison table corner clipping handled by JS-injected overflow:hidden */
#adComparison {
  overflow: hidden;
}

/* Extra bottom padding for preview-inner to give breathing room */
.preview-inner {
  padding-bottom: 24px;
}

/* ============================================================
   18. Ad Preview Modal Overflow Fix (2026-07-07)
   ============================================================ */

/* Allow ad preview modal to scroll when content exceeds viewport */
.modal-overlay.ad-preview .modal {
  overflow-y: auto;
  max-height: 90vh;
}

/* Code panel margin from the preview */
.preview-frame.desktop + .code-panel {
  margin-top: 16px;
}

/* ============================================================
   Section 19: Usage Guide (使用说明) — 2026-07-07
   ============================================================ */

.usage-guide {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.usage-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  border: 1px solid rgba(5, 150, 105, 0.12);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.usage-section:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.usage-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-900);
  letter-spacing: -0.01em;
}

.usage-section-title svg {
  color: var(--brand-600);
  flex-shrink: 0;
}

.usage-section-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* ---- Category Ad Type Usage ---- */

.ad-type-usage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.ad-type-usage::-webkit-scrollbar {
  width: 6px;
}
.ad-type-usage::-webkit-scrollbar-track {
  background: rgba(5, 150, 105, 0.04);
  border-radius: 3px;
}
.ad-type-usage::-webkit-scrollbar-thumb {
  background: rgba(5, 150, 105, 0.25);
  border-radius: 3px;
}
.ad-type-usage::-webkit-scrollbar-thumb:hover {
  background: rgba(5, 150, 105, 0.45);
}


.ad-emoji {
  font-size: 16px;
  line-height: 1;
}


/* ---- Code Usage Steps ---- */

.code-usage-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.code-usage-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(5, 150, 105, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.code-usage-steps li:hover {
  border-color: rgba(5, 150, 105, 0.3);
  transform: translateY(-1px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-900);
  margin-bottom: 2px;
}

.step-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-500);
}


/* Steps 5 and 6: full width, one per row */
.code-usage-steps li:nth-child(5),
.code-usage-steps li:nth-child(6) {
  grid-column: span 2;
}

.code-usage-tip {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px dashed rgba(5, 150, 105, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--brand-700);
}

.code-usage-tip svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--brand-600);
}

/* ---- Feedback Card ---- */

.feedback-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.feedback-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.12);
}

.feedback-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.feedback-body {
  flex: 1;
  min-width: 0;
}

.feedback-label {
  font-size: 12px;
  color: var(--brand-700);
  font-weight: 500;
  margin-bottom: 2px;
}

.feedback-email {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-900);
  text-decoration: none;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  word-break: break-all;
  transition: color 200ms ease;
}

.feedback-email:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

.feedback-hint {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ---- Help page: help-emoji-grid / help-emoji-card ---- */

.help-emoji-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .help-emoji-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .help-emoji-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.help-emoji-card {
  padding: 16px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.help-emoji-icon {
  font-size: 28px;
  line-height: 1;
}

.help-emoji-card span:last-child {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.help-emoji-desc {
  margin-top: 16px;
}

.help-template-note {
  font-size: 0.82rem;
  margin-top: 8px;
}

/* ---- Generator-specific: SVG icon alignment & small controls ---- */


/* ---- Responsive ---- */

@media (max-width: 768px) {
  .code-usage-steps {
    grid-template-columns: 1fr;
  }
  .usage-section {
    padding: 18px 18px;
  }
  .feedback-card {
    flex-direction: column;
    text-align: center;
  }
  .feedback-icon {
    margin: 0 auto;
  }
}

/* ---- Dark mode (已删除：项目无 data-theme 切换逻辑，属死代码) ---- */

/* === Dynamic Ad Type Usage Panel === */
.dynamic-ad-type-usage {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.dynamic-ad-type-usage:hover {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 4px 16px -4px rgba(5, 150, 105, 0.12);
}
.dynamic-ad-type-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);
  border-bottom: 1px solid rgba(5, 150, 105, 0.12);
}
.dynamic-ad-emoji {
  font-size: 22px;
  line-height: 1;
}
.dynamic-ad-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-900);
  flex: 1;
  font-family: var(--font-sans);
}
.dynamic-ad-tag {
  padding: 3px 10px;
  background: rgba(5, 150, 105, 0.12);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  font-family: var(--font-sans);
}
.dynamic-ad-body {
  padding: 14px 18px 16px 18px;
}
.dynamic-ad-body p {
  margin: 0 0 8px 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--gray-600);
  font-family: var(--font-sans);
}
.dynamic-ad-body p:last-child {
  margin-bottom: 0;
}
.dynamic-ad-body p strong {
  color: var(--brand-900);
  font-weight: 600;
}

/* Code Snippet (for step 5) */
.code-snippet {
  display: block;
  margin: 8px 0 0 0;
  padding: 10px 12px;
  background: var(--gray-800);
  color: var(--gray-200);
  border-radius: 6px;
  font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}
.code-snippet code {
  color: inherit;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}
.step-body p code {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(5, 150, 105, 0.08);
  color: var(--brand-700);
  border-radius: 3px;
  font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
  font-size: 12px;
  margin: 0 2px;
}

/* Step 5 - Integration methods sub-grid */
.step5-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.method-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.04) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid rgba(5, 150, 105, 0.12);
  border-radius: 8px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.method-card:hover {
  border-color: rgba(5, 150, 105, 0.28);
  transform: translateX(2px);
}

.method-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.method-content {
  flex: 1;
  min-width: 0;
}

.method-content strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-900);
  margin-bottom: 2px;
}

.method-content p {
  margin: 0 0 6px 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--gray-500);
}

.method-content p:last-child {
  margin-bottom: 0;
}

.method-content .code-snippet {
  margin: 6px 0 0 0;
  font-size: 11px;
  padding: 8px 10px;
}

/* Dark mode for method cards (已删除：死代码) */

/* ============================================================
   Section 20: Template Import/Export Modal (2026-07-07)
   ============================================================ */

.tpl-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(0,0,0,0.06));
}
.tpl-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.tpl-info-row span {
  color: var(--text-secondary, var(--gray-500));
}
.tpl-info-row strong {
  color: var(--text-primary, var(--gray-800));
  font-weight: 600;
}
.tpl-badge {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}
.tpl-badge-ok {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-600);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.tpl-badge-older {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-600);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.tpl-badge-bad {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
/* Dark mode for tpl-info (已删除：死代码) */
/* ============================================================
   补充样式 — 缺失CSS类定义 (2026-07-15)
   ============================================================ */

/* Contact 页面补充 */
.contact-detail {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  word-break: break-all;
}

.contact-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 3px solid var(--brand-500);
}

.contact-note h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}

.contact-note p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Email 复制链接 */
.email-copy {
  color: var(--brand-600);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  word-break: break-all;
}

.email-copy:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* Help 页面内容区 */
.help-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.help-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

.help-content p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.help-content ul, .help-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.help-content li {
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

/* 通用 inline 类 */
.inline {
  display: inline;
}

/* ============================================================
   补充样式 — JS动态生成元素所需CSS类 (2026-07-15)
   ============================================================ */

/* Emoji/Icon 选择器分类按钮 */
.mq-cat-btn, .ig-cat-btn {
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mq-cat-btn:hover, .ig-cat-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}

.mq-cat-btn.active, .ig-cat-btn.active {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: var(--white);
}

/* Emoji 网格 */
.mq-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

.mq-emoji-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.15s;
}

/* 降级方案：不支持 aspect-ratio 的旧浏览器通过 padding-top 实现正方形比例 */
@supports not (aspect-ratio: 1) {
  .mq-emoji-grid button {
    height: 0;
    padding-top: 100%;
    position: relative;
  }
  .mq-emoji-grid button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mq-emoji-grid button:hover {
  background: var(--gray-100);
}

/* 颜色色板按钮 */
.color-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all 0.2s;
}

.color-swatch-btn:hover {
  border-color: var(--brand-500);
}

/* About 页面特性区 */
.about-features {
  display: block;
  margin-top: 3rem;
}

.about-features > .feature-grid {
  margin-top: 8px;
}

/* Help 页面步骤内容 */
.step-content {
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 12px;
  border-left: 3px solid var(--brand-500);
}

.step-content h4 {
  margin-top: 0;
  color: var(--gray-800);
  font-weight: 600;
}

.step-content p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* SVG 图标对齐 */
.btn svg, .btn-group svg {
  vertical-align: -2px;
  margin-right: 4px;
}

/* 预览区空状态 */
.preview-empty {
  color: var(--gray-400);
  text-align: center;
  padding: 40px;
}

/* 预览大小提示 */
.preview-size-note {
  margin: 0 auto 4px;
  max-width: 768px;
}

/* 网页预览按钮 */
.btn-page-preview {
  font-size: 0.72rem;
  padding: 4px 8px;
}

/* ============================================================
   演示广告位 Demo Ad Slot
   ============================================================ */
.demo-ad-slot {
  margin: 16px auto;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-ad-link {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.demo-ad-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.demo-ad-link img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .demo-ad-slot {
    margin: 12px auto;
    padding: 8px;
  }
}