/* Hero 區塊 */
.index .hero_section {
  height: 100vh;
  min-height: 800px;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.index .hero_full_wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Hero Slick Slider */
.index .hero_slider {
  width: 100%;
  height: 100%;
}

.index .hero_slider .hero_slide {
  width: 100%;
  height: 100vh;
  min-height: 800px;
  position: relative;
}

.index .hero_slide_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.index .hero_main_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.index .hero_overlay_dim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
  z-index: 2;
  pointer-events: none;
}

.index .hero_slide_content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  pointer-events: none;
}

.index .hero_slider .slick-list,
.index .hero_slider .slick-track {
  height: 100%;
}

.index .hero_slider .slick-slide {
  height: 100%;
}

/* Fade 模式：確保 slide 內容正確顯示 */
.index .hero_slider .slick-slide .hero_slide {
  height: 100%;
}

.index .hero_slider .slick-slide.slick-active .hero_slide_content,
.index .hero_slider .slick-slide.slick-active .hero_bottom_label {
  opacity: 1;
  visibility: visible;
}

.index .hero_slider .slick-slide:not(.slick-active) .hero_slide_content,
.index .hero_slider .slick-slide:not(.slick-active) .hero_bottom_label {
  opacity: 0;
  visibility: hidden;
}

/* Hero Slick Dots */
.index .hero_slider .slick-dots {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex !important;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.index .hero_slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.index .hero_slider .slick-dots li button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  font-size: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.index .hero_slider .slick-dots li.slick-active button,
.index .hero_slider .slick-dots li button:hover {
  background-color: var(--color-bg-white);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .index .hero_slider .slick-dots {
    bottom: 100px;
  }

  .index .hero_slider .hero_slide {
    min-height: 600px;
  }
}

/* .hero_floating_content 已移除 - 被 .hero_slide_content 取代 */

.index .hero_text_box {
  max-width: 1200px;
  /* 增加最大寬度以改善中心佈局和單行標題 */
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.index .hero_h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: var(--spacing-lg);
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  /* 移除 max-width 以允許完全置中 */
  max-width: 16em;
  /* 強制在約 16 個字符處換行 */
  /* Fixed to 2 lines on desktop */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index .hero_para {
  font-size: var(--font-size-body);
  /* Standardize to body size */
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  /* 增加寬度以適應居中文字 */
  margin-left: auto;
  margin-right: auto;
  /* Fixed to 2 lines on desktop */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* btn_pill_dark 已移除 - 被 common.css 中的 .btn-style-1 取代 */

.index .hero_bottom_label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  padding: 0 5%;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 0.65;
}

.index .hero_big_brand {
  display: block;
  font-family: var(--font-family-en);
  font-size: clamp(36px, 9vw, 96px);
  font-weight: 800;
  color: var(--color-text-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
  /* 溢出修正：取消截斷 → overflow: hidden; */
  /* 溢出修正：取消截斷 → text-overflow: ellipsis; */
  text-align: center;
  width: 100%;
  transform: translateY(16%);
  line-height: 1;
}

@media (max-width: 768px) {
  .index .hero_h1 {
    font-size: 2.5rem;
  }

  .index .hero_big_brand {
    font-size: 8.5vw;
  }
}

/* 關於我們區塊 */
.index .about_section {
  padding: 0;
  /* 全寬分割佈局 */
  background-color: var(--color-bg-white);
}

.index .about_layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 600px;
  /* 確保適當高度 */
}

.index .about_visual {
  width: 50%;
  background-color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* 圖片靠右（中心）對齊 */
  padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  /* 右側填充較大以與中心線保持距離 */
  position: relative;
}

.index .about_img_wrap {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  /* 方形 */
  position: relative;
  /* border-right 已移除，改用偽元素 */
}

.index .about_img_wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(-1 * var(--spacing-xl));
  /* 定位在間隙中心 */
  width: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.index .about_img_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.index .about_content {
  width: 50%;
  background-color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 文字靠左（中心）對齊 */
  padding: var(--spacing-xxl) var(--spacing-lg) var(--spacing-xxl) var(--spacing-xl);
  /* 左側填充較大以與中心線保持距離 */
}

.index .about_content_inner {
  max-width: 500px;
  text-align: left;
  /* 分割視圖文字靠左通常更好看 */
}

/* 此區塊強制左對齊 */
.index .about_content .section_title-en,
.index .about_content .section_title-zh,
.index .about_content .section_desc {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* About Us Text Limits (Specific Exception) */
.index .about_content .section_title-en {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.index .about_content .section_title-zh {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.index .about_content .section_desc {
  margin-bottom: var(--spacing-lg);
  /* 溢出修正：取消截斷 → display: -webkit-box; */
  /* 溢出修正：取消截斷 → -webkit-line-clamp: 5; */
  /* 溢出修正：取消截斷 → line-clamp: 5; */
  /* 溢出修正：取消截斷 → -webkit-box-orient: vertical; */
  /* 溢出修正：取消截斷 → overflow: hidden; */
}

@media (max-width: 992px) {

  .index .about_visual,
  .index .about_content {
    width: 100%;
  }

  .index .about_layout {
    flex-direction: column;
  }

  .index .about_visual {
    min-height: 400px;
    padding: var(--spacing-md);
    padding-bottom: 0;
    /* 移除底部 padding,讓細線緊貼圖片 */
    position: relative;
    justify-content: center;
    /* 確保圖片置中 */
  }

  /* 手機版細線 - 使用偽元素讓寬度與圖片一致 */
  .index .about_visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--spacing-md);
    right: var(--spacing-md);
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .index .about_img_wrap {
    border-right: none;
    border-bottom: none;
    margin-bottom: var(--spacing-md);
    /* 在圖片和細線之間保留間距 */
    margin-left: auto;
    margin-right: auto;
    /* 確保圖片容器置中 */
  }

  .index .about_img_wrap::after {
    display: none;
  }

  .index .about_content {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .index .about_content_inner {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .index .about_content .section_title-en,
  .index .about_content .section_title-zh,
  .index .about_content .section_desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* 強制按鈕置中 */
  .index .about_content .about_cta {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* 服務項目區塊 */
.index .services_section {
  background-color: var(--color-ivory);
}

.index .services_scroll {
  position: relative;
}

/* 橫向滑動軌道：桌機一次顯示 4 張，超出的往右滑 */
.index .services_grid {
  display: flex;
  justify-content: flex-start;
  gap: var(--spacing-md);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.index .services_grid::-webkit-scrollbar {
  display: none;
}

/* 卡片不足一頁時才置中（置中 + 溢出會導致第一張捲不到） */
.index .services_grid.is_centered {
  justify-content: center;
}

.index .service_card {
  flex: 0 0 calc((100% - var(--spacing-md) * 3) / 4);
  min-width: 200px;
}

/* 向右提示鈕：右側還有內容時才由 JS 顯示（服務項目 / 產品介紹共用） */
.index .services_nav,
.index .product_nav {
  display: flex;
}

.index .services_nav_btn,
.index .product_nav_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
}

.index .services_nav_btn:hover,
.index .product_nav_btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
}

.index .services_nav_btn,
.index .product_nav_btn {
  right: 8px;
}

@media (max-width: 1024px) {
  /* 平板一次顯示 3 張 */
  .index .service_card {
    flex: 0 0 calc((100% - var(--spacing-md) * 2) / 3);
  }
}

@media (max-width: 768px) {
  /* 手機版露出下一張，提示可往右滑 */
  .index .service_card {
    flex: 0 0 78%;
    min-width: 0;
  }

  .index .services_nav_btn,
  .index .product_nav_btn {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  /* 手機版統一為先圖後文 */
  .index .service_card:nth-child(even) {
    flex-direction: column !important;
  }
}

.index .service_card {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  background-color: transparent;
}

/* 偶數張卡片交換圖片與文字順序 */
.index .service_card:nth-child(even) {
  flex-direction: column-reverse;
}

/* 圖片樣式 */
.index .service_img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  /* 去背車輛圖需要白底襯，照片則會整片覆蓋、看不到 */
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  margin: 0;
}

.index .service_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}



.index .service_content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid #0000001a;
  margin: 0;
}

.index .service_card:nth-child(odd) .service_content {
  background-color: var(--color-moonshine);
}

.index .service_content h3 {
  margin-bottom: 0;
}

/* 覆蓋 card_title_3 的 margin-bottom */
.index .service_content.card_title_3 h3 {
  margin-bottom: 10px;
}

.index .service_content p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}



/* 產品介紹區塊 (手風琴重新設計) */
.index .product_section {
  background-color: var(--color-bg-white);
  overflow: hidden;
  padding: 60px 0;
}

/* 手風琴容器 */
.index .product_scroll {
  position: relative;
}

.index .product_accordion {
  display: flex;
  width: 100%;
  height: 600px;
  /* 固定高度以保持動畫一致性 */
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* 限制外邊框 */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.index .product_accordion::-webkit-scrollbar {
  display: none;
}

/* 手風琴項目 */
.index .accordion_item {
  /* 收合條固定寬度，項目變多就往右延伸而不是互相擠壓 */
  flex: 0 0 150px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  background-color: var(--color-bg-tint);
  /* 預設非活動背景 */
  display: flex;
}

.index .accordion_item:last-child {
  border-right: none;
}

.index .accordion_item.active {
  /* 至少 720px 以維持文字 + 圖片的比例，還有剩餘空間就撐滿 */
  flex: 1 0 720px;
  cursor: default;
  background-color: var(--color-bg-white);
}

/* 視窗較窄時等比縮小，避免預設張數就被迫捲動 */
@media (max-width: 1280px) {
  .index .accordion_item {
    flex: 0 0 100px;
  }

  .index .accordion_item.active {
    flex: 1 0 560px;
  }
}

/* 摺疊標題 (垂直文字) */
.index .accordion_header {
  width: 60px;
  /* 折疊條的寬度 */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* 改為頂部對齊 */
  gap: var(--spacing-md);
  /* 減少間距 */
  padding: var(--spacing-lg) 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  background-color: transparent;
  transition: opacity 0.3s;
  min-width: 60px;
}

.index .accordion_item.active .accordion_header {
  opacity: 0;
  /* 活動時隱藏標題 */
  pointer-events: none;
}

/* 若要在活動時保留標題在左側，可移除 opacity: 0 */

.index .acc_num {
  font-family: var(--font-family-en);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.index .acc_num::after {
  content: '';
  width: 24px;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
  margin-top: 12px;
}

.index .acc_title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  /* 垂直文字 */
  font-family: var(--font-family-zh);
  /* 使用中文字體 */
  font-size: 1rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: var(--color-text-primary);
  /* Fixed 1 vertical line, max 20 chars */
  max-height: 28em;
  /* 20 chars * (1em + 0.2em gap) roughly + buffer */
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  /* Ensure block formatting for overflow */
}


/* 展開內容 */
.index .accordion_content {
  flex-grow: 1;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s 0.1s ease;
  /* 延遲淡入 */
  display: flex;
  /* 隱藏直到展開 */
  visibility: hidden;
}

.index .accordion_item.active .accordion_content {
  opacity: 1;
  visibility: visible;
}

.index .acc_content_inner {
  display: flex;
  width: 100%;
  height: 100%;
}

/* 內部佈局: 文字左，圖片右 */
.index .acc_text {
  flex: 1;
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 300px;
}

.index .acc_img {
  flex: 1.5;
  height: 100%;
  overflow: hidden;
}

.index .acc_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 手風琴內部文字樣式 */
.index .acc_section_title {
  font-family: var(--font-family-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  display: block;
  /* 固定一行 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index .acc_text h3 {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
  /* 固定兩行 */
  /* 溢出修正：取消截斷 → display: -webkit-box; */
  /* 溢出修正：取消截斷 → -webkit-line-clamp: 2; */
  /* 溢出修正：取消截斷 → line-clamp: 2; */
  /* 溢出修正：取消截斷 → -webkit-box-orient: vertical; */
  /* 溢出修正：取消截斷 → overflow: hidden; */
  line-height: 1.3;
  /* height: calc(1.3em * 2); */
}

.index .acc_text p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
  /* 固定三行 */
  /* 溢出修正：取消截斷 → display: -webkit-box; */
  /* 溢出修正：取消截斷 → -webkit-line-clamp: 3; */
  /* 溢出修正：取消截斷 → line-clamp: 3; */
  /* 溢出修正：取消截斷 → -webkit-box-orient: vertical; */
  /* 溢出修正：取消截斷 → overflow: hidden; */
  /* height: calc(1.6em * 3); */
}

/* 手機版響應式 */
@media (max-width: 992px) {
  .index .product_accordion {
    height: auto;
    flex-direction: column;
  }

  .index .accordion_item {
    width: 100%;
    flex: none;
    height: 60px;
    /* 折疊高度 */
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .index .accordion_item.active {
    flex: none;
    height: auto;
    /* 允許內容自動高度 */
  }

  /* 調整標題為水平堆疊 */
  .index .accordion_header {
    width: 100%;
    height: 60px;
    flex-direction: row;
    padding: 0 var(--spacing-md);
    align-items: center;
    /* 重置變換 */
    transform: none;
  }

  .index .acc_title {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 0;
  }

  .index .acc_content_inner {
    flex-direction: column-reverse;
  }

  /* 手機版英文標題上方間距 */
  .index .acc_section_title {
    margin-top: var(--spacing-md);
  }

  .index .acc_text {
    border-right: none;
    padding: var(--spacing-md) !important;
    /* 統一所有卡片的 padding */
    aspect-ratio: 1;
    /* 1:1 正方形 */
    width: 100%;
    min-height: 0;
    /* 重置最小高度 */
    justify-content: flex-start !important;
    /* 手機版靠上對齊，不要垂直置中 */
  }

  /* 手機版移除段落底部間距，避免溢出 */
  .index .acc_text p {
    margin-bottom: 0 !important;
  }

  .index .acc_img {
    aspect-ratio: 1;
    /* 1:1 正方形 */
    width: 100%;
    height: auto;
  }
}

/* 最新消息區塊 */
.index .news_section {
  background-color: var(--color-bg-warm-4);
  /* 略微溫暖的米白色背景 */
  padding: var(--spacing-xxl) 0;
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
  .index .news_section {
    padding: var(--spacing-xl) 0;
  }
}

.index .news_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: none;
  /* 移除四周完整邊框 */
}

.index .news_card {
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
  /* 改為 visible 以避免剪裁 */
  transition: background-color var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* 改為獨立邊框 */
  padding: var(--spacing-xl) 0;
  /* 左右留白改由內容的比例寬度產生，不用百分比 padding（輪播模式基準會變成 slick-track） */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 恢復容器置中，使圖片與線條對齊 */
  justify-content: center;
  /* 垂直居中 */
  text-align: center;
  margin-left: -1px;
  /* 讓邊框重疊 */
}

/* 最後一張卡片不再需要特殊處理，因為全都有邊框，透過 margin-left: -1px 重疊 */
.index .news_card:last-child {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 平板兩欄時隱藏第三則，維持版面均衡（手機輪播模式三則全顯示） */
@media (max-width: 992px) and (min-width: 769px) {
  .index .news_card:nth-child(3) {
    display: none;
  }
}

/* 手機版：由 Slick 接管為單張輪播，解除 grid 與邊框重疊設定 */
@media (max-width: 768px) {
  .index .news_grid {
    grid-template-columns: minmax(0, 1fr);
    /* 尚未初始化 Slick 前的預設單欄，避免雙欄過窄造成文字溢出重疊 */
  }

  .index .news_grid.slick-initialized {
    display: block;
    position: relative;
    /* 作為輪播箭頭的定位基準 */
  }

  /* 輪播箭頭 */
  .index .news_arrow {
    position: absolute;
    top: calc(50% - 17px);
    /* 扣掉下方 dots 區塊高度，對齊卡片垂直中央 */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
  }

  .index .news_arrow_left {
    left: 8px;
  }

  .index .news_arrow_right {
    right: 8px;
  }

  .index .news_arrow i {
    font-size: 1rem;
  }

  .index .news_card {
    margin-left: 0;
    margin-top: 0;
    /* 輪播模式各自獨立成一張，不再做邊框重疊 */
  }

  .index .news_grid.slick-initialized .news_card {
    display: flex;
    height: auto;
  }

  .index .news_grid .slick-track {
    display: flex;
    align-items: stretch;
  }

  .index .news_grid .slick-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: var(--spacing-md);
    padding: 0;
    list-style: none;
  }

  .index .news_grid .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .index .news_grid .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d9d9d9;
    border: none;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .index .news_grid .slick-dots li.slick-active button {
    background-color: var(--color-primary);
    transform: scale(1.2);
  }
}

/* 輪播箭頭 hover - 僅限支援 hover 的裝置 */
@media (hover: hover) and (max-width: 768px) {
  .index .news_arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-white);
  }
}

@media (hover: hover) {
  .index .news_card:hover {
    transform: none;
    /* 禁用上浮 */
    background-color: rgba(255, 255, 255, 0.5);
    /* 柔和高亮 */
  }
}

.index .news_img {
  width: 68%;
  /* 恆為卡片寬的 68%，左右各留 16% */
  aspect-ratio: 412 / 270;
  overflow: hidden;
  border-radius: 0;
  margin-top: 0;
  /* 移除上方間距，讓圖片視覺更平衡 */
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* 圖片上方細線，與下方細線對稱 */
.index .news_img::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  position: absolute;
  top: calc(-1 * var(--spacing-lg));
  /* 細線在圖片上方 40px */
  left: 0;
}

.index .news_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(20%);
}

/* Increase spacing for homepage Learn More buttons */
.index .services_section .text-center,
.index .product_section .text-center,
.index .news_section .text-center {
  margin-top: 60px;
}

@media (hover: hover) {
  .index .news_card:hover .news_img img {
    transform: scale(1.03);
    filter: grayscale(0%);
  }
}

.index .news_content {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 文案內容物靠左對齊 */
  width: 68%;
  /* 與圖片同比例寬 */
  text-align: left;
}

.index .news_content::before {
  content: '';
  display: block;
  width: 100%;
  /* 與圖片 max-width 等寬 */
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin-bottom: var(--spacing-lg);
}

.index .news_content h3 {
  width: 100%;
  margin-bottom: var(--spacing-sm);
  white-space: normal;
  line-height: 1.4;
  /* 溢出修正：取消截斷 → height: calc(1.4em * 2); */
  /* 固定兩行 */
  /* 溢出修正：取消截斷 → display: -webkit-box; */
  /* 溢出修正：取消截斷 → -webkit-line-clamp: 2; */
  /* 溢出修正：取消截斷 → line-clamp: 2; */
  /* 溢出修正：取消截斷 → -webkit-box-orient: vertical; */
  /* 溢出修正：取消截斷 → overflow: hidden; */
}

.index .news_content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  max-width: 100%;
  /* 溢出修正：取消截斷 → height: calc(1.6em * 3); */
  /* 固定三行 */
  /* 溢出修正：取消截斷 → display: -webkit-box; */
  /* 溢出修正：取消截斷 → -webkit-line-clamp: 3; */
  /* 溢出修正：取消截斷 → line-clamp: 3; */
  /* 溢出修正：取消截斷 → -webkit-box-orient: vertical; */
  /* 溢出修正：取消截斷 → overflow: hidden; */
}

/* 卡片內按鈕 - 自定義邊框顏色 */
.index .news_btn {
  margin-top: var(--spacing-sm);
  border-color: var(--color-moonshine);
  color: var(--color-moonshine);
  align-self: center;
  /* 按鈕單獨置中 */
}

@media (hover: hover) {
  .index .news_btn:hover {
    background-color: var(--color-moonshine);
    color: var(--color-text-primary);
    border-color: var(--color-moonshine);
  }
}


/* 合作夥伴區塊樣式已移至 common.css */

.index .partner_logo_wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.index .partner_content {
  padding: 10px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: transparent;
  padding-top: 0;
}

.index .partner_content::before {
  content: '';
  display: block;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0 0 15px;
  /* 帶有側邊間距和底部邊距的線條 */
  width: auto;
}

.index .partner_content h4 {
  font-family: var(--font-family-en);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

/* 合作夥伴分頁 */
.index .partners_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-lg);
}

.index .partner_dot {
  width: 10px;
  height: 10px;
  background-color: #E0E0E0;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.index .partner_dot.active {
  background-color: var(--color-primary);
}

.index .partner_content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* 響應式 */
@media (max-width: 992px) {
  .index .hero_title {
    font-size: 2.5rem;
  }

  .index .product_layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--spacing-md);
  }

  .index .product_info {
    order: 2;
    padding-right: 0;
  }

  .index .product_slider {
    order: 1;
    margin-bottom: var(--spacing-md);
  }

  .index .news_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index .hero_title {
    font-size: 2rem;
  }

  /* .index .hero_section styles moved to common.css */

  .index .section_title-zh {
    font-size: 2rem;
  }

  /* 區塊底部按鈕容器 */
  .index .text-center {
    text-align: center;
    margin-top: var(--spacing-xl);
  }
}