/* ============================================================
   台灣買比特幣 — 全站樣式
   深色科技感 / 金橘主色 / 玻璃擬態 / 轉換導向
   ============================================================ */

:root {
  --bg-0: #050713;
  --bg-1: #080b18;
  --bg-2: #060711;
  --card-dark: #0b1022;

  --text: #f6f7fb;
  --muted: #a8b1c7;
  --muted-2: #77829f;

  --gold: #f7b733;
  --gold-hi: #ffdc7b;
  --green: #39d98a;
  --red: #ff6270;
  --blue: #79a8ff;

  --line-1: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.14);

  --cta-grad: linear-gradient(135deg, #fff3b0 0%, #ffc928 34%, #ff8a00 72%, #ff5c00 100%);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(247, 183, 51, 0.35); }

a { color: var(--gold-hi); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.center { text-align: center; }

/* ============================================================
   導覽列
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 7, 19, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #080713;
  background: radial-gradient(circle at 32% 28%, #ffe9a3 0%, #f7b733 55%, #e08900 100%);
  box-shadow: 0 0 18px rgba(247, 183, 51, 0.45);
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.nav-cta {
  color: #080713;
  background: var(--cta-grad);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  box-shadow: 0 6px 22px rgba(255, 122, 0, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-links a.nav-cta:hover {
  color: #080713;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 122, 0, 0.5);
}

/* ============================================================
   CTA 按鈕（全站主 CTA）
   ============================================================ */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #080713;
  background: var(--cta-grad);
  border: none;
  border-radius: 999px;
  padding: 22px 36px;
  min-height: 64px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 18px 58px rgba(255, 122, 0, 0.48),
    0 0 54px rgba(247, 183, 51, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow:
    0 22px 66px rgba(255, 122, 0, 0.58),
    0 0 70px rgba(247, 183, 51, 0.36);
}

.btn-cta .arrow { font-weight: 900; }

/* 次要按鈕：交易所卡片內「註冊交易所」 */
.btn-exchange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: rgba(247, 183, 51, 0.12);
  border: 1px solid rgba(247, 183, 51, 0.45);
  color: var(--gold-hi);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-exchange:hover {
  background: rgba(247, 183, 51, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(247, 183, 51, 0.22);
}

/* ============================================================
   玻璃卡片
   ============================================================ */

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  border: 1px solid var(--line-3);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 138px 0 84px;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(247, 183, 51, 0.14), transparent 62%),
    radial-gradient(820px 560px at 86% 68%, rgba(121, 168, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-2) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(78% 68% at 50% 38%, #000 0%, transparent 100%);
  mask-image: radial-gradient(78% 68% at 50% 38%, #000 0%, transparent 100%);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  right: -220px;
  top: 8%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid rgba(247, 183, 51, 0.14);
  box-shadow: inset 0 0 120px rgba(247, 183, 51, 0.07), 0 0 160px rgba(247, 183, 51, 0.06);
  pointer-events: none;
}

.hero-line {
  position: absolute;
  right: -60px;
  bottom: 6%;
  width: min(58vw, 760px);
  opacity: 0.5;
  transform: rotate(-5deg);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(44px, 5.6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.hero-sub {
  margin: 0 0 40px;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.cta-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted-2);
}

/* Hero 價格卡 */
.hero-card {
  padding: 30px 30px 26px;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pair-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-price {
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line-1);
  padding-top: 18px;
}

.stat-label {
  display: block;
  font-size: 12.5px;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.updated {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
  min-height: 1em;
}

/* 漲跌 pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pill.up {
  color: var(--green);
  background: rgba(57, 217, 138, 0.1);
  border: 1px solid rgba(57, 217, 138, 0.18);
}

.pill.down {
  color: var(--red);
  background: rgba(255, 98, 112, 0.1);
  border: 1px solid rgba(255, 98, 112, 0.2);
}

/* ============================================================
   Section 共用
   ============================================================ */

.section {
  padding: 108px 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 30%, transparent);
}

.section-head {
  margin-bottom: 52px;
  max-width: 820px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

/* ============================================================
   第二屏：價格區
   ============================================================ */

.price-card {
  padding: 38px 38px 42px;
}

.price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.big-price {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.chart-wrap {
  position: relative;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
}

.chart-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.metrics-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 8px;
  margin: 26px auto 0;
  width: fit-content;
  max-width: 100%;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(5, 7, 19, 0.55);
  border: 1px solid var(--line-1);
  font-size: 15px;
}

.metrics-line .item::before {
  content: "｜";
  color: var(--muted-2);
  margin: 0 8px;
}

.metrics-line::after {
  content: "｜";
  color: var(--muted-2);
  margin-left: 8px;
}

.metrics-line .m-label { color: var(--muted-2); }
.metrics-line .m-value {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.price-note {
  margin: 26px auto 34px;
  text-align: center;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 640px;
}

/* ============================================================
   第三屏：交易所卡片
   ============================================================ */

.ex-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 26px;
  max-width: var(--maxw);
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 183, 51, 0.35) transparent;
}

.ex-scroller::-webkit-scrollbar { height: 8px; }
.ex-scroller::-webkit-scrollbar-thumb {
  background: rgba(247, 183, 51, 0.3);
  border-radius: 999px;
}
.ex-scroller::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 999px; }

.ex-card {
  position: relative;
  min-width: 330px;
  max-width: 330px;
  scroll-snap-align: start;
  border-radius: 26px;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ex-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--cta-grad);
  color: #080713;
  font-size: 12.5px;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.ex-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ex-logo {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-hi);
  background: rgba(247, 183, 51, 0.1);
  border: 1px solid rgba(247, 183, 51, 0.3);
}

.tag {
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-easy { color: var(--green); background: rgba(57, 217, 138, 0.1); border: 1px solid rgba(57, 217, 138, 0.22); }
.tag-mid { color: var(--gold-hi); background: rgba(247, 183, 51, 0.1); border: 1px solid rgba(247, 183, 51, 0.28); }
.tag-adv { color: var(--blue); background: rgba(121, 168, 255, 0.1); border: 1px solid rgba(121, 168, 255, 0.28); }

.ex-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ex-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  min-height: 3.2em;
}

.ex-facts {
  list-style: none;
  margin: 0;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.ex-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
}

.ex-facts li span { color: var(--muted-2); white-space: nowrap; }
.ex-facts li strong { font-weight: 700; text-align: right; }

.ex-cta-bottom {
  margin-top: 46px;
  text-align: center;
}

/* 「這個交易所是詐騙嗎？」信任連結 */
.scam-check {
  display: block;
  margin-top: 13px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-hi);
  text-decoration: underline dotted rgba(255, 220, 123, 0.55);
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.scam-check:hover { color: #ffffff; }

.scam-check + .scam-check { margin-top: 5px; }

/* 參考資料清單 */
.refs { padding-left: 22px; }
.refs li { font-size: 14.5px; margin-bottom: 10px; }
.refs a { word-break: break-all; }

/* 兩張卡片時：桌機加寬並置中（窄螢幕維持橫向滑動） */
@media (min-width: 1040px) {
  .ex-scroller { justify-content: center; }
  .ex-card { min-width: 470px; max-width: 470px; }
}

/* ============================================================
   第四屏：文章卡片
   ============================================================ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line-1);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 183, 51, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.cat-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  flex: 1;
}

.read-more {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted-2);
  transition: color 0.15s ease;
}

.article-card:hover .read-more { color: var(--gold-hi); }

.article-card .card-desc {
  margin: 0;
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.6;
}

/* 難度標籤（入門／基礎／進階） */
.level-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

.level-1 { color: var(--green); background: rgba(57, 217, 138, 0.1); border: 1px solid rgba(57, 217, 138, 0.22); }
.level-2 { color: var(--gold-hi); background: rgba(247, 183, 51, 0.1); border: 1px solid rgba(247, 183, 51, 0.28); }
.level-3 { color: var(--blue); background: rgba(121, 168, 255, 0.1); border: 1px solid rgba(121, 168, 255, 0.28); }

.card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 次要按鈕：看全部教學 */
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  background: rgba(247, 183, 51, 0.1);
  border: 1px solid rgba(247, 183, 51, 0.42);
  color: var(--gold-hi);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-more:hover {
  background: rgba(247, 183, 51, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(247, 183, 51, 0.22);
}

/* 教學總覽頁 */
.hub-page { padding: 130px 0 70px; }

.hub-head { max-width: 820px; margin-bottom: 44px; }

.hub-head h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hub-head p { color: var(--muted); margin: 0; font-size: 17.5px; }

.learn-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 36px 0 64px;
}

.learn-path a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-1);
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.learn-path a:hover { border-color: rgba(247, 183, 51, 0.5); transform: translateY(-2px); }

.learn-path .path-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-grad);
  color: #080713;
  font-weight: 900;
  font-size: 14px;
}

.learn-path a small { display: block; color: var(--muted-2); font-size: 12px; font-weight: 500; }

.hub-group { margin-bottom: 68px; }

.hub-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hub-group-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hub-group-note { color: var(--muted-2); font-size: 14.5px; margin: 0 0 22px; }

@media (max-width: 920px) {
  .learn-path { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .learn-path { grid-template-columns: 1fr; }
  .hub-page { padding-top: 112px; }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line-1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "＋";
  color: var(--gold);
  font-weight: 700;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line-1);
  background: rgba(4, 5, 14, 0.85);
  padding: 64px 0 34px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
}

.footer-tagline {
  color: var(--muted-2);
  font-size: 14.5px;
  margin: 14px 0 22px;
  max-width: 330px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
}

.footer-links a:hover { color: var(--gold-hi); }

.legal {
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.legal strong { color: var(--muted); }

.copyright {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 13px;
}

/* ============================================================
   行動版黏底 CTA
   ============================================================ */

.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 7, 19, 0), rgba(5, 7, 19, 0.92) 38%);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta .btn-cta {
  width: 100%;
  font-size: 17px;
  padding: 16px 20px;
  min-height: 56px;
}

