:root {
  color-scheme: light;
  --ink: #16263c;
  --muted: #5a687a;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --line: #dce4ee;
  --indigo: #304c89;
  --indigo-deep: #203765;
  --vermillion: #d4513f;
  --soft-blue: #eaf0fb;
  --soft-red: #fff0ed;
  --shadow: 0 20px 60px rgba(22, 38, 60, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(48, 76, 137, 0.09), transparent 30rem),
    linear-gradient(180deg, #fff 0, var(--paper) 38rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--indigo); text-underline-offset: 0.2em; }
a:hover { color: var(--vermillion); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--indigo-deep);
  border-radius: 0.55rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 228, 238, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner,
.page,
.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: #fff;
  background: var(--indigo-deep);
  border-radius: 0.8rem 0.8rem 0.8rem 0.24rem;
  box-shadow: inset -0.28rem -0.28rem 0 var(--vermillion);
  font-size: 1.1rem;
  font-weight: 800;
}

.header-actions,
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-link,
.lang-button {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.lang-button:hover { background: var(--soft-blue); color: var(--indigo-deep); }

.lang-button[aria-pressed="true"] {
  color: #fff;
  background: var(--indigo);
}

.page { padding: 4.7rem 0 5.5rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--vermillion);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.24; letter-spacing: -0.025em; }
h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 5.4rem); }
h2 { margin: 0 0 1.1rem; font-size: clamp(1.65rem, 4vw, 2.55rem); }
h3 { margin: 0 0 0.45rem; font-size: 1.16rem; }

.hero-copy {
  max-width: 44rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  color: #fff;
  background: var(--indigo-deep);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "N5\A N4\A N3\A N2\A N1";
  position: absolute;
  inset: 1.1rem 1.2rem auto auto;
  white-space: pre;
  color: rgba(255, 255, 255, 0.11);
  font-size: 3.6rem;
  font-weight: 850;
  line-height: 0.85;
  text-align: right;
}

.hero-card p { position: relative; z-index: 1; margin: 0; }
.hero-card strong { display: block; margin-bottom: 0.7rem; font-size: 1.35rem; }

.section { margin-top: 4.5rem; scroll-margin-top: 6rem; }
.section-intro { max-width: 46rem; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card,
.policy-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 8px 28px rgba(22, 38, 60, 0.055);
}

.card { padding: 1.45rem; }
.card p { margin: 0; color: var(--muted); }

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  color: var(--indigo-deep);
  background: var(--soft-blue);
  border-radius: 50%;
  font-weight: 800;
}

.faq { border-top: 1px solid var(--line); }

details { border-bottom: 1px solid var(--line); }
summary {
  padding: 1.15rem 0;
  font-weight: 720;
  cursor: pointer;
}
details p { max-width: 52rem; margin: 0 0 1.2rem; color: var(--muted); }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.7rem;
  background: linear-gradient(135deg, var(--soft-blue), #fff);
  border: 1px solid #cad7ed;
  border-radius: 1.25rem;
}

.contact-panel p { margin: 0.3rem 0 0; color: var(--muted); }

.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--indigo);
  border-radius: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.button:hover { color: #fff; background: var(--indigo-deep); }

.policy-header { max-width: 49rem; }
.policy-meta { color: var(--muted); }
.policy-section { padding: clamp(1.3rem, 4vw, 2rem); margin-top: 1rem; }
.policy-section p, .policy-section li { color: var(--muted); }
.policy-section ul { padding-left: 1.3rem; }
.notice {
  padding: 1rem 1.1rem;
  background: var(--soft-red);
  border-left: 4px solid var(--vermillion);
  border-radius: 0.55rem;
}

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1rem; }

[data-lang] { display: none; }
html[data-language="zh"] [data-lang="zh"],
html[data-language="en"] [data-lang="en"] { display: revert; }

@media (max-width: 780px) {
  .header-inner { align-items: flex-start; padding-block: 0.8rem; }
  .header-actions { align-items: flex-end; flex-direction: column-reverse; }
  .nav-link { display: none; }
  .page { padding-top: 3rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1.3rem; }
}

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

:focus-visible { outline: 3px solid rgba(212, 81, 63, 0.58); outline-offset: 3px; }
