:root {
  color-scheme: light;
  --bg: #fff8f1;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --line: rgba(28, 28, 30, 0.08);
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #ff6a00;
  --primary-deep: #e35d00;
  --accent: #111827;
  --success: #0f766e;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.15), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 166, 0, 0.12), transparent 25%),
    linear-gradient(180deg, #fff7ee 0%, #fffaf6 100%);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 241, 0.78);
  border-bottom: 1px solid rgba(255, 106, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #ff9f0a);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}

.nav a:hover,
.text-link:hover {
  color: var(--primary-deep);
}

.hero {
  padding: 60px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.panel,
.config-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-pills span,
.soft-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: #374151;
  font-size: 0.92rem;
}

.config-card {
  padding: 28px;
}

.card-head h2,
.panel h2 {
  margin: 0;
  font-size: 1.18rem;
}

.card-head p,
.step-head p,
.status-text,
.hint,
.feature-list,
.inline-notice {
  color: var(--muted);
  line-height: 1.65;
}

.workflow {
  padding: 12px 0 42px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.workflow-main,
.result-column,
.faq-grid {
  display: grid;
  gap: 24px;
}

.panel {
  padding: 28px;
}

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.step-index {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 106, 0, 0.12);
  color: var(--primary-deep);
  font-weight: 800;
}

.step-head h2,
.panel-head-inline h2 {
  margin: 0 0 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 9px;
}

.field span {
  font-weight: 600;
  color: #1f2937;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--panel-strong);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(255, 106, 0, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
  transform: translateY(-1px);
}

.field textarea {
  resize: vertical;
  min-height: 108px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.button {
  border: 0;
  border-radius: 16px;
  min-height: 52px;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #ff8c1a);
  box-shadow: 0 16px 32px rgba(255, 106, 0, 0.28);
}

.button-accent {
  color: white;
  background: linear-gradient(135deg, #111827, #374151);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(17, 24, 39, 0.06);
}

.button-block {
  width: 100%;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--success);
  font-weight: 700;
}

.panel-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.image-stage {
  min-height: 240px;
  border-radius: 20px;
  border: 1px dashed rgba(17, 24, 39, 0.12);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.04));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.image-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-stage-empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.gallery-grid {
  display: grid;
  gap: 14px;
}

.gallery-empty {
  min-height: 160px;
  border-radius: 18px;
  border: 1px dashed rgba(17, 24, 39, 0.12);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.gallery-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.04);
}

.gallery-card img {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.gallery-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-card h3 {
  margin: 0;
  font-size: 1rem;
}

.gallery-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.text-link {
  color: var(--primary-deep);
  font-weight: 600;
}

.hidden {
  display: none;
}

.faq {
  padding: 0 0 52px;
}

.diagnostics-section {
  padding: 0 0 60px;
}

.diagnostics-panel {
  display: grid;
  gap: 16px;
}

.diagnostics-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.debug-output {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #111827;
  color: #f9fafb;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.92rem;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .hero-grid,
  .workflow-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .result-column {
    order: -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 32px;
  }

  .hero-copy,
  .panel,
  .config-card {
    padding: 22px;
    border-radius: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
