:root {
  --bg: #ffffff;
  --card: #fafafa;
  --ink: #0a0a0a;
  --muted: #525252;
  --line: #e5e5e5;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

html:not([lang="en"]) .en {
  display: none !important;
}

html[lang="en"] .zh {
  display: none !important;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 12px;
  z-index: 40;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 0 20px 12px;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
}

.lang button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 6px 4px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 500;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
}

@media (min-width: 980px) {
  .logo {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav a {
    padding: 0;
    border: 0;
    font-size: 13px;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 719px) {
  .logo {
    display: flex;
    flex-direction: column;
    gap: 1px;
    letter-spacing: 0.08em;
    font-size: 12px;
  }

  .logo-sep {
    display: none;
  }

  .logo-zh {
    letter-spacing: 0.04em;
    font-weight: 400;
    color: var(--muted);
  }
}

.hero {
  padding: 72px 0 56px;
}

.hero-brand {
  margin: 0 0 12px;
  color: #0a0a0a;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 13em;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

html[lang="en"] .hero h1 {
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 11em;
}

.lead {
  max-width: 38rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
}

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

.btn-primary:hover {
  background: #171717;
}

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

.btn-ghost:hover,
.btn-ghost.is-copied {
  border-color: var(--ink);
}

.copy-done {
  display: none !important;
}

html:not([lang="en"]) .is-copied .zh.copy-done,
html[lang="en"] .is-copied .en.copy-done {
  display: inline !important;
}

.is-copied .copy-idle {
  display: none !important;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 22px 0 0;
  margin: 48px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.section-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 16em;
  margin-bottom: 36px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--card);
  border: 1px solid var(--line);
}

.cards article {
  padding: 28px 24px 32px;
  border-bottom: 1px solid var(--line);
}

.cards article:last-child {
  border-bottom: 0;
}

.num {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.cards h3,
.steps h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.en-name {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.card-body {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px 24px;
}

.product-name {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.product-line {
  max-width: 40rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.quiet {
  max-width: 38rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.steps p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.inquiry {
  margin-top: 28px;
}

.inquiry h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.inquiry .card-body {
  max-width: 38rem;
}

.email-link {
  display: inline-block;
  margin: 18px 0 22px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.email-link:hover {
  border-bottom-color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-footer p,
.footer-links {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a,
.site-footer a.mail {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer-links a:hover,
.site-footer a.mail:hover {
  border-bottom-color: var(--ink);
}

.disclaimer {
  max-width: 46rem;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-page {
  padding: 64px 0 88px;
}

.prose {
  max-width: 740px;
}

.prose h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.prose h2 {
  margin: 40px 0 10px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.prose p + p,
.prose ul {
  margin-top: 10px;
}

.prose ul {
  padding-left: 1.15em;
}

.prose a {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 800px) {
  .hero {
    padding: 112px 0 88px;
  }

  .section {
    padding: 104px 0;
  }

  .panel {
    padding: 56px 48px;
  }
}

@media (min-width: 900px) {
  .cards,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
  }

  .cards article {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 36px 28px 40px;
  }

  .cards article:last-child {
    border-right: 0;
  }

  .steps li {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 28px 22px 8px 0;
  }

  .steps li:last-child {
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.6fr;
    align-items: start;
  }
}
