:root {
  --bg: #fffaf4;
  --bg-soft: #fff2e2;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --line: #ecdccb;
  --line-strong: #d6b693;
  --text: #2c241d;
  --muted: #756657;
  --accent: #f08a2f;
  --accent-strong: #df6d16;
  --accent-soft: #fff0e0;
  --secondary: #2f8f83;
  --secondary-soft: #ebf7f5;
  --danger: #d15252;
  --danger-soft: #fff1f1;
  --shadow: 0 18px 45px rgba(115, 82, 45, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
  --sans: "Segoe UI Variable Display", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(240, 138, 47, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(47, 143, 131, 0.1), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #fff8f1 100%);
  color: var(--text);
  font-family: var(--sans);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero,
.seo-strip,
.panel,
.action-panel,
.status-bar,
.info-card,
.faq-section,
.note-card {
  animation: rise 0.55s ease both;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow,
.panel-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.faq-head h2,
.seo-copy h2,
.info-card h2 {
  margin: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.hero-copy {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-copy strong {
  color: var(--text);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.keyword-cloud span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #5f4f40;
  font-size: 13px;
}

.seo-strip,
.panel,
.action-panel,
.status-bar,
.info-card,
.faq-section,
.note-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.seo-strip {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.seo-copy p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: 28px;
}

.panel-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

textarea {
  width: 100%;
  min-height: 420px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fffdfa;
  color: var(--text);
  padding: 18px;
  font: 14px/1.72 var(--mono);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(240, 138, 47, 0.12);
  transform: translateY(-1px);
}

textarea::placeholder {
  color: #9b8d7f;
}

.action-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff4e8 100%);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: 700 14px/1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.primary {
  background: linear-gradient(135deg, var(--accent), #ffb56e);
  color: #fff;
  box-shadow: 0 10px 22px rgba(240, 138, 47, 0.22);
}

button.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.meta-grid,
.info-grid,
.faq-grid,
.notes {
  display: grid;
  gap: 16px;
}

.meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.meta-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffdf9;
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.meta-card strong {
  display: block;
  font-size: 16px;
  word-break: break-word;
}

.status-bar {
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 14px;
}

.status-bar.success {
  border-color: rgba(47, 143, 131, 0.32);
  background: var(--secondary-soft);
}

.status-bar.error {
  border-color: rgba(209, 82, 82, 0.28);
  background: var(--danger-soft);
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.info-card {
  padding: 22px;
}

.info-card p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.faq-section {
  margin-top: 18px;
  padding: 24px;
}

.faq-head {
  margin-bottom: 16px;
}

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

.faq-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fffdf9;
}

.faq-card h3,
.note-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.faq-card p,
.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.note-card {
  padding: 20px;
  background: var(--panel-strong);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .seo-strip,
  .workspace,
  .info-grid,
  .notes {
    grid-template-columns: 1fr;
  }

  .action-panel {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .action-panel button {
    flex: 1 1 220px;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 24px;
  }

  .panel,
  .seo-strip,
  .faq-section {
    padding: 18px;
  }

  .panel-head {
    flex-direction: column;
  }

  .panel-actions {
    width: 100%;
  }

  .panel-actions button {
    flex: 1 1 calc(50% - 10px);
  }

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

  textarea {
    min-height: 320px;
  }
}
