:root {
  --bg: #0b0f14;
  --bg-soft: #121821;
  --card: #161d27;
  --line: #253040;
  --txt: #e6edf5;
  --txt-dim: #8b9bb0;
  --acc: #2ee6a8;
  --acc-2: #38bdf8;
  --danger: #ff6b6b;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--acc-2); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.top {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
}
.brand small { color: var(--txt-dim); font-weight: 400; font-size: 12px; }
.top nav { display: flex; gap: 18px; font-size: 14px; color: var(--txt-dim); }
.top nav a { color: var(--txt-dim); }
.top nav a:hover { color: var(--txt); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 {
  font-size: clamp(26px, 4.2vw, 42px);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--acc), var(--acc-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--txt-dim); margin: 0 auto; max-width: 620px; font-size: 15px; }

/* ---------- form ---------- */
.box {
  margin: 26px auto 0;
  max-width: 720px;
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.box:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.12);
}
.box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--txt);
  font-size: 15px;
  padding: 12px 14px;
}
.box input::placeholder { color: #55647a; }
.box button {
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #05130d;
  background: linear-gradient(120deg, var(--acc), #4ade80);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s, opacity .2s;
}
.box button:hover:not(:disabled) { transform: translateY(-1px); }
.box button:disabled { opacity: .55; cursor: not-allowed; }

.hint { text-align: center; color: var(--txt-dim); font-size: 13px; margin-top: 12px; min-height: 22px; }
.hint.err { color: var(--danger); }

/* ---------- result ---------- */
.result { max-width: 720px; margin: 8px auto 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.card-head { display: flex; gap: 16px; padding: 16px; align-items: flex-start; }
.card-head img {
  width: 92px; height: 92px; object-fit: cover;
  border-radius: 10px; background: var(--bg-soft); flex: none;
}
.card-meta { min-width: 0; flex: 1; }
.card-meta h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta .byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--txt-dim);
}
.card-meta .byline .who { color: var(--acc); font-weight: 600; font-size: 13px; }
.card-meta .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-meta .tags .tag { margin-right: 0; }

.chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .1);
  color: var(--acc-2);
  border: 1px solid rgba(56, 189, 248, .25);
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--txt-dim);
  margin-right: 6px;
}
.tag.on { color: var(--acc); border-color: rgba(46, 230, 168, .4); }

.rows { border-top: 1px solid var(--line); }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .q { font-weight: 600; font-size: 14px; }
.row .s { color: var(--txt-dim); font-size: 12px; }
.row .grow { flex: 1; min-width: 0; }
.row button {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--txt);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.row button.primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--acc), #4ade80);
  color: #05130d;
  font-weight: 600;
}
.row button:disabled { opacity: .5; cursor: not-allowed; }

.progress {
  height: 3px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.progress i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }

/* ---------- platforms ---------- */
.plat-section { padding: 46px 0 60px; }
.sec-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.sec-title h2 { font-size: 19px; margin: 0; }
.sec-title span { color: var(--txt-dim); font-size: 13px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.plat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--txt);
  transition: border-color .15s, transform .12s, background .15s;
  text-align: left;
}
.plat:hover { border-color: var(--acc); transform: translateY(-1px); }
.plat.active { border-color: var(--acc); background: rgba(46, 230, 168, .08); }
.plat .ico { font-size: 17px; line-height: 1; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--txt-dim);
  font-size: 12.5px;
  text-align: center;
}
footer a { color: var(--txt-dim); text-decoration: underline; }

.spin {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: sp .7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .box { flex-direction: column; }
  .box button { width: 100%; }
  .card-head img { width: 72px; height: 72px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
}
