:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8f9fa;
  --surface-raised: #ffffff;
  --text: #202122;
  --text-subtle: #54595d;
  --text-muted: #72777d;
  --border: #a2a9b1;
  --border-subtle: #eaecf0;
  --accent: #3366cc;
  --accent-hover: #2a4b8d;
  --accent-soft: #eaf3ff;
  --green: #14866d;
  --shadow: 0 10px 32px rgba(0, 0, 0, .07);
  --header-height: 68px;
  --content-width: 1180px;
  --radius-sm: 5px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101418;
    --surface: #171b20;
    --surface-alt: #1d2228;
    --surface-raised: #171b20;
    --text: #f1f3f5;
    --text-subtle: #bcc3ca;
    --text-muted: #929aa3;
    --border: #4a515a;
    --border-subtle: #2c3239;
    --accent: #75a7ff;
    --accent-hover: #a6c5ff;
    --accent-soft: rgba(51, 102, 204, .2);
    --green: #55c7a8;
    --shadow: 0 12px 36px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 22px); }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-160%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  width: min(100%, var(--content-width));
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 64px;
}
.header-nav a {
  color: var(--text-subtle);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.header-nav a:hover { color: var(--accent); }
.language-switcher {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 13px;
}
.language-switcher button {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--text-subtle);
  font: inherit;
  cursor: pointer;
}
.language-switcher button:hover,
.language-switcher button[aria-pressed="true"] {
  color: var(--accent);
  font-weight: 700;
}

.content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 56px 28px 86px;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 56px;
  align-items: center;
  min-height: 510px;
  padding: 58px 64px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--green) 15%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow);
}
.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, black 62%);
  content: "";
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker, .project-card__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}
.hero h1 {
  max-width: 700px;
  margin: 15px 0 24px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.hero-lead {
  max-width: 690px;
  margin: 0;
  color: var(--text-subtle);
  font-size: 18px;
  line-height: 1.9;
}
.hero-logo-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 330px;
}
.hero-logo {
  position: relative;
  z-index: 2;
  width: min(76%, 280px);
  height: auto;
}
.hero-logo-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 27%, transparent);
  border-radius: 50%;
}
.hero-logo-orbit--one { width: 285px; height: 285px; }
.hero-logo-orbit--two { width: 355px; height: 220px; transform: rotate(-18deg); }

.section { padding-top: 88px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 30px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
}
.section-heading h2,
.service-strip h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}
.section-heading > p {
  max-width: 500px;
  margin: 0;
  color: var(--text-subtle);
  font-size: 15px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.project-card {
  display: flex;
  min-height: 300px;
  padding: 30px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.project-card__header {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-bottom: 18px;
}
.project-logo-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.project-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-logo-box--gamewiki img { transform: scale(1.08); }
.project-logo-box--commons img { transform: scale(1.13); }
.project-card h3 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 31px;
  line-height: 1.2;
}
.project-card__eyebrow { margin-bottom: 10px; }
.project-card__desc {
  margin: 0;
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.8;
}
.card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.card-link:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.principle-grid article {
  padding: 26px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.principle-grid article > span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}
.principle-grid h3 { margin: 18px 0 8px; font-size: 20px; }
.principle-grid p { margin: 0; color: var(--text-subtle); font-size: 14px; }

.service-strip {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-top: 88px;
  padding: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}
.service-grid { display: grid; gap: 13px; }
.service-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.service-card:hover { border-color: var(--accent); color: var(--text); }
.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.service-icon svg,
.service-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon svg { width: 25px; height: 25px; }
.service-card__copy { display: grid; gap: 3px; }
.service-card__copy strong { font-size: 17px; }
.service-card__copy small { color: var(--text-subtle); font-size: 13px; }
.service-arrow { width: 22px; height: 22px; color: var(--text-muted); }

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px 48px;
  align-items: center;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 34px 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-logo { width: 38px; height: 38px; }
.footer-brand div { display: grid; line-height: 1.35; }
.footer-brand strong { font-family: Georgia, serif; font-size: 20px; }
.footer-brand span { color: var(--text-muted); font-size: 13px; }
.footer-links {
  display: flex;
  grid-column: 1 / -1;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.footer-links a,
.footer-meta a { color: var(--text-subtle); font-size: 13px; text-decoration: none; }
.footer-links a:hover,
.footer-meta a:hover { color: var(--accent); }
.footer-meta { display: flex; align-items: center; gap: 18px; color: var(--text-muted); font-size: 13px; }


@media (max-width: 1000px) {
  .header-nav { margin-left: 36px; gap: 20px; }
  .hero { grid-template-columns: 1fr 250px; padding: 48px; gap: 32px; }
  .project-card { padding: 26px; }
  .service-strip { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-height: 62px; }
  .header-inner { padding: 0 18px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-wordmark { font-size: 22px; }
  .header-nav { display: none; }
  .language-switcher { font-size: 12px; }
  .content { padding: 28px 16px 62px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 38px 26px 30px;
  }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-lead { font-size: 16px; }
  .hero-logo-wrap { min-height: 245px; }
  .hero-logo { width: 190px; }
  .hero-logo-orbit--one { width: 215px; height: 215px; }
  .hero-logo-orbit--two { width: 270px; height: 165px; }
  .section { padding-top: 64px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .project-grid, .principle-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 270px; }
  .project-logo-box { width: 42px; height: 42px; flex-basis: 42px; }
  .project-card h3 { font-size: 28px; }
  .service-strip { margin-top: 64px; padding: 25px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { justify-content: space-between; }
}

@media (max-width: 430px) {
  .brand-wordmark { font-size: 20px; }
  .language-switcher span { display: none; }
  .language-switcher { gap: 4px; }
  .language-switcher button { padding: 5px; }
  .hero { padding: 32px 21px 24px; }
  .project-card { padding: 22px; }
  .service-card { grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 12px; padding: 15px; }
  .service-icon { width: 42px; height: 42px; }
}
