:root {
  --bg: #080b0f;
  --bg-2: #0c1117;
  --surface: rgba(18, 24, 31, 0.72);
  --surface-solid: #121820;
  --surface-2: #161d26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eff6;
  --muted: #8593a3;
  --dim: #61707f;
  --gpt: #19c37d;
  --gpt-soft: rgba(25, 195, 125, 0.12);
  --claude: #d97757;
  --claude-soft: rgba(217, 119, 87, 0.12);
  --amber: #e0a83c;
  --red: #ef5f5f;
  --red-soft: rgba(239, 95, 95, 0.1);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .1px;
}

a { color: inherit; text-decoration: none; }

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 18% -12%, rgba(25, 195, 125, 0.16), transparent 62%),
    radial-gradient(760px 460px at 88% -6%, rgba(217, 119, 87, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(40, 90, 160, 0.07), transparent 65%);
}

.nav, main, footer { position: relative; z-index: 1; }

/* ---------------- 导航 ---------------- */

.nav {
  max-width: 1020px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--gpt), #0a7f57);
  box-shadow: 0 0 0 1px rgba(25,195,125,.35), 0 6px 18px -6px rgba(25,195,125,.7);
  position: relative;
  flex: none;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: var(--bg);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: .3px; }
.brand-text small { color: var(--dim); font-size: 11.5px; letter-spacing: .3px; }

.links { display: flex; gap: 4px; font-size: 13.5px; }
.links a {
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s;
}
.links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.links a.active {
  color: var(--gpt);
  border-color: rgba(25,195,125,.3);
  background: var(--gpt-soft);
}

/* ---------------- Hero ---------------- */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 24px 72px;
}

.hero { text-align: center; padding: 34px 0 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #9fe8cc;
  background: rgba(25,195,125,.08);
  border: 1px solid rgba(25,195,125,.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: .2px;
}

.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gpt);
  box-shadow: 0 0 0 0 rgba(25,195,125,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25,195,125,.5); }
  70% { box-shadow: 0 0 0 7px rgba(25,195,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,195,125,0); }
}

.hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.26;
  letter-spacing: -1px;
  margin: 0 0 16px;
  font-weight: 700;
  color: #f2f7fb;
}

