:root {
  color-scheme: light;
  --ink: #2d2132;
  --muted: #665d6b;
  --line: #e5dfe7;
  --surface: #fff8c9;
  --pink: #f53386;
  --orange: #e98200;
  --blue: #3567b7;
  --page: #ffffff;
  --max-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink);
}

a:focus-visible {
  outline: 3px solid rgba(245, 51, 134, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner,
.page-shell,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

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

.page-shell {
  padding-block: 64px 72px;
}

.page-heading {
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 750;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0;
}

.subtitle,
.updated {
  color: var(--muted);
}

.subtitle {
  max-width: 680px;
  margin-bottom: 10px;
  font-size: 19px;
}

.updated {
  margin-bottom: 0;
  font-size: 14px;
}

.language-section + .language-section {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 2px solid var(--line);
}

.content-section + .content-section {
  margin-top: 36px;
}

.content-section p:last-child,
.content-section ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.25em;
}

li + li {
  margin-top: 7px;
}

.notice {
  margin: 32px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: var(--surface);
}

.notice p {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 22px;
}

.faq-item {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-panel,
.link-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-panel {
  margin-top: 40px;
}

.contact-panel p:last-child,
.link-panel p:last-child {
  margin-bottom: 0;
}

.email-link {
  display: inline-block;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.home-shell {
  min-height: calc(100vh - 89px);
  display: grid;
  align-content: center;
  padding-block: 56px 72px;
}

.home-mark {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
}

.home-intro {
  max-width: 620px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 19px;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-link {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.home-link:first-child {
  background: var(--surface);
}

.home-link:last-child {
  background: #fce8f1;
}

.home-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.home-link span {
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

.not-found {
  min-height: calc(100vh - 89px);
  display: grid;
  align-content: center;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 12px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    padding-left: 54px;
  }

  .page-shell {
    padding-block: 44px 56px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 23px;
  }

  .subtitle,
  .home-intro {
    font-size: 17px;
  }

  .home-links {
    grid-template-columns: 1fr;
  }

  .home-link {
    min-height: 108px;
  }

  .language-section + .language-section {
    margin-top: 52px;
    padding-top: 44px;
  }
}

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