html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url('image/測試圖9網頁背景圖.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}
body {
    margin: 0;
    padding-top: 0px;
    overflow-x: hidden;
}
a {
    text-decoration: none !important;
  }
.navbar {
    padding-top: 5px;
    padding-bottom: 5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: whitesmoke;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-img {
    height: 150px;
    object-fit: contain;
    margin-right: 5px;
}

.logo-img-wrapper {
    height: 70px;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 30px;
    font-weight: bold;
    color: #000;
    margin-left: -67px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.right-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.lang-switch {
    position: relative;
}

.lang-toggle {
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999;
    border-radius: 4px;
}

.lang-menu li {
    padding: 5px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.lang-menu li:hover {
    background-color: #eee;
}

.search-icon {
    height: 30px;
    width: 30px;
    object-fit: contain;
    cursor: pointer;
}

.search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    margin-left: 5px;
    padding: 3px 8px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.search-wrapper:hover .search-input,
.search-wrapper:focus-within .search-input {
    width: 100px;
    opacity: 1;
}

.lang-switch:hover .lang-menu {
    display: block;
}

.main-nav ul li a {
    position: relative;
    color: #000;
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: #000;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-content {
    margin-top: 0px;
    display: flex;
    justify-content: center;
    padding: 0;
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.main-image {
    width: 100%;
    object-position: center top;
    display: block;
    margin-top: 95px;
}

.image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(16px, 4vw, 32px);
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 6px;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 768px) {
  .main-nav ul {
    display: none;
    flex-direction: column;
    background-color: white;
    padding: 10px;
    position: absolute;
    top: 80px;
    right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .main-nav.open ul {
    display: flex;
  }

  .main-nav ul .dropdown-menu {
    display: none;  /* 預設不顯示 */
    flex-direction: column;
    background-color: white;
    position: static;
    box-shadow: none;
    padding: 0;
    margin-left: 20px;
  }

  .main-nav.open .dropdown.open .dropdown-menu {
    display: flex;  /* 點擊時才顯示 */
  }

  .hamburger {
    display: block;
  }

  .nav-right {
    flex-direction: column;
    align-items: flex-end;
  }
}



@media (max-width: 600px) {
    .logo-text {
        display: none;
    }
}
.about-section {
    padding: 40px;
}

.about-section::after {
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ccc;
    margin: 40px 0 0 0;
}

.about-body {
    display: flex;
    justify-content: center;
}

.about-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.feature-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: default;
}

.feature-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.feature-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.line {
    flex-grow: 1;
    height: 2px;
    background-color: #1a57a5;
    border-radius: 1px;
}

@media (max-width: 768px) {
    .about-left {
        grid-template-columns: 1fr !important;
    }

    .feature-box img {
        height: 180px;
    }

    .about-section {
        padding: 20px;
    }
}
.about-link-wrapper {
    text-align: center;
    margin-top: 40px;
}

.about-link-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #6aa4f1;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.about-link-btn:hover {
    background-color: #144a8a;
}
.product-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-title {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background-color: rgba(26, 87, 165, 0.8); 
    border-radius: 10px;
    display: inline-block;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #e9f0fb;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    background-color: #d7e6fb;
    color: #0e3a7d;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

/* 🆕 黑色浮層樣式 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-overlay p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}


@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px 0 30px;
    padding: 0 10px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    background-color: #1a57a5;
    padding: 12px 24px;
    border-radius: 10px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.line {
    flex-grow: 1;
    height: 2px;
    background-color: black;
    border-radius: 1px;
}
@media (max-width: 768px) {
    .section-header {
      gap: 10px;
    }
  
    .section-title {
      font-size: 24px;
      padding: 8px 18px;
    }
  }
  .site-footer {
    background: linear-gradient(to bottom, #075186, #3694e6);
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    line-height: 1.6;
}
.banner-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
    margin-top: 100px;
  }
  
  .banner-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.8s ease;
  }
  
  .banner-slider .slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
  }
  
  .banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .banner-overlay {
    position: absolute;
    top: 40px;
    right: 60px;
    z-index: 2;
    color: white;
    text-align: right;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    pointer-events: none;
  }
  
  .banner-overlay h2 {
    font-size: 48px;
    margin: 0;
  }
  
  .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    cursor: pointer;
    z-index: 3;
    border-radius: 4px;
  }
  
  .arrow.left {
    left: 20px;
  }
  
  .arrow.right {
    right: 20px;
  }
  .slide::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(26, 87, 165, 0.7);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 1;
  }
  .company-section {
    padding: 60px 20px;
  }
  
  .company-wrapper {
    display: flex;
    max-width: 1200px;
    margin: auto;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .company-image {
    flex: 4;
  }
  
  .company-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
  }
  
  .company-text {
    flex: 6;
    background-color: #fff; 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #3d2e1f;
    line-height: 1.8;
  }
  
  .company-text h2 {
    font-size: 30px;
    margin-top: 0;
    color: #4b341c;
  }
  
  .company-text hr {
    width: 450px;
    height: 2px;
    background-color: #1c0dc5;
    border: none;
    margin: 16px 0 24px 0;
  }
  @media (max-width: 768px) {
    .banner-overlay h2 {
      font-size: 28px; 
    }
  
    .company-text h2 {
      font-size: 26px; 
    }
  
    .company-text p {
      font-size: 16px;  
    }
  
    .banner-overlay {
      top: 20px;
      right: 20px;
    }
    .company-wrapper {
        flex-direction: column;
      }
    
      .company-text, .company-image {
        flex: 1 1 100%;
      }
  }
  .company-wrapper.reverse {
    flex-direction: row-reverse;
  }
  
  .company-wrapper.reverse .company-image {
    flex: 6;
  }
  
  .company-wrapper.reverse .company-text {
    flex: 4;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  .feature-box .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85); 
    color: white;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.feature-box:hover .overlay {
    opacity: 1;
}

.feature-box .overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-box .overlay p {
    font-size: 16px;
    line-height: 1.5;
}

.dropdown {
    position: relative;
  }
  

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    min-width: 160px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  

  .dropdown-menu li {
    padding: 10px;
  }
  
  .dropdown-menu li a {
    color: black;
    text-decoration: none;
    display: block;
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  .vehicle-type-nav {
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #fdfaf6;
    border-top: 1px solid #e4dfd8;
    border-bottom: 1px solid #e4dfd8;
    padding: 12px 10px;
    font-family: "Noto Sans TC", sans-serif;
  }
  
  
  .vehicle-type-nav a {
    color: #7c6f60;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .vehicle-type-nav a:hover {
    color: #000000;
  }
  
  .vehicle-type-nav span {
    color: #ccc;
    padding: 0 6px;
  }
  .image-text-section {
    padding: 40px;
  }
  
  .carousel-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
  
  .slider-container {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  
  .slider {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .image-slide {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
  }
  
  .image-slide.active {
    display: block;
  }
  
  .slider-controls .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
  }
  
  .slider-controls .left {
    left: 10px;
  }
  
  .slider-controls .right {
    right: 10px;
  }
  
  .text-content {
    flex: 1;
    max-width: 100%;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
  }
  
  .banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .text-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); 
    z-index: 0;
    border-radius: 10px; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
  }
  
  .text-content h2,
  .text-content p {
    position: relative;
    z-index: 1;
  }
  .card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
  }
  
  .card {
    flex: 0 0 calc(50% - 10px); /* 保證一行兩張 */
    background-color: #f0f5ff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
  }
  
  .card-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  
  .card-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
  }
  
  .card-slider img.active {
    display: block;
  }
  
  .card-slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
  }
  
  .card-slider-controls button {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 18px;
    padding: 6px 12px;
    cursor: pointer;
  }
  @media screen and (max-width: 768px) {
    .card-row {
      flex-direction: column;
      align-items: center;
    }
  
    .card {
      flex: 1 1 100%;
      width: 100%;
      max-width: 100%;
    }
  
    .card-slider {
      aspect-ratio: 4 / 3;
      height: auto;
    }
  
    .card-slider img {
      object-fit: cover;
    }
  
    .card-slider-controls button {
      font-size: 24px;
    }
  }
  .contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 20px;
    background-color: #f5f8fa;
    max-width: 1200px;
    margin: auto;
  }
  
  .contact-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    font-size: 16px;
  }
  
  .contact-box h3 {
    margin-bottom: 10px;
    color: #00509e;
  }
  .map-section {
    padding: 40px 20px;
    background-color: #f4f7fa;
    text-align: center;
  }
  
  .map-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #003366;
  }
  
  .map-container {
    max-width: 1200px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  .site-search-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 8px 0;
    margin-top: 4px;
    display: none;
  }
  
  .search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
  }
  
  .search-result-item:last-child {
    border-bottom: none;
  }
  
  .search-result-item:hover {
    background-color: #f8f8f8;
  }
  
  .search-result-item a {
    display: block;
    font-weight: bold;
    color: #2a4b8d;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .search-result-item p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
  }
  .dropdown-toggle {
    margin-left: 8px;
    cursor: pointer;
    user-select: none;
  }
  
  .dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: white;
    padding: 0;
  }
  
  .dropdown.open .dropdown-menu {
    display: flex;
  }
  @media (max-width: 768px) {
    .main-nav ul .dropdown-menu {
      display: none;
      flex-direction: column;
      background-color: white;
      position: static;
      box-shadow: none;
      padding: 0;
      margin-left: 20px;
    }
  
    .main-nav.open .dropdown.open .dropdown-menu {
      display: flex;
    }
  }

  
  
  
  
  
  
  
 
  
  




