/* ============================================
   凱欣資產 - 全台理財整合中心
   ============================================ */

:root {
  --navy-900: #080f22;
  --navy-800: #0d1835;
  --navy-700: #16274d;
  --navy-600: #243d6a;
  --gold-500: #c9a253;
  --gold-400: #d9b76b;
  --gold-300: #e8cb8d;
  --line-green: #06c755;
  --white: #ffffff;
  --bg-gray: #e8eaed;
  --card-shadow: 0 4px 20px rgba(8,15,34,0.12);
  --radius: 12px;
  --font-serif: 'Noto Serif TC', serif;
  --font-sans: 'Noto Sans TC', -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-gray);
  color: var(--navy-800);
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--navy-800);
  z-index: 100;
  border-bottom: 2px solid var(--gold-500);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: white;
}
.logo-img { width: auto; height: 46px; border-radius: 0; object-fit: contain; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: white; }
.logo-en { font-size: 10px; color: var(--gold-400); letter-spacing: 0.12em; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-link { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13px; }
.nav-link:hover { color: var(--gold-400); }
.btn-nav {
  background: var(--line-green); color: white;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  white-space: nowrap;
}

/* ===== TICKER ===== */
.ticker-wrap {
  margin-top: 62px;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(201,162,83,0.4);
  overflow: hidden; padding: 9px 0;
}
.ticker-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-track span { color: var(--gold-400); font-size: 13px; font-weight: 700; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== MAIN ===== */
.main-bg { background: var(--bg-gray); min-height: 100vh; }
.content-wrap { max-width: 940px; margin: 0 auto; padding: 20px 16px 60px; }

/* ===== FEATURED REGION CARDS (top 2) ===== */
.featured-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 14px;
}

/* ===== THREE REGION CARDS ===== */
.region-cards-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  margin-bottom: 20px;
}

.region-card {
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  position: relative;
  overflow: hidden;
}

/* Light card (桃園) */
.region-card--light {
  background: white;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(8,15,34,0.07);
}
/* Dark card (台北) */
.region-card--dark {
  background: var(--navy-800);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(201,162,83,0.25);
}

