:root {
  color-scheme: dark;
  --page-bg: #080a10;
  --header-bg: #111425;
  --footer-bg: #202126;
  --text: #ffffff;
  --muted: #969aa8;
  --accent: #1799ff;
  --accent-strong: #0088f5;
  --divider: #30323a;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page-bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 10;
  height: 60px;
  background: var(--header-bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1110px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.brand-link {
  flex: 0 0 auto;
}

.brand-link img {
  width: 184px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-link,
.back-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.guide-link:hover,
.back-home-link:hover {
  background: var(--accent-strong);
}

.guide-link.is-current {
  cursor: default;
}

.back-home-link {
  color: #d8dbe4;
  background: #303342;
}

@media (min-width: 769px) {
  .site-nav--home .guide-link {
    width: 96px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  padding: 16px 24px;
  color: #c6c8cf;
  background: var(--footer-bg);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.footer-links a {
  padding: 0 10px;
  border-right: 1px solid #686a71;
}

.footer-links a:last-child {
  border-right: 0;
}

.footer-links a:hover,
.record-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-header {
    height: 60px;
    background: #010207;
  }

  .site-header__inner {
    width: calc(100% - 24px);
  }

  .brand-link img {
    width: 112px;
    height: auto;
  }

  .site-nav {
    gap: 6px;
  }

  .guide-link,
  .back-home-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .site-footer {
    min-height: 87px;
    padding: 12px 16px 10px;
    row-gap: 3px;
    color: #ffffff;
    background: #1a1b1e;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 10px;
    line-height: 14px;
  }

  .footer-links {
    height: 14px;
  }

  .footer-links a {
    position: relative;
    padding: 0 10px;
    border-right: 0;
  }

  .footer-links a:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 13px;
    background: #ffffff;
    content: "";
    transform: translateY(-50%);
  }

  .record-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 1px;
  }
}

@media (max-width: 350px) {
  .brand-link img {
    width: 100px;
  }

  .guide-link,
  .back-home-link {
    padding: 0 8px;
    font-size: 11px;
  }
}
