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

body {
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  background-image: url(images/background.jpg);
  background-repeat: no-repeat;
  background-size:cover;
}

/* 固定導航欄 */
.navbar-custom {
  position: fixed;
  top: 0;
  width: 100vw;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.5rem 0;
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.navbar-brand img {
  position: relative;
  z-index: 2;
  height: 28px;
}

.navbar-buttons {
  display: flex;
  gap: 24px;
}

.btn-custom {
  padding: 8px 24px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary-custom {
  background: #dc3545;
  color: white;
  border: 2px solid #dc3545;
}

.btn-primary-custom:hover {
  background: #c82333;
  border-color: #c82333;
  color: white;
}

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

.btn-outline-custom:hover {
  background: #dc3545;
  color: white;
}

/* Hero Section 外層背景全寬 */
.hero-section-bg {
  width: 100%;
  background-image: url(images/bk.jpg);
  background-position: center bottom;
  background-size: auto;
  position: relative;
  margin-top: 70px;
  /* height: 100vh; */ /* 改由 hero-section 控制 */
}


/* Hero Section 內容最大寬度 */
.hero-section {
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 2; /* 確保內容在漸層遮罩之上 */
  height: 500px;
  display: flex;
  align-items: center;
}
.hero-content {
  padding: 0 20px;
}
.hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.4;
}

.hero-title-logo {
  flex-shrink: 0;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.hero-logo {
  height: 1em;
  vertical-align: middle;
}

.hero-title-text {
  flex: 1 1 100%;
  min-width: 0;
}
.hero-subtitle {
  max-width: 600px;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #666;
  line-height: 1.6;
}
.hero-image img {
  width: 100%;
  max-width: 500px;
}
/* 白色漸層遮罩 */
.hero-section-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.7),
    white
  );
  z-index: 1;
}

/* Icon Section */
.icon-section {
  position: absolute;
  bottom: -6%;
  left: 0;
  width: 100%;
  z-index: 10;
  transform: translateY(50%);
}

.icon-container {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px 40px;
}

.icon-item {
  text-align: center;
  padding: 15px 0px;
}

.icon-item i {
  font-size: 2.5rem;
  color: #dc3545;
  margin-bottom: 15px;
}

.icon-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.icon-description {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* 下方空間 */
.content-spacer {
  height: 150px; /* 調整高度以適應懸浮的 icon-section */
  background: white;
}

/* 其餘內容維持最大寬度 */
.container,
.hero-container {
  width: 100%;
  max-width: 1200px;
}

/* --- Advantages Section --- */
.advantages-section {
  padding: 180px 0 50px;
}
.advantages-section .container {
  padding-left: 40px;
  padding-right: 40px;
}
.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 100px;
  color: #333;
}

.advantage-card { margin-bottom: 56px; position: relative;}
.situational { margin-bottom: 8px; position: relative; z-index: 5; overflow: hidden;
  border-radius: 20px;}
.situational .context{ width: 67%; position: absolute; left: 0; bottom: 10%;}
.situational .context span{ padding: 10px 10px 10px 15px; display: block; position: relative; z-index: 2; opacity: 0;
  color: #fff; font-size: 15px; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  transition: all 200ms ease-out;}
.situational .context::before{ content: ""; width: 0; height: 43px; display: block;
  position: absolute; left: 0; bottom: 0; z-index: 1;
  background-color: #cc262e;
  transition: all 0.5s ease-out;}
.situational img{ width: 100%; transform: scale(1,1); transition: all 1s ease-out;}

.advantage-card:hover .situational img{transform:scale(1.2,1.2);}
.advantage-card:hover .situational .context span{ opacity: 1;}
.advantage-card:hover .situational .context::before{ width: 100%;}

.advantage-card::before {
  content: attr(data-number); z-index: 1;
  position: absolute; top: -68px; left: 0;
  font-size: 100px; font-weight: bolder; color: #cc262e2a; line-height: 1;
}
.advantage-title {
  font-size: 20px; font-weight: bold;
  color: #333; text-align: center;
}

/* --- RWD --- */

/* 平板電腦及以下 */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px;
  }
  .hero-section-bg {
    min-height: 800px;
    height: auto; /* 在手機上由內容決定高度 */
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-content {
    padding-top: 36px;
  }
  .hero-title {
    font-size: 2.5rem;
    justify-content: center;
  }
  .hero-section {
    height: 600px;
  }
  .icon-section {
    position: absolute;
    bottom: 0px;
  }
}

