/* ==================== Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050507;
  --bg-elev: #0d0d12;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-dim: rgba(245, 245, 247, 0.7);
  --text-muted: rgba(245, 245, 247, 0.45);
  --accent: #f97316;
  --accent-hot: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.5);
  --success: #10b981;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px -10px var(--accent-glow);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== Animated Background ==================== */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Video background (E125 MK2 VLOG) */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.bg-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 14, 0.55) 0%, rgba(10, 10, 14, 0.45) 40%, rgba(10, 10, 14, 0.72) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(249, 115, 22, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(168, 85, 247, 0.1), transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(59, 130, 246, 0.08), transparent 60%),
    rgba(5, 5, 7, 0.55);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 80%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.bg-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 40%; right: -100px;
  animation-delay: -7s;
}

.bg-glow-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: -200px; left: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ==================== Header ==================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
}

#header.scrolled {
  padding: 10px 0;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px -4px var(--accent-glow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px var(--accent-glow);
}

.nav-cta-icon {
  font-size: 16px;
}

/* ==================== Hero ==================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  position: relative;
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #fb923c 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 24px -6px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px var(--accent-glow);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-num span {
  font-size: 14px;
  font-weight: 600;
  margin-left: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: float-card 6s ease-in-out infinite;
}

.hero-floating-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}

.hero-card-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-1deg); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

/* ==================== Section Header ==================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== Vehicles ==================== */
.vehicles-section,
.why-section,
.contact-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 32px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* Vehicle Card */
.vehicle-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.vehicle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  border-radius: 20px;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6), 0 0 60px -20px var(--accent-glow);
}

.vehicle-card:hover::before {
  opacity: 0.4;
}

.vehicle-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.08);
}

.vehicle-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.stock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stock-in {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.stock-in::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.stock-low {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.stock-out {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.vehicle-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vehicle-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.vehicle-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.vehicle-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.vehicle-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.vehicle-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.vehicle-price-currency {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.vehicle-price-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.vehicle-price-note {
  font-size: 12px;
  color: #FFD54F;
  margin-top: 2px;
  font-weight: 500;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s var(--ease);
}

.spec-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.spec-icon {
  font-size: 18px;
  line-height: 1;
}

.spec-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spec-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 1px;
}

.vehicle-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-order {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px -4px var(--accent-glow);
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px var(--accent-glow);
}

.btn-order svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn-order:hover svg {
  transform: translateX(4px);
}

/* ==================== Why Section ==================== */
.why-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.why-card,
.contact-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
}

.why-card:hover,
.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.why-icon-wrap,
.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.why-icon-wrap svg,
.contact-icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3,
.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p,
.contact-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.contact-card-addr h3 {
  font-size: 16px;
}

.contact-hours {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-weight: 600;
  color: var(--accent, #22c55e) !important;
}

.contact-hours-closed {
  color: var(--text-dim) !important;
  font-weight: 400;
}

/* ==================== Footer ==================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 12px;
}

.footer-small {
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.footer-logo svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.footer-note p {
  margin-bottom: 4px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== Loading Skeleton ==================== */
.loading-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  grid-column: 1 / -1;
}

.skeleton-card {
  height: 480px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(40px);
  transition: transform 0.5s var(--ease);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
  border-color: var(--accent);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9));
}

.modal-vehicle-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-vehicle-image-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 13, 18, 1) 100%);
  pointer-events: none;
}

.modal-vehicle-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  z-index: 2;
}

.modal-vehicle-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-vehicle-info h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.modal-stock {
  font-size: 13px;
  color: var(--text-dim);
}

.modal-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.form-row .req {
  color: var(--accent);
}

.form-row .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s var(--ease);
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
}

.form-row-2col {
  flex-direction: row;
  gap: 12px;
}

.form-row-2col > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row-2col label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.form-row-2col select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2388a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row-2col select:focus,
.form-row-2col input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.color-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
}

.color-option.selected {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--accent);
  color: var(--accent-hot);
}

