/* 全域樣式設定 */
body {
    background-color: #f9fafc;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    scroll-padding-top: 120px;
}

h1, h2, h3 {
    margin: 0;
}

h2 {
    margin-bottom: 1em;
    text-align: center;
    color: #007acc;
}

/* 導覽列 */
header {
    background-color: #003b5c;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

nav a {
    color: #f0faff;
    margin: 0 12px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero 區塊 */
.hero {
    background: linear-gradient(to right, #e0f2ff, #eef5fa);
    color: #004d73;
    padding: 60px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.4em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 區塊通用 */
section {
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 960px;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #f3f8fb;
    padding: 12px 16px;
    margin: 10px 0;
    border-left: 4px solid #0099cc;
    border-radius: 6px;
}

/* 公司介紹圖文區塊 */
.mission-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.mission-text {
    flex: 1 1 60%;
}

.mission-image {
    flex: 1 1 35%;
    text-align: center;
}

.mission-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 浮動按鈕 */
.floating-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #007acc;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
    z-index: 1000;
    animation: pulse 1.8s infinite;
}

.floating-button:hover {
    background-color: #005f99;
}

/* footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #eaeff5;
    color: #666;
    font-size: 14px;
}

/* 響應式設計 */
@media screen and (max-width: 768px) {
    .mission-section {
        flex-direction: column;
    }

    .mission-text,
    .mission-image {
        flex: 1 1 100%;
    }

    nav a {
        display: inline-block;
        margin: 8px;
    }

    .hero h2 {
        font-size: 22px;
        line-height: 1.4;
        padding: 0 10px;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.6;
        max-width: 90%;
        margin: 0 auto;
    }
}

.has-fixed-header {
    scroll-padding-top: 120px;
    padding-top: 120px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: url('../static/images/back.jpg') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.map-embed {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

/* === 科技感樣式區塊 === */
.tech-section {
    background: linear-gradient(to bottom right, #f5f7fa, #e0ecf6);
    border-left: 4px solid #00bcd4;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
    border-radius: 10px;
    padding: 40px 30px;
    margin: 40px auto;
    max-width: 960px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.tech-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 188, 212, 0.2);
}

.tech-section.show {
    opacity: 1;
    transform: translateY(0);
}

.tech-section h2 {
    color: #007acc;
    text-align: center;
    margin-bottom: 20px;
}

.tech-section ul li {
    background: #ffffff;
    border-left: 3px solid #00bcd4;
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 6px;
    color: #333;
}

@keyframes logoFadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}

.logo-container img {
    animation-delay: calc(var(--i) * 0.1s);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.logo-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

@keyframes driveLoop {
  0% {
    left: -200px;
  }
  50% {
    left: 100%;
  }
  100% {
    left: -200px;
  }
}
.services-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
}

.car-promo {
  flex: 0 0 150px;
  text-align: center;
}

.car-image {
  width: 150px; /* 調整這裡改大小 */
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.car-image:hover {
  transform: scale(1.1);
}

.car-text {
  font-size: 14px;
  font-weight: bold;
  color: #007acc;
  margin-top: 8px;
}

/* 手機版自動堆疊顯示 */
@media screen and (max-width: 768px) {
  .services-flex {
    flex-direction: column;
  }

  .car-promo {
    text-align: center;
    margin-bottom: 20px;
  }

  .car-image {
    width: 80px;
  }

  .car-text {
    font-size: 13px;
  }
}
/* CAR 區塊 */
.car-promo-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 100px;
    text-align: center;
    z-index: 1000;
    text-decoration: none;
    animation: floatUpDown 2.5s ease-in-out infinite;
}

.car-promo-box img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 6px;
    transition: transform 0.3s ease;
}

.car-promo-box:hover img {
    transform: scale(1.1);
}

.car-promo-box p {
    background-color: #28a745;
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    margin: 0;
    font-weight: bold;
}

/* 簡單上下浮動動畫 */
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.car-floating-box {
  position: fixed;
  bottom: 30px;
  left: 20px;
  text-align: center;
  z-index: 9999;
  text-decoration: none;
  animation: float 2s ease-in-out infinite;
}

.car-floating-img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.car-floating-text {
  background-color: #007acc;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  margin-top: 6px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media screen and (max-width: 768px) {
  .floating-car {
    bottom: 10px;
    width: 80%;
    font-size: 14px;
    right: 10%;
    left: 10%;
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
  }
}
@media screen and (max-width: 768px) {
  .floating-button {
    font-size: 0;
    background-color: transparent;
    background-image: url('/static/images/line.jpg'); /* 請換成你自己的圖片路徑 */
    background-size: 40px 40px;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    padding: 0;
    bottom: 15px;
    right: 15px;
    border-radius: 50%;
  }
}
.case-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}

.case-logo-item {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.case-logo-item img {
  max-width: 100%;
  max-height: 80px;
  transition: transform 0.3s ease;
}

.case-logo-item:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 188, 212, 0.3);
}
@media screen and (max-width: 768px) {
  .case-logo-item {
    width: 80px;
    height: 80px;
    padding: 6px;
  }

  .case-logo-item img {
    max-height: 60px;
  }
}


