/* 第5套 web · 深色工具站 */
:root {
  --bg: #0b1017;
  --bg-2: #101722;
  --panel: #161d28;
  --panel-2: #1c2533;
  --line: #334155;
  --line-2: #3d4d63;
  --text: #eef3f8;
  --muted: #c5d0dc;
  --title: #f7fafc;
  --accent: #4aa3ff;
  --accent-2: #7ec0ff;
  --win: #e03131;
  --win-hover: #c42727;
  --ok: #3dd68c;
  --warn: #f5b942;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Sarasa Mono SC", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(74, 163, 255, 0.05), transparent 220px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.8;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--accent-2);
}

a:hover {
  color: #fff;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--panel-2);
  color: var(--title);
  border: 2px solid var(--accent);
  padding: 6px 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0e141d;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.topbar-inner {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--title);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.brand:hover {
  color: var(--accent-2);
}

.nav {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a.is-on,
.nav a[aria-current="page"] {
  color: var(--title);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.nav a:hover {
  color: var(--title);
}

.btn,
.btn-win,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-win {
  background: var(--win);
  color: #fff;
  border-color: #ff6b6b;
  flex-shrink: 0;
}

.btn-win:hover {
  background: var(--win-hover);
  color: #fff;
}

.btn {
  background: #1f6feb;
  color: #fff;
  border-color: #4aa3ff;
}

.btn:hover {
  background: #2b7fff;
  color: #fff;
}

.btn-ghost {
  background: var(--panel-2);
  color: var(--title);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: #243044;
  color: #fff;
}

.btn svg,
.btn-win svg {
  width: 16px;
  height: 16px;
}

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 40px;
}

.hero {
  margin: 28px 0 22px;
  padding: 26px 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  color: var(--title);
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  font-size: 1.82rem;
  margin: 0 0 14px;
}

h2 {
  font-size: 1.32rem;
  margin: 0 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.lede,
.panel p,
.hero p,
.faq p,
.note {
  margin: 0 0 12px;
  color: var(--text);
}

.lede {
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--title);
}

.dock a.win {
  background: var(--win);
  border-color: #ff6b6b;
  color: #fff;
}

.dock a.win:hover {
  background: var(--win-hover);
  color: #fff;
}

.dock a:hover {
  border-color: var(--accent);
  color: #fff;
}

.panel {
  margin: 0 0 22px;
  padding: 22px 22px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.panel-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 8px;
}

.tool {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 12px;
}

.tool h3 {
  margin-top: 0;
}

.tool p:last-child {
  margin-bottom: 0;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  background: var(--panel-2);
  font-size: 0.95rem;
}

.compare th,
.compare td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text);
}

.compare th {
  background: #223044;
  color: var(--title);
}

.steps {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 12px 12px 12px 58px;
  margin: 0 0 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1f6feb;
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 32px;
}

.faq article {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.faq article:last-child {
  border-bottom: none;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-panel {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
}

.site-foot {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 28px;
  padding: 16px 18px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}

.site-foot .safe {
  margin: 0 0 8px;
  color: var(--ok);
  font-weight: 700;
}

.site-foot p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 900px) {
  .dock,
  .panel-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    align-items: flex-start;
  }

  .hero,
  .panel {
    padding: 18px 16px 16px;
  }

  .dock,
  .panel-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.45rem;
  }
}
