/* ============================================
   盛發國際 貸款諮詢平台 - 主樣式
   色系：深藍夜黑 + 金色 (呼應品牌形象)
============================================ */

:root {
  --navy-950: #0b1220;
  --navy-900: #10192e;
  --navy-800: #16223d;
  --navy-700: #1d2c4d;
  --gold-500: #d4a94a;
  --gold-400: #e8c675;
  --gold-600: #b8862f;
  --cream-50: #faf7f0;
  --text-light: #f4f1e9;
  --text-muted: #b9c0d1;
  --shadow-gold: 0 10px 30px rgba(212, 169, 74, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

/* 修復 CSS Grid 子元素預設最小寬度為內容自然寬度的問題，
   避免內含換行文字/按鈕群組(如聯絡方式、表單)在窄螢幕上撐出版面造成橫向跑版 */
.hero-inner > *,
.apply-inner > *,
.footer-inner > *,
.product-grid > *,
.promo-grid > *,
.advantage-grid > *,
.process-grid > *,
.testimonial-grid > *,
.trust-inner > *,
.compare-row > *,
.form-row > * {
  min-width: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  background: var(--cream-50);
  color: var(--navy-900);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.text-gold { color: var(--gold-500); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1204;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212, 169, 74, 0.4);
}
.btn-outline {
  border-color: var(--gold-500);
  color: var(--navy-900);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(212, 169, 74, 0.1);
}
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 169, 74, 0.25);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(212,169,74,0.4);
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--text-light); font-size: 1.15rem; }
.brand-text small { color: var(--gold-400); font-size: 0.7rem; letter-spacing: 1px; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}
.header-cta { padding: 10px 22px; font-size: 0.9rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.4rem;
}

