/* Playful Cute Pastel Theme for petpetgenerator.cn */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter300.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter400.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter500.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter600.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter700.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/outfit500.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/outfit600.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit700.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit800.ttf') format('truetype');
}

:root {
  --primary: #ff6b6b;           /* Sweet Coral */
  --primary-light: #fff0f0;     /* Pastel Pink Tint */
  --secondary: #e8f4fd;         /* Pastel Sky Blue */
  --accent-orange: #ff9f43;     /* Warm Peach Orange */
  --mint-light: #ebfffa;        /* Light Mint */
  --mint: #1dd1a1;              /* Mint Green */
  --sky-blue: #48dbfb;          /* Sky Blue Accent */
  --bg-color: #fffaf7;          /* Sweet Warm Milky Peach Background */
  --card-bg: #ffffff;
  --border-color: #ffe6d9;      /* Soft Peach Border */
  --text-primary: #4a3b39;      /* Cozy Milk Cocoa Brown */
  --text-secondary: #8a7370;    /* Rosy Milk Tea Brown */
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Cozy bounce transform */
  --shadow-soft: 0 10px 30px rgba(255, 107, 107, 0.04);
  --shadow-hover: 0 16px 40px rgba(255, 107, 107, 0.1);
  --shadow-card: 0 6px 18px rgba(255, 107, 107, 0.02);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-color);
}

/* Decorative background glowing spots */
body::before {
  content: '';
  position: fixed;
  top: 5%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.06) 0%, rgba(255, 159, 67, 0.03) 70%, transparent 100%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  right: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(72, 219, 251, 0.06) 0%, rgba(29, 209, 161, 0.03) 70%, transparent 100%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Hero title text styling */
.hero-gradient-text {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff9f43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Container Constrained to 1040px */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem) !important;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
}

h3 {
  font-size: 1.35rem !important;
}

h4 {
  font-size: 1.1rem !important;
}

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

/* Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 250, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--border-color);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.brand:hover {
  transform: scale(1.05);
}

.brand-img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ff6b6b, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-menu a:not(.btn) {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.5rem 1.25rem;
  border-radius: 24px;
}

.nav-menu a:not(.btn):hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-menu a:not(.btn).active {
  color: var(--primary) !important;
  background: var(--primary-light);
  font-weight: 700;
}

/* SVG Icons Styling */
.svg-icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  flex-shrink: 0;
  transition: var(--transition);
}
.svg-icon-inline {
  margin-right: 0.45rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn:active {
  transform: translateY(0) scale(1);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5252, #ff7b39);
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary) !important;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.05);
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem;
}

.hero-text-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.hero-text-centered h1 {
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-text-centered p {
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

/* Tool Workbench Container */
.tool-workbench {
  width: 100%;
}

/* 3-Step Guided Layout */
.workbench-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .workbench-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.step-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 107, 0.25);
}

/* Step Header inside Cards */
.step-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 1rem;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff9f43);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.step-title {
  font-size: 1.25rem !important;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Upload Dropzone */
.upload-zone {
  border: 3px dashed rgba(255, 107, 107, 0.2);
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 2.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.upload-zone:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: scale(0.98);
}

.upload-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.upload-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.upload-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.browse-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 107, 107, 0.25);
  transition: var(--transition);
}

.upload-zone:hover .browse-link {
  border-bottom-color: var(--primary);
}

/* Image Preview Grid Panel */
.preview-panel-card {
  background: var(--bg-color);
  border: 2px dashed rgba(255, 107, 107, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.preview-panel-card.mini-preview {
  padding: 1rem;
  min-height: 120px;
}

.preview-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.preview-image-inner {
  background: #ffffff;
  border: 1px solid rgba(255, 107, 107, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
  width: 100%;
}

.preview-panel-card.mini-preview .preview-image-inner {
  min-height: 140px;
  padding: 0.5rem;
}

/* Petpet live simulator styling */
.petpet-preview-area {
  position: relative;
  width: 160px;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.04);
}

.petpet-avatar-container {
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: 120px;
  height: 120px;
  transform-origin: bottom center;
  z-index: 5;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.petpet-avatar-render {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: petpet-bounce 0.5s infinite ease-in-out;
}

.petpet-hand-render {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

@keyframes petpet-bounce {
  0%, 100% {
    transform: scale(1, 1) translateY(0);
  }
  25% {
    transform: scale(1.08, 0.85) translateY(8px);
  }
  50% {
    transform: scale(0.95, 1.05) translateY(-2px);
  }
  75% {
    transform: scale(1.03, 0.95) translateY(2px);
  }
}

.preview-image-inner img.original-preview-img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.04));
}

/* Advanced Sliders (Step 2 Card) */
.advanced-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  flex: 1;
  justify-content: center;
}

.setting-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.setting-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
}

.setting-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff9f43);
  cursor: pointer;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
  transition: var(--transition);
}

.setting-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* 4-Column Meme Gallery */
.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-wrap h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: var(--shadow-hover);
}

.gallery-img-wrap {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 107, 107, 0.05);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.9rem;
  transition: var(--transition);
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.gallery-card:hover .gallery-img-wrap {
  background: #ffe3e3;
  transform: rotate(-3deg) scale(0.96);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.gallery-card p {
  font-size: 0.8rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-large {
    grid-column: span 2;
  }
}

.bento-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 107, 0.25);
  box-shadow: var(--shadow-hover);
}

.bento-card svg {
  width: 50px;
  height: 50px;
  stroke: var(--primary);
  background: var(--primary-light);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 107, 107, 0.1);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.bento-card:hover svg {
  transform: scale(1.15) rotate(8deg);
  background: #ffd3d3;
}

