:root {
  color-scheme: dark;
  --background: #080b12;
  --surface: #101520;
  --surface-soft: #151c29;
  --text: #f6f7fb;
  --muted: #aeb7c8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #87a8ff;
  --accent-soft: rgba(81, 119, 218, 0.2);
  --content: 920px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(55, 91, 185, 0.2), transparent 34rem),
    radial-gradient(circle at 100% 35%, rgba(66, 83, 130, 0.13), transparent 30rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.88);
}

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

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

.brand {
  text-decoration: none;
}

.brand-mark {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.32em;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.page {
  padding-block: 68px 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
}

.hero {
  margin-bottom: 44px;
}

.panel,
.language-block,
.link-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.24);
}

.panel,
.language-block {
  border-radius: 24px;
  padding: clamp(24px, 5vw, 44px);
}

.language-block + .language-block {
  margin-top: 28px;
}

.language-label {
  display: inline-flex;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.updated {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-section + .legal-section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-section h3 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li {
  color: #dbe1ec;
}

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

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 8px;
}

.contact-link {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

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

.link-card {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(135, 168, 255, 0.48);
  background: linear-gradient(145deg, var(--accent-soft), rgba(255, 255, 255, 0.03));
  transform: translateY(-3px);
}

.link-card h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.link-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.link-arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  text-underline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-160%);
}

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

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding-block: 18px;
  }

  .site-nav,
  .footer-links {
    justify-content: flex-start;
  }

  .site-nav a {
    padding-inline: 0;
    border: 0;
    background: transparent;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding-block: 48px 64px;
  }
}

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

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