:root {
  color-scheme: dark;
  --canvas: #0b1017;
  --panel: #101720;
  --panel-soft: #0e151e;
  --line: #28323f;
  --line-soft: #1d2631;
  --ink: #edf0f2;
  --muted: #a1acb9;
  --faint: #737f8d;
  --gold: #d8ad54;
  --cyan: #73b8cf;
  --green: #58c99d;
  --red: #dc7377;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--gold);
  color: #101318;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.seo-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(40, 50, 63, 0.85);
  background: rgba(11, 16, 23, 0.94);
  backdrop-filter: blur(18px);
}

.seo-header__inner,
.seo-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.seo-header__inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.seo-brand img {
  width: 30px;
  height: 30px;
}

.seo-brand small {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.seo-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.seo-nav a {
  text-decoration: none;
}

.seo-nav a:hover,
.seo-nav a:focus-visible {
  color: var(--ink);
}

.seo-nav a[aria-current="page"] {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.seo-nav__primary {
  padding: 7px 12px;
  border: 1px solid rgba(216, 173, 84, 0.48);
  border-radius: 5px;
  color: var(--gold);
}

.seo-main {
  padding: clamp(62px, 8vw, 104px) 0 96px;
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.seo-breadcrumb a {
  text-decoration: none;
}

.seo-eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seo-hero {
  max-width: 900px;
  padding-bottom: clamp(54px, 8vw, 88px);
}

.seo-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #f5f2eb;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.seo-lead {
  max-width: 820px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}

.seo-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  max-width: 820px;
  margin-top: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 12px;
}

.seo-byline strong {
  color: var(--muted);
  font-weight: 650;
}

.seo-byline a {
  color: var(--cyan);
  text-decoration: none;
}

.seo-byline a:hover,
.seo-byline a:focus-visible {
  color: var(--ink);
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.seo-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.seo-button--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #15181c;
}

.seo-section {
  padding: clamp(42px, 7vw, 78px) 0;
  border-top: 1px solid var(--line-soft);
}

.seo-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: start;
}

.seo-section h2 {
  margin: 0;
  color: #f0eee8;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.25;
}

.seo-section h3 {
  margin: 0 0 9px;
  font-size: 17px;
}

.seo-copy {
  color: var(--muted);
}

.seo-copy > :first-child {
  margin-top: 0;
}

.seo-copy strong {
  color: var(--ink);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

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

.seo-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.seo-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.seo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.seo-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.seo-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.seo-table th,
.seo-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.seo-table tr:last-child td {
  border-bottom: 0;
}

.seo-table th {
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-table td {
  color: var(--muted);
  font-size: 14px;
}

.seo-table td:first-child {
  color: var(--ink);
  font-weight: 650;
}

.seo-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.seo-list li {
  position: relative;
  padding: 15px 16px 15px 44px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--muted);
  background: var(--panel-soft);
}

.seo-list li::before {
  position: absolute;
  top: 17px;
  left: 17px;
  color: var(--gold);
  content: "→";
}

.seo-note {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 14px;
}

.seo-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.seo-related a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.seo-related a:hover,
.seo-related a:focus-visible {
  border-color: rgba(216, 173, 84, 0.6);
}

.seo-related span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 13px;
}

.seo-footer {
  border-top: 1px solid var(--line);
  background: #090e14;
}

.seo-footer__inner {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 116px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--faint);
  font-size: 12px;
}

.seo-footer__inner p {
  max-width: 760px;
  margin: 0;
}

.seo-footer__inner a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.seo-404 {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.seo-404__inner {
  max-width: 620px;
  text-align: center;
}

.seo-404 h1 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: clamp(64px, 16vw, 150px);
  line-height: 1;
}

@media (max-width: 820px) {
  .seo-nav a:not(.seo-nav__primary) {
    display: none;
  }

  .seo-section__head {
    grid-template-columns: 1fr;
  }

  .seo-grid,
  .seo-related {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .seo-header__inner,
  .seo-shell,
  .seo-footer__inner {
    width: min(calc(100% - 24px), var(--max));
  }

  .seo-brand small {
    display: none;
  }

  .seo-main {
    padding-top: 44px;
  }

  .seo-hero h1 {
    font-size: 38px;
  }

  .seo-footer__inner {
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}
