/* ==========================================
   捷安特富國自行車店 - 藍天白雲綠地太陽黃主題 CSS (修復最新消息 Banner 顏色太淡問題)
   ========================================== */

/* 1. 全域設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: #2c3e50;
  background: linear-gradient(180deg, #f0f7f4 0%, #eef6fb 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* 2. 頂部導覽列 Header (最高層級) */
.site-header, header.site-header, header {
  background: linear-gradient(135deg, #0288d1 0%, #039be5 100%);
  color: #ffffff;
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(2, 136, 209, 0.2);
  border-bottom: 4px solid #fbc02d;
  position: relative;
  z-index: 999999 !important;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo 區與社交圖示 */
.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3em;
  font-weight: 800;
  color: #ffffff;
}

.brand-logo span {
  color: #fbc02d;
}

.brand-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.85em;
  transition: all 0.2s ease;
}

.brand-socials a:hover {
  background: #fbc02d;
  color: #1b5e20;
}

/* 電腦版選單 */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-links a {
  color: #ffffff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #fbc02d;
  color: #1b5e20;
  font-weight: 800;
}

/* 漢堡按鈕 */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 3. 通用容器與 Hero Banner (🎯 強化顏色對比，解決字太淡問題) */
.container, .about-wrapper, main {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* 強制所有頁面的 Header Banner 使用顯眼藍底白字 */
.hero-banner, .about-hero, .news-hero, .page-header, section.hero, section.page-header {
  text-align: center;
  background: linear-gradient(135deg, #0288d1 0%, #039be5 100%) !important; /* 強制深天藍底色 */
  color: #ffffff !important;
  padding: 40px 20px !important;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(2, 136, 209, 0.2);
  border-bottom: 5px solid #fbc02d !important; /* 太陽黃底線 */
  position: relative;
  z-index: 1;
}

/* Banner 標題強制純白粗體 */
.hero-banner h1, .about-hero h1, .news-hero h1, .page-header h1 {
  font-size: 2.2em !important;
  margin-bottom: 12px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Banner 副標題與說明文字強制清晰白字 */
.hero-banner p, .about-hero p, .news-hero p, .page-header p, .hero-quote {
  color: #f0f9ff !important;
  font-size: 1.05em !important;
  font-weight: 500 !important;
  margin-bottom: 10px;
}

.hero-top-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.giant-badge, .badge, .badge-yellow {
  display: inline-block;
  background-color: #fbc02d;
  color: #1b5e20;
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.95em;
}

.since-tag {
  color: #e1f5fe;
  font-weight: 600;
  font-size: 0.95em;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95em;
  color: #ffffff;
}

.contact-info .divider {
  color: #fbc02d;
}

/* 4. 最新消息卡片與清單區域 (深色高對比文字) */
.news-container, .news-list, .news-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.news-card, .news-item {
  background: #ffffff !important;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #0288d1;
  border-top: 1px solid #e0eef5;
  border-right: 1px solid #e0eef5;
  border-bottom: 1px solid #e0eef5;
}

/* 最新消息內的日期 */
.news-date, .news-card .date {
  color: #0288d1 !important;
  font-weight: 700;
  font-size: 0.9em;
  margin-bottom: 8px;
  display: block;
}

/* 最新消息內的文章標題 (深藍粗體) */
.news-card h2, .news-card h3, .news-item h2, .news-item h3 {
  color: #1e293b !important;
  font-size: 1.3em !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  line-height: 1.4;
}

/* 最新消息內內文內文 (清晰深灰) */
.news-card p, .news-item p, .news-card div {
  color: #334155 !important;
  font-size: 1em !important;
  line-height: 1.7 !important;
}

/* 5. 卡片與網格 (通用商品/卡片) */
.product-grid, .grid, .card-grid, section.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.product-card, .card, div.card, article.card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid #e0eef5;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card img, .card img, article.card img, div.card img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  background-color: #f4f9fc;
}

.product-content, .card-body, div.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tag, .tag {
  display: inline-block;
  font-size: 0.85em;
  color: #2e7d32;
  background-color: #e8f5e9;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  width: fit-content;
}

.product-card h3, .card h3 {
  font-size: 1.2em;
  color: #0288d1;
  margin-bottom: 10px;
}

.product-card p, .card p {
  color: #546e7a;
  font-size: 0.95em;
  margin-bottom: 15px;
  flex: 1;
}

/* 6. 頁尾 Footer */
.about-footer-tribute, footer, .site-footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  color: #2e7d32;
  border-top: 2px solid #e0eef5;
  background-color: #ffffff;
}

/* 📱 7. 手機版 RWD 漢堡選單修復 */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-wrapper {
    display: none;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100vw !important;
    background: #0288d1 !important;
    flex-direction: column !important;
    padding: 20px !important;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    border-bottom: 5px solid #fbc02d !important;
    z-index: 9999999 !important;
  }

  .nav-wrapper.open {
    display: flex !important;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.1em;
  }

  .hero-banner h1, .about-hero h1, .news-hero h1, .page-header h1 {
    font-size: 1.7em !important;
  }

  .contact-info .divider {
    display: none;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 5px;
  }
}