@media (min-width: 900px) {
  .header-phone { display: inline-flex; align-items: center; gap: 6px; }
}
@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-950);
    flex-direction: column;
    padding: 10px 24px 20px;
    gap: 14px;
    display: none;
    border-bottom: 1px solid rgba(212, 169, 74, 0.25);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 130px 24px 80px;
  background: radial-gradient(circle at 75% 30%, #1a2743 0%, var(--navy-950) 65%);
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(60deg, rgba(212,169,74,0.06) 25%, transparent 25.5%, transparent 75%, rgba(212,169,74,0.06) 75.5%),
    linear-gradient(-60deg, rgba(212,169,74,0.06) 25%, transparent 25.5%, transparent 75%, rgba(212,169,74,0.06) 75.5%);
  background-size: 80px 140px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  border: 1px solid rgba(212, 169, 74, 0.3);
  order: -1;
}
.hero-content { text-align: center; }
.hero-eyebrow {
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.hero-content h1 {
  color: var(--text-light);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 22px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-badges li {
  background: rgba(212, 169, 74, 0.12);
  border: 1px solid rgba(212, 169, 74, 0.35);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badges i { color: var(--gold-400); }
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-actions .btn-outline {
  color: var(--text-light);
  border-color: rgba(212, 169, 74, 0.5);
}
.hero-note { color: var(--text-muted); font-size: 0.85rem; }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1fr 1fr; text-align: left; }
  .hero-image { order: 0; }
  .hero-content { text-align: left; }
  .hero-badges, .hero-actions { justify-content: flex-start; }
  .hero-content h1 { font-size: 3.2rem; }
}

/* ===== Trust bar ===== */
.trust-bar {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  padding: 32px 24px;
}
.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #1a1204;
  margin: 0;
}
.trust-item p {
  color: #3a2a08;
  font-weight: 600;
  margin: 4px 0 0;
  font-size: 0.9rem;
}
@media (min-width: 768px) {
  .trust-inner { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Sections general ===== */
.section { padding: 80px 24px; max-width: 1280px; margin: 0 auto; }
.section-dark {
  background: var(--navy-950);
  max-width: 100%;
  color: var(--text-light);
}
.section-dark .section-inner,
.section-dark { border-radius: 0; }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-tag {
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-dark .section-tag { color: var(--gold-400); }
.section-head h2 {
  font-size: 1.9rem;
  font-weight: 900;
  margin: 0 0 14px;
  color: var(--navy-900);
}
.section-dark .section-head h2 { color: var(--text-light); }
.section-desc { color: #5b6478; font-size: 0.98rem; }
.section-dark .section-desc { color: var(--text-muted); }

/* ===== Products ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid #eee2c8;
  box-shadow: 0 8px 24px rgba(20, 30, 55, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 30, 55, 0.12);
  border-color: var(--gold-400);
}
.product-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.product-card h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; color: var(--navy-900); }
.product-card p { color: #667; font-size: 0.9rem; margin: 0 0 16px; flex: 0; }
.product-card ul { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.product-card ul li { font-size: 0.85rem; color: #445; display: flex; align-items: center; gap: 8px; }
.product-card ul i { color: var(--gold-600); }
.product-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--gold-600);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-link:hover { color: var(--gold-500); }

.product-card-highlight {
  border-color: var(--gold-500);
  background: linear-gradient(160deg, #fffaf0, #fff);
  position: relative;
}
.product-card-highlight::before {
  content: "熱門";
  position: absolute;
  top: -12px; right: 20px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1204;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
}

/* ===== Promotions ===== */
.promotions { padding-top: 80px; padding-bottom: 80px; }
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 900px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }

.promo-card {
  position: relative;
  background: var(--navy-800);
  border: 1px solid rgba(212, 169, 74, 0.25);
  border-radius: var(--radius-md);
  padding: 34px 26px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.promo-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-400);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}
.promo-ribbon {
  position: absolute;
  top: -13px; left: 26px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1204;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
}
.promo-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(212, 169, 74, 0.12);
  border: 1px solid rgba(212, 169, 74, 0.35);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.promo-card h3 { color: var(--text-light); font-size: 1.15rem; font-weight: 800; margin: 0 0 10px; }
.promo-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 18px; }
.promo-card-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.promo-card-list li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.promo-card-list i { color: var(--gold-400); }

.promo-cta-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(212, 169, 74, 0.3);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.promo-cta-text h3 {
  color: var(--gold-400);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.promo-cta-text p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.promo-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.promo-cta-btn { color: var(--text-light); border-color: rgba(212,169,74,0.5); }

@media (min-width: 860px) {
  .promo-cta-banner { flex-direction: row; justify-content: space-between; text-align: left; padding: 34px 44px; }
  .promo-cta-text h3 { justify-content: flex-start; }
}

/* ===== Compare table (為何選擇我們 vs 直接向銀行) ===== */
.compare-wrap { margin-top: 56px; }
.compare-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 26px;
}
.compare-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #eee2c8;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #eee2c8;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.compare-row.compare-head { background: var(--navy-950); }
.compare-cell {
  background: #fff;
  padding: 16px 18px;
  font-size: 0.85rem;
  color: #445;
}
.compare-label { display: none; }
.compare-head .compare-good,
.compare-head .compare-bad {
  background: var(--navy-950);
  color: var(--text-light);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-head .compare-good i { color: var(--gold-400); }
.compare-head .compare-bad i { color: #e07a5f; }
.compare-good { border-left: 3px solid var(--gold-500); }
.compare-bad { color: #778; }

@media (min-width: 700px) {
  .compare-row { grid-template-columns: 140px 1fr 1fr; }
  .compare-label {
    display: flex;
    align-items: center;
    background: var(--cream-50);
    font-weight: 700;
    color: var(--navy-900);
    font-size: 0.85rem;
  }
  .compare-head .compare-label { background: var(--navy-950); }
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  position: relative;
  background: var(--navy-800);
  border: 1px solid rgba(212, 169, 74, 0.2);
  border-radius: var(--radius-md);
  padding: 34px 24px;
  text-align: center;
}
.step-number {
  position: absolute;
  top: -16px; left: 20px;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--navy-950);
  background: var(--gold-400);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2rem; color: var(--gold-400); margin: 10px 0 18px; }
.process-step h3 { color: var(--text-light); font-size: 1.1rem; margin: 0 0 8px; }
.process-step p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.process.section-dark .section-head { margin-bottom: 60px; padding-top: 80px; }

/* ===== Advantages ===== */
.advantage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 700px) { .advantage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .advantage-grid { grid-template-columns: repeat(3, 1fr); } }
.advantage-card {
  padding: 30px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff, var(--cream-50));
  border: 1px solid #eee2c8;
  text-align: center;
}
.advantage-card i {
  font-size: 1.9rem;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.advantage-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; color: var(--navy-900); }
.advantage-card p { font-size: 0.88rem; color: #667; margin: 0; }

/* ===== Testimonials ===== */
.testimonials { padding-top: 80px; padding-bottom: 80px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--navy-800);
  border: 1px solid rgba(212, 169, 74, 0.2);
  border-radius: var(--radius-md);
  padding: 28px;
}
.stars { color: var(--gold-400); margin-bottom: 14px; font-size: 0.9rem; }
.testimonial-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }
.testimonial-user { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1204;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-user strong { color: var(--text-light); display: block; font-size: 0.92rem; }
.testimonial-user small { color: var(--text-muted); font-size: 0.78rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid #eee2c8;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy-900);
  text-align: left;
}
.faq-question i { color: var(--gold-600); transition: transform 0.25s; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.faq-answer p { color: #667; font-size: 0.9rem; padding-bottom: 20px; margin: 0; }
.faq-item.open .faq-answer { max-height: 260px; }

/* ===== Apply Form ===== */
.apply { padding-top: 80px; padding-bottom: 80px; }
.apply-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 960px) { .apply-inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }

.apply-list { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.apply-list li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.92rem; }
.apply-list i { color: var(--gold-400); }
.apply-contact { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.apply-contact a {
  display: flex; align-items: center; gap: 8px;
  color: var(--gold-400);
  font-weight: 700;
  border: 1px solid rgba(212,169,74,0.4);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.apply-contact a:hover { background: rgba(212,169,74,0.1); }

.apply-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--navy-900); }
.required { color: #d33; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #dde1e8;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy-900);
  background: #fbfbfa;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #556;
  margin-bottom: 20px;
}
.checkbox-line a { color: var(--gold-600); font-weight: 700; }
.checkbox-line input { width: 16px; height: 16px; accent-color: var(--gold-600); }
.form-status {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: #1a8a4a; }
.form-status.error { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-950); color: var(--text-muted); padding: 60px 24px 0; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(212,169,74,0.15);
}
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand p { font-size: 0.88rem; margin: 16px 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212,169,74,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
}
.footer-social a:hover { background: rgba(212,169,74,0.15); }
.footer-col h4 { color: var(--text-light); font-size: 1rem; margin: 0 0 18px; }
.footer-col a, .footer-col p { display: block; font-size: 0.88rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7488;
}

/* ===== Floating Action Buttons (LINE + 吉祥物) ===== */
.fab-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100vw - 32px);
}
.fab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.fab-btn:hover { transform: translateY(-3px); }

