:root {
  --primary: #2563EB;
  --primary-deep: #1D4ED8;
  --secondary: #F59E0B;
  --secondary-deep: #D97706;
  --accent: #EFF6FF;
  --bg: #F8FAFC;
  --bg-alt: #DBEAFE;
  --surface: #FFFFFF;
  --surface-soft: #F8FBFF;
  --text: #1E293B;
  --text-muted: #475569;
  --border: #BFDBFE;
  --line: #93C5FD;
  --success: #0F766E;
  --shadow: 0 22px 52px rgba(37, 99, 235, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #fdfefe 40%, var(--accent) 100%);
  color: var(--text);
  font-family: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.72;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 32px), var(--max-width)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--primary-deep); font-weight: 800; letter-spacing: -0.02em; }
.brand::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 14%, var(--secondary) 15% 36%, var(--primary) 37% 100%);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15);
}
.main-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.main-nav a { padding: 10px 14px; border-radius: 999px; color: var(--text-muted); font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible { background: rgba(37, 99, 235, 0.08); color: var(--primary-deep); }
.nav-cta, .button, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nav-cta, .button { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); color: #fff; box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22); }
.button-secondary { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.28); color: var(--secondary-deep); }
.nav-cta:hover, .button:hover, .button-secondary:hover { transform: translateY(-2px); }
.hero { padding: 80px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr); gap: 28px; align-items: stretch; }
.hero-copy { padding: 18px 0; }
.hero-copy h1, .section-title, h1, h2, h3, h4 { letter-spacing: -0.03em; }
.hero-copy h1 { margin: 16px 0; font-size: clamp(2.5rem, 5vw, 4.35rem); line-height: 1.04; color: var(--primary-deep); }
.lede, .section-sub, .hero-copy p, .footer-meta, .faq-a, .meta-note { color: var(--text-muted); }
.hero-panel { min-width: 0; }
.three-step-flow {
  position: relative; overflow: hidden; padding: 24px; background: linear-gradient(180deg, #ffffff 0%, var(--accent) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
.three-step-flow::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(37,99,235,0.03) 0%, rgba(245,158,11,0.08) 100%);
  pointer-events: none;
}
.hero-image { position: relative; width: 100%; aspect-ratio: 1216 / 640; object-fit: cover; border-radius: 20px; border: 1px solid rgba(37, 99, 235, 0.12); }
.step-flow { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step-flow-card {
  position: relative; padding: 14px 14px 14px 52px; min-height: 84px; background: rgba(255,255,255,0.9);
  border: 1px solid rgba(37,99,235,0.12); border-radius: 18px; box-shadow: 0 14px 24px rgba(37, 99, 235, 0.09);
}
.step-flow-card::before {
  content: attr(data-step); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.step-flow-card::after {
  content: "→"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--secondary); font-weight: 900; font-size: 1.25rem;
}
.step-flow-card:last-child::after { display: none; }
.step-flow-card strong { display: block; font-size: 0.96rem; margin-bottom: 4px; }
.section { padding: 76px 0; }
.section-kicker, .report-label {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-deep);
}
.section-kicker::before, .report-label::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}
.section-title { margin: 14px 0 10px; font-size: clamp(2rem, 3vw, 3rem); color: var(--primary-deep); }
.breadcrumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--text-muted); font-size: 0.95rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.step-guide-card, .trust-card, .article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.step-guide-card a, .trust-card a, .article-card a { display: block; padding: 18px; height: 100%; }
.step-number {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.article-thumb { width: 100%; aspect-ratio: 1216 / 640; object-fit: cover; border-radius: 16px; border: 1px solid rgba(37,99,235,0.12); margin-bottom: 16px; background: var(--accent); }
.coaching-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.coaching-callout {
  position: relative; padding: 22px; background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.coaching-callout::before {
  content: ""; width: 48px; height: 48px; border-radius: 50%; display: block; margin-bottom: 16px;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--secondary) 19% 38%, var(--primary) 39% 100%);
  box-shadow: 0 0 0 10px rgba(239, 246, 255, 1);
}
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.starter-panel {
  overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.panel-banner { padding: 14px 18px; background: linear-gradient(135deg, var(--primary) 0%, #60A5FA 100%); color: #fff; font-weight: 800; }
.panel-body { padding: 18px; }
.score-badge { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: var(--secondary-deep); font-weight: 900; }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.kpi-item { padding: 14px; border-radius: 16px; background: var(--accent); border: 1px solid rgba(37, 99, 235, 0.08); }
.cta-box {
  margin-top: 28px; padding: 26px; background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(245,158,11,0.12) 100%);
  border: 1px solid rgba(37,99,235,0.12); border-radius: var(--radius-lg);
}
.site-footer { padding: 54px 0 30px; background: #eff6ff; border-top: 1px solid rgba(37,99,235,0.12); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.page-hero { padding: 48px 0 16px; }
.page-cover { margin-top: 20px; }
.page-cover img, .inline-gallery img { width: 100%; aspect-ratio: 1216 / 640; object-fit: cover; border-radius: 20px; border: 1px solid rgba(37,99,235,0.12); }
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.article-main {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 34px;
}
.article-main h2 { margin-top: 34px; color: var(--primary-deep); }
.article-main h3 { margin-top: 24px; color: var(--primary-deep); }
.article-main ul, .article-main ol { padding-left: 22px; }
.inline-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0; }
.sidebar-stack { display: grid; gap: 18px; }
.info-card, .score-table, .pros-cons, .faq-block {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px;
}
.score-table table { width: 100%; border-collapse: collapse; }
.score-table th, .score-table td { padding: 12px 10px; border-bottom: 1px solid rgba(37,99,235,0.12); text-align: left; }
.score-table th { color: var(--primary-deep); }
.pros-cons-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pros, .cons { border-radius: 16px; padding: 18px; }
.pros { background: rgba(15,118,110,0.08); }
.cons { background: rgba(245,158,11,0.12); }
.faq-item + .faq-item { margin-top: 14px; }
.faq-q { font-weight: 800; color: var(--primary-deep); margin-bottom: 6px; }
.faq-a { margin: 0; }
.checklist { display: grid; gap: 12px; margin: 22px 0; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--accent); border: 1px solid rgba(37,99,235,0.08); }
.check-item::before { content: "✓"; color: var(--primary); font-weight: 900; }
.notice-strip { display: grid; gap: 14px; margin-top: 18px; }
.notice-card { padding: 18px; border-radius: 18px; border: 1px solid rgba(37,99,235,0.1); background: linear-gradient(180deg, #fff 0%, #f9fbff 100%); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1024px) {
  .hero-grid, .article-shell, .footer-grid, .coaching-grid, .panel-grid, .card-grid, .contact-grid, .pros-cons-grid, .kpi-row { grid-template-columns: 1fr; }
  .step-flow { position: relative; left: auto; right: auto; bottom: auto; margin-top: 18px; }
  .step-flow-card::after { display: none; }
}
@media (max-width: 760px) {
  .nav-inner { align-items: flex-start; padding: 16px 0; }
  .main-nav { width: 100%; }
  .hero { padding-top: 34px; }
  .hero-copy h1 { font-size: 2.4rem; }
  .article-main { padding: 24px; }
  .inline-gallery { grid-template-columns: 1fr; }
}

.site-header.is-static {
  position: static;
}

.main-nav a.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.hero-copy ul {
  margin: 20px 0 0;
  padding-left: 22px;
}

.hero-copy li + li {
  margin-top: 8px;
}

.hero-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--secondary);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0 14px 14px 0;
}

