:root {
  --bg: #f5efe4;
  --paper: #fffaf1;
  --ink: #1e1f1d;
  --muted: #655f55;
  --line: rgba(30, 31, 29, 0.14);
  --brand: #8f2d15;
  --brand-dark: #65200f;
  --accent: #e8b04b;
  --contrast: #efe4d3;
  --shadow: 0 18px 50px rgba(44, 29, 16, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(229, 198, 153, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 198, 153, 0.18) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(232, 176, 75, 0.2), transparent 28%),
    linear-gradient(180deg, #f9f5ee 0%, var(--bg) 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: rgba(245, 239, 228, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav-shell,
.footer-shell,
.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-shell {
  min-height: 56px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav,
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-nav a {
  color: var(--muted);
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--brand);
}

.hero {
  padding: 28px 0 24px;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.hero-stack {
  display: grid;
  gap: 18px;
}

.hero-centered {
  position: relative;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-centered::before,
.hero-centered::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 220px;
  height: 96px;
  border: 3px solid rgba(183, 145, 101, 0.2);
  border-radius: 999px;
  z-index: -1;
}

.hero-centered::before {
  left: 150px;
}

.hero-centered::after {
  right: 150px;
}

.eyebrow,
.section-kicker,
.mini-label {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 0 12px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(207, 139, 80, 0.16);
  background: rgba(255, 251, 245, 0.92);
  box-shadow: 0 6px 18px rgba(195, 143, 94, 0.1);
  color: var(--brand);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  font-weight: 700;
  line-height: 1.35;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  max-width: 14ch;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  max-width: 22ch;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.3rem;
}

.lede,
.hero-note,
.card p,
.step p,
.faq-item p,
.panel p,
.site-footer p,
.cta-shell p,
.small,
.section-intro,
.metric-card p,
.prompt-card p {
  color: var(--muted);
}

.section-intro {
  max-width: 62ch;
  margin: 0 0 22px;
}

.inline-keyword {
  font-style: italic;
  color: var(--brand-dark);
}

.topic-chips,
.search-cloud,
.link-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-chips {
  margin-top: 22px;
}

.topic-chips span,
.search-cloud span,
.link-stack a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 31, 29, 0.1);
  background: rgba(255, 250, 241, 0.68);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
}

.hero-lede {
  max-width: 52ch;
  margin: 0 auto;
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: var(--brand);
  color: #fff9f1;
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 250, 241, 0.65);
}

@keyframes hero-cta-breathe {
  0%,
  100% {
    box-shadow:
      0 8px 22px rgba(203, 109, 42, 0.38),
      0 0 0 0 rgba(232, 136, 66, 0.35);
    transform: scale(1);
  }

  50% {
    box-shadow:
      0 14px 34px rgba(203, 109, 42, 0.52),
      0 0 0 12px rgba(232, 136, 66, 0.1);
    transform: scale(1.025);
  }
}

.hero-cta {
  position: relative;
  z-index: 0;
  min-width: 0;
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  background: linear-gradient(180deg, #e88842, #c45f1f);
  box-shadow: 0 10px 28px rgba(203, 109, 42, 0.4);
  animation: hero-cta-breathe 2.6s ease-in-out infinite;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.hero-cta:hover {
  color: #fff;
  background: linear-gradient(180deg, #f09550, #d46d2d);
  animation-play-state: paused;
  box-shadow: 0 12px 32px rgba(203, 109, 42, 0.5);
}

.hero-cta:focus-visible {
  outline: 3px solid rgba(232, 136, 66, 0.65);
  outline-offset: 3px;
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta {
    animation: none;
    box-shadow: 0 10px 28px rgba(203, 109, 42, 0.4);
  }
}

.hero-panel,
.card,
.panel,
.step,
.code-card,
.faq-item {
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(30, 31, 29, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px;
}

.generator-shell {
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(207, 139, 80, 0.14);
  box-shadow: 0 18px 48px rgba(180, 135, 88, 0.14);
}

.generator-screen {
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(30, 31, 29, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.prompt-input-wrap {
  display: block;
}

.prompt-input {
  width: 100%;
  min-height: 108px;
  max-height: 200px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(30, 31, 29, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(54, 35, 22, 0.86);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.prompt-input::placeholder {
  color: rgba(101, 95, 85, 0.72);
}

.prompt-input:focus {
  border-color: rgba(203, 109, 42, 0.38);
  box-shadow:
    0 0 0 4px rgba(223, 130, 67, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.generator-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(222, 180, 125, 0.42);
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.95), rgba(255, 244, 227, 0.84));
}

.generator-status .status-copy p {
  font-size: 0.85rem;
  line-height: 1.45;
}

.status-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.status-copy p {
  margin: 0;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #f0a15c, #d46d2d);
  box-shadow: 0 0 0 8px rgba(240, 161, 92, 0.12);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.control-card {
  padding: 22px 18px;
  border-radius: 24px;
  border: 1px solid rgba(30, 31, 29, 0.08);
  background: rgba(255, 250, 244, 0.84);
  box-shadow: 0 10px 24px rgba(182, 138, 88, 0.08);
}

.control-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.control-card strong {
  display: block;
  font-size: 1.05rem;
}

.prompt-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.prompt-lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-left: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, #df8243, #cb6d2a);
  color: #fff8f1;
  font-size: 2rem;
  box-shadow: 0 16px 30px rgba(203, 109, 42, 0.24);
}

.check-list {
  margin: 0 0 24px;
  padding-left: 20px;
}

.check-list li + li {
  margin-top: 10px;
}

.mini-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 176, 75, 0.18), rgba(143, 45, 21, 0.12));
}

.section {
  padding: 56px 0;
}

.contrast {
  background: var(--contrast);
  border-top: 1px solid rgba(30, 31, 29, 0.06);
  border-bottom: 1px solid rgba(30, 31, 29, 0.06);
}

.cards {
  display: grid;
  gap: 20px;
}

.gallery-grid,
.metrics-grid,
.prompts-grid {
  display: grid;
  gap: 20px;
}

.gallery-showcase {
  padding-top: 28px;
}

.gallery-header {
  margin-bottom: 30px;
  text-align: center;
}

.gallery-header h2 {
  max-width: none;
  margin-bottom: 10px;
}

.gallery-header .section-intro {
  margin: 0 auto;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(30, 31, 29, 0.06);
  box-shadow: 0 24px 56px rgba(132, 97, 60, 0.14);
  background-color: #ece2d4;
}

.media-video-card {
  min-height: 0;
  aspect-ratio: 9 / 16;
  background: #111;
}

.media-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.86);
  color: #5e4e3c;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

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

.gallery-card,
.metric-card,
.prompt-card,
.table-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(30, 31, 29, 0.08);
  box-shadow: var(--shadow);
}

.gallery-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff9f1;
}

.gallery-card p,
.gallery-card h3,
.gallery-label {
  color: inherit;
}

.gallery-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
}

