:root {
  color-scheme: light dark;
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --surface-soft: #f1ece1;
  --ink: #1e293b;
  --muted: #5b6472;
  --accent: #215a49;
  --button-ink: #fff;
  --accent-2: #22694f;
  --line: #e3ddd0;
  --shadow: 0 18px 50px rgba(30, 58, 95, 0.10);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1722;
    --surface: #16202d;
    --surface-soft: #1c2837;
    --ink: #eef2f7;
    --muted: #a9b4c2;
    --accent: #a4dcc4;
    --button-ink: #112a22;
    --accent-2: #a4dcc4;
    --line: #2a3a4d;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  color: var(--accent);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.hero {
  padding: 46px 0 34px;
}

.app-mark {
  width: 112px;
  height: 112px;
  margin-bottom: 26px;
  border-radius: 27px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 17px;
}

.lede {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.language-links {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.language-links a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.language-links a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: var(--button-ink);
  border: 1px solid var(--accent);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.panel {
  margin-top: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(30, 58, 95, 0.04);
  scroll-margin-top: 24px;
}

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

details:first-of-type {
  border-top: 0;
  padding-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  padding-right: 28px;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--accent-2);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p,
details ul {
  margin: 12px 0 0;
  color: var(--muted);
}

details ul {
  padding-left: 20px;
}

details li + li {
  margin-top: 6px;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy ul {
  padding-left: 22px;
}

.policy li + li {
  margin-top: 6px;
}

.policy h2 {
  margin-top: 34px;
}

.policy h2:first-of-type {
  margin-top: 0;
}

.policy .summary-box {
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 8px;
}

.policy .summary-box p {
  margin: 0 0 6px;
}

.site-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 6px 0;
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  .app-mark {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 16px;
  }
}

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

  .btn {
    transition: none;
  }
}

/* Language selection is local to this support site. */
html[data-lang="zh"] [data-language="zh-hant"],
html[data-lang="zh-hant"] [data-language="zh"] { display: none; }
body { overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 5px; border-radius: 4px; }
.skip-link { position: absolute; top: 8px; left: 20px; z-index: 2; padding: 8px 14px; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.brand { flex-shrink: 0; }
.brand-mark { border-radius: 8px; object-fit: cover; }
.header-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 18px 24px; }
.site-nav { align-items: center; flex-wrap: wrap; }
.site-nav a { padding-block: 8px; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.language-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.language-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; color: var(--muted); font-size: 0.875rem; text-decoration: none; white-space: nowrap; }
.language-switch a[aria-current="true"] { color: var(--button-ink); background: var(--accent); font-weight: 700; }
.app-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eyebrow { letter-spacing: .08em; }
.contact-panel p, .contact-panel li { color: var(--muted); }
.contact-panel li + li { margin-top: 6px; }
.policy section { margin-top: 34px; scroll-margin-top: 24px; }
.policy h2 { line-height: 1.5; }
.policy .summary-box p:last-child { margin-bottom: 0; }
.policy .summary-box strong, .policy li strong { color: var(--ink); }
.site-footer { line-height: 1.9; }
@media (max-width: 740px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .header-controls { justify-content: flex-start; gap: 12px 20px; }
}
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-soft: #eee; --ink: #000; --muted: #333; --line: #ccc; --accent-2: #000; }
  .header-controls, .actions, .skip-link { display: none; }
  .panel { box-shadow: none; border: 0; padding: 0; }
  main, .site-header, .site-footer { max-width: none; }
}