.grad-gpt {
  background: linear-gradient(120deg, #34e0a1, #14a06c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-claude {
  background: linear-gradient(120deg, #eb9478, #c9623f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sep { color: #2b3641; font-weight: 300; margin: 0 2px; }

.lead {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #b8c6d4;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-gpt { background: var(--gpt); box-shadow: 0 0 9px rgba(25,195,125,.8); }
.dot-claude { background: var(--claude); box-shadow: 0 0 9px rgba(217,119,87,.8); }

/* ---------------- 步骤 ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 42px 0 18px;
}

.step {
  background: linear-gradient(180deg, rgba(22,29,38,.9), rgba(12,17,23,.9));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 18px 20px;
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.step .num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--gpt);
  display: block;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.step h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 12.8px; line-height: 1.65; }

/* ---------------- 面板 ---------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-top: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.04);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.panel-head h2 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: .2px; }
.panel-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.plat-tag {
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.plat-tag.gpt { color: var(--gpt); border-color: rgba(25,195,125,.35); background: var(--gpt-soft); }
.plat-tag.claude { color: var(--claude); border-color: rgba(217,119,87,.35); background: var(--claude-soft); }

/* ---------------- 表单 ---------------- */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > span { font-size: 12.5px; color: #aab8c6; letter-spacing: .2px; }

input[type="text"], textarea, select {
  width: 100%;
  background: rgba(8, 11, 15, .75);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, #6b7b8a 50%), linear-gradient(135deg, #6b7b8a 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.6px;
  line-height: 1.6;
  resize: vertical;
  min-height: 140px;
}

input::placeholder, textarea::placeholder { color: #4d5b69; }

input:focus, textarea:focus, select:focus {
  border-color: rgba(25,195,125,.55);
  box-shadow: 0 0 0 3px rgba(25,195,125,.1);
  background: rgba(8, 11, 15, .95);
}

.row-inline { display: flex; gap: 10px; }
.row-inline input { flex: 1; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s, filter .18s, border-color .18s, color .18s, opacity .18s;
}

.btn.primary {
  background: linear-gradient(135deg, #22d68a, #10a06a);
  color: #03130d;
  box-shadow: 0 10px 26px -12px rgba(25,195,125,.85);
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn.primary:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }

.btn.ghost {
  background: rgba(255,255,255,.02);
  border-color: var(--line);
  color: #cbd7e3;
}
.btn.ghost:hover { border-color: rgba(25,195,125,.45); color: var(--gpt); }

.btn:active:not(:disabled) { transform: translateY(1px); }

.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.tip { color: var(--dim); font-size: 12.3px; margin: 6px 0 14px; line-height: 1.65; }
.tip.inline { margin: 0; }

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  color: #9fe8cc;
}

/* ---------------- 校验结果 ---------------- */

.verify-box, .parsed {
  background: rgba(8, 11, 15, .55);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 4px 0 18px;
  transition: border-color .2s, background .2s;
}

.verify-box.ok { border-color: rgba(25,195,125,.3); background: rgba(25,195,125,.05); }
.verify-box.bad { border-color: rgba(239,95,95,.32); background: var(--red-soft); }

.verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  font-size: 13px;
}
.verify-row span { color: var(--muted); }
.verify-row strong { font-weight: 600; word-break: break-all; text-align: right; }
.verify-row strong.ok { color: var(--gpt); }
.verify-row strong.bad { color: var(--red); }

.empty-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 18px;
}
.empty-hint p { margin: 0; }
.empty-icon {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  position: relative;
}
.empty-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 2px;
  background: var(--line-strong);
}

/* ---------------- 结果 ---------------- */

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 4px 0 16px;
}
.result-grid > div {
  background: rgba(8, 11, 15, .6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.result-grid span { color: var(--muted); font-size: 11.5px; letter-spacing: .3px; }
.result-grid strong { font-size: 13.5px; font-weight: 600; word-break: break-all; }

.pill {
  font-size: 11.5px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.pill.ok { color: var(--gpt); border-color: rgba(25,195,125,.4); background: var(--gpt-soft); }
.pill.bad { color: var(--red); border-color: rgba(239,95,95,.4); background: var(--red-soft); }

.result-msg { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

/* ---------------- 档位：两条紧凑横条 ---------------- */

.tiers {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px 18px;
  align-items: center;
  background: rgba(18, 24, 31, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 18px;
}

.tier-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .2px;
}

.tier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tier-tags span {
  font-size: 11.8px;
  color: #b9c7d5;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.tier-note {
  grid-column: 2;
  margin: 0;
  font-size: 11.5px;
  color: var(--dim);
}
.plan-card { padding: 18px 20px; }
.side .plan-card li { font-size: 12.8px; padding: 6px 0; }
.side .plan-head { margin-bottom: 12px; }
.side .plan-head h3 { font-size: 14px; }
.side .plan-note { font-size: 11.5px; line-height: 1.55; }

.plan-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(22,29,38,.85), rgba(12,17,23,.85));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  transition: border-color .2s, transform .2s;
}
.plan-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.plan-card.plan-gpt { border-left: 2px solid rgba(25,195,125,.35); }
.plan-card.plan-claude { border-right: 2px solid rgba(217,119,87,.35); }

.plan-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.plan-head h3 { margin: 0; font-size: 15px; font-weight: 600; }

.plan-card ul { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.plan-card li {
  font-size: 13px;
  color: #b3c1cf;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.plan-card li:last-child { border-bottom: 0; }

.plan-note { margin: 0; font-size: 12px; color: var(--dim); }

/* ---------------- 其他 ---------------- */

.hidden { display: none !important; }

footer {
  text-align: center;
  color: var(--dim);
  font-size: 11.8px;
  padding: 0 24px 52px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------------- 查询表格 ---------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8, 11, 15, .5);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-scroll th, .table-scroll td {
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  white-space: nowrap;
}

.table-scroll th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .3px;
}

.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover { background: rgba(255,255,255,.02); }

td.ok { color: var(--gpt); }
td.bad { color: var(--red); }
td.muted-cell { color: var(--muted); }

/* 手机适配 */
@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .links a { padding: 6px 10px; font-size: 13px; }
  main { padding: 16px 16px 56px; }
  .hero { padding: 22px 0 4px; }
  .panel { padding: 20px 17px; }
  .row-inline { flex-direction: column; }
  .row-inline .btn { width: 100%; }
  .steps { margin-top: 30px; }
  .tier-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .tier-note { grid-column: 1; }
}
