:root {
  color-scheme: light;
  --bg: #eef2f6;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #18202c;
  --muted: #667085;
  --line: #d8dee8;
  --button: #172033;
  --button-hover: #2a364d;
  --cyan: #0e7490;
  --blue: #2563eb;
  --red: #dc2626;
  --green: #15803d;
  --violet: #7c3aed;
  --orange: #ea580c;
  --teal: #0f766e;
  --amber: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 242, 246, 0.94)),
    repeating-linear-gradient(90deg, rgba(24, 32, 44, 0.035) 0 1px, transparent 1px 96px);
  color: var(--text);
}

a {
  color: inherit;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
  margin: 0;
}

.stats div {
  min-width: 88px;
  padding: 12px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.stats dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tool-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.accent-cyan {
  --accent: var(--cyan);
}

.accent-blue {
  --accent: var(--blue);
}

.accent-red {
  --accent: var(--red);
}

.accent-green {
  --accent: var(--green);
}

.accent-violet {
  --accent: var(--violet);
}

.accent-orange {
  --accent: var(--orange);
}

.accent-teal {
  --accent: var(--teal);
}

.accent-amber {
  --accent: var(--amber);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.tag,
.signal {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag {
  padding: 4px 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, white);
}

.signal {
  color: #667085;
}

.tool-card h2 {
  margin: 22px 0 10px;
  font-size: 1.28rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.tool-card .hint {
  margin-top: 12px;
  color: #344054;
  font-weight: 650;
}

.tool-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--button);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.tool-card a:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.workflow {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
  background: #18202c;
  color: #ffffff;
  border-radius: 8px;
}

.workflow .eyebrow {
  color: #b9c2d0;
}

.workflow h2 {
  margin: 0;
  font-size: 1.6rem;
}

.workflow ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.workflow li {
  line-height: 1.72;
  color: #e5eaf2;
}

.footer {
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.troubleshooting {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.troubleshooting h2 {
  margin: 0;
  font-size: 1.5rem;
}

.troubleshooting-heading p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.fix-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.fix-steps li {
  line-height: 1.72;
}

.fix-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  line-height: 1.7;
  font-weight: 650;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .workflow {
    grid-template-columns: 1fr;
  }

  .troubleshooting {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    padding: 20px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-card {
    min-height: 238px;
    padding: 18px;
  }

  .workflow {
    padding: 20px;
  }

  .troubleshooting {
    padding: 20px;
  }
}