/* ============================================================
   引導器（/buy-bitcoin/start）
   ============================================================ */

.wizard-page {
  min-height: 100vh;
  padding: 128px 0 90px;
  background:
    radial-gradient(760px 460px at 22% 8%, rgba(247, 183, 51, 0.12), transparent 62%),
    radial-gradient(700px 520px at 88% 80%, rgba(121, 168, 255, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

.wizard-head { text-align: center; margin-bottom: 40px; }

.wizard-head h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.wizard-head p { color: var(--muted); margin: 0; font-size: 17px; }

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 36px;
}

.wizard-progress span {
  width: 44px; height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.wizard-progress span.active { background: var(--gold); box-shadow: 0 0 14px rgba(247, 183, 51, 0.5); }

.wizard-card {
  padding: 36px 34px 38px;
}

.wizard-q {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.wizard-q-note { color: var(--muted-2); font-size: 14px; margin: 0 0 22px; }

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-btn {
  font-family: inherit;
  text-align: left;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.option-btn small {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 500;
  margin-top: 3px;
}

.option-btn:hover {
  border-color: rgba(247, 183, 51, 0.55);
  background: rgba(247, 183, 51, 0.07);
  transform: translateY(-2px);
}

.wizard-back {
  margin-top: 22px;
  background: none;
  border: none;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 14.5px;
  cursor: pointer;
  padding: 6px 2px;
}

.wizard-back:hover { color: var(--muted); }

.wizard-skip {
  text-align: center;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted-2);
}

/* 引導器結果 */
.result-reco {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(247, 183, 51, 0.08);
  border: 1px solid rgba(247, 183, 51, 0.35);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.result-reco:hover {
  background: rgba(247, 183, 51, 0.14);
  border-color: rgba(247, 183, 51, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(247, 183, 51, 0.16);
}

.result-reco .ex-logo { flex: 0 0 46px; }
.reco-text { flex: 1; min-width: 0; }

.result-reco h3 { margin: 0 0 3px; font-size: 21px; font-weight: 900; color: var(--text); }
.result-reco p { margin: 0; color: var(--muted); font-size: 14.5px; }

.reco-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-hi);
  transition: transform 0.16s ease;
}

.result-reco:hover .reco-arrow { transform: translateX(4px); }

/* 手機版底部浮動 CTA（引導器結果步驟專用；由 JS 加 .visible 控制） */
.wizard-mobile-cta { display: none; }

@media (max-width: 560px) {
  .wizard-mobile-cta.visible {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(5, 7, 19, 0), rgba(5, 7, 19, 0.94) 40%);
  }

  .wizard-mobile-cta.visible .btn-cta {
    width: 100%;
    font-size: 17px;
    padding: 16px 20px;
    min-height: 56px;
  }

  /* 結果步驟為浮動 CTA 預留空間，避免蓋住「重新回答」 */
  #step-result:not([hidden]) { padding-bottom: 84px; }
}

.result-why {
  color: var(--muted);
  font-size: 15px;
  margin: 16px 0 26px;
}

.step-list {
  list-style: none;
  counter-reset: step;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-list li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-1);
}

.step-list li::before {
  content: counter(step);
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-grad);
  color: #080713;
  font-weight: 900;
  font-size: 15px;
}

.step-list strong { display: block; font-size: 16px; margin-bottom: 2px; }
.step-list p { margin: 0; color: var(--muted); font-size: 14px; }

.result-alt {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--muted-2);
}