.fab-line {
  background: #06C755;
  color: #fff;
}
.fab-line i { font-size: 1.15rem; }
.fab-line:hover { box-shadow: 0 10px 26px rgba(6, 199, 85, 0.45); }

.fab-mascot {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1204;
  padding: 6px 16px 6px 6px;
  animation: float-bounce 2.6s ease-in-out infinite;
}
.fab-mascot-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}
.fab-mascot:hover { box-shadow: 0 10px 26px rgba(212, 169, 74, 0.5); }

/* 手機版：僅顯示圖示，避免文字撐爆版面造成橫向跑版 */
.fab-btn span { display: none; }
@media (min-width: 480px) {
  .fab-btn span { display: inline; }
}
@media (max-width: 479px) {
  .fab-stack { right: 12px; bottom: 12px; gap: 10px; }
  .fab-btn { padding: 10px; border-radius: 50%; }
  .fab-mascot { padding: 5px; }
  .fab-mascot-img { width: 38px; height: 38px; }
  .fab-line i { font-size: 1.3rem; }
}

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 90px;
  right: 20px;
  background: var(--navy-900);
  color: var(--text-light);
  padding: 14px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--gold-500);
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 2000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== 快問快答彈跳視窗（Lead Popup → 導向 LINE） ===== */
.lead-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lead-popup-overlay.open { opacity: 1; visibility: visible; }

.lead-popup-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 26px 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s ease;
}
.lead-popup-overlay.open .lead-popup-card { transform: translateY(0) scale(1); }

.lead-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f1ee;
  color: var(--navy-900);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.lead-popup-close:hover { background: #e6e6e2; }

.lead-popup-header { text-align: center; margin-bottom: 18px; }
.lead-popup-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #000;
  padding: 4px;
  margin-bottom: 10px;
  object-fit: cover;
}
.lead-popup-header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--navy-900);
}
.lead-popup-header p {
  margin: 0;
  font-size: 0.85rem;
  color: #667;
  line-height: 1.5;
}

.lead-popup-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.lead-popup-progress .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e2e2dc;
  transition: background 0.2s, transform 0.2s;
}
.lead-popup-progress .dot.active {
  background: var(--gold-500);
  transform: scale(1.3);
}

.lead-popup-step { display: none; }
.lead-popup-step.active { display: block; animation: lead-step-in 0.3s ease; }
@keyframes lead-step-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.lead-popup-question {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
  margin: 0 0 16px;
}

.lead-popup-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
.lead-option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 12px;
  border: 1.5px solid #e2e2dc;
  background: #fbfbfa;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  transition: all 0.2s ease;
}
.lead-option-btn:hover {
  border-color: var(--gold-500);
  background: rgba(212, 169, 74, 0.1);
}
.lead-option-btn.selected {
  border-color: var(--gold-600);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1204;
}
.lead-option-full { grid-column: 1 / -1; }

.lead-popup-back {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: #889;
  font-size: 0.85rem;
  font-weight: 600;
}
.lead-popup-back:hover { color: var(--gold-600); }

.lead-popup-form { display: flex; flex-direction: column; gap: 12px; }
.lead-popup-form input {
  padding: 13px 14px;
  border: 1.5px solid #dde1e8;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy-900);
  background: #fbfbfa;
  transition: border-color 0.2s;
  width: 100%;
}
.lead-popup-form input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}

.lead-popup-footnote {
  text-align: center;
  font-size: 0.72rem;
  color: #99a;
  margin: 16px 0 0;
  line-height: 1.6;
}
.lead-popup-footnote a { color: var(--gold-600); font-weight: 700; }

@media (max-width: 480px) {
  .lead-popup-card { padding: 26px 18px 18px; }
  .lead-popup-options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lead-option-btn { font-size: 0.82rem; padding: 12px 6px; }
}
