@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;500;700&family=Noto+Serif+TC:wght@100;300;500;600;700&family=Noto+Serif+JP:wght@200;500;700&family=DM+Serif+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: #eee;
  color: #333;
  line-height: 1.6;
}

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

.container { 
  max-width: 1500px;
  margin: auto;
  padding: 40px 20px 40px 20px;
}


header{ background: #FFF;}

/* --- Navbar 版型 --- */
.navbar .container{ flex-wrap: wrap; padding:20px 3% 30px 3%;}

.logo{ width: 260px; font-size: 20px; line-height: 25px; font-weight: normal; letter-spacing: 1px; text-decoration:  none; color: #111;}
.logo img{ display: inline-block; width: 60px; margin: 0 6px 0 0; vertical-align:  middle;}
.logo .ltext{ display: inline-block; vertical-align:  middle;}
.logo strong{ display: inline-block; margin: 0 10px 0 0; padding: 0 11px 0 11px; vertical-align:  middle; font-size: 30px; font-family: "Noto Serif TC", serif; letter-spacing: 5px; border-left:1px solid #00aa88; border-right:1px solid #00aa88;}
.logo span{ display: block; margin: 0 0 5px 0; font-size: 12px; line-height: 12px; color:  #00aa88; letter-spacing: 1px;}

.nav-container{
  display:flex; align-items:center; justify-content:space-between; position:  relative;
}
.nav-container::after {
  content: '';
  position: absolute;
  left: 2%;
  bottom: -2px;
  height: 4px; /* 底線粗細 */
  width: 96%;
  background-image: linear-gradient(135deg, #00b5e2, #00aa88); /* 漸層顏色 */ border-radius: 5px; z-index: 3;
}
.nav { /* 用於控制收合高度 */ width: calc(100% - 260px);
  transition:max-height .35s ease; padding: 0 120px 0 0; position: relative;
}

.outlink {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: 0;
}

.outlink.fb {
    background: #2764d4 url("../images/fb_icon.png") no-repeat center center; background-size:  auto 20px;
}
.outlink.line {
    background:#06c755 url("../images/line_icon.png") no-repeat center center; background-size:  auto 20px;
    right: 50px;
}

/* 漢堡按鈕（預設隱藏，手機才顯示） */
.nav-toggle{
  display:none;  width:45px; height:40px;
  border:none; background:linear-gradient(135deg, #00b5e2, #00aa88); cursor:pointer; position: fixed; top: 15px; right: 10px; border-radius: 8px; z-index: 99;
}
.nav-toggle span{
  position:absolute; left:8px; right:8px; height:3px; border-radius:3px;
  background: #FFF; transition:transform .3s, opacity .3s, top .3s;
}
.nav-toggle span:nth-child(1){ top:11px; }
.nav-toggle span:nth-child(2){ top:18px; }
.nav-toggle span:nth-child(3){ top:25px; }
/* 漢堡轉叉叉 */
.nav-open .nav-toggle span:nth-child(1){ top:18px; transform:rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2){ opacity:0; }
.nav-open .nav-toggle span:nth-child(3){ top:18px; transform:rotate(-45deg); }

/* 桌機：水平選單 */
.nav-links{
  list-style:none; display:flex; gap:20px; align-items:center;justify-content: flex-end;
}
.nav-links a{
  color: #333; font-weight:500; padding:6px 10px; text-decoration:none;
  border-radius:6px; transition:background .25s, color .25s;
}
.nav-links a:hover{ color: #009cc3; }

/* 手機版：收合樣式 */
@media (max-width: 992px){
    .navbar .container{ padding: 10px 3% 20px 3%;}
  .nav-toggle{ display:block; }
  .nav{ width:100%; max-height:0; overflow:hidden; padding: 0 0 0 0;}
  .nav-open .nav{ max-height: 70vh; padding: 0 0 100px 0;} /* 打開後的內容高度 */
  .nav-links{
    flex-direction:column; align-items:flex-start;
    gap:0; padding:10px 0;
  }
  .nav-links li{ width:100%; }
  .nav-links a{
    display:block; width:100%;
    padding:12px 8px 12px 14px;
    border-radius:0;
  }
    .outlink{ top: auto; right: calc(50% + 0px);}
    .outlink.line{ right: calc(50% - 50px);}
    
  /* 分隔線與背景 */
  .navbar{ border-bottom:none; }
  .nav{ background:#fff; border-top:1px solid #e9f3f2; border-bottom:2px solid var(--primary); position: fixed; top: 0; left: 0; z-index: 98;}
  .nav-links li + li a{ border-top:1px solid #eef6f5; }
}


/* Hero */
.hero {
  position: relative; overflow: hidden;
  text-align: center; margin: 0 0 80px 0;
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 18px;
}

h2 strong{
    display: block; text-transform: uppercase; font-size: 30px;
 background: linear-gradient(to right, #00b5e2, #00aa88); /* 漸層顏色 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* 以下為部分瀏覽器支援的寫法 */
  background-clip: text;
  color: transparent;
}

/* Features */
.features.container{ max-width: 1000px;}

.features h2 {
  text-align: center;
  font-size: 26px;
  color: #333;
  margin-bottom: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.feature-box {
  background: #fff;
  padding: 50px 20px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.feature-box:hover {
  transform: translateY(-4px);
}

.feature-box img {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px auto;
}

.feature-box h3 {
  font-size: 22px;
  margin-bottom: 6px;
  color: #0d4f8d;
}

.feature-box p {
  font-size: 16px;
  color: #555;
}




/* About */
.about-content {
  display: flex; margin: 80px auto;
  align-items: center;
}

.about-text {
  flex: 1 1 50%;
     background: #FFF; position: relative; z-index: 2; padding: 50px 80px; border-radius: 30px;
}

.about-text h2 {
  font-size: 22px;
  margin-bottom: 20px; padding: 0 0 20px 0; border-bottom: 1px solid #ddd; text-align: left;
}
.about-text p{ font-size: 16px; line-height: 29px; margin: 0 0 15px 0; text-align: left;}
.about-slider {
  flex: 1 1 50%;
}
.about-slider img{ max-width: inherit; width: 130%; margin: 0 0 0 -30%;}

.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #06C755; /* LINE 綠 */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 30px;
  margin-top: 15px;
  text-decoration: none;
  transition: background 0.3s; transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); vertical-align: middle;
}
.more{
    display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFF; /* LINE 綠 */ border: 1px solid #eee;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 30px;
  margin: 15px 15px 0 0;
  text-decoration: none;
  transition: background 0.3s; transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); vertical-align: middle;
    
}
.more:hover{
      background: linear-gradient(to right, #00b5e2, #00aa88); color: #FFF;
    transform: translateY(-2px);
    
}
.line-btn img {
  width: 24px;
  height: 24px;
}

.line-btn:hover {
  background-color: #05a347;
    transform: translateY(-2px);
}

/* Cars */
.cars.container{ max-width: inherit; background: #FFF; margin: 0 0 0px 0; padding: 80px 0 ;text-align: center;}
.cars h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}
.cars>p{ width: 90%; margin: 0 auto 30px auto; text-align: center;}
.car-grid {
  display: flex;
  flex-wrap: wrap;
     width: 100%;
  gap: 20px;
  justify-content: center;
}

.car-box { width: calc(100% / 4 - 20px); text-align:  center;}

.car-box h3 {
  margin: 10px 0 10px; font-size: 18px; line-height: 26px; font-weight:  normal;
  color: #0d4f8d;
}
.car-box h3 strong{ display: block; font-size: 28px;}
/* 每個車型內的 Swiper */
.car-swiper {
  width: 100%;
  overflow: hidden;
  /* 讓高度在 RWD 下穩定；支援的瀏覽器會用比例，高度更漂亮 */
  aspect-ratio: 4 / 3;
}
@supports not (aspect-ratio: 4 / 3) {
  .car-swiper { height: 260px; }
}

.car-swiper .swiper-slide img {
  width: calc(100% - 4px); position: absolute; top: 50%; left: 50%; transform:  translate(-50%,-50%);
  object-fit: cover;
}

.car-swiper .swiper-button-next,
.car-swiper .swiper-button-prev {
  color: #007bff;
  /* 內縮，避免擋到圖片重點 */
  --swiper-navigation-sides-offset: 8px;
}

.car-swiper .swiper-pagination-bullet {
  background: #d4e6ff;
  opacity: 1;
}
.car-swiper .swiper-pagination-bullet-active {
  background: #007bff;
}
.cars .line-btn{ margin: 50px auto 0 auto;}

/* News */
.news{ margin: 0 auto 80px auto;}
.news h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--dark);
}

.news-list {
  list-style: none;
  max-width: 800px;
  margin: auto;
  padding: 0;
}

.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-bottom: 1px solid #ddd; border-radius: 15px;
  padding: 15px 10px;
  transition: background 0.3s;
}

.news-list li:hover {
  background: #f0fafa; /* 淺藍綠背景 */
}
.news-list li a{ text-decoration: none; color: inherit;}
.news-list li:hover a{ color: #0d4f8d;}
.news-date {
  font-size: 13px;
  color: #00b5e2;
  min-width: 90px; margin: 6px 0 0 0;
}

.news-content h4 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 5px;
}

.news-content p {
  font-size: 16px;
  color: #555;
}

/* 更多消息按鈕 */
.news-more {
  text-align: center;
  margin-top: 20px;
}

.btn-more {
  display: inline-block;
  padding: 12px 30px; margin: 20px 0 0 0;
  background: linear-gradient(135deg, #00b5e2, #00aa88);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.btn-more:hover {
  background: linear-gradient(135deg, #00b5e2, #00b5e2);
  transform: translateY(-2px);
}


/* Footer */
.footer {
  background: #333;
  color: #fff;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
}
.footer .container{ padding: 0;}
.footer .outlink{ display: inline-block; margin: 0 5px 12px 5px;; position: inherit; top: inherit; right: inherit;}

:root {
    --swiper-navigation-size: 30px
}

.banner{ display: block; padding: 10% 0 120px 0; background: url("../images/banner02.jpg") no-repeat center center; background-attachment: fixed; background-size: cover; position: relative;}
.banner::after{ content: ''; display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #00b5e2, #00aa88); position: absolute; top: 0; left: 0; opacity: 0.6}
.banner h1{ display: block; width: 90%; max-width: 1300px; margin: 0 auto; padding: 0 50px; position:  relative; z-index: 2; color: #FFF; text-align: center;}
.banner p{ display: block; width: 90%; max-width: 1300px; margin: 0 auto; padding: 0 50px; position:  relative; z-index: 2; color: #FFF; text-align: center;}
.main{ display: block; width: 90%; max-width: 1300px; margin: -80px auto 80px auto; padding: 80px 5%; background: #FFF; border-radius: 50px; position: relative; z-index: 4;}

.about{ text-align:  center;}
.about section{ display: flex; flex-wrap: wrap; text-align: left;}
.about section:nth-child(2){ flex-direction: row-reverse; margin: 50px 0 0 0;}
.about section p.img{ width: 45%;}
.about section .text{ width: 50%; margin: 0 0 0 5%;}
.about section:nth-child(2) .text{ margin: 0 5% 0 0;}
.about section .text h2{ margin: 0 0 15px 0; padding: 0 0 10px 0; border-bottom: 1px solid #DDD; color: #0d4f8d;}
.about section .text p{ margin: 0 0 30px 0;}
.about section .text ul{ padding: 0 0 0 25px; }
.about section .text ul li{ margin: 0 0 8px 0;}
.about section .text ul li strong{ display: block;}

.news .date{ text-align:  center; color: #00aa88;}
.news section h2{ padding: 0 0 15px 0; margin: 0 0 30px 0; border-bottom: 1px solid #ddd; color: #0d4f8d;}
.main>h3{ text-align: center;}
ul.newslist{ display: block; list-style:  none;}
ul.newslist li{ display: block;border-radius: 50px; }
ul.newslist li a{ display: flex; color: inherit; text-decoration: none; padding: 15px 30px;}
ul.newslist li a span{ display: block; width: 110px; color: #00aa88}
ul.newslist li a h3{ display: block; width: calc(100% - 110px);}
ul.newslist li:nth-child(2n){ background: #eee;}
ul.newslist li:hover{ background: linear-gradient(135deg, #00b5e2, #00aa88);}
ul.newslist li:hover a span{ color: rgba(255,255,255,0.5);}
ul.newslist li:hover a h3{ color: #FFF;}

ul.qa{ display: block; list-style:  none;}
ul.qa li{ display: block; margin: 0 0 20px 0; padding: 5px; border: 1px solid #eee; border-radius: 30px;}
ul.qa li .question{ display:  flex; padding: 10px; background: #eee; border-radius: 30px; align-items: center;}
ul.qa li .question span{ display: block; font-size: 15px; line-height: 50px; text-align: center; color: #FFF; width: 50px; height: 50px; margin: 0 15px 0 0; background: linear-gradient(135deg, #00b5e2, #00aa88); border-radius: 50%;}
ul.qa li .question h2{ display: block; width: calc(100% - 65px); font-size: 20px;}
ul.qa li .answer{display:  flex; padding: 10px;}
ul.qa li .answer span{display: block; width: 50px; margin: 0 15px 0 0; text-align: center; color: #999}
ul.qa li .answer p{ display: block; width: calc(100% - 65px);}

.price{ display: block; text-align: center;}
.price ul.pnav{ display: flex; width: 100%; margin: 0 0 30px 0; justify-content: center; list-style:  none; }
.price ul.pnav li{}
.price ul.pnav li a{ display: block; margin: 0 8px; padding: 15px 50px; background: #eee; border-radius: 50px; text-decoration:  none; color: inherit;transition: background 0.3s; transition: all 0.3s ease;
    }
.price ul.pnav li a.current{ background: #ff9800; color: #FFF; font-weight: bold;}
.price ul.pnav li a:hover{ color: #fff; background: #ffb33a; transform: translateY(-2px);box-shadow: 0 3px 6px rgba(0,0,0,0.1);}
.price table{ width: 100%; margin: 0 0 20px 0; border-collapse: collapse;border-spacing: 0; border: 1px solid #ccc;}
.price table th{ padding: 10px 15px;  background: #0090b5; color: #FFF;border-right: 1px solid rgba(255,255,255,0.3);}
.price table td{ padding: 10px 15px; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; text-align: left;}
.price table tr:nth-child(2n) td{  background: #fafafa;}
.price table tr td:first-child{ width: 230px; background: #eee; font-weight:  bold;}
.price h2{ padding: 0 0 15px 0; margin: 0 0 20px 0; border-bottom: 1px solid #ddd; color: #0d4f8d; text-align: left;}
.price p{ margin: 0 0 30px 0; text-align: left;}
.price ul.other{ margin: 0 0 30px 0;  padding: 0 0 0 25px; text-align: left;}
.price ul.other li{ margin: 0 0 8px 0;}
.price ul.other li span{ display: inline-block; width: 130px;}

/* Responsive */
@media (max-width: 768px) {
    .container{ padding: 20px;}
    .hero{ margin: 0 0 50px 0;}
   .hero>img {
      width: 200%; max-width: inherit; margin: 0 0 0 -40%;
      height: auto;
      object-fit: cover;
    }    
    .about.container{ padding: 0;}
  .about-content {
    flex-direction: column-reverse;
  }
    .about-slider img{ width: 100%; margin: 0;}
  .hero-text h1 {
    font-size: 20px; line-height: 26px;
  }
    .about-text{ width: 90%; padding: 50px 10%; margin: -50px auto 0 auto;}
  .feature-grid, .news-grid {
          grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap:15px;
    flex-direction: column;
    align-items: center;
  }
    .hero-text p{ font-size: 16px;}
    .car-box{ width: 100%;}
  .nav-links {
    gap: 10px;
  }
    .news-content{ width: 100%;}
    .line-btn,a.more{ padding: 10px 20px; width: 80%; text-align: center; justify-content: center;}
    .news-list li{ flex-wrap: wrap; gap: 0;}
    .news-date{ width: 100%;}
    
    .banner{ background-attachment: inherit;}
    .main{ width: 95%; margin: -80px auto 50px auto; padding: 30px 5%; border-radius: 30px;}
    .about section p.img{ width: 100%;}
    .about section .text,.about section:nth-child(2) .text{ width: 100%; margin:15px 0 0 0;}
    
    .price ul.pnav li a{ padding: 10px 15px;}
    
    .tablebox{ overflow-x: scroll;}
    .tablebox table{ width: 600px; position: relative;}
    .price table tr td:first-child{ width: 150px;}
    .hero-text{ width: 80%;}
    ul.newslist li a{ display: block;}
    ul.newslist li a span{ width: 100%;}
    ul.newslist li a h3{ width: 100%;}
    
}