/* Alternating icon backgrounds for Bento cards */
.bento-grid .bento-card:nth-child(2) svg {
  stroke: var(--sky-blue);
  background: var(--secondary);
}
.bento-grid .bento-card:nth-child(2):hover svg {
  background: #c7eafd;
}
.bento-grid .bento-card:nth-child(3) svg {
  stroke: var(--mint);
  background: var(--mint-light);
}
.bento-grid .bento-card:nth-child(3):hover svg {
  background: #d4f8ee;
}

.bento-card-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.bento-card-content p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent-orange));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
  z-index: 2;
}

.timeline-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 107, 0.25);
  box-shadow: var(--shadow-hover);
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.version-badge {
  font-size: 0.78rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 107, 0.15);
  font-weight: 700;
}

.timeline-card ul {
  list-style: none;
  margin-top: 0.6rem;
}

.timeline-card ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Subpage Layouts */
.sub-hero {
  padding: 10rem 0 4.5rem;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sub-content {
  padding: 4rem 0;
}

.article-content h2 {
  margin: 2.2rem 0 1rem;
  color: var(--text-primary);
  font-size: 1.45rem;
}

.article-content p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}

/* FAQ Static Card Panel */
.faq-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: var(--transition);
}

.faq-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 107, 0.25);
  box-shadow: var(--shadow-hover);
}

.faq-question {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.75rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Foldable Accordion Panel */
.accordion-item {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: rgba(255, 107, 107, 0.25);
}

.accordion-header {
  padding: 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(0,0,0,0.01);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.accordion-body {
  padding: 1.2rem;
  border-top: 2px solid var(--primary-light);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Conversion Callout */
.conversion-section {
  padding: 5rem 0;
}

.conversion-box {
  background: linear-gradient(135deg, #fff0ea 0%, #ffe8e2 50%, #ffd3d3 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(255, 107, 107, 0.08);
  transition: var(--transition);
}

.conversion-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
}

.conversion-content {
  position: relative;
  z-index: 2;
}

.conversion-content h2 {
  font-size: 2rem;
  margin-bottom: 0.9rem;
  color: var(--text-primary);
}

.conversion-content p {
  max-width: 600px;
  margin: 0 auto 2.2rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.conversion-box .btn-primary {
  padding: 0.95rem 2.4rem;
  font-size: 1.05rem;
}

.conversion-highlights {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--primary);
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.02);
}

.highlight-item:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
  border-color: rgba(255, 107, 107, 0.3);
}

.highlight-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2.5;
}

/* Footer Section */
footer {
  border-top: 2px solid var(--border-color);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 2px solid var(--primary-light);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-beian {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-beian:hover {
  color: var(--primary);
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(74, 59, 57, 0.25);
  backdrop-filter: blur(12px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(74, 59, 57, 0.15);
  animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-icon {
  width: 52px;
  height: 52px;
  stroke: var(--primary);
  background: var(--primary-light);
  padding: 12px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.modal h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.modal p {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Utilities */
.section {
  padding: 5rem 0;
}

.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-download-btn {
  display: none;
  background: var(--primary-light);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  color: var(--primary);
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.mobile-download-btn:hover {
  background: #ffe3e3;
  transform: translateY(-2px);
}

.mobile-download-btn svg {
  stroke: var(--primary);
  width: 24px;
  height: 24px;
}

/* Hamburger Menu for Mobile */
.menu-toggle {
  display: none;
  background: var(--primary-light);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: #ffe3e3;
}

.menu-toggle svg {
  stroke: var(--text-primary);
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .mobile-download-btn {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    align-items: stretch;
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.08);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .nav-menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu .btn {
    width: 100%;
  }
}

/* APK Download Link Custom Styling */
.apk-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.apk-download-link:hover {
  text-decoration: underline !important;
  transform: translateX(5px);
  color: var(--accent-orange) !important;
}


/* ==========================================================================
   Reconstructed Layout & Typography Classes (Removing Inline Styles)
   ========================================================================== */

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.8rem;
}

/* Tool Workbench Spacing */
.tool-workbench {
  margin-top: 3.5rem !important;
}

/* Live Preview Inner Customizations */
.live-preview-inner {
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem !important;
}

.live-preview-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.petpet-avatar-container {
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: 120px;
  height: 120px;
  transform-origin: bottom center;
  z-index: 5;
}

.petpet-avatar-render {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: petpet-bounce 0.5s infinite ease-in-out;
}

.gif-result-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  z-index: 15;
}

.gif-result-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.avatar-btn-group {
  width: 100%;
  display: none;
  justify-content: center;
  margin-top: 1rem;
}

/* Timeline/Milestone Layout Component */
.timeline-panel {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  transition: var(--transition);
}

.timeline-panel:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 107, 0.25);
}

.timeline-col-large {
  flex: 1.2;
  min-width: 280px;
  text-align: left;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-col-small {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.timeline-split-line {
  width: 2px;
  background: var(--primary-light);
  display: none;
  min-height: 250px;
}

@media (min-width: 768px) {
  .timeline-split-line {
    display: block;
  }
}

.timeline-col-small-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Heading Highlights */
.section-sub-title {
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  display: inline-block;
  padding-bottom: 0.25rem;
  font-weight: 700;
}

.section-sub-title.history-title {
  border-bottom: 3px solid var(--primary);
}

.section-sub-title.version-title {
  border-bottom: 3px solid var(--accent-orange);
}

/* Templates list visual enhancements */
.param-bar-group {
  background: var(--primary-light);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.param-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.param-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.param-bar-outer {
  height: 8px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 107, 107, 0.1);
}

.param-bar-inner {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent-orange));
  border-radius: 4px;
}

/* FAQ static grid styling */
.faq-grid-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Template Showcase Grid */
.template-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .template-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.template-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.template-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 107, 0.25);
  box-shadow: var(--shadow-hover);
}