.card-corner-badge {
  position: absolute; top: 0; right: 0;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px;
  border-bottom-left-radius: 8px;
}
.card-corner-badge--orange { background: #f97316; color: white; }
.card-corner-badge--gold { background: var(--gold-500); color: var(--navy-800); }

.card-top-row { margin-bottom: 14px; }
.card-logo-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.card-logo-mark {
  width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
}
.card-logo-mark--light {
  background: var(--navy-800);
}
.card-logo-mark--dark {
  background: rgba(201,162,83,0.15);
  border: 1px solid rgba(201,162,83,0.3);
}
.card-logo-mark img { width: 28px; height: 28px; object-fit: contain; }
.card-brand { font-family: var(--font-serif); font-weight: 900; font-size: 16px; }
.card-brand--light { color: var(--navy-800); }
.card-brand--dark { color: white; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.tag--navy { background: var(--navy-700); color: var(--gold-400); }
.tag--gold { background: rgba(201,162,83,0.15); color: var(--gold-300); }
.tag--gray { background: rgba(8,15,34,0.08); color: var(--navy-700); }

.card-offer { font-size: 13px; margin-bottom: 4px; }
.card-offer--light { color: #555; }
.card-offer--dark { color: rgba(255,255,255,0.6); }

.card-label { font-size: 11px; color: #888; margin-bottom: 2px; }
.card-label--dark { color: rgba(255,255,255,0.45); }

.card-amount {
  font-size: 38px; font-weight: 900;
  font-family: var(--font-serif);
  line-height: 1; margin-bottom: 6px;
}
.card-amount--light { color: var(--navy-800); }
.card-amount--gold { color: var(--gold-400); }

.card-speed { font-size: 12px; margin-bottom: 14px; }
.card-speed--light { color: #666; }
.card-speed--dark { color: rgba(255,255,255,0.6); }

.btn-apply {
  display: block; width: 100%; text-align: center;
  padding: 11px; border-radius: 8px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: opacity 0.2s;
}
.btn-apply:hover { opacity: 0.88; }
.btn-apply--navy { background: var(--navy-800); color: white; }
.btn-apply--gold { background: var(--gold-500); color: var(--navy-800); }

/* ===== SMALL CARD ROW (台中) ===== */
.small-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.small-card {
  background: white; border-radius: 10px;
  padding: 14px; box-shadow: var(--card-shadow);
  border: 1px solid rgba(8,15,34,0.06);
}
.small-card-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.small-card-icon { font-size: 24px; }
.small-card-brand { font-size: 13px; font-weight: 700; color: var(--navy-700); }
.tag-badge {
  display: inline-block; margin-left: 4px;
  background: #ef4444; color: white;
  font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 3px;
  vertical-align: middle;
}
.small-card-amount { font-size: 20px; font-weight: 900; color: var(--navy-800); font-family: var(--font-serif); margin-bottom: 2px; }
.small-card-speed { font-size: 11px; color: #777; margin-bottom: 10px; }
.btn-sm {
  display: block; width: 100%; text-align: center;
  background: var(--navy-700); color: white;
  padding: 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; text-decoration: none;
}
.btn-sm:hover { background: var(--navy-600); }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  text-align: center; font-size: 15px; font-weight: 700;
  color: var(--navy-700); padding: 10px 0 16px;
}

/* ===== BANNERS ===== */
.banner {
  border-radius: var(--radius); margin-bottom: 14px;
  padding: 28px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.banner--1 { background: linear-gradient(135deg, #0b1a3d 0%, #1a3a6e 40%, #0f2654 100%); }
.banner--2 { background: linear-gradient(135deg, #16274d 0%, #0d1835 60%, #1a3055 100%); }
.banner--3 { background: linear-gradient(135deg, #0d1835 0%, #1e3560 50%, #243d6a 100%); }
.banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(201,162,83,0.03) 20px,
    rgba(201,162,83,0.03) 40px
  );
}
.banner-title {
  font-size: 26px; font-weight: 900;
  color: var(--gold-400);
  font-family: var(--font-serif);
  margin-bottom: 8px;
  position: relative;
  letter-spacing: 0.05em;
}
.banner-sep {
  font-size: 13px; color: rgba(255,255,255,0.5);
  position: relative; margin-bottom: 6px;
}
.banner-sub {
  font-size: 14px; color: rgba(255,255,255,0.75);
  position: relative;
}

/* ===== INTRO ===== */
.intro-block { text-align: center; padding: 20px 0 14px; }
.intro-title {
  font-size: 22px; font-weight: 900;
  color: var(--gold-500);
  font-family: var(--font-serif);
}
.intro-sub { font-size: 14px; color: #555; margin-top: 6px; }

/* ===== FORM SECTION ===== */
.form-section {
  background: white; border-radius: var(--radius);
  padding: 28px 28px 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 10px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.form-desc { font-size: 14px; color: #555; margin-bottom: 18px; line-height: 1.6; }
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--navy-700); margin-bottom: 5px;
}
.form-field input, .form-field select {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #ddd; border-radius: 7px;
  font-size: 14px; font-family: var(--font-sans);
  color: var(--navy-800); background: white;
  outline: none; transition: border-color 0.2s; appearance: none;
}
.form-field input:focus, .form-field select:focus { border-color: var(--navy-600); }
.phone-row { display: flex; gap: 8px; }
.phone-prefix {
  flex-shrink: 0; padding: 10px 10px;
  border: 1.5px solid #ddd; border-radius: 7px;
  font-size: 13px; background: #f7f7f7; color: #444;
  white-space: nowrap;
}
.phone-row input { flex: 1; }
.btn-submit {
  width: 100%; padding: 13px;
  background: var(--navy-800); color: white;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s; margin-top: 4px;
}
.btn-submit:hover { background: var(--navy-600); }

/* form right */
.form-right-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 20px;
}
.form-logo-big {
  width: auto; height: 180px;
  object-fit: contain;
}
.form-slogan-title {
  font-size: 30px; font-weight: 900; font-family: var(--font-serif);
  color: var(--navy-800); line-height: 1.2;
}
.form-slogan-gold { color: var(--gold-500); display: block; }
.form-slogan-sub { font-size: 14px; color: #777; margin-top: 8px; }

/* LINE region buttons */
.line-btns { display: flex; flex-direction: column; gap: 12px; }
.btn-line-region {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 18px;
  background: var(--navy-800); border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(201,162,83,0.2);
  transition: background 0.2s, border-color 0.2s;
}
.btn-line-region:hover { background: var(--navy-600); border-color: var(--gold-500); }
.line-region-name { font-size: 16px; font-weight: 900; color: white; font-family: var(--font-serif); }
.line-region-sub { font-size: 12px; color: var(--gold-400); }
.line-cta { font-size: 13px; font-weight: 700; color: var(--line-green); margin-top: 4px; }

.form-note {
  text-align: center; font-size: 13px; color: #888;
  padding: 12px 0 4px;
}

/* ===== FEATURES ===== */
.features-block {
  background: white; border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 14px;
}
.feature-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid #f0f0f0;
}
.feature-row:last-child { border-bottom: none; }
.feature-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(8,15,34,0.06);
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 18px;
}
.feature-text h3 { font-size: 15px; font-weight: 700; color: var(--navy-800); margin-bottom: 3px; }
.feature-text p { font-size: 13px; color: #666; line-height: 1.6; }

/* ===== CTA ===== */
.cta-block { text-align: center; padding: 20px 0 40px; }
.btn-cta {
  display: inline-block;
  background: var(--navy-800); color: white;
  padding: 16px 52px; border-radius: 999px;
  font-size: 17px; font-weight: 900; text-decoration: none;
  font-family: var(--font-serif);
  box-shadow: 0 8px 28px rgba(8,15,34,0.22);
  border: 2px solid var(--gold-500);
  transition: transform 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-900);
  padding: 36px 20px 20px;
}
.footer-inner {
  max-width: 940px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px; flex-wrap: wrap; gap: 20px;
}
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-logo-img { width: 36px; height: 36px; border-radius: 6px; }
.footer-brand-name { font-family: var(--font-serif); font-weight: 700; color: white; font-size: 16px; line-height: 1.2; }
.footer-brand-en { font-size: 11px; color: var(--gold-400); letter-spacing: 0.1em; }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 10px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--gold-400); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--gold-300); }

.disclaimer {
  max-width: 940px; margin: 0 auto 16px;
  font-size: 11.5px; line-height: 1.9; color: rgba(255,255,255,0.35);
}
.disclaimer strong { color: rgba(255,255,255,0.55); display: block; margin-bottom: 6px; font-size: 12px; }
.copyright {
  text-align: center; font-size: 11px;
  color: rgba(255,255,255,0.25);
  max-width: 940px; margin: 0 auto;
}

/* ===== FLOAT LINE BTN ===== */
.float-line {
  position: fixed; bottom: 24px; right: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  z-index: 50;
}
@keyframes dogBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-10px) rotate(-4deg); }
  40% { transform: translateY(-6px) rotate(3deg); }
  60% { transform: translateY(-10px) rotate(-2deg); }
  80% { transform: translateY(-4px) rotate(2deg); }
}
@keyframes dogPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(8,15,34,0.3), 0 0 0 0 rgba(201,162,83,0.5); }
  50% { box-shadow: 0 6px 24px rgba(8,15,34,0.3), 0 0 0 10px rgba(201,162,83,0); }
}
.float-line-btn {
  width: 90px; height: 90px; border-radius: 50%;
  background: white;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  border: 3px solid var(--gold-500);
  overflow: hidden;
  animation: dogBounce 2.4s ease-in-out infinite, dogPulse 2.4s ease-in-out infinite;
}
.float-line-btn img { width: 86px; height: 86px; object-fit: contain; object-position: center; }
.float-line-btn:hover { animation-play-state: paused; transform: scale(1.08); }
.float-line-label {
  font-size: 10px; font-weight: 700;
  color: var(--navy-800);
  background: white;
  padding: 2px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .nav-link { display: none; }
  .featured-cards { grid-template-columns: 1fr; }
  .region-cards-3 { grid-template-columns: 1fr; }
  .small-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-right-side { display: none; }
  .card-amount { font-size: 30px; }
  .banner-title { font-size: 20px; }
  .banner { padding: 22px 20px; }
  .content-wrap { padding: 16px 12px 48px; }
}
