/* ==========================================================================
   Lucky Star (幸運星租車 - 鹿野高台/龍田村) 響應式網頁與 SEO 優化樣式表
   ========================================================================== */

:root {
  --primary-color: #1b6b50;       /* 鹿野茶園翠綠 */
  --primary-dark: #124a37;
  --secondary-color: #f4a261;     /* 熱氣球暖橘 */
  --accent-color: #e76f51;        /* 陽光活力紅橘 */
  --bg-light: #f8faf9;
  --bg-white: #ffffff;
  --text-main: #263238;
  --text-muted: #546e7a;
  --border-color: #e0e7e4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(27, 107, 80, 0.12);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   導覽列 (RWD Header & Mobile Nav)
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.brand-logo span.badge {
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.nav-cta {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 50px;
  font-weight: 700;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* ==========================================================================
   Hero 主視覺區塊
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, rgba(18, 74, 55, 0.88), rgba(27, 107, 80, 0.78)),
              url('https://images.unsplash.com/photo-1507035895480-2b3156c31fc8?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 96px 0 84px;
  text-align: center;
}

.hero-sub {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero p {
  max-width: 780px;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #eef5f2;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #1f2933;
}

.btn-primary:hover {
  background-color: #f6b27a;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* ==========================================================================
   通用區塊與標題
   ========================================================================== */
.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-tag {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   SEO 品牌故事 / 介紹區塊
   ========================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.intro-text h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--primary-color);
  margin-bottom: 18px;
  line-height: 1.35;
}

.intro-text p {
  margin-bottom: 16px;
  color: var(--text-main);
  text-align: justify;
}

.keyword-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.keyword-pills span {
  background: #e6f2ed;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.intro-highlights {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.highlight-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e6f2ed;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  font-weight: bold;
}

.highlight-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   營業項目卡片網格 (RWD Grid)
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-badge {
  display: inline-block;
  align-self: flex-start;
  background: #e6f2ed;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.category-card.featured {
  border: 2px solid var(--secondary-color);
  position: relative;
}

.category-card.featured .category-badge {
  background: #fff1e6;
  color: var(--accent-color);
}

.category-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.category-card .desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.vehicle-list {
  margin-bottom: 24px;
  flex-grow: 1;
}

.vehicle-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-main);
}

.vehicle-list li:last-child {
  border-bottom: none;
}

.vehicle-list li::before {
  content: "◆";
  color: var(--primary-color);
  font-size: 0.8rem;
}

.card-link {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 12px;
  background: var(--bg-light);
  color: var(--primary-color);
  font-weight: 700;
  border-radius: var(--radius-md);
}

.card-link:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ==========================================================================
   車款詳細頁面專用 (vehicles.html)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #fff;
  padding: 64px 0 54px;
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}

.page-banner p {
  max-width: 700px;
  margin: 0 auto;
  color: #dcebe5;
}

.vehicle-group {
  margin-bottom: 56px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  color: var(--primary-color);
  border-left: 5px solid var(--secondary-color);
  padding-left: 14px;
  margin-bottom: 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.spec-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.spec-card h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.spec-tag {
  display: inline-block;
  font-size: 0.8rem;
  background: #f0f4f2;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.spec-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.spec-meta {
  font-size: 0.88rem;
  background: var(--bg-light);
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-main);
}

/* ==========================================================================
   景點路線與交通資訊 (location.html)
   ========================================================================== */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.route-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.route-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.route-badge {
  display: inline-block;
  background: #fff1e6;
  color: var(--accent-color);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.faq-item h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.map-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  box-shadow: var(--shadow-sm);
}

.map-info {
  padding: 36px;
}

.map-info h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.map-info ul li {
  margin-bottom: 12px;
  color: var(--text-main);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ==========================================================================
   頁尾 (Footer) & 行動版底部快速預約列
   ========================================================================== */
.site-footer {
  background-color: #162621;
  color: #cbd5d1;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.86rem;
  color: #94a39e;
}

.mobile-sticky-bar {
  display: none;
}

/* ==========================================================================
   RWD 媒體查詢 (Tablet & Mobile Breakpoints)
   ========================================================================== */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

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

  .map-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  body {
    padding-bottom: 64px; /* 預留底部快速按鈕空間 */
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-color);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 68px 0 60px;
  }

  .section {
    padding: 52px 0;
  }

  .mobile-sticky-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  }

  .mobile-sticky-bar a {
    text-align: center;
    padding: 15px 10px;
    font-weight: 700;
    font-size: 0.98rem;
  }

  .mobile-sticky-bar a.call-btn {
    background: var(--primary-color);
    color: #fff;
  }

  .mobile-sticky-bar a.map-btn {
    background: var(--secondary-color);
    color: #1f2933;
  }
}
