/*
 * R06b 產業新知：overview、產業列表、左側選單的產業子選單（設計 §8、§9.5、D18）。
 * 由 cgcustom-news-industry-overview.php、cgcustom-news-industry-list.php 與產業新知文章的內頁載入；不修改 style.css。
 * overview 的規則沿用 Candy 稿（demo 的 style.css 第 3720～3817 行，選擇器都限定在 .news.list-overview 底下）。
 */

/* ---- overview（Candy 稿） ---- */
.news.list-overview .latest-news {
  margin-bottom: 30px;
}
.news.list-overview h2 {
  color: #c94c08;
  font-size: 32px;
  line-height: 120%;
  margin-bottom: 35px;
}
.news.list-overview .item {
  margin-bottom: 50px;
}
.news.list-overview .item img {
  max-width: 100%;
  height: auto;
}
.news.list-overview .item img:hover {
  opacity: 0.8;
  zoom: 1;
  transition: 0.3s linear;
}
/* 卡片圖片：外框固定 1200:520（520 / 1200 = 43.3333%，大圖與小圖相同），圖片 object-fit: cover 置中裁切（D43）。
   主圖（上傳時產生 1200×520）完整顯示；退回的縮圖（500×500）與其他比例的圖裁成相同比例，卡片對齊。
   以 padding-top 保留高度（不依賴 aspect-ratio），只限 overview（.r06b-industry-overview）。 */
.news.r06b-industry-overview .item a.r06b-ov-img {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 43.3333%;
  overflow: hidden;
}
.news.r06b-industry-overview .item a.r06b-ov-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.news.list-overview .item .intro {
  line-height: 160%;
  height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.news.list-overview .item .date-wrap {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}
.news.list-overview .item .date-wrap .service-item {
  color: #c94c08;
  font-size: 20px;
  font-weight: bold;
  zoom: 1;
  transition: 0.3s linear;
}
.news.list-overview .item .date-wrap a.service-item:hover {
  color: #666;
  opacity: 0.8;
  zoom: 1;
  transition: 0.3s linear;
}
.news.list-overview .item .date-wrap .date {
  font-style: italic;
  color: #666;
}
.news.list-overview .item.first .intro {
  line-height: 160%;
  height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news.list-overview h3 {
  color: #000;
  font-size: 25px;
  margin: 20px 0;
  font-weight: bold;
  line-height: 160%;
}
@media (max-width: 768px) {
  .news.list-overview h3 {
    font-size: 20px;
  }
}
@media (min-width: 768px) {
  .news.list-overview h3 {
    font-size: 20px;
  }
}
@media (min-width: 992px) {
  .news.list-overview h3 {
    font-size: 22px;
  }
}
@media (min-width: 1600px) {
  .news.list-overview h3 {
    font-size: 25px;
  }
}
.news.list-overview h3 a {
  zoom: 1;
  transition: 0.3s linear;
}
.news.list-overview h3 a:hover {
  color: #c94c08;
  zoom: 1;
  transition: 0.3s linear;
}

/* ---- 產業列表：標題 ---- */
.news.r06b-industry-list h2.r06b-ind-title {
  color: #c94c08;
  font-size: 32px;
  line-height: 120%;
  margin-bottom: 35px;
}

/* ---- 左側選單：「產業新知」展開的產業子選單 ---- */
.left-menu ul ul.r06b-ind-sub {
  display: block;
  margin: 0;
  padding: 0 0 10px 0;
  border-bottom: 5px solid #f2f2f2;
}
.left-menu ul ul.r06b-ind-sub li {
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
  max-width: none;
  padding: 0;
}
.left-menu ul li.r06b-ind ul.r06b-ind-sub li a,
.left-menu ul li.r06b-ind ul.r06b-ind-sub li span {
  display: block;
  position: relative;
  height: auto;
  padding: 8px 20px 8px 35px;
  border-bottom: 0;
  font-size: 15px;
  line-height: 150%;
  color: #333;
}
.left-menu ul li.r06b-ind ul.r06b-ind-sub li a:after {
  display: none;
}
.left-menu ul li.r06b-ind ul.r06b-ind-sub li.active a,
.left-menu ul li.r06b-ind ul.r06b-ind-sub li a:hover {
  color: #c94c08;
}
@media (max-width: 1024px) {
  .left-menu ul li.r06b-ind.r06b-open {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .left-menu ul li.r06b-ind ul.r06b-ind-sub li a,
  .left-menu ul li.r06b-ind ul.r06b-ind-sub li span {
    padding-left: 15px;
  }
}
