:root {
  --paper: #ffffff;
  --bg: #f4fafc;
  --ink: #173041;
  --muted: #5c7383;
  --line: #d5e6ef;
  --blue-50: #e7f4fb;
  --blue-100: #cfe8f6;
  --blue: #6eb6db;
  --blue-d: #3c93c4;
  --green-50: #e8f7ef;
  --green-100: #cfeedd;
  --green: #7dcaa4;
  --green-d: #217a52;
  --shadow: 0 10px 30px rgba(60, 147, 196, 0.12);
  --header: 4.4rem;
  --sans: "Manrope", "Noto Sans TC", "Noto Sans SC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { background: #d5e7f0; overflow-x: hidden; }
body {
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 0 0 1px rgba(60, 147, 196, 0.18);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: calc(100% - 1.4rem); margin-inline: auto; }

.promo {
  background: var(--green-50);
  color: var(--ink);
  border-bottom: 1px solid var(--green-100);
}
.promo__in {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.4rem 0;
}
.promo a {
  background: var(--blue-d);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-d);
}
.brand img { width: 28px; height: 28px; }
.nav { display: none; }
.nav__item { position: relative; }
.nav__btn, .textlink {
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.nav__btn:hover, .textlink:hover, .nav__item:hover > .nav__btn { background: var(--blue-50); }
.drop {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  inset-inline-start: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 40;
}
.nav__item:hover .drop, .nav__item:focus-within .drop { display: block; }
.drop a {
  display: block;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
}
.drop a:hover { background: var(--green-50); }
.drop b { display: block; font-weight: 650; font-size: 0.92rem; }
.drop small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.4; }
.hdr__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 0.45rem; }
.lang { position: relative; }
.lang > button, .ghost {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0.38rem 0.65rem;
  color: var(--ink);
}
.lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.35rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 10rem;
  box-shadow: var(--shadow);
  padding: 0.3rem;
  z-index: 50;
}
.lang__menu button {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.55rem;
  border-radius: 7px;
}
.lang__menu button[aria-selected="true"], .lang__menu button:hover { background: var(--blue-50); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  text-decoration: none;
  background: var(--blue-100);
  color: #0e4c68;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-weight: 650;
}
.btn--solid { background: var(--blue-d); color: #fff; }
.btn--green { background: var(--green); color: #0e3d28; }
.btn--block { width: 100%; }
.btn--google {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--blue);
}
.btn--google:hover { background: var(--blue-50); }
.gmark {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-d);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
}
.or {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.95rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.or::before, .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.menu-btn { display: inline-flex; align-items: center; }
.sheet {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 0.6rem 1rem 1rem;
}
body.nav-open .sheet { display: block; }
.sheet a, .sheet button.linkish {
  display: block;
  width: 100%;
  text-align: start;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.page { padding: 2.2rem 0 3rem; }
.page h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
}
.lede {
  max-width: 40rem;
  margin: 0.55rem auto 0;
  text-align: center;
  color: var(--muted);
}
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.1rem;
}
.tabs a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.tabs a.is-on { background: var(--blue-50); border-color: var(--blue); color: #0e4c68; }
.tabs em {
  font-style: normal;
  background: var(--green);
  color: #0e3d28;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.05rem 0.4rem;
  margin-inline-start: 0.25rem;
}

.stage { display: flex; flex-direction: column; gap: 0.9rem; }
.rail {
  order: 2;
  background: linear-gradient(180deg, var(--green-50), #fff);
  border: 1px solid var(--green-100);
  border-radius: 14px;
  padding: 0.75rem;
}
.rail strong { display: block; font-size: 0.86rem; margin-bottom: 0.45rem; }
.rail a {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  margin-top: 0.4rem;
}
.rail a:hover { border-color: var(--blue); }
.rail b { display: block; color: var(--green-d); font-size: 0.82rem; }
.rail span { display: block; font-size: 0.75rem; color: var(--muted); }

.plans {
  order: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.plan.is-hot {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.plan__ribbon, .plan__tag, .plan__limit {
  position: absolute;
  top: -0.7rem;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
}
.plan__ribbon { inset-inline-start: 0.6rem; background: var(--blue-d); color: #fff; }
.plan__tag { inset-inline-end: 0.55rem; background: var(--green); color: #0e3d28; }
.plan__limit { inset-inline-end: 0.55rem; background: var(--green-100); color: var(--green-d); }
.plan h3 { margin: 0.35rem 0 0; font-size: 1.05rem; text-align: center; }
.plan__total { margin: 0.2rem 0 0; text-align: center; color: var(--muted); font-size: 0.82rem; }
.plan__unit { margin: 0.35rem 0 0; text-align: center; }
.plan__unit b { font-size: 1.85rem; letter-spacing: -0.03em; color: var(--green-d); font-weight: 750; }
.plan.is-hot .plan__unit b { color: var(--blue-d); }
.plan__old {
  margin: 0;
  text-align: center;
  color: #9aa8b2;
  text-decoration: line-through;
  font-size: 0.8rem;
}
.plan select {
  width: 100%;
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
}
.plan .btn { margin-top: 0.65rem; }
.plan ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.plan li {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.22rem 0 0.22rem 1rem;
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.28rem;
  border-left: 2px solid var(--green-d);
  border-bottom: 2px solid var(--green-d);
  transform: rotate(-45deg);
}

.why, .faq, .block { margin-top: 2.6rem; }
.why h2, .faq h2, .block h2 { text-align: center; margin: 0 0 1rem; font-size: 1.45rem; }
.why__grid, .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
}
.tile h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.tile p, .prose p { margin: 0; color: var(--muted); }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 0.5rem; }
.faq__item button {
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  padding: 0.85rem 1rem;
  font-weight: 650;
}
.faq__item div { padding: 0 1rem 0.9rem; color: var(--muted); }

.auth {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}
.card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
}
.card h1 { text-align: start; font-size: 1.5rem; }
.card .lede { text-align: start; margin: 0.4rem 0 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.75rem; }
.field span { font-size: 0.82rem; color: var(--muted); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.8rem; font-size: 0.88rem; }
.err { color: #a33b32; font-size: 0.86rem; margin: 0.6rem 0 0; }
.card .btn { margin-top: 0.9rem; }
.card .textlink { display: inline-block; margin-top: 0.75rem; padding: 0; }

.stats, .orders { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 1rem; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}
.stat b { display: block; font-size: 1.25rem; color: var(--blue-d); }
.stat span { color: var(--muted); font-size: 0.8rem; }
.order {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}
.pay { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.pay label {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.pay input { margin-inline-end: 0.3rem; }

.foot {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
  padding: 2rem 0 1.4rem;
  margin-top: 1rem;
}
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.foot h3 { margin: 0 0 0.4rem; font-size: 0.82rem; letter-spacing: 0.04em; }
.foot a { display: block; text-decoration: none; color: var(--muted); font-size: 0.86rem; padding: 0.18rem 0; }
.foot a:hover { color: var(--blue-d); }
.fine { color: var(--muted); font-size: 0.78rem; margin: 1rem 0 0; }

.cookie {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  width: min(402px, calc(100% - 1.2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}
.cookie p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.86rem; }
.cookie__actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.dock { display: none; }
.dock a {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: var(--green);
  color: #0e3d28;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.hdr__tools > a.ghost { display: none; }
.page h1 { font-size: 1.65rem; }
.card { padding: 1.15rem 1rem 1rem; }

@media (min-width: 1100px) {
  html { background: var(--bg); }
  body {
    margin: 0;
    max-width: none;
    box-shadow: none;
  }
  .shell { width: min(1180px, calc(100% - 2rem)); }
  .promo__in {
    flex-wrap: nowrap;
    gap: 0.8rem;
    font-size: 0.86rem;
    padding: 0.35rem 0;
  }
  .hdr__in { min-height: var(--header); gap: 1.1rem; }
  .nav { display: flex; align-items: center; gap: 0.2rem; }
  .menu-btn { display: none; }
  body.nav-open .sheet { display: none; }
  .page h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
  .tabs { flex-wrap: nowrap; margin: 1.2rem 0 1.4rem; }
  .stage {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 0.9rem;
    align-items: start;
  }
  .rail {
    order: 0;
    position: sticky;
    top: calc(var(--header) + 0.8rem);
  }
  .plans {
    order: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .why__grid, .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
  .stats, .orders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  .foot__grid { grid-template-columns: 1.3fr repeat(4, 1fr); }
  .cookie {
    inset-inline: 1rem;
    left: auto;
    bottom: 1rem;
    transform: none;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .dock {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-inline-end: 0.8rem;
    top: 45%;
    gap: 0.4rem;
    z-index: 25;
  }
  .hdr__tools > a.ghost { display: inline-flex; align-items: center; }
  .card { padding: 1.4rem 1.3rem 1.2rem; }
}