.result-alt a { color: var(--gold-hi); }

.wizard-risk {
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.7;
}

/* ============================================================
   文章內頁 / 資訊頁
   ============================================================ */

.article-page {
  padding: 130px 0 80px;
}

.breadcrumbs {
  font-size: 13.5px;
  color: var(--muted-2);
  margin: 0 0 26px;
}

.breadcrumbs a { color: var(--muted-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-hi); }

.article-page h1 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article-meta {
  color: var(--muted-2);
  font-size: 14px;
  margin: 0 0 38px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-1);
}

.article-body h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 46px 0 16px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 32px 0 12px;
}

.article-body p, .article-body li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.article-body p strong, .article-body li strong { color: var(--text); }

.article-body ul, .article-body ol { padding-left: 26px; }
.article-body li { margin-bottom: 8px; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.article-body th, .article-body td {
  border: 1px solid var(--line-1);
  padding: 12px 14px;
  text-align: left;
  color: var(--muted);
}

.article-body th { color: var(--text); background: rgba(255, 255, 255, 0.05); font-size: 14px; }

.callout {
  border-left: 3px solid var(--gold);
  background: rgba(247, 183, 51, 0.06);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p { margin: 0; font-size: 15.5px; }

.cta-box {
  margin: 52px 0 10px;
  padding: 38px 32px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(247, 183, 51, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(247, 183, 51, 0.25);
}

.cta-box h2, .cta-box .cta-box-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.cta-box p { color: var(--muted); margin: 0 0 26px; font-size: 16px; }

/* 教學截圖 */
.shot {
  margin: 24px auto 30px;
  text-align: center;
}

.shot img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45);
}

.shot-sm img { max-width: 340px; }

.shot figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted-2);
}

