/* TapVisa — brand tokens + UI framework (美術指導) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-tc-chinese-traditional-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans TC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/noto-sans-tc-chinese-traditional-700-normal.woff2") format("woff2");
}

:root {
  --tv-ink: #1C1917;
  --tv-cream: #F6F1EA;
  --tv-paper: #FFFCF8;
  --tv-terracotta: #E07A3D;
  --tv-terracotta-dark: #C8642A;
  --tv-sea: #2F6F6A;
  --tv-slate: #3F5E8A;
  --tv-muted: #6B645C;
  --tv-line: #E6DFD6;
  --tv-disclaimer: #F3E6D6;
  --font-display: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tv-cream);
  color: var(--tv-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--tv-slate); }
a:hover { color: var(--tv-ink); }
h1, h2, h3, .brand, .btn, .card-link, nav a, .lang-switch button {
  font-family: var(--font-display);
}
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 2.25rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.85rem; }
.en { color: var(--tv-muted); }
html.i18n-ready:not(.lang-en) .en { display: none; }
html.i18n-ready.lang-en .zh { display: none; }
html.i18n-ready.lang-en .en { color: inherit; }
.disclaimer-bar .zh, .disclaimer-bar .en { display: block !important; color: inherit; }
.wrap { width: min(960px, calc(100% - 40px)); margin-inline: auto; }
.prose { width: min(720px, 100%); }

.site-header {
  background: var(--tv-paper);
  border-bottom: 1px solid var(--tv-line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}
.header-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand {
  text-decoration: none;
  color: var(--tv-ink);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a {
  color: var(--tv-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
nav a[aria-current="page"] { color: var(--tv-sea); }
nav a:hover { color: var(--tv-terracotta-dark); }
.lang-switch { display: inline-flex; gap: 0.15rem; }
.lang-switch button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--tv-line);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  color: var(--tv-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  border-color: var(--tv-ink);
  color: var(--tv-ink);
  background: var(--tv-cream);
}

.disclaimer-bar {
  background: var(--tv-disclaimer);
  border-bottom: 1px solid var(--tv-line);
  padding: 0.55rem 0;
  font-size: 0.95rem;
}
.disclaimer-bar p { margin: 0; }
.disclaimer-bar .en { margin-top: 0.15rem; color: var(--tv-muted) !important; }
.disclaimer-bar strong { font-weight: 700; color: var(--tv-ink); }

main { padding: 2rem 0 3.5rem; }
.hero { margin-bottom: 2rem; max-width: 720px; }
.lede { font-size: 1.05rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}
.card {
  background: var(--tv-paper);
  border: 1px solid var(--tv-line);
  border-radius: 16px;
  padding: 24px;
}
.kicker {
  display: inline-block;
  color: var(--tv-sea);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.card-link {
  color: var(--tv-terracotta);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.4rem;
}
.card-link:hover { color: var(--tv-terracotta-dark); }

.fee-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.fee-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tv-sea);
  margin-bottom: 0.2rem;
}
.fee-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 0.9rem; }
.fee-table th, .fee-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--tv-line);
  vertical-align: top;
}
.fee-table th { font-weight: 600; width: 38%; }
.fee-table tr.total th, .fee-table tr.total td { border-bottom: none; }
.fee-amount { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.03em; color: var(--tv-ink); }
.fee-table tr.total .fee-amount { font-size: 1.15rem; font-weight: 600; }
.meta { font-size: 0.92rem; color: var(--tv-muted); }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: flex-start; margin: 1rem 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  line-height: 1.3;
}
.btn-own {
  background: var(--tv-terracotta);
  color: #fff;
}
.btn-own:hover { background: var(--tv-terracotta-dark); color: #fff; }
.btn-official {
  background: transparent;
  color: var(--tv-ink);
  border-color: var(--tv-ink);
}
.btn-official:hover { background: var(--tv-paper); color: var(--tv-ink); }
.official-wrap { display: grid; gap: 0.25rem; justify-items: start; }
.official-domain { font-size: 13px; color: var(--tv-muted); }
.ext { width: 0.95em; height: 0.95em; flex: none; }

.notice {
  background: var(--tv-disclaimer);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.stack { display: grid; gap: 1.15rem; }
section { margin: 2rem 0; }
.source-list, .faq-list { padding-left: 1.2rem; margin: 0.4rem 0 1rem; }
.source-list li, .faq-list li { margin: 0.3rem 0; }
details {
  background: var(--tv-paper);
  border: 1px solid var(--tv-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.55rem 0;
}
details summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); }
details p { margin: 0.7rem 0 0.15rem; }
.site-footer {
  background: var(--tv-paper);
  border-top: 1px solid var(--tv-line);
  padding: 1.8rem 0 2.4rem;
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 0.7rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; margin: 1rem 0; }
.domain-plain { color: var(--tv-muted); }
@media (max-width: 640px) {
  nav { width: 100%; }
}
