/* =========================================================
   龍石控股有限公司 — 全站樣式
   Light-first editorial finance design
   ========================================================= */

:root {
  --ink: #0b1a2a;
  --ink-2: #142c42;
  --ink-3: #1e3c56;
  --gold: #b9903f;
  --gold-bright: #d9b364;
  --gold-soft: #f0e2c2;
  --paper: #fbfaf6;
  --paper-2: #f3efe5;
  --line: #e3ddcd;
  --text: #1b2733;
  --muted: #5c6b7a;
  --white: #ffffff;
  --green: #2f7d5d;
  --red: #b4453c;
  --max: 1140px;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 26, 42, .04), 0 12px 32px -12px rgba(11, 26, 42, .18);
  --sans: "PingFang TC", "PingFang SC", "Hiragino Sans GB", "Microsoft JhengHei",
          "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  --serif: "Songti TC", "Noto Serif TC", "Source Han Serif TC", "PMingLiU", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.78;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.32;
  letter-spacing: .01em;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); line-height: 1.22; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--paper { background: var(--paper-2); }
.section--ink {
  background: var(--ink);
  color: #cfd8e2;
}
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink strong, .section--ink b, .card--ink strong { color: #f2e6cd; }
.section--ink a { color: var(--gold-bright); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 防止寬表格撐破 grid 欄寬（行動版橫向溢出） */
.grid > *, .split > *, .hero-grid > * { min-width: 0; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  display: grid;
  place-items: center;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.24; }
.brand-text strong { font-family: var(--serif); font-size: 1.06rem; letter-spacing: .06em; }
.brand-text em {
  font-style: normal;
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .14em;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: .92rem;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 20px !important;
  font-size: .88rem;
  transition: background .2s, color .2s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--gold-soft) !important; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 8px 13px;
  font: inherit;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #a67f33; color: #fff; }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: var(--gold-soft); }

.btn--ghost { border-color: rgba(11, 26, 42, .25); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(11, 26, 42, .03); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(185, 144, 63, .18) 0%, rgba(185, 144, 63, 0) 58%),
    linear-gradient(168deg, #0b1a2a 0%, #102439 62%, #13293f 100%);
  color: #c9d5e0;
  padding: 86px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 .accent { color: var(--gold-bright); }
.hero .lead {
  font-size: 1.09rem;
  color: #b9c7d5;
  max-width: 40em;
  margin-bottom: 1.7em;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 179, 100, .5), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: block;
}
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  color: #9fb0c0;
  list-style: none;
  padding-left: 0;
}
.hero-badges li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-badges li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
  flex: none;
}

/* hero 最新消息一行（由 tools/build_news.py 自動更新） */
.hero-news {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 26px;
  font-size: .88rem;
  color: #9fb0c0;
}
.hero-news .hero-news-tag {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(217, 179, 100, .45);
  border-radius: 999px;
  padding: 3px 10px;
  flex: none;
}
.hero-news a {
  color: #e8eef4;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 179, 100, .35);
}
.hero-news a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.hero-news time { color: #7f93a6; font-size: .82rem; }

/* 404 等輔助頁的連結列表 */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 14px; font-size: .96rem; }
.link-list li:last-child { margin-bottom: 0; }
.link-list a { font-weight: 500; }

/* 正文內文連結：可辨識、不搶眼，滑過轉金色 */
.ilink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(185, 144, 63, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ilink:hover,
.ilink:focus-visible {
  color: var(--gold);
  text-decoration-color: currentColor;
}

/* 文章頁「相關內容」 */
.related { border-top: 1px solid var(--line); padding-top: 26px; }
.related h2 { font-size: 1.05rem; margin-bottom: 14px; }
.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.related li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.related a { display: block; font-weight: 600; margin-bottom: 4px; }
.related a:hover { color: var(--gold); }
.related span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.6; }