/* 手機 */
@media (max-width: 768px) {
  .hero-section,
  .hero-section-bg {
    height: 600px; /* 在手機上由內容決定高度 */
  }

  .hero-title-text {
    flex: 1 1 auto;
  }
  .hero-section-bg {
    background-size: cover;
  }
  .icon-container {
    padding: 20px;
  }
  .icon-section {
    position: absolute;
    bottom: -6%;
  }
  .content-spacer {
    height: 120px;
  }
  .advantages-section {
    padding-top: 280px;
  }
  .advantages-section .container {
    padding: 0 16px;
  }
  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .advantage-card {
    padding: 36px 0px;
  }
  .advantage-card::before {
    font-size: 80px;
    top: -15px;
  }
  .advantage-title {
    font-size: 18px;
  }
  .navbar-brand img {
    height: 18px !important;
  }
  .navbar-buttons {
    display: none !important;
  }
  .navbar-hamburger {
    display: flex !important;
  }
  .navbar-dropdown {
    display: none;
  }
  .navbar-dropdown.open {
    display: block;
  }
}

/* 小尺寸手機 */
@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-image img {
    max-width: 95%;
  }
  .icon-title {
    font-size: 1rem;
  }
  .icon-description {
    font-size: 0.875rem;
  }
  .advantages-section {
    padding-top: 380px;
  }
}

/* --- Navbar Hamburger & Dropdown --- */
.navbar-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-hamburger {
  position: relative;
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  background: none;
  cursor: pointer;
}
.navbar-hamburger span {
  position: absolute;
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar-hamburger span:nth-child(1) {
  top: 0;
}

.navbar-hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.navbar-hamburger span:nth-child(3) {
  bottom: 0;
}
/* 漢堡轉 X 的動畫 */
.navbar-hamburger.active span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}
.navbar-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar-hamburger.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: rotate(-45deg);
}

/* 只讓下拉選單有霧面玻璃材質 */
.navbar-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 80%;
  transform: translateX(-50%);
  margin-top: 24px;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 24px 0 16px 0;
  z-index: 1099;
  text-align: center;
}

.navbar-dropdown.open {
  display: block;
  animation: dropdownFadeIn 0.25s;
}
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) translateX(-50%);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
}

.navbar-dropdown .dropdown-item {
  display: block;
  padding: 12px 0;
  font-size: 1.15rem;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
}
.navbar-dropdown .dropdown-item:hover {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
}
.navbar-dropdown .dropdown-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0 18px 0 18px;
}

@media (min-width: 769px) {
  .navbar-hamburger,
  .navbar-dropdown {
    display: none !important;
  }
}

.navbar-hamburger-wrapper {
  display: flex;
  align-items: center;
  width: 40px;
  height: 100%;
}

/* Segmented Control 自訂樣式 */
.nav-pills.process-pills {
  border: 1px solid #cc262e;
  border-radius: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  overflow: hidden;
  flex-wrap: nowrap;
}
.nav-pills.process-pills .nav-link {
  font-size: 18px;
  color: #cc262e;
  background: #fff;
  border-radius: 28px;
  border: none;
  padding: 10px 32px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.nav-pills.process-pills .nav-link.active {
  background: #cc262e;
  color: #fff;
  border-radius: 28px;
}

/* --- 優化後的流程區塊 CSS --- */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  margin-bottom: 24px;
}

.process-step {
  display: flex;
  min-width: 240px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
}

.process-num {
  font-size: 4rem;
  font-weight: bold;
  color: #cc262e;
  line-height: 1;
  padding-right: 8px;
}

.process-title {
  font-size: 1.25rem; /* 20px */
  font-weight: bold;
  margin-bottom: 0.25rem;
  display: flex;
  flex-direction: column;
}

.process-title span {
  font-size: 1rem; /* 14px */
  color: #666;
  line-height: 1.5;
  max-width: 200px;
  margin-top: 0.25rem;
}

.process-arrow {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-block;
  background: url("images/Vector.svg") center center no-repeat;
  background-size: contain;
  transition: background-image 0.2s;
}

.tab-pane:not(.active) {
  display: none !important;
}