.color-option-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.form-notice {
  padding: 16px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.form-notice-icon {
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 24px -6px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px var(--accent-glow);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 修復：主按鍵（確認預訂）的轉圈圖示預設要隱藏，只喺提交中先顯示 */
.btn-submit .btn-loading {
  display: none;
}

.btn-loading .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 顏色選項現貨標籤 */
.color-option .color-stock-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  line-height: 1.5;
  margin-left: 2px;
  white-space: nowrap;
}

.color-option .color-stock-tag.in {
  background: rgba(129, 199, 132, 0.18);
  color: #81c784;
}

.color-option .color-stock-tag.out {
  background: rgba(159, 168, 218, 0.15);
  color: #9fa8da;
}

.color-option.color-out {
  border-style: dashed;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== Success Modal ==================== */
.modal-success {
  max-width: 440px;
  text-align: center;
  padding: 48px 32px;
}

.success-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.success-icon-bg {
  position: absolute;
  inset: 0;
  background: var(--success);
  border-radius: 50%;
  opacity: 0.2;
  animation: success-pulse 2s ease-in-out infinite;
}

.success-icon {
  position: relative;
  width: 100%;
  height: 100%;
  color: var(--success);
  z-index: 2;
  animation: success-scale 0.6s var(--ease);
}

@keyframes success-pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.2); opacity: 0.3; }
}

@keyframes success-scale {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.modal-success h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-msg {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.success-details {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
}

.success-details .label {
  color: var(--text-muted);
  display: inline-block;
  min-width: 80px;
}

.btn-close-success {
  width: 100%;
}

/* ==================== Form Deposit Row ==================== */
.form-deposit-row {
  margin: 4px 0;
}

.form-deposit-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 10px;
}

.form-deposit-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.form-deposit-value {
  font-size: 18px;
  font-weight: 800;
  color: #FFC800;
}

.form-deposit-note {
  font-size: 11px;
  color: var(--text-muted);
  width: 100%;
  margin-top: 2px;
}

/* ==================== Confirm Modal ==================== */
.modal-confirm {
  max-width: 480px;
  padding: 36px 28px;
}

.confirm-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}

.confirm-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 20px;
}

.confirm-details {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  max-height: 320px;
  overflow-y: auto;
}

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-label {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 1px;
}

.confirm-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  flex: 1;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.btn-confirm-submit {
  flex: 1.5;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-confirm-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-confirm-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-confirm-submit .btn-loading {
  display: none;
  align-items: center;
  gap: 6px;
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ==================== Scroll Animations ==================== */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-up"].visible {
  transform: translateY(0);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 100px 24px 60px;
    gap: 40px;
  }

  .hero-visual {
    height: 360px;
    order: -1;
  }

  .hero-floating-card {
    max-width: 400px;
  }

  .hero-stats {
    gap: 20px;
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .logo-sub {
    display: none;
  }

  .hero {
    padding: 90px 16px 40px;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 12px;
    padding: 16px 20px;
    width: 100%;
    justify-content: space-between;
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-divider {
    height: 24px;
  }

  .vehicles-section,
  .why-section,
  .contact-section {
    padding: 60px 16px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 32px;
  }

  .modal {
    max-height: 95vh;
  }

  .modal-form {
    padding: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-note {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    height: 280px;
  }

  .vehicle-specs {
    grid-template-columns: 1fr;
  }
}

/* ==================== Eco Subsidy Section ==================== */
.eco-section {
  padding: 60px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.eco-card {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(16,185,129,0.05));
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.eco-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34,197,94,0.1), transparent 70%);
  border-radius: 50%;
}

.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  margin-bottom: 20px;
}

.eco-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.eco-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.eco-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.eco-amount-card {
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.eco-amount-current {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(16,185,129,0.08));
  border: 1.5px solid rgba(34,197,94,0.35);
}

.eco-amount-next {
  background: rgba(239,68,68,0.06);
  border: 1.5px solid rgba(239,68,68,0.2);
}

.eco-amount-period {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.eco-amount-value {
  font-size: 36px;
  font-weight: 900;
  color: #4ade80;
  letter-spacing: -0.02em;
}

.eco-amount-decrease {
  color: #f87171;
}

.eco-amount-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.eco-amount-extra {
  font-size: 12px;
  color: #4ade80;
  margin-top: 12px;
  opacity: 0.8;
}

.eco-amount-warn {
  font-size: 12px;
  color: #f87171;
  margin-top: 12px;
}

.eco-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.eco-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 100px;
  color: #4ade80;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.eco-link:hover {
  background: rgba(34,197,94,0.25);
  transform: translateY(-2px);
}

.eco-note {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .eco-amounts {
    grid-template-columns: 1fr;
  }
  .eco-card {
    padding: 32px 20px;
  }
}

