/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== CSS VARIABLES ===== */
:root {
  --orange: #F47B20;
  --orange-light: #FF9A45;
  --orange-dark: #D96A10;
  --white: #ffffff;
  --gray-50: #F9F9F9;
  --gray-100: #F2F2F2;
  --gray-200: #E5E5E5;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-600: #6B7280;
  --gray-800: #1F2937;
  --black: #111111;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 8px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
/* LOGO 獨佔一行 */
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 6px;
  max-width: 1200px;
  margin: 0 auto;
}
/* 語言切換第二行 */
.header-lang-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px 10px;
  max-width: 1200px;
  margin: 0 auto;
}
/* 舊版 header-inner 相容 */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switcher {
  display: flex;
  gap: 4px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border: 1px solid var(--gray-300);
  transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--orange); background: var(--gray-50); }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 700;
  margin-left: auto;
}
.nav-cta:hover { background: var(--orange-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  margin-top: 110px;
  overflow: hidden;
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 700px;
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.92;
  margin-bottom: 32px;
}
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.hero-dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(244,123,32,0.35);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244,123,32,0.45);
}
.btn-primary.btn-large { font-size: 1.15rem; padding: 18px 48px; }
.btn-primary.btn-full { width: 100%; text-align: center; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 50px;
  border: 2px solid var(--orange);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--orange); color: var(--white); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--orange);
  padding: 20px 24px;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.trust-icon { font-size: 1.8rem; }
.trust-item strong { display: block; font-size: 1rem; font-weight: 700; }
.trust-item p { font-size: 0.85rem; opacity: 0.9; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--black);
  margin-bottom: 12px;
}
.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-600);
}

/* ===== SERVICES ===== */
.services-section { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img-wrap { height: 220px; overflow: hidden; }
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-img { transform: scale(1.05); }
.service-body { padding: 24px; }
.service-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: var(--black); }
.service-body p { color: var(--gray-600); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.7; }
.service-list { list-style: none; margin-bottom: 20px; }
.service-list li { font-size: 0.9rem; color: var(--gray-600); padding: 3px 0; }

/* ===== VEHICLES ===== */
.vehicles-section { background: var(--white); }
.vehicle-carousel-wrap {
  position: relative;
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  /* 彈出效果 */
  transform: scale(1);
  transition: transform 0.3s ease;
}
.vehicle-carousel-wrap:hover {
  transform: scale(1.02);
}
.vehicle-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-100);
  box-shadow: 0 12px 48px rgba(0,0,0,0.20);
}
.vehicle-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.vehicle-slide.active { opacity: 1; }
.vehicle-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  /* 圖片不裁切，保持原始比例 */
}
.vehicle-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 40px 24px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.vehicle-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.vehicle-info p { font-size: 0.9rem; opacity: 0.9; }
.vehicle-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.9);
  color: var(--gray-800);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}
.vehicle-arrow:hover { background: var(--orange); color: var(--white); }
.vehicle-prev { left: -22px; }
.vehicle-next { right: -22px; }
.vehicle-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.vehicle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.vehicle-dot.active {
  background: var(--orange);
  width: 28px;
  border-radius: 5px;
}

/* ===== WHY US ===== */
.whyus-section { background: var(--gray-50); }
.whyus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.whyus-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whyus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.whyus-icon { font-size: 2.5rem; margin-bottom: 16px; }
.whyus-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--black); }
.whyus-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }

/* ===== REVIEWS ===== */
.reviews-section { background: var(--white); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { color: #F59E0B; font-size: 1.2rem; margin-bottom: 12px; }
.review-text { font-size: 0.95rem; color: var(--gray-800); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.review-author strong { display: block; font-size: 0.95rem; font-weight: 700; }
.review-author span { font-size: 0.82rem; color: var(--gray-600); }

/* ===== CONTACT ===== */
.contact-section { background: var(--gray-50); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.contact-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 2rem; }
.contact-line { background: #06C755; }
.contact-whatsapp { background: #25D366; }
.contact-wechat { background: #07C160; }
.contact-kakao { background: #FEE500; color: #3A1D1D; }
.book-cta { text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {}
.footer-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.footer-tagline { font-size: 0.9rem; color: var(--gray-400); line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--gray-400); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { font-size: 0.9rem; color: var(--gray-400); transition: color 0.2s; }
.footer-contact a:hover { color: var(--orange); }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  background: var(--orange);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(244,123,32,0.45);
  text-decoration: none;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.floating-cta:hover { background: var(--orange-dark); transform: translateY(-3px); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
.modal-small { max-width: 360px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 1.6rem;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--black); }
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--black);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
 .hero { height: 100vh; margin-top: 130px; }  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }

  .header-inner { padding: 10px 16px; }
  .logo-text { font-size: 0.95rem; }
  .logo-img { width: 36px; height: 36px; }
  .lang-switcher { gap: 2px; }
  .lang-btn { padding: 3px 7px; font-size: 0.72rem; }
  .hamburger { display: flex; }

  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--gray-200);
  }
  .nav.open { display: flex; }
  .nav-link { width: 100%; padding: 10px 16px; border-radius: var(--radius-sm); }
  .nav-cta { margin-left: 0; width: 100%; text-align: center; }

  .trust-bar-inner { gap: 20px; }
  .trust-item strong { font-size: 0.9rem; }
  .trust-item p { font-size: 0.78rem; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.7rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-img-wrap { height: 180px; }

  .vehicle-carousel-wrap { width: 92%; }
  .vehicle-carousel { aspect-ratio: 3/4; }
  .vehicle-prev { left: -16px; }
  .vehicle-next { right: -16px; }

  .whyus-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .whyus-card { padding: 24px 16px; }

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

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

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

  .modal-box { padding: 28px 20px; }
  .modal-title { font-size: 1.25rem; }

  .floating-cta { bottom: 20px; right: 16px; padding: 12px 22px; font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .whyus-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===== BOOKING FORM UPGRADE ===== */
.phone-row {
  display: flex;
  gap: 12px;
}

.phone-code {
  width: 35%;
}

.phone-number {
  width: 65%;
}

#submitBtn {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.85;
  transition: all 0.2s ease;
  box-shadow: none;
}

#submitBtn.is-enabled {
  background: var(--orange);
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 4px 20px rgba(244,123,32,0.35);
}

#submitBtn.is-enabled:hover {
  background: var(--orange-dark);
}

@media (max-width: 768px) {
  .phone-row {
    flex-direction: column;
  }

  .phone-code,
  .phone-number {
    width: 100%;
  }
}