@media (max-width: 725px) {
  .process-flow {
    flex-direction: column;
  }
  .process-step {
    margin-bottom: 16px;
  }
  .process-arrow {
    display: inline-block;
    transform: rotate(90deg);
    margin: 8px 10px;
  }
}
/* 流程說明下方資訊卡片樣式 */
.process-info-card {
  background: #fcfcfc;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.process-info-title {
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.process-info-title::after {
  content: "";
  display: block;
  width: 20%;
  height: 4px;
  margin-top: 6px;
  background: linear-gradient(90deg, #cc262e 0%, #cc262e00 100%);
  position: absolute;
  left: 0;
  bottom: 0;
}

.process-info-content {
  font-size: 16px;
  color: #222;
}
.process-info-content h5 {
  font-size: 18px;
  font-weight: bolder;
  color: #222;
}
/* 影音專區左側選單區塊美化 */
#videoList {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(90deg, #fff 70%, #ffeaea 100%);
  border-radius: 16px;
  padding: 32px 0;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

#videoList .list-group-item {
  background: transparent;
  border: none;
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 10px;
  transition: background 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  box-shadow: none;
}

/* 主標題 */
#videoList .fw-bold {
  font-size: 28px;
  font-weight: bold;
  color: #222;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: color 0.2s;
}

/* 右側箭頭 */
#videoList .fw-bold::after {
  content: "›";
  font-size: 2.2rem;
  margin-left: 16px;
  color: #222;
  transition: color 0.2s;
}

/* 副標題 */
#videoList small {
  font-size: 18px;
  color: #222;
  margin-top: 12px;
  font-weight: 500;
  transition: color 0.2s;
}

/* 主標題下方漸層線 */
#videoList .fw-bold::before {
  content: "";
  display: block;
  width: 180px;
  height: 8px;
  background: linear-gradient(90deg, #cc262e 0%, #fff 100%);
  position: absolute;
  left: 0;
  bottom: -4px;
  opacity: 1;
  transition: opacity 0.2s;
}

/* 預設狀態：全部灰色，無漸層線 */
#videoList .list-group-item .fw-bold,
#videoList .list-group-item .fw-bold::after,
#videoList .list-group-item small {
  color: #999;
}
#videoList .list-group-item .fw-bold::before {
  display: none;
}

/* hover 狀態 */
#videoList .list-group-item:hover,
#videoList .list-group-item:focus {
  background: transparent;
}
#videoList .list-group-item:hover .fw-bold,
#videoList .list-group-item:focus .fw-bold,
#videoList .list-group-item:hover .fw-bold::after,
#videoList .list-group-item:focus .fw-bold::after,
#videoList .list-group-item:hover small,
#videoList .list-group-item:focus small {
  color: #999;
}
#videoList .list-group-item:hover .fw-bold::before,
#videoList .list-group-item:focus .fw-bold::before {
  opacity: 0.5;
}

/* active/選取狀態 */
#videoList .list-group-item.active,
#videoList .list-group-item:active {
  background: transparent;
  opacity: 1;
}
#videoList .list-group-item.active .fw-bold,
#videoList .list-group-item.active .fw-bold::after,
#videoList .list-group-item.active small,
#videoList .list-group-item:active .fw-bold,
#videoList .list-group-item:active .fw-bold::after,
#videoList .list-group-item:active small {
  color: #222;
}
#videoList .list-group-item.active .fw-bold::before,
#videoList .list-group-item:active .fw-bold::before {
  display: block;
  background: linear-gradient(90deg, #cc262e 0%, #fff 100%);
  opacity: 1;
}

/* 取消預設 focus 樣式 */
#videoList .list-group-item:focus {
  outline: none;
  box-shadow: none;
}

/* RWD */
@media (max-width: 768px) {
  .row.align-items-stretch {
    align-items: stretch !important;
  }
  .col-md-4,
  .col-md-8 {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  #videoList {
    flex: 1 1 0;
    min-height: 320px; /* 可依需求調整最小高度 */
  }
  .ratio.ratio-16x9 {
    flex: 1 1 0;
    height: 100%;
    min-height: 320px;
  }

  #videoList .list-group-item {
    padding: 12px 10px;
  }
  #videoList .fw-bold {
    font-size: 1.5rem;
  }
  #videoList .fw-bold::after {
    font-size: 1.5rem;
    margin-left: 8px;
  }
  #videoList small {
    font-size: 1rem;
    margin-top: 10px;
  }
  #videoList .fw-bold::before {
    width: 100px;
    height: 5px;
    bottom: -10px;
  }
}
#videoWrapper {
  width: 100%;
  height: auto;
  min-height: 0;
}
#videoArea {
  width: 100%;
  height: auto;
  min-height: 0;
}
.ratio {
  width: 100%;
  height: auto;
}
.ratio > iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
  aspect-ratio: 16/9;
}
@media (max-width: 991.98px) {
  #videoWrapper,
  #videoArea,
  .ratio {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
  }
}
/* 車主會員評論專區樣式 */
.review-carousel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 0 0.5rem;
}

