:root {
  --bg: #0f0a10;
  --bg2: #1a111c;
  --card: #18101a;
  --line: #4a2a45;
  --text: #ffeef9;
  --muted: #d0a9c5;
  --pink: #ff4fa3;
  --pink2: #ff86c1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(
    circle at top right,
    #31182d 0%,
    var(--bg) 45%,
    #09070a 100%
  );
  color: var(--text);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px;
}
.card {
  background: linear-gradient(165deg, var(--card), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.hero h1 {
  margin: 0 0 6px;
  color: #ffd6ec;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "Baskerville", "Times New Roman", "STSong", "Songti SC", serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.15;
}
.hero p {
  margin: 0;
  color: var(--muted);
}
.tipline {
  margin-top: 8px;
  color: #f3bddb;
  font-size: 13px;
}
.back-home {
  font-size: 12px;
  color: #dca2c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tip {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px dashed #6b3762;
  border-radius: 10px;
  color: #f3bddb;
  background: rgba(255, 79, 163, 0.08);
}
.q-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
label {
  font-size: 13px;
  color: #ffc9e3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
textarea {
  min-height: 74px;
  border: 1px solid #5b3155;
  border-radius: 12px;
  background: #130d15;
  color: #ffeef9;
  padding: 10px;
  outline: none;
  overflow: visible;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}
input {
  min-height: 42px;
  border: 1px solid #5b3155;
  border-radius: 12px;
  background: #130d15;
  color: #ffeef9;
  padding: 8px 10px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}
select {
  min-height: 42px;
  border: 1px solid #5b3155;
  border-radius: 12px;
  background: #130d15;
  color: #ffeef9;
  padding: 8px 10px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}
.field-note {
  font-size: 11px;
  color: #c79bb7;
  line-height: 1.4;
}
#quickInput {
  min-height: 180px;
  line-height: 1.55;
}
.slot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
textarea:focus,
input:focus,
select:focus {
  border-color: var(--pink);
  box-shadow:
    0 0 0 2px rgba(255, 79, 163, 0.2),
    0 0 14px rgba(255, 79, 163, 0.16);
  filter: brightness(1.04);
  animation: pinkFocusPulse 1.6s ease-in-out infinite;
}
textarea::placeholder,
input::placeholder {
  color: #9f6d92;
}
.row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
button {
  border: 1px solid #8f2f65;
  background: linear-gradient(135deg, var(--pink2), var(--pink));
  color: #2b0b1d;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ghost {
  background: transparent;
  color: #ffc1df;
  border-color: #7d3a65;
}
.flow-nav {
  padding: 0;
  margin: 0 0 10px;
}
.flow-title {
  font-size: 12px;
  color: #ffd1e6;
  margin: 0 0 6px;
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid #6b3762;
  border-radius: 10px;
  background: rgba(26, 10, 22, 0.74);
  backdrop-filter: blur(8px);
}
.sticky-title {
  position: sticky;
  top: 8px;
  z-index: 100;
}
.flow-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.flow-item {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #7d3a65;
  border-radius: 999px;
  color: #ffc1df;
  text-decoration: none;
  background: rgba(255, 79, 163, 0.08);
  font-size: 12px;
}
.flow-item.current {
  border-color: #ff4fa3;
  background: linear-gradient(180deg, #2c0f22, #1b0b16);
  box-shadow:
    0 0 0 1px rgba(255, 79, 163, 0.26),
    0 10px 18px rgba(255, 79, 163, 0.2);
}
.pretty-block {
  white-space: pre-wrap;
  word-break: break-word;
  background: #130d15;
  border: 1px solid #5b3155;
  border-radius: 12px;
  padding: 12px;
  line-height: 1.65;
  color: #ffeef9;
  font-size: 14px;
}
.pretty-block.framed {
  border: 1px dashed #6b3762;
  background: rgba(255, 79, 163, 0.06);
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #100b12;
  border: 1px solid #5a2f51;
  border-radius: 12px;
  padding: 12px;
  line-height: 1.65;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #8f2f65;
  background: rgba(28, 11, 20, 0.94);
  color: #ffd9ee;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  animation: toastInOut 2.2s ease forwards;
}
.hidden {
  display: none;
}
@keyframes toastInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  12% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  84% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
}
@keyframes pinkFocusPulse {
  0%,
  100% {
    filter: brightness(1.02);
  }
  50% {
    filter: brightness(1.06);
  }
}
@media (max-width: 760px) {
  .slot-row {
    grid-template-columns: 1fr;
  }
}