.shot-missing {
  margin: 24px 0 30px;
  padding: 30px 22px;
  border: 1px dashed rgba(247, 183, 51, 0.4);
  border-radius: 16px;
  text-align: center;
  color: var(--muted-2);
  font-size: 14.5px;
  background: rgba(247, 183, 51, 0.04);
}

/* 步驟編號標題 */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cta-grad);
  color: #080713;
  font-weight: 900;
  font-size: 17px;
  margin-right: 12px;
  vertical-align: middle;
  flex: 0 0 34px;
}

/* 文章中段 CTA */
.mid-cta {
  margin: 44px 0;
  padding: 24px 26px;
  border-radius: 20px;
  border: 1px solid rgba(247, 183, 51, 0.3);
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(247, 183, 51, 0.09), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  text-align: center;
}

.mid-cta p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.mid-cta .btn-exchange { width: 100%; max-width: 400px; }

/* 台幣⇄BTC 換算器 */
.converter { padding: 32px 30px; }

.conv-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.conv-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.conv-field { flex: 1; }

.conv-input {
  width: 100%;
  background: rgba(5, 7, 19, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.conv-input:focus {
  outline: none;
  border-color: rgba(247, 183, 51, 0.55);
  box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.12);
}

.conv-swap {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
  padding-bottom: 14px;
}

.conv-sats {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.preset-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.preset-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-hi);
  background: rgba(247, 183, 51, 0.09);
  border: 1px solid rgba(247, 183, 51, 0.32);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.preset-btn:hover { background: rgba(247, 183, 51, 0.2); }

@media (max-width: 560px) {
  .conv-row { flex-direction: column; align-items: stretch; }
  .conv-swap { text-align: center; padding: 4px 0; }
  .converter { padding: 24px 18px; }
}

.related {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line-1);
}