.carousel-inner {
  overflow: hidden;
}

.review-card-outer {
  flex: 0 0 350px;
  display: flex;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.review-card {
  width: 800px;
  height: 400px;
  display: flex;
  flex-direction: row;
  padding: 16px;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
}

.review-img-wrap {
  width: 40%;
  min-width: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  width: 100%;
  min-height: 360px;
}

.review-info-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.review-info-row .badge {
  font-size: 1rem;
  padding: 0.2em 1em;
  border-radius: 2rem;
}

.review-info-row .price {
  color: #dc3545;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.review-stars {
  display: flex;
  gap: 2px;
  font-size: 1.3rem;
  color: #dc3545;
  letter-spacing: 0;
}

.star-icon {
  line-height: 1;
}

.review-info-row .score {
  font-weight: 700;
  color: #222;
  font-size: 1.1rem;
  margin-left: 0.2em;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 1;
  cursor: pointer;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
  filter: invert(0.3);
}

/* RWD */
@media (max-width: 991.98px) {
  #videoList .fw-bold {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0px;
    position: relative;
    transition: color 0.2s;
  }
  #videoList .fw-bold::before {
    content: "";
    display: block;
    width: 80%;
    height: 6px;
    background: linear-gradient(90deg, #cc262e 0%, #fff 100%);
    position: absolute;
    left: 0;
    bottom: -2px;
    opacity: 1;
    transition: opacity 0.2s;
  }
  #videoList small {
    font-size: 16px;
    color: #222;
    margin-top: 10px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .review-carousel-wrapper {
    max-width: 98vw;
  }
  .review-card-outer {
    flex: 0 0 90vw;
    max-width: 90vw;
  }
  .review-card {
    max-width: 100vw;
    height: auto;
  }
  .review-img-wrap {
    width: 200px;
  }
}

@media (max-width: 575.98px) {
  .nav-pills.process-pills .nav-link {
    padding: 10px 20px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
  }
  .review-info-row {
    display: flex;
    gap: 1rem 0.2em;
    flex-wrap: wrap;
  }
  .review-card-outer {
    flex: 0 0 98vw;
    max-width: 98vw;
    margin: 0 auto;
  }
  .review-card {
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 120px;
    max-width: 98vw;
  }
  .review-img-wrap {
    display: none !important;
  }
  .card-body {
    padding: 0.8rem 1rem;
  }
}
/* 下列為footer */
.discount {
  background: #ececec;
  padding: 10px;
}
.footer {
  margin: 50px 0px 40px;
}
@media screen and (min-width: 721px) and (max-width: 991px) {
  .footer {
    margin: 10px 0px 20px;
  }
}

@media (max-width: 720px) {
  .footer {
    margin: 10px 0px;
  }
}

.comment { padding: 30px 0 30px 20px;}
.comment ol { padding-left: 20px; font-size: 14px;}

.cup { margin-top: -5%; position: relative; display: inline-block; text-align: center;}
.cup img{ width: 95%; margin-top: 40px;}

.award .col-12{ position: relative; }
.award h2{ position: absolute; top: 0; left: 0;
  font-family: "Bonheur Royale", cursive; font-weight: 400; font-size: 72px; color: #dc3545;}
.award h2::after{ content: url(images/awardtext_underline.png); position: absolute; left: 0; bottom: -28px;}
.award h2 span{ display: inline-block; transform: rotate(-5deg); position: relative; z-index: 1;
  text-shadow: #dc3545 0 0 0, #fff 3px 0px 0, #fff 0px 3px 0, #fff -3px 0px 0, #fff 0px -3px 0;}
.awardtext{ margin-top: 40px; padding: 60px 25px 25px 25px;
  background: #f7f9f9; border: solid 1px #d8d5d3; border-radius: 8px;}
.awardtext p { width: 100%; margin-bottom: 8px; font-size: 15px;}
.awardtext p:last-child{ margin-bottom: 0;}

@media (max-width: 767px) {
  .awardtext{ margin-top: 55px;}
}
