:root {
  color: #eef8fa;
  background: #03080d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  min-height: 100%;
  color-scheme: dark;
  background: #03080d;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #eef8fa;
  background: #03080d;
}

a,
button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #8ce4ef;
  outline-offset: 4px;
}

.system-skip {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 16px;
  padding: 10px 14px;
  border: 1px solid #8ce4ef;
  color: #f5feff;
  background: #071219;
  font-size: 13px;
  transform: translateY(-160%);
}

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

.system-header {
  position: relative;
  z-index: 4;
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(224, 244, 248, 0.12);
}

.system-brand {
  color: rgba(242, 250, 251, 0.9);
  font-family: "STXingkai", "Xingkai SC", "Kaiti SC", "KaiTi", cursive;
  font-size: 21px;
  text-decoration: none;
}

.system-header__meta {
  color: rgba(208, 230, 234, 0.44);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.error-page {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  place-items: center;
  overflow: hidden;
}

.error-page::before {
  position: absolute;
  inset: 16% -12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 228, 239, 0.24), transparent);
  content: "";
  transform: rotate(-7deg);
}

.error-page::after {
  position: absolute;
  inset: auto -12% 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  content: "";
  transform: rotate(5deg);
}

.error-scene {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(980px, calc(100% - 40px));
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
  padding: 70px 0 96px;
}

.error-number {
  position: relative;
  margin: 0;
  color: transparent;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(150px, 24vw, 330px);
  font-weight: 200;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(226, 246, 249, 0.3);
  user-select: none;
}

.error-number img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(72px, 9vw, 112px);
  height: clamp(72px, 9vw, 112px);
  border: 1px solid rgba(224, 244, 248, 0.28);
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.72);
  transform: translate(-50%, -50%);
}

.error-copy {
  max-width: 520px;
}

.error-copy > span {
  color: #8ce4ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.error-copy h1 {
  max-width: 430px;
  margin: 20px 0 18px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.16;
}

.error-copy p {
  max-width: 440px;
  margin: 0;
  color: rgba(207, 228, 232, 0.56);
  font-size: 13px;
  line-height: 1.9;
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.system-actions a,
.system-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(224, 244, 248, 0.18);
  border-radius: 4px;
  color: rgba(239, 249, 250, 0.84);
  background: transparent;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.system-actions a:first-child {
  border-color: #8ce4ef;
  color: #061116;
  background: #a8eef5;
}

.privacy-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 120px;
}

.privacy-hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 76px;
}

.privacy-index {
  margin-top: 10px;
  color: #8ce4ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.privacy-hero h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(48px, 8vw, 82px);
  font-weight: 500;
  line-height: 1;
}

.privacy-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(212, 232, 235, 0.62);
  font-size: 15px;
  line-height: 1.9;
}

.privacy-section {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 34px;
  padding: 34px 0;
  border-top: 1px solid rgba(222, 242, 245, 0.12);
}

.privacy-section > span {
  color: rgba(200, 224, 228, 0.38);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.privacy-section h2 {
  margin: 0 0 13px;
  font-size: 18px;
  font-weight: 580;
}

.privacy-section p {
  max-width: 690px;
  margin: 0;
  color: rgba(205, 227, 231, 0.58);
  font-size: 13px;
  line-height: 1.95;
}

.privacy-section a {
  color: #9cebf3;
  overflow-wrap: anywhere;
}

.privacy-note {
  margin: 44px 0 0 152px;
  padding: 18px 20px;
  border-left: 2px solid #8ce4ef;
  color: rgba(223, 240, 243, 0.72);
  background: rgba(140, 228, 239, 0.055);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .system-header {
    width: calc(100% - 32px);
    min-height: 66px;
  }

  .error-scene {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0 72px;
  }

  .error-number {
    font-size: min(55vw, 220px);
  }

  .error-copy h1 {
    margin-top: 14px;
    font-size: 38px;
  }

  .privacy-page {
    width: calc(100% - 32px);
    padding: 64px 0 90px;
  }

  .privacy-hero,
  .privacy-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .privacy-hero {
    margin-bottom: 52px;
  }

  .privacy-section {
    padding: 28px 0;
  }

  .privacy-note {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