.section-sub {
  max-width: 760px;
  margin: 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-link {
  font-weight: 800;
  color: var(--primary-deep);
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mini-stat {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mini-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary-deep);
}

.mini-stat span {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.article {
  display: block;
}

.article-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff 0%, var(--accent) 100%);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 1216 / 640;
  object-fit: cover;
}

.article-hero-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 0.9rem;
}

.article-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.article-main blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  background: var(--accent);
  border-radius: 0 16px 16px 0;
}

.article-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 18px;
}

.article-main th,
.article-main td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  vertical-align: top;
}

.article-main th {
  background: var(--accent);
  color: var(--primary-deep);
  text-align: left;
}

.article-main hr {
  border: 0;
  border-top: 1px solid rgba(37, 99, 235, 0.10);
  margin: 30px 0;
}

.pull-quote {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.callout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.callout-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.callout-card h3 {
  margin-top: 0;
}

.aside-title {
  margin: 0 0 10px;
  color: var(--primary-deep);
}

.quick-nav {
  display: grid;
  gap: 10px;
}

.quick-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.08);
  font-weight: 700;
}

.quick-nav a:hover {
  background: rgba(37, 99, 235, 0.10);
}

.toc-list {
  margin: 0;
  padding-left: 20px;
}

.toc-list li + li {
  margin-top: 8px;
}

.score-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.score-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #fff 0 52%, transparent 53%), conic-gradient(var(--primary) 0 70%, var(--secondary) 70% 100%);
  color: var(--primary-deep);
  font-size: 1.2rem;
  font-weight: 900;
}

.pros-cons h4 {
  margin-top: 0;
}

.rating-grid {
  display: grid;
  gap: 12px;
}

.rating-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 14px;
  align-items: center;
}

.rating-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.10);
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.compare-table {
  overflow-x: auto;
}

.compare-table table {
  min-width: 720px;
}

.inline-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--text);
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(37, 99, 235, 0.18);
}

.timeline-item {
  position: relative;
  padding: 0 0 0 44px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  box-shadow: 0 0 0 6px rgba(239, 246, 255, 1);
}

.timeline-time {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-deep);
  font-weight: 800;
}

.term-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.term-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #fff;
  box-shadow: var(--shadow);
}

.term-card dt {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary-deep);
}

.term-card dd {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p,
.site-footer p,
.site-footer a {
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--primary-deep);
}

.disclaimer {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text-muted);
}

.empty-state {
  padding: 26px;
  border-radius: 18px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(37, 99, 235, 0.20);
}

