:root {
  color: oklch(24% 0.035 150);
  background: oklch(97% 0.011 92);
  font-family: "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans", "Yu Gothic", "Segoe UI", "Microsoft YaHei", sans-serif;
  --page: oklch(97% 0.011 92);
  --paper: oklch(99% 0.007 92);
  --ink: oklch(24% 0.035 150);
  --muted: oklch(48% 0.027 148);
  --line: oklch(87% 0.022 82);
  --green-deep: oklch(29% 0.07 160);
  --orange: oklch(58% 0.13 55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, oklch(91% 0.04 74 / 0.9), transparent 36rem),
    linear-gradient(180deg, oklch(99% 0.006 96), var(--page) 48%, oklch(94% 0.014 92));
}

a {
  color: var(--green-deep);
  font-weight: 700;
  text-underline-offset: 3px;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid oklch(87% 0.022 82 / 0.74);
  background: oklch(97% 0.011 92 / 0.82);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.switcher button {
  min-height: 36px;
  padding: 6px 10px;
  color: var(--muted);
  font: inherit;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.switcher button[aria-pressed="true"],
.switcher button:hover {
  color: var(--green-deep);
  background: oklch(39% 0.08 160 / 0.1);
}

main {
  flex: 1;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.meta,
p,
li {
  color: var(--muted);
  line-height: 1.8;
}

.meta {
  margin: 0 0 28px;
  font-size: 0.95rem;
}

h2 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}

ul {
  margin: 0;
  padding-left: 1.2em;
}

.locale {
  display: none;
}

html:not([data-locale]) .locale[data-locale="en"],
html[data-locale="en"] .locale[data-locale="en"],
html[data-locale="zh-Hans"] .locale[data-locale="zh-Hans"],
html[data-locale="zh-Hant"] .locale[data-locale="zh-Hant"],
html[data-locale="ja"] .locale[data-locale="ja"],
html[data-locale="ru"] .locale[data-locale="ru"] {
  display: block;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.police-beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-beian img {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .top,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  main,
  .site-footer {
    width: min(100% - 28px, 760px);
  }
}
