:root {
  color-scheme: light;
  --page-bg: #fff8f0;
  --card-bg: #ffffff;
  --text: #2d2925;
  --muted: #776f66;
  --soft: #fff4e6;
  --line: #f0b45c;
  --yellow: #ffd84d;
  --dark: #222222;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 77, 0.18), transparent 34rem),
    var(--page-bg);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.review-card {
  width: min(100%, 520px);
  padding: 24px;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 5vw, 26px);
  line-height: 1.25;
  text-align: center;
}

.tip {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.review-box {
  min-height: 150px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--soft);
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.actions {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

button {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid rgba(240, 180, 92, 0.45);
  outline-offset: 3px;
}

.generate {
  color: var(--dark);
  font-weight: 700;
  background: var(--yellow);
}

.copy {
  color: #ffffff;
  background: var(--dark);
}

.status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #b26b00;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.small {
  margin: 18px 0 0;
  color: #999999;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 480px) {
  .page-shell {
    padding: 16px;
    align-items: start;
  }

  .review-card {
    padding: 20px;
  }
}
