:root {
  --slate: #1e293b;
  --panel: #0f172a;
  --key: #facc15;
  --key-shadow: #ca8a04;
  --mist: #f8fafc;
  --line: #334155;
  --ink: #0f172a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--mist);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  font-size: 17px;
}

a { color: var(--slate); }
a:hover { color: #854d0e; }
svg { display: block; }

.wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--panel);
  color: #e2e8f0;
}
.site-header a { color: #e2e8f0; text-decoration: none; }
.site-header a:hover { color: var(--key); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: 0.92rem; }

.hero {
  background: var(--slate);
  color: #f8fafc;
  padding: 40px 0 36px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.22;
  max-width: 20ch;
}
.hero p { margin: 0 0 12px; color: #cbd5e1; max-width: 68ch; }

kbd, .kbd {
  display: inline-block;
  background: var(--key);
  color: #111;
  border-radius: 6px;
  padding: 0.05em 0.48em;
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-weight: 700;
  box-shadow: 0 2px 0 var(--key-shadow);
  line-height: 1.4;
}

.cheat-wrap {
  margin-top: 22px;
  background: var(--mist);
  color: var(--ink);
  border: 3px solid var(--key);
  box-shadow: 8px 8px 0 var(--panel);
  overflow: auto;
}
.cheat-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.cheat-wrap th, .cheat-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.cheat-wrap th {
  background: var(--key);
  color: #111;
  font-size: 0.92rem;
}
.cheat-wrap tr:last-child td { border-bottom: 0; }
.mono { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; }

.section { padding: 46px 0; }
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.28;
}
.section p { margin: 0 0 14px; }

.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.card {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 16px 16px 18px;
  box-shadow: 4px 4px 0 #e2e8f0;
}
.card svg { width: 30px; height: 30px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.04rem; }
.card p { margin: 0; }

.steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  counter-reset: step;
}
.steps li {
  flex: 1 1 200px;
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 14px 14px 14px 16px;
}
.steps li strong {
  display: block;
  color: #854d0e;
  margin-bottom: 6px;
}
.steps li strong::before {
  counter-increment: step;
  content: counter(step) ". ";
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.split article {
  background: #fff;
  border-top: 6px solid var(--key);
  padding: 16px 18px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
}

.table-wrap { overflow: auto; margin-top: 12px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}
table.data th, table.data td {
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.data th { background: var(--slate); color: #fff; }

.faq-item {
  background: #fff;
  border-left: 6px solid var(--key);
  padding: 14px 16px;
  margin-top: 10px;
  box-shadow: 0 1px 0 #e2e8f0;
}
.faq-item h3 { margin: 0 0 8px; font-size: 1.04rem; }
.faq-item p { margin: 0; }

.site-footer {
  background: var(--panel);
  color: #cbd5e1;
  padding: 28px 0 36px;
  font-size: 0.92rem;
}
.site-footer p { margin: 0 0 10px; }

@media (max-width: 860px) {
  .card-row, .split { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .hero h1 { max-width: none; }
}