.related h2 { font-size: 20px; font-weight: 900; margin: 0 0 16px; }

.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.related a { color: var(--muted); text-decoration: none; font-size: 16px; }
.related a:hover { color: var(--gold-hi); }
.related a::before { content: "→ "; color: var(--gold); }

/* ============================================================
   響應式
   ============================================================ */

@media (max-width: 920px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding-top: 120px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-card { max-width: 520px; }
  .hero-line { opacity: 0.3; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .article-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .option-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 0 18px; height: 64px; }
  .hero { padding-top: 112px; padding-bottom: 64px; }

  .btn-cta {
    width: 100%;
    font-size: 18px;
    padding: 20px 24px;
  }

  .hero-cta-wrap { width: 100%; }

  .price-card { padding: 26px 20px 30px; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .chart-wrap { height: 210px; }

  .metrics-line {
    justify-content: flex-start;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
  }
  .metrics-line::after { content: none; }
  .metrics-line .item { width: 100%; display: flex; }
  .metrics-line .item::before { margin: 0 6px 0 0; }

  .ex-card { min-width: 286px; max-width: 286px; }
  .ex-scroller { padding-left: 18px; padding-right: 18px; }

  .sticky-cta { display: block; }

  .wizard-card { padding: 26px 20px 30px; }
  .article-page { padding-top: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* 路線圖時間軸 */
.route-step {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  position: relative;
}

.route-step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50px;
  bottom: -36px;
  width: 2px;
  background: rgba(247, 183, 51, 0.25);
}

.route-step:last-of-type::before { display: none; }

.route-num {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cta-grad);
  color: #080713;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 6px 22px rgba(255, 122, 0, 0.35);
}

.route-card { flex: 1; min-width: 0; }

.route-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.route-links a:hover { color: var(--gold-hi); }
.route-links a::before { content: "→ "; color: var(--gold); }

@media (max-width: 560px) {
  .route-step { gap: 14px; }
  .route-num { flex: 0 0 38px; width: 38px; height: 38px; font-size: 17px; }
  .route-step::before { left: 18px; }
}


/* 首頁五站路線區塊 */
.journey-strip {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 44px 0 40px;
}

.journey-strip::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: linear-gradient(90deg, rgba(247, 183, 51, 0.12), rgba(247, 183, 51, 0.4), rgba(247, 183, 51, 0.12));
}

.journey-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  padding: 0 8px;
  transition: transform 0.16s ease;
}

.journey-step:hover { transform: translateY(-4px); }

.j-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid rgba(247, 183, 51, 0.45);
  color: var(--gold-hi);
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(247, 183, 51, 0.12);
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.journey-step:hover .j-num {
  background: var(--cta-grad);
  color: #080713;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(255, 122, 0, 0.4);
}

.j-title {
  color: var(--text);
  font-weight: 800;
  font-size: 16.5px;
  white-space: nowrap;
}

.j-desc {
  color: var(--muted-2);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.5;
}

.j-opt {
  position: absolute;
  top: -10px;
  right: 50%;
  transform: translateX(50px);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue);
  background: rgba(121, 168, 255, 0.12);
  border: 1px solid rgba(121, 168, 255, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .journey-strip {
    flex-direction: column;
    gap: 18px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .journey-strip::before {
    top: 27px;
    bottom: 27px;
    left: 26px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(247, 183, 51, 0.12), rgba(247, 183, 51, 0.4), rgba(247, 183, 51, 0.12));
  }

  .journey-step {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
  }

  .j-num { flex: 0 0 54px; }

  .journey-step > span:not(.j-num) { text-align: left; }

  .j-text-wrap { display: flex; flex-direction: column; gap: 2px; }

  .j-desc { text-align: left; }

  .j-opt {
    position: static;
    transform: none;
    align-self: center;
    margin-left: auto;
  }
}
