:root {
  color-scheme: dark;
  --bg: #061018;
  --bg-2: #0b1a24;
  --card: rgba(10, 28, 38, 0.78);
  --ink: #e8f7fb;
  --muted: #93b4bf;
  --line: rgba(80, 220, 255, 0.18);
  --cyan: #3ce7ff;
  --cyan-2: #14c6e0;
  --teal: #0e8f9a;
  --warn: #ffd28a;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: "Noto Sans TC", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(60, 231, 255, 0.16), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(14, 143, 154, 0.18), transparent 50%),
    linear-gradient(180deg, #07141c 0%, var(--bg) 38%, #050d13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(60, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 231, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a[data-mail] { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

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

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(60, 231, 255, 0.28);
}

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

.nav a, .lang button {
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 11px;
  font: inherit;
  cursor: pointer;
}

.nav a:hover, .lang button:hover, .lang button.active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(60, 231, 255, 0.08);
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 64px 0 36px;
}

.kicker {
  display: inline-flex;
  gap: 8px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(180deg, var(--cyan), var(--cyan-2));
  color: #042028;
  border-color: transparent;
}

.btn.ghost { color: var(--ink); background: rgba(255,255,255,0.03); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 210, 138, 0.08);
  border: 1px solid rgba(255, 210, 138, 0.2);
  color: var(--warn);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section { padding: 28px 0 12px; }
.section h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section p.sub { color: var(--muted); margin: 0 0 22px; max-width: 680px; line-height: 1.7; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card, .legal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3, .legal-card h2 { margin: 0 0 8px; }
.card p, .legal-card p, .legal-card li { color: var(--muted); line-height: 1.7; }
.step-no {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(60, 231, 255, 0.12);
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(60, 231, 255, 0.06);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; line-height: 1.7; }

footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.legal-page { padding: 32px 0 64px; }
.legal-card { width: min(860px, 100%); margin: 0 auto; }
.legal-card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; }
.legal-card ol { color: var(--muted); line-height: 1.7; padding-left: 1.2em; }
.meta { color: var(--muted); margin: 0 0 18px; }
.hidden { display: none !important; }

.delete-form {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.delete-form h2 { margin: 0; }
.delete-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.delete-form input,
.delete-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.delete-form textarea { resize: vertical; min-height: 96px; }
.delete-form .check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--muted);
}
.delete-form .check-row input { margin-top: 4px; }
.delete-form .btn { justify-self: start; cursor: pointer; }
.form-status { color: var(--warn); margin: 0; min-height: 1.4em; }

@media (max-width: 900px) {
  .hero, .grid, .grid-3, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .nav a:not(.keep) { display: none; }
}