.error-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-card {
  width: min(100%, 720px);
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.error-code {
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  color: var(--primary-deep);
  margin: 0 0 14px;
}

@media (max-width: 1024px) {
  .mini-stat-grid,
  .callout-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rating-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mini-stat-grid,
  .callout-grid {
    grid-template-columns: 1fr;
  }

  .article-hero-copy {
    position: static;
    margin-top: 14px;
  }

  .error-card {
    padding: 24px;
  }
}

/* === Additional utility classes === */

.alert-box {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.alert-box h2 {
  color: #92400E;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.alert-box p {
  color: #78350F;
  margin-bottom: 0.25rem;
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card .article-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  padding: 0.75rem 1rem 0.25rem;
  font-size: 1.05rem;
}

.card p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.resource-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.resource-card h4 {
  margin-bottom: 0.4rem;
}

.resource-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.tl-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: baseline;
}

.tl-time {
  font-weight: 700;
  color: var(--accent);
  min-width: 52px;
  font-size: 0.95rem;
}

.tl-label {
  font-size: 0.92rem;
  color: var(--muted);
}

/* === a11y-override v1 === */
/* 批量抬 CTA tap target 到 WCAG AA 44px，小字 12→14px */
.btn, a.btn, button.btn, .nav-cta, .cta, a.cta, button.cta,
[class*="btn-"], [class*="cta-"] {
  min-height: 44px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-text, .btn-text:hover { min-height: auto; padding-top: 6px; padding-bottom: 6px; }
.rank-body p, .rank-score small, small, .footer small, footer small,
.disclaimer, .copyright, .muted-small {
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .btn, .nav-cta, .cta, [class*="btn-"] {
    min-height: 48px;
    font-size: 16px;
    width: auto;
  }
}
/* === end a11y-override === */

/* === a11y-override v2 === */
/* R2 mobile 深修：image overlay 吃色 / 灰字對比 / 圖片變形 */

/* 1. image overlay 文字防吃色：凡是疊在圖片上嘅文字都加 text-shadow 同漸層罩 */
.hero, .hero-card, .card-image, .guide-card, [class*="card-"] {
  position: relative;
}
.hero h1, .hero h2, .hero p,
.card-image + *, .guide-card h3, .guide-card p,
[class*="overlay"], [class*="-on-image"] {
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.4);
}
.hero::after, .guide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.hero > *, .guide-card > * { position: relative; z-index: 1; }

/* 2. 灰字對比：所有淺灰字統一抬到 #555 (7:1+) */
.muted, .text-muted, .sub, .secondary-text,
[class*="muted"], [class*="-small"], small, .footer small, footer small,
.meta, .card-meta, .label-small, .caption {
  color: #555555 !important;
}
/* --text-muted token 亦強制更新 */
:root {
  --text-muted: #555555 !important;
  --text-secondary: #444444 !important;
}

/* 3. 圖片寬高比鎖定：避免手機下被縱向拉伸 */
.hero img, .card img, .card-image img, .guide-card img,
[class*="-image"] img, article img, .thumb img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}
.logo img, .icon img, .avatar img { aspect-ratio: auto; }

/* 4. 手機專屬加強 */
@media (max-width: 600px) {
  .hero h1, .hero h2 { text-shadow: 0 2px 4px rgba(0,0,0,0.75); }
  img { max-width: 100%; height: auto; }
}
/* === end a11y-override v2 === */

/* === hero-upgrade v1 === */
/* Hero 視覺升級：漸層遮罩 + 微光 + glow CTA */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(242, 181, 68, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
  animation: hero-shimmer 12s ease-in-out infinite;
}
@keyframes hero-shimmer {
  0%, 100% { transform: translateX(-5%); opacity: 0.6; }
  50% { transform: translateX(5%); opacity: 1; }
}

.hero h1 {
  background: linear-gradient(135deg, var(--primary, #17324D) 0%, #2a5a8a 50%, var(--primary, #17324D) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-title-shine 6s ease-in-out infinite;
}
@keyframes hero-title-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .button,
.hero .btn,
.hero .btn-primary,
.hero a[class*="button"] {
  position: relative;
  box-shadow: 0 0 20px rgba(242, 181, 68, 0.3), 0 4px 12px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hero .button:hover,
.hero .btn:hover,
.hero .btn-primary:hover,
.hero a[class*="button"]:hover {
  box-shadow: 0 0 30px rgba(242, 181, 68, 0.5), 0 6px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.hero-image,
.hero img:not(.brand-mark):not([class*="icon"]) {
  transition: transform 0.6s ease;
}
.hero:hover .hero-image,
.hero:hover img:not(.brand-mark):not([class*="icon"]) {
  transform: scale(1.03);
}

.hero-section { position: relative; overflow: hidden; }
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: -50%; width: 200%; height: 100%;
  background: radial-gradient(ellipse at 30% 20%, rgba(242,181,68,0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: hero-shimmer 12s ease-in-out infinite;
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 28px; line-height: 1.3; }
  .hero .lede { font-size: 15px; }
}
/* === end hero-upgrade === */

