* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: #101214;
  color: #eef2f4;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}
a {
  color: #a0e6f0;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #39414b;
  border-radius: 10px;
  background: #22272e;
  color: #edf2f4;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
button:hover,
.button:hover {
  border-color: #a0e6f0;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: #a0e6f0;
  color: #10272c;
  border-color: #a0e6f0;
}
a:focus-visible,
button:focus-visible,
textarea:focus-visible,
input:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid #e8b56a;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
header {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid #2d333b;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  color: #f4f6f8;
  font-weight: 750;
  letter-spacing: -1px;
  white-space: nowrap;
}
.mark {
  background: #a0e6f0;
  color: #12333b;
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.repo {
  margin-left: auto;
  white-space: nowrap;
}
.badge,
.tag {
  font-size: 12px;
  color: #c3cbd2;
  border: 1px solid #3a424c;
  border-radius: 30px;
  padding: 5px 12px;
}
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 80px 0 70px;
}
main {
  max-width: 1220px;
  margin: auto;
  padding: 0 24px;
}
.eyebrow {
  font:
    12px/1.6 "SFMono-Regular",
    Consolas,
    monospace;
  letter-spacing: 1.6px;
  color: #a0e6f0;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -2px;
  margin: 0 0 22px;
}
h1 span {
  color: #a0e6f0;
}
.lead {
  font-size: 17px;
  color: #adb8c3;
  line-height: 1.9;
  margin-bottom: 28px;
}
.hero .button {
  margin: 0 10px 10px 0;
}
.story {
  border: 1px solid #39414b;
  padding: 28px;
  border-radius: 18px;
  background: #191d22;
  transform: rotate(2deg);
}
.story > div {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid #333b44;
}
.story > div:last-child {
  border: 0;
}
.story b {
  min-width: 72px;
  color: #e8b56a;
  font-size: 15px;
}
.story span {
  font-size: 14px;
  color: #c2cbd2;
}
.workbench {
  border: 1px solid #39414b;
  background: #171b20;
  border-radius: 18px;
  overflow: hidden;
  scroll-margin-top: 20px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #39414b;
  gap: 12px;
}
.toolbar nav {
  display: flex;
  gap: 8px;
}
.toolbar button {
  border: 0;
  background: transparent;
}
.toolbar button[aria-pressed="true"] {
  background: #303c42;
  color: #a0e6f0;
}
.notice {
  font-size: 13px;
  padding: 14px 26px;
  background: #26261f;
  color: #d7c6a4;
  border-bottom: 1px solid #504837;
}
.view {
  padding: 30px 26px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.section-heading .eyebrow {
  margin: 0 0 7px;
}
h2 {
  font-size: 26px;
  line-height: 1.4;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 0 0 14px;
}
.muted {
  color: #9da9b6;
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.card {
  background: #20252c;
  border: 1px solid #3b434d;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.card h3 {
  overflow-wrap: anywhere;
  font-size: 16px;
  min-height: 52px;
  color: #a0e6f0;
}
.card dl {
  margin: 0 0 20px;
}
.card dt {
  font-size: 12px;
  color: #a6b2be;
  margin-bottom: 5px;
}
.card dd {
  font-size: 14px;
  margin: 0 0 18px;
  min-height: 48px;
  line-height: 1.75;
}
.card label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin-top: auto;
  margin-bottom: 16px;
}
.card input {
  accent-color: #a0e6f0;
  width: 17px;
  height: 17px;
}
.card .sources {
  font-size: 12px;
  margin-bottom: 18px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  min-width: 600px;
  width: 100%;
  font-size: 13px;
  margin-top: 15px;
}
th,
td {
  padding: 16px;
  border: 1px solid #414952;
  text-align: left;
  vertical-align: top;
}
th {
  color: #a0e6f0;
  background: #20272d;
}
#comparison {
  margin-top: 28px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
label {
  display: block;
  font-size: 14px;
}
.script-field {
  margin-bottom: 20px;
}
.script-field label {
  margin-bottom: 8px;
  color: #a0e6f0;
}
textarea {
  resize: vertical;
  width: 100%;
  border: 1px solid #424c58;
  border-radius: 10px;
  padding: 14px;
  color: #edf2f4;
  background: #12161b;
  line-height: 1.8;
  font-size: 15px;
}
textarea:focus {
  border-color: #a0e6f0;
}
.output {
  background: #20252c;
  padding: 22px;
  border-radius: 14px;
}
.output p {
  font-size: 13px;
  color: #aab6c2;
}
hr {
  border: 0;
  border-top: 1px solid #414952;
  margin: 24px 0;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.bot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 16px;
  padding: 30px 0;
}
.bot {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  font-weight: 400;
  min-height: 125px;
}
.bot img {
  width: 62px;
  height: 62px;
  animation: bob 4s ease-in-out infinite;
}
.bot:nth-child(2n) img {
  animation-delay: -2s;
}
.bot:nth-child(3n) img {
  animation-delay: -1s;
}
.bot:hover {
  background: #252e35;
}
.paused img {
  animation-play-state: paused;
}
@keyframes bob {
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}
.closing {
  text-align: center;
  padding: 75px 10px 65px;
}
.closing > p {
  color: #a6b4bf;
}
.closing .muted {
  margin-top: 20px;
}
footer {
  max-width: 1220px;
  margin: auto;
  padding: 24px;
  border-top: 1px solid #343c45;
  font-size: 13px;
  color: #a0aebb;
  display: flex;
  justify-content: space-between;
}
dialog {
  border: 1px solid #5b6978;
  color: #edf2f4;
  background: #20252c;
  border-radius: 18px;
  padding: 30px;
  max-width: 540px;
  width: calc(100% - 36px);
}
dialog::backdrop {
  background: #000a;
}
dialog p {
  color: #c7d0d8;
}
dialog .actions {
  padding-top: 14px;
}
dialog h2 {
  outline: none;
}
.status {
  padding: 0 26px;
  color: #a0e6f0;
  font-size: 13px;
  min-height: 20px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: #20252c;
  padding: 12px;
}
.skip:focus {
  top: 12px;
  z-index: 10;
}
noscript {
  display: block;
  padding: 20px;
}
@media (max-width: 850px) {
  .hero {
    gap: 30px;
    grid-template-columns: 1fr;
    padding: 46px 0;
  }
  .story {
    transform: none;
    max-width: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card h3 {
    min-height: 0;
  }
  .card dd {
    min-height: 0;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .bot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar nav {
    width: 100%;
  }
  .toolbar button {
    flex: 1;
    padding: 10px 8px;
  }
  header {
    padding: 0 20px;
    height: 74px;
    gap: 12px;
  }
  .badge {
    display: none;
  }
  main {
    padding: 0 16px;
  }
  .view {
    padding: 24px 18px;
  }
  .notice {
    padding: 14px 18px;
  }
  .hero h1 {
    letter-spacing: -1px;
  }
  .story {
    padding: 22px;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
    margin-top: 8px;
  }
  h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bot img {
    animation: none;
  }
}
