:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.22);
  --text: #e5eefc;
  --muted: #9fb0c8;
  --brand: #38bdf8;
  --brand-2: #818cf8;
  --danger: #fb7185;
  --ok: #34d399;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), transparent 34rem),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.22), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  font-size: 13px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(36px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  max-width: 760px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stats div,
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.stats div {
  padding: 22px;
}

.stats strong {
  display: block;
  font-size: 34px;
  color: #ffffff;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  padding: 26px;
}

.form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  outline: none;
  padding: 14px 15px;
  background: rgba(2, 6, 23, 0.58);
  color: var(--text);
}

input:focus,
select:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  color: #05111f;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 700;
}

button:hover {
  filter: brightness(1.08);
}

.ghost {
  color: var(--text);
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.explain ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.result {
  border: 1px solid rgba(52, 211, 153, 0.34);
  border-radius: 18px;
  padding: 16px;
  background: rgba(6, 78, 59, 0.25);
  color: #d1fae5;
  word-break: break-all;
}

.result.error {
  border-color: rgba(251, 113, 133, 0.36);
  background: rgba(127, 29, 29, 0.24);
  color: #ffe4e6;
}

.result a {
  color: #7dd3fc;
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  color: #cbd5e1;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: var(--muted);
}

.short-link {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: none;
}

.target {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  text-align: center;
  color: #64748b;
}

@media (max-width: 840px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 20px 0;
  }

  .card,
  .stats div {
    border-radius: 18px;
    padding: 18px;
  }
}
