:root {
  --bg: #070b09;
  --bg2: #0f1713;
  --card: #0d1511;
  --card2: #121d17;
  --text: #d9e7df;
  --muted: #9aaea2;
  --green: #769786;
  --green2: #c5dbcf;
  --line: #274036;
  --btnText: #102018;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Avenir Next", "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  background: radial-gradient(
    circle at top right,
    #112018 0%,
    var(--bg) 42%,
    #060a08 100%
  );
  color: var(--text);
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
}
.card {
  background: linear-gradient(160deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 8px;
}
.hero {
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 4px;
  color: #eaf8f1;
  font-family: "Baskerville", "Times New Roman", "STSong", "Songti SC", serif;
  font-size: 28px;
  line-height: 1.1;
}
.hero p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 12px;
}
.hero p:last-child {
  margin-bottom: 8px;
}
.back-home {
  font-size: 12px;
  color: #cfe6d8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
h2 {
  margin: 0 0 6px;
  color: #c8ddd2;
  font-size: 16px;
}
.row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
  align-items: center;
}
.load-inline {
  align-items: center;
}
.pick-select {
  flex: 1;
  min-width: 210px;
}
textarea,
select,
input {
  width: 100%;
  border: 1px solid #355443;
  background: #09110d;
  color: var(--text);
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 13px;
  outline: none;
  line-height: 1.3;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}
textarea {
  min-height: 54px;
  resize: vertical;
}
#baseText {
  min-height: 84px;
  max-height: 300px;
  resize: none;
  overflow: auto;
}
textarea.soft-sensitive {
  color: #c6d8cf;
}
textarea.auto-filled {
  color: #85998e;
}
textarea.auto-filled:focus {
  color: #d9e7df;
}
textarea:focus,
select:focus,
input:focus {
  border-color: var(--green);
  box-shadow:
    0 0 0 2px rgba(118, 151, 134, 0.16),
    0 0 12px rgba(118, 151, 134, 0.14);
  filter: brightness(1.04);
  animation: greenFocusPulse 1.9s ease-in-out infinite;
}
button {
  border: 1px solid #8fb39f;
  background: linear-gradient(135deg, var(--green2), #bfdcca);
  color: var(--btnText);
  padding: 7px 11px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(160, 225, 192, 0.26),
    0 6px 16px rgba(130, 205, 168, 0.2),
    0 12px 26px rgba(95, 190, 145, 0.14);
}
button:hover {
  box-shadow:
    0 0 0 1px rgba(178, 238, 205, 0.34),
    0 8px 20px rgba(154, 228, 190, 0.28),
    0 14px 32px rgba(105, 205, 155, 0.2);
}
.ghost {
  background: transparent;
  color: #d9eadf;
  border: 1px solid #4f6f5f;
  box-shadow:
    0 0 0 1px rgba(148, 218, 182, 0.2),
    0 5px 14px rgba(132, 208, 170, 0.16),
    0 10px 22px rgba(95, 190, 145, 0.1);
}
.ghost:hover {
  box-shadow:
    0 0 0 1px rgba(166, 232, 198, 0.28),
    0 7px 18px rgba(150, 226, 186, 0.24),
    0 12px 28px rgba(105, 205, 155, 0.16);
}
.glow-btn {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 9px;
  box-shadow:
    0 0 0 1px rgba(172, 234, 201, 0.24),
    0 4px 10px rgba(156, 228, 190, 0.2),
    0 8px 16px rgba(108, 206, 156, 0.12);
  animation: glowPulse 2.6s ease-in-out infinite;
}
.glow-btn:hover {
  box-shadow:
    0 0 0 1px rgba(190, 244, 214, 0.3),
    0 6px 14px rgba(170, 240, 204, 0.24),
    0 10px 20px rgba(120, 214, 168, 0.16);
}
.param-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.param-item {
  border: 1px dashed #3f5f4f;
  border-radius: 10px;
  padding: 7px;
  background: rgba(6, 16, 12, 0.42);
}
.param-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.param-head span {
  font-size: 13px;
  color: #d7e9dc;
}
.glow-select {
  box-shadow:
    0 0 0 1px rgba(118, 151, 134, 0.14),
    0 0 7px rgba(118, 151, 134, 0.1);
}
.module-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.module-item {
  border: 1px dashed #3f5f4f;
  border-radius: 10px;
  padding: 7px;
  background: rgba(6, 16, 12, 0.45);
}
.module-head {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 5px;
}
.module-head input {
  flex: 1;
  border: 1px solid #355443;
  background: #09110d;
  color: #dff3e6;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}
.module-item textarea {
  min-height: 52px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #08100c;
  border: 1px solid #2d4a3b;
  border-radius: 10px;
  padding: 9px;
  min-height: 120px;
  color: #eaf4ee;
  line-height: 1.38;
  font-size: 13px;
}
@keyframes glowPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.05);
  }
}
@keyframes greenFocusPulse {
  0%,
  100% {
    filter: brightness(1.02);
  }
  50% {
    filter: brightness(1.06);
  }
}
@media (max-width: 900px) {
  .param-head {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 24px;
  }
}