/* ==================== AI Chat QR Section ==================== */
.ai-chat-section {
  padding: 60px 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.ai-chat-card {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(99,102,241,0.05));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.ai-chat-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 50%; height: 200%;
  background: radial-gradient(ellipse, rgba(249,115,22,0.1), transparent 60%);
  pointer-events: none;
}

.ai-chat-left {
  flex: 1;
  position: relative;
  z-index: 1;
}

.ai-chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 16px;
}

.ai-chat-badge-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ai-chat-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text), var(--accent-hot));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-chat-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.ai-chat-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.ai-chat-qr-wrap {
  flex-shrink: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ai-chat-qr {
  padding: 12px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(249,115,22,0.2);
  transition: transform 0.3s ease;
}

.ai-chat-qr:hover {
  transform: scale(1.05);
}

.ai-chat-qr img {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 12px;
}

.ai-chat-qr-label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .ai-chat-card {
    flex-direction: column-reverse;
    gap: 32px;
    padding: 32px 24px;
    text-align: center;
  }

  .ai-chat-title {
    font-size: 26px;
  }

  .ai-chat-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .ai-chat-qr img {
    width: 150px;
    height: 150px;
  }
}

/* ==================== WeChat Modal ==================== */
.wechat-modal-overlay {
  z-index: 200;
}

.wechat-modal {
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 0;
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  overflow: hidden;
}

.wechat-modal-close {
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.06);
  width: 36px;
  height: 36px;
  z-index: 10;
}

.wechat-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.wechat-modal-content {
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wechat-modal-header {
  margin-bottom: 22px;
}

.wechat-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.wechat-modal-icon svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
}

.wechat-modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.wechat-modal-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.wechat-qr-wrapper {
  position: relative;
  margin-bottom: 22px;
}

.wechat-qr-frame {
  position: relative;
  width: 240px;
  height: 240px;
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.35),
    0 20px 60px rgba(34, 197, 94, 0.25),
    0 0 80px rgba(34, 197, 94, 0.15);
  animation: wechat-pulse 2.4s ease-in-out infinite;
}

@keyframes wechat-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(34, 197, 94, 0.35),
      0 20px 60px rgba(34, 197, 94, 0.25),
      0 0 80px rgba(34, 197, 94, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(34, 197, 94, 0.6),
      0 20px 60px rgba(34, 197, 94, 0.4),
      0 0 100px rgba(34, 197, 94, 0.3);
  }
}

.wechat-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.wechat-qr-corners {
  position: absolute;
  inset: -8px;
  pointer-events: none;
}

.wechat-qr-corners .corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #22c55e;
  border-style: solid;
}

.wechat-qr-corners .tl {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 4px;
}

.wechat-qr-corners .tr {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 4px;
}

.wechat-qr-corners .bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 4px;
}

.wechat-qr-corners .br {
  bottom: 0;
  right: 0;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 4px;
}

.wechat-qr-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.5);
  white-space: nowrap;
}

.wechat-qr-tag svg {
  width: 12px;
  height: 12px;
}

.wechat-modal-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

.wechat-tip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.wechat-tip-icon {
  font-size: 20px;
  line-height: 1;
}

.wechat-tip strong {
  font-size: 12px;
  color: #f1f5f9;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.wechat-tip p {
  font-size: 10px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.wechat-modal-note {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 10px;
  line-height: 1.5;
}

/* Clickable contact card */
.contact-card-clickable {
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-card-clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.contact-icon-wechat {
  color: #22c55e;
}

.contact-icon-wechat svg {
  fill: #22c55e;
}

.contact-card-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.contact-card-clickable:hover .contact-card-cta {
  background: rgba(34, 197, 94, 0.22);
}

/* Hero secondary button with WeChat icon */
.btn-secondary-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  color: #22c55e;
  vertical-align: -3px;
}

@media (max-width: 640px) {
  .wechat-qr-frame {
    width: 200px;
    height: 200px;
    padding: 14px;
  }

  .wechat-modal-tips {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wechat-tip {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    padding: 10px 12px;
  }

  .wechat-tip-icon {
    font-size: 22px;
  }

  .wechat-tip strong {
    display: inline;
    margin-right: 4px;
  }
}
/* Service booking link card (售後預約) */
.contact-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