@media (min-width: 760px) {
  .related ul { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* chart panel */
.chart-card {
  background: linear-gradient(180deg, #16293c, #0e1e2e);
  border: 1px solid rgba(217, 179, 100, .22);
  border-radius: 16px;
  padding: 20px 20px 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: .82rem;
  color: #8fa2b4;
}
.chart-top strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.42rem;
  letter-spacing: .02em;
}
.chart-top .up { color: #e0645a; font-size: .84rem; }
.chart-top .up::before { content: "▲ "; font-size: .62rem; }
.chart-legend {
  display: flex;
  gap: 16px;
  font-size: .74rem;
  color: #7f93a6;
  margin-top: 10px;
  flex-wrap: wrap;
}
.chart-legend i {
  display: inline-block;
  width: 14px; height: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------- cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card > .btn:last-child { margin-top: auto; }
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #d5cdb8;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card .num {
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.card--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #c6d2de;
}
.card--ink h3 { color: #fff; }
.card--ink p { color: #a8b8c8; }

/* ---------- key facts (GEO answer block) ---------- */

.facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px var(--r) var(--r) 4px;
  padding: 30px 32px;
}
.facts h2 { font-size: 1.28rem; margin-bottom: .8em; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.facts dd {
  margin: 0;
  font-size: .96rem;
  color: var(--text);
  line-height: 1.7;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  background: var(--white);
  padding: 26px 22px;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.72rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
caption {
  caption-side: bottom;
  text-align: left;
  font-size: .8rem;
  color: var(--muted);
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: var(--paper-2);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfcf8; }
td strong { color: var(--ink); }

/* ---------- ticks ---------- */

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: .96rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}
.section--ink .ticks li::before { border-color: var(--gold-bright); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  padding: 20px 34px 20px 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div {
  padding: 0 40px 22px 0;
  color: var(--muted);
  font-size: .96rem;
}
.faq details > div p:last-child { margin-bottom: 0; }

/* FAQ 分組標題（品牌問答頁） */
.faq-group-title {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 52px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.faq-group-title:first-of-type { margin-top: 0; }
@media (max-width: 620px) {
  .faq-group-title { margin-top: 40px; font-size: .74rem; }
}

/* 頁內快速導覽 */
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: .86rem;
  color: var(--muted);
}
.quick-nav a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.quick-nav a:hover { border-color: var(--gold); color: #a67f33; }
.quick-nav a.is-alt { border-color: rgba(185,144,63,.45); color: #8a6a25; }
.quick-nav .sep { color: var(--line-strong, var(--line)); }

/* ---------- article ---------- */

.article-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 44px;
}
.article-head h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 22em; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 18px;
  list-style: none;
  padding: 0;
}
.article-meta li { margin: 0; }

.article-body { max-width: 46em; }
.article-body h2 { margin-top: 1.9em; }
.article-body h3 { margin-top: 1.6em; }
.article-body > p:first-of-type {
  font-size: 1.07rem;
  color: var(--ink-2);
}
.article-body blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.tldr {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 26px;
  margin: 0 0 2em;
}
.tldr h2 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .7em; font-family: var(--sans); font-weight: 600; }
.tldr ul { margin-bottom: 0; }
.tldr li { font-size: .95rem; }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
  background: var(--paper-2);
  margin-bottom: 2.2em;
}
.toc p { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .93rem; }

/* ---------- breadcrumb ---------- */

.breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  padding: 16px 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b9b2a2; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(90% 120% at 82% 50%, rgba(185, 144, 63, .22), rgba(185, 144, 63, 0) 60%),
    var(--ink);
  color: #cdd8e3;
  padding: 66px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .5em; }
.cta-band p { max-width: 38em; margin: 0 auto 1.8em; color: #a9b9c9; }
.cta-band .btn-row { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  background: #08141f;
  color: #8fa1b1;
  padding: 62px 0 30px;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.site-footer h3 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--sans);
  margin-bottom: 1em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #a5b6c6; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .08); margin-bottom: 14px; }
.footer-brand p { font-size: .86rem; line-height: 1.75; color: #8497a8; max-width: 26em; }

.footer-bottom {
  padding-top: 24px;
  font-size: .78rem;
  color: #6f8496;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}
.risk-note {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-sm);
  font-size: .78rem;
  line-height: 1.7;
  color: #7b8fa1;
}

/* ---------- misc ---------- */

.lead { font-size: 1.06rem; color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.section-head { max-width: 40em; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section--ink .section-head p { color: #a3b4c4; }

.tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(185, 144, 63, .35);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 12px;
}

.link-arrow { font-weight: 600; font-size: .92rem; }
.link-arrow::after { content: " →"; transition: margin .2s; display: inline-block; }
.link-arrow:hover::after { margin-left: 4px; }

.note {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 26px;
}

.compare-bad { color: var(--red); }
.compare-good { color: var(--green); }

/* reveal —— 內容預設完全可見（顧及無 JS、爬蟲與 AI 檢索），
   只在支援動畫的裝置上做輕微淡入，且不改變可見性 */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.is-in { animation: rise .5s ease both; }
}
@keyframes rise {
  from { transform: translateY(10px); }
  to { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 38px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-cta { border: 0; border-bottom: 0; padding: 12px 0 !important; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 52px; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts { padding: 24px 22px; }
  .stat b { font-size: 1.45rem; }
}

/* ---------- forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-2);
  font-weight: 600;
}
.field label span { color: var(--gold); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #a3aeb8; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 144, 63, .14);
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* print */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; font-size: 11pt; }
}

/* ---- 語言切換器（i18n_build 注入，下拉形式） ---- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  flex-shrink: 0;
  color: var(--ink-2);
}
.lang-switch svg { flex-shrink: 0; opacity: .75; }
.lang-switch select {
  font: inherit;
  font-size: .82rem;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 20px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23a9a29a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
}
.lang-switch select:hover,
.lang-switch select:focus { border-color: var(--gold); color: var(--ink); outline: none; }
@media (max-width: 860px) {
  .lang-switch { margin-left: auto; }
}

/* ---------- 渠道橫幅輪播（首頁，i18n 三語共用） ---------- */
.promo-band { padding: 44px 0 4px; }

.promo-slider {
  position: relative;
  aspect-ratio: 1920 / 464;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1a2a;
  box-shadow: 0 20px 44px -26px rgba(11, 26, 42, .6);
  isolation: isolate;
}
.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  text-decoration: none;
}
.promo-slide.is-active { opacity: 1; }
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.promo-slide:focus-visible {
  outline: 3px solid var(--gold-bright, #d9b364);
  outline-offset: -3px;
}
.promo-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.promo-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.promo-dots button:hover { background: rgba(255, 255, 255, .85); }
.promo-dots button.is-active { width: 22px; background: var(--gold, #b9903f); }
.promo-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 700px) {
  .promo-band { padding: 26px 0 0; }
  .promo-slider { border-radius: 10px; }
  .promo-dots { right: 10px; bottom: 9px; gap: 6px; }
  .promo-dots button { width: 6px; height: 6px; }
  .promo-dots button.is-active { width: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-slide { transition: none; }
}

/* ---------- 右側微信懸浮框（add_wechat_widget 注入） ---------- */
.wx-fab {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
}
.wx-fab__btn {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(5, 133, 76, .75);
  background: #07c160;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(7, 193, 96, .55);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.wx-fab__btn:hover,
.wx-fab.is-open .wx-fab__btn {
  border-color: #05854c;
  background: #06ad56;
  transform: translateY(-2px);
}
.wx-fab__btn:focus-visible { outline: 2px solid #07c160; outline-offset: 3px; }
.wx-fab__btn svg { width: 26px; height: 26px; display: block; }

.wx-fab__card {
  position: absolute;
  right: 64px;
  top: 50%;
  width: 258px;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid rgba(185, 144, 63, .35);
  border-radius: 14px;
  box-shadow: 0 26px 64px -26px rgba(11, 26, 42, .5);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(10px, -50%);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.wx-fab.is-open .wx-fab__card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}
.wx-fab__card::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid rgba(185, 144, 63, .35);
  border-top: 1px solid rgba(185, 144, 63, .35);
  transform: translateY(-50%) rotate(45deg);
}
.wx-fab__title {
  margin: 0 0 10px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #12293c;
}
.wx-fab__card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.wx-fab__tip { margin: 10px 0 2px; font-size: .8rem; color: #3d4e5e; }
.wx-fab__sub { margin: 0; font-size: .72rem; color: #8b94a0; }
.wx-fab__tel {
  display: inline-block;
  margin-top: 8px;
  font-size: .78rem;
  color: #8a6a2a;
  text-decoration: none;
  border-bottom: 1px dashed rgba(185, 144, 63, .6);
}
.wx-fab__tel:hover { color: #6d5220; border-bottom-color: #8a6a2a; }

@media (max-width: 700px) {
  /* 手機端改到右下角，避免壓住正文 */
  .wx-fab { top: auto; bottom: 76px; right: 12px; transform: none; }
  .wx-fab__btn { width: 46px; height: 46px; }
  .wx-fab__btn svg { width: 23px; height: 23px; }
  .wx-fab__card {
    position: fixed;
    right: 12px;
    bottom: 132px;
    top: auto;
    width: 226px;
    padding: 13px 13px 11px;
    transform: translateY(8px);
  }
  .wx-fab.is-open .wx-fab__card { transform: translateY(0); }
  .wx-fab__card::after {
    right: 18px;
    top: auto;
    bottom: -7px;
    border: 0;
    border-right: 1px solid rgba(185, 144, 63, .35);
    border-bottom: 1px solid rgba(185, 144, 63, .35);
    transform: rotate(45deg);
  }
  .wx-fab__title { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wx-fab__btn, .wx-fab__card { transition: none; }
}

/* ---- 金色強調卡片（partners / 首頁 B 端區塊） ---- */
.card--gold {
  border-color: rgba(185, 144, 63, .5);
  background: linear-gradient(180deg, rgba(217, 179, 100, .07), rgba(217, 179, 100, 0));
}