.gallery-warm {
  background: linear-gradient(160deg, rgba(143, 45, 21, 0.92), rgba(232, 176, 75, 0.58));
}

.gallery-deep {
  background: linear-gradient(160deg, rgba(22, 24, 31, 0.96), rgba(72, 85, 116, 0.72));
}

.gallery-light {
  background: linear-gradient(160deg, rgba(98, 74, 141, 0.88), rgba(214, 181, 130, 0.66));
}

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

.metric-card {
  background: rgba(255, 250, 241, 0.72);
}

.metric-card strong {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel,
.faq-item,
.code-card {
  padding: 24px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
}

.step-no {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #201a15;
  color: #f7f0e6;
  font-size: 0.9rem;
}

.number-list {
  padding-left: 20px;
}

.compact {
  margin-bottom: 0;
}

.feature-list {
  padding-left: 20px;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 10px;
}

.table-card {
  background: rgba(255, 250, 241, 0.82);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(30, 31, 29, 0.1);
}

.compare-table th {
  color: var(--brand);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.prompt-card {
  background: rgba(255, 250, 241, 0.84);
}

.search-cloud {
  margin-top: 20px;
}

.link-stack {
  gap: 12px;
}

.link-stack a:hover {
  color: var(--brand);
  border-color: rgba(143, 45, 21, 0.22);
}

.faq-list {
  display: grid;
  gap: 18px;
}

.cta-strip {
  padding-top: 48px;
}

.cta-shell {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(143, 45, 21, 0.96), rgba(101, 32, 15, 0.96));
  border-radius: 28px;
  color: #fff9f1;
  box-shadow: var(--shadow);
}

.cta-shell .section-kicker,
.cta-shell p {
  color: rgba(255, 249, 241, 0.82);
}

.cta-strip .button.primary {
  background: #fff4df;
  color: var(--brand-dark);
}

.site-footer {
  padding: 34px 0 48px;
}

.site-footer p {
  max-width: 52ch;
}

/* 矮屏笔记本 / 浏览器窗口较矮时再压一档，便于首屏看到 CTA */
@media (max-height: 720px) {
  .hero {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero-stack {
    gap: 12px;
  }

  .prompt-input {
    min-height: 88px;
    max-height: 140px;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .three-up,
  .timeline,
  .code-grid,
  .gallery-grid,
  .metrics-grid,
  .prompts-grid,
  .gallery-mosaic,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .media-video-card {
    aspect-ratio: 16 / 9;
  }

  .cta-shell,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .generator-status,
  .prompt-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .launch-button {
    margin-left: 0;
  }

  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table td {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    padding: 12px 0;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  h1 {
    max-width: none;
  }

  .hero-pill {
    min-height: 0;
    padding: 8px 14px;
  }

  .hero-centered::before,
  .hero-centered::after {
    display: none;
  }

  .button {
    width: 100%;
  }

  .generator-shell {
    padding: 16px;
    border-radius: 28px;
  }

  .prompt-input {
    min-height: 96px;
    max-height: 180px;
    padding: 12px 14px;
  }

  .prompt-row .topic-chips {
    width: 100%;
  }

  .launch-button {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }
}
