:root {
  --deep: #3F4C8C;
  --mid: #6F86BE;
  --light: #B7C3E0;
  --pale: #EDF0F8;
  --ink: #5B5F6B;
  --warn: #B5483A;
  --line: #06C755; /* LINE 品牌綠，僅用於 LINE 按鈕以利辨識 */
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: #fff;
}
a { color: var(--deep); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* 頁首 */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--pale);
  backdrop-filter: blur(6px);
}
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
header.site .logo img { height: 40px; display: block; }
header.site nav { margin-left: auto; display: flex; gap: 22px; }
header.site nav a { text-decoration: none; color: var(--ink); font-size: 15px; }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--deep); font-weight: 700; }

/* 按鈕 */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 16px; border: 0; cursor: pointer;
}
.btn-line { background: var(--line); color: #fff; }
.btn-line:hover { filter: brightness(.95); }
.btn-ghost { background: #fff; color: var(--deep); border: 2px solid var(--deep); }
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--pale), #fff); padding: 64px 0 48px; }
.eyebrow { color: var(--mid); font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.hero h1 { color: var(--deep); font-size: clamp(28px, 5vw, 44px); line-height: 1.25; margin: 8px 0 14px; }
.hero p.lead { font-size: 18px; max-width: 680px; margin: 0 0 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 區塊 */
section { padding: 48px 0; }
section.alt { background: var(--pale); }
h2 { color: var(--deep); font-size: 26px; margin: 0 0 8px; }
h2::before { content: ""; display: inline-block; width: 5px; height: 24px; background: var(--mid); margin-right: 10px; vertical-align: -3px; }
.sub { margin: 0 0 24px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 18px; text-align: center; border: 1px solid var(--light); }
.kpi b { display: block; font-size: 34px; color: var(--deep); line-height: 1.2; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--light); border-radius: var(--radius); padding: 20px; }
section.alt .card { border-color: transparent; }
.card h3 { margin: 0 0 6px; color: var(--deep); font-size: 19px; }
.card.soon { opacity: .6; }
.card .tag { display: inline-block; font-size: 12px; background: var(--pale); color: var(--deep); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--deep); box-shadow: 0 4px 14px rgba(63,76,140,.15); }
.card ul { padding-left: 18px; margin: 8px 0 0; }

/* 表格 */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: #fff; }
th, td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--light); }
th { background: var(--deep); color: #fff; font-weight: 700; }
td:first-child, th:first-child { text-align: left; }
td.hl, th.hl { background: var(--pale); font-weight: 700; color: var(--deep); }
th.hl { background: var(--mid); color: #fff; }
table.harm td { text-align: left; vertical-align: top; font-size: 14px; }
caption { text-align: left; font-size: 14px; padding: 8px 0; caption-side: bottom; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button {
  font: inherit; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--deep);
  background: #fff; color: var(--deep); cursor: pointer; font-weight: 700;
}
.tabs button[aria-selected="true"] { background: var(--deep); color: #fff; }
.panel[hidden] { display: none; }

.note { font-size: 14px; margin-top: 10px; }
.cta { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cta h3 { margin: 0 0 4px; font-size: 22px; }
.cta p { margin: 0; color: var(--light); }
.cta .btn { margin-left: auto; }
.qrph { width: 110px; height: 110px; border: 2px dashed var(--warn); color: var(--warn); border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 13px; text-align: center; background: #fff; }
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands span { background: #fff; border: 1px solid var(--light); border-radius: 999px; padding: 6px 16px; font-weight: 700; color: var(--deep); }

footer.site { background: var(--deep); color: #fff; padding: 28px 0 90px; }
footer.site small { color: var(--light); }

@media (max-width: 768px) {
  header.site nav { display: none; }
  header.site .btn { margin-left: auto; padding: 9px 16px; font-size: 14px; }
  .kpis { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
  .cta .btn { margin-left: 0; }
}

.hint { display: none; font-size: 13px; color: var(--mid); margin: 0 0 6px; text-align: center; }
@media (max-width: 768px) {
  table.compact { min-width: 0; font-size: 14px; }
  table.compact th, table.compact td { padding: 9px 5px; }
  .hint { display: block; }
}
.qrimg { width: 110px; height: 110px; border-radius: 6px; background: #fff; }
