:root {
  color-scheme: light;
  --ink: #1b1b18;
  --paper: #f0eee5;
  --acid: #d8ff38;
  --coral: #ff6f57;
  --violet: #8d7cff;
  --line: rgba(27, 27, 24, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(27,27,24,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,27,24,.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

button, input, textarea { font: inherit; }

.masthead {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--ink);
  background: rgba(240, 238, 229, .88);
  backdrop-filter: blur(10px);
}

.brand {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.edition, .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 490px;
  padding: clamp(70px, 10vw, 128px) 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: end;
}

.hero .eyebrow { grid-column: 1 / -1; margin: 0 0 -8px; }

h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(46px, 7.3vw, 96px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
}

h1 em {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: .12em;
  text-underline-offset: .08em;
}

.intro {
  margin: 0;
  padding-left: 22px;
  border-left: 5px solid var(--acid);
  font-size: 15px;
  line-height: 1.9;
}

.studio {
  border: 1px solid var(--ink);
  background: #fbfaf5;
  box-shadow: 10px 10px 0 var(--ink);
  margin-bottom: 110px;
}

#idea-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.field {
  position: relative;
  padding: 28px;
  border-bottom: 1px solid var(--ink);
}

.field:nth-of-type(2) { border-right: 1px solid var(--ink); }
.field-wide { grid-column: 1 / -1; }

label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
}

label span { color: #77766e; margin-right: 7px; }

textarea, input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  transition: border-color .2s, background .2s;
}

textarea {
  resize: vertical;
  min-height: 105px;
  padding: 4px 60px 10px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.35;
}

input { padding: 8px 0 12px; font-size: 18px; }
textarea:focus, input:focus { border-color: var(--coral); }
textarea::placeholder, input::placeholder { color: #aaa89e; opacity: 1; }
.field small { position: absolute; right: 28px; bottom: 40px; color: #7f7d73; }

.form-error {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0 28px;
  color: #8b2012;
  font-weight: 700;
}

.form-error:not(:empty) { padding-top: 18px; }

#submit-button {
  grid-column: 1 / -1;
  border: 0;
  min-height: 82px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  background: var(--acid);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

#submit-button:hover:not(:disabled) { background: #c7f20b; }
#submit-button:disabled { cursor: wait; opacity: .72; }
.button-arrow { font-size: 33px; font-weight: 400; }

.loading-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 28px;
  border-top: 1px solid var(--ink);
  background: #fff;
  font-size: 14px;
}

.loader {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--coral);
  animation: blink .8s steps(2) infinite;
}

@keyframes blink { 50% { opacity: .15; } }

.results { margin: 0 0 120px; scroll-margin-top: 30px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.results-heading .eyebrow { margin: 0 0 12px; }
h2 { margin: 0; font: 500 clamp(30px, 4.2vw, 58px)/1.05 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.text-button { border: 0; border-bottom: 1px solid currentColor; padding: 8px 0; background: transparent; cursor: pointer; font-weight: 800; white-space: nowrap; }
.text-button:disabled { opacity: .45; cursor: wait; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.idea-card {
  min-width: 0;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--ink);
  background: #fffefa;
}
.idea-card:nth-child(2) { background: #eeeaff; transform: translateY(24px); }
.idea-card:nth-child(3) { background: #ffe2da; }
.card-number { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.card-number span:last-child { font-size: 20px; }
.idea-card h3 { margin: 48px 0 18px; font: 600 26px/1.12 Georgia, "Songti SC", serif; }
.opening { margin: 0; font-size: 17px; line-height: 1.78; white-space: pre-wrap; overflow-wrap: anywhere; }
.clue { margin: auto 0 22px; padding-top: 34px; color: #4e4c45; font-size: 14px; line-height: 1.65; }
.clue::before { content: "发展线索  →  "; font-weight: 900; color: var(--ink); }
.follow-button { width: 100%; border: 1px solid var(--ink); padding: 13px; color: var(--ink); background: transparent; cursor: pointer; font-weight: 800; }
.follow-button:hover { color: #fff; background: var(--ink); }
.follow-box { margin-top: 12px; }
.follow-box textarea { min-height: 70px; padding: 8px 0; font: 14px/1.5 inherit; }
.follow-actions { display: flex; gap: 8px; margin-top: 10px; }
.follow-actions button { flex: 1; border: 1px solid var(--ink); padding: 9px; cursor: pointer; background: transparent; font-weight: 700; }
.follow-actions .go { background: var(--ink); color: white; }
.follow-status { min-height: 20px; margin: 9px 0 0; color: #702519; font-size: 12px; line-height: 1.5; }
.follow-result { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ink); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

footer {
  min-height: 100px;
  padding: 32px clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

@media (max-width: 800px) {
  .edition { display: none; }
  main { width: min(100% - 28px, 620px); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 72px 0 50px; }
  .hero .eyebrow { margin-bottom: -14px; }
  h1 { font-size: clamp(43px, 13vw, 68px); }
  .intro { max-width: 430px; }
  .studio { margin-bottom: 90px; box-shadow: 6px 6px 0 var(--ink); }
  #idea-form { grid-template-columns: 1fr; }
  .field, .field-wide { grid-column: 1; }
  .field:nth-of-type(2) { border-right: 0; }
  .field { padding: 22px 20px; }
  .field small { right: 20px; bottom: 34px; }
  .results-heading { align-items: start; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .idea-card { min-height: 420px; }
  .idea-card:nth-child(2) { transform: none; }
  footer { align-items: start; flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { animation: none; }
}
