:root {
  --md-primary-fg-color: #171717;
  --md-primary-fg-color--light: #2f2f2f;
  --md-primary-fg-color--dark: #0b0b0b;
  --md-accent-fg-color: #f4c430;
  --brand-yellow: #f4c430;
  --brand-ink: #171717;
  --brand-muted: #6d6a63;
  --brand-line: #dfddd5;
  --brand-surface: #f5f4ef;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
}

[data-md-color-scheme="slate"] {
  --brand-surface: #20201e;
  --brand-line: #3c3b36;
  --brand-muted: #b4b0a6;
}

.md-header,
.md-tabs {
  background: var(--brand-ink);
}

.md-header__button.md-logo img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
  border-radius: 0.35rem;
}

.md-main__inner {
  margin-top: 1.25rem;
}

.md-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.04em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.8fr);
  gap: 2.5rem;
  align-items: stretch;
  margin: 1rem 0 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 196, 48, 0.25), transparent 30%),
    linear-gradient(135deg, #171717 0%, #2b2a26 100%);
  border: 1px solid #34332f;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.08);
}

.hero h1 {
  max-width: 650px;
  margin: 0.35rem 0 1rem;
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero p {
  max-width: 560px;
  color: #dedbd2;
  font-size: 1.05rem;
}

.eyebrow,
.hero-card-label,
.feature-index,
.step-number {
  color: var(--brand-yellow);
  font-family: "SF Mono", "Cascadia Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero .md-button {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.hero .md-button--primary {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
  color: var(--brand-ink);
}

.hero-card {
  align-self: end;
  padding: 1.25rem;
  color: var(--brand-ink);
  background: var(--brand-yellow);
  border: 1px solid #171717;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
}

.hero-card h2 {
  margin: 0.55rem 0 1.1rem;
  color: var(--brand-ink);
  font-size: 2.25rem;
  letter-spacing: -0.06em;
}

.hero-card p,
.hero-card .hero-card-label,
.hero-card-line {
  color: #3a382f;
}

.hero-card-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(23, 23, 23, 0.28);
  font-size: 0.78rem;
}

.hero-card-line span {
  opacity: 0.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.25rem;
}

.feature-card {
  min-height: 12rem;
  padding: 1.25rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  transition: transform 160ms ease, border-color 160ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-yellow);
}

.feature-card h3 {
  margin-top: 0.7rem;
  font-size: 1.1rem;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}

.step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--brand-surface);
  border-left: 4px solid var(--brand-yellow);
}

.step-number {
  padding-top: 0.35rem;
  color: var(--brand-ink);
}

.step h2 {
  margin: 0;
  font-size: 1rem;
}

.step p:last-child {
  margin-bottom: 0;
}

.md-typeset table:not([class]) th {
  background: var(--brand-ink);
  color: #fff;
}

.md-typeset table:not([class]) tr:hover {
  background: rgba(244, 196, 48, 0.11);
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 0;
  box-shadow: none;
}

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

  .hero {
    gap: 1.5rem;
  }

  .hero-card {
    max-width: none;
  }
}
