/* ============================================================
   客製化系統開發案例：列表頁 + 內頁
   內頁的 article / 目次 / Read more / 分頁 直接重用 news.css
   ============================================================ */
@import url('news.css');

/* hero 標題分隔符（細直線視覺） */
.sw-title-sep {
  display: inline-block;
  margin: 0 14px;
  color: var(--c-brand-hover);
  font-weight: 400;
}

/* hero 主打標語（breadcrumb 下方）：「全客製網站設計」深色粗體 + 其餘灰字 */
.sw-hero-headline {
  margin: clamp(20px, 8.33vw, 160px) 0 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 1px;
  color: var(--c-grey-dark);
}

.sw-hero-headline-key {
  font-weight: 700;
  color: var(--c-text-2);
}

/* 方案介紹頁變體：主打標語整行改橘色強調（關鍵字維持粗體；對齊 Figma） */
.sw-hero-headline--brand,
.sw-hero-headline--brand .sw-hero-headline-key {
  color: var(--c-brand);
}

/* 描述移入 copy 區塊後與標語的間距 */
#cs-hero .news-hero-desc {
  margin-top: 20px;
}

/* ---- Hero 右側 UI/UX 玻璃擬物插圖（sv-web-hero）----
   覆寫共用 .news-hero-img：正方形插圖需限制尺寸並靠右置中，
   對齊 Figma（插圖約佔 40% 寬、貼齊右側並落在橘色光暈上） */
/* 合併圖（插圖＋光暈）垂直置中於 hero，避免貼齊上方與主選單重疊 */
#cs-hero .news-hero-img {
  top: 60%;
  bottom: auto;
  right: clamp(0px, 3vw, 20px);
  transform: translateY(-50%);
  width: clamp(380px, 42vw, 868px);
  height: auto;
  z-index: 2;
}

@media (max-width: 1199px) {
  #cs-hero .news-hero-img {
    top: 45%;
  }
}

/* 平板以下：插圖回到右下當淡色襯底，讓上方大標與麵包屑維持清晰 */
@media (max-width: 991.98px) {
  .sw-title-sep {
    margin: 0 8px;
  }
  #cs-hero .news-hero-img {
    top: 12%;
    right: -10%;
    transform: none;
    width: clamp(300px, 70vw, 520px);
  }
  .sw-hero-headline {
    margin: 24px 0 0;
  }
}

@media (max-width: 575px) {
  #cs-hero .news-hero-img {
    top: 17%;
  }
}

/* ---- Hero 淺底版面（斜紋底紋 + 右側橘色光暈 + 大標題/橘色副標）----
   背景改為淺色斜紋底圖 sw-hero-bg.png，橘色光暈以 CSS 製作並置於插圖後方，
   文案順序：大標題 → UI/UX 副標 → 麵包屑 → 主打標語 → 描述（對齊 Figma） */
#cs-hero {
  background: url(../../img/sw-hero-bg.png) top center no-repeat;
  background-size: contain;
  overflow: hidden;
  padding: 220px 0 0;
}

@media (max-width: 1199px) {
  #cs-hero {
    padding: 120px 0 0;
  }
}

@media (max-width: 575px) {
  #cs-hero {
    padding: 80px 0 0;
  }
}

/* 文案區置於最上層，避免被光暈/插圖覆蓋 */
#cs-hero .container {
  position: relative;
  z-index: 5;
}

/* 主標題：頁面大標（深色，64px 級距） */
#cs-hero .news-hero-eyebrow.sw-hero-h1 {
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.1;
  color: #231815;
  letter-spacing: 1px;
}

/* 副標：橘色 UI/UX Design ＋ 品牌徽章圖示 */
#cs-hero .news-hero-title.sw-hero-uiux {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.5px;
  color: var(--c-brand);
}

#cs-hero .news-breadcrumb {
  margin-top: 20px;
}

@media (max-width: 991.98px) {
  #cs-hero .news-breadcrumb {
    margin-top: 170px;
  }

  #cs-hero .news-hero-title.sw-hero-uiux {
    margin: 6px 0 0;
    gap: 7px;
  }
}

/* 主打標語：關鍵字改橘色、其餘深灰（對齊 Figma） */
#cs-hero .sw-hero-headline {
  color: #222;
  font-size: clamp(16px, 1.8vw, 24px);
}

#cs-hero .sw-hero-headline-key {
  color: var(--c-brand);
}

/* 描述文：18px / 1.6（對齊 Figma） */
#cs-hero .news-hero-desc {
  font-size: 18px;
  line-height: 1.6;
}

/* 平板以下：光暈移至右下，與插圖一致 */
@media (max-width: 991.98px) {
  #cs-hero .sw-hero-headline-val {
    display: block;
  }
}
@media (max-width: 575px) {
  #cs-hero {
    background: url(../../img/sw-hero-bg-mobile.png) top center no-repeat;
    background-size: contain;
  }
  #cs-hero .news-hero-desc {
    font-size: 14px;
  }
}

/* ============================================================
   MARK: Service App Page (service_app_page.php) - 程式設計與APP開發
   ============================================================ */

/* ---- HERO 支援 pills 列 ---- */
.sw-hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.sw-hero-pills-prefix {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 4px;
}

.sw-hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--c-brand);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  backdrop-filter: blur(6px);
}

/* ============ 內頁：2 欄版型（article + 目次，無左側 sidebar） ============ */
.cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 40px 50px;
  align-items: start;
}

.cs-layout .article-column {
  grid-column: 1;
  /* grid-row: 1; */
}

.cs-layout .news-toc {
  grid-column: 2;
  grid-row: 1;
}

/* 內頁 Read more 於本頁為滿欄（無左側 sidebar），清除 news 三欄版的對齊位移 */
@media (min-width: 992px) {
  .cs-content .news-related-head,
  .cs-content .news-related-wrap {
    margin-left: 0;
    margin-right: 0;
  }
}

/* 回上一頁按鈕（與內容同欄、靠右） */
.cs-back-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.cs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 40px;
  border-radius: 999px;
  border: 1px solid var(--c-grey-mid);
  background: transparent;
  color: var(--c-grey-dark);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.cs-back-btn:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-on-dark);
}

/* ============ 列表頁 ============ */
.cs-list {
  background: var(--c-bg-page);
  padding: 40px 0 80px;
}


.cs-search-wrap {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  background: var(--c-bg-white);
  margin-bottom: 62px;
  border-radius: 74px;
  width: 100%;
  max-width: 665px;
}
/* 搜尋列（靠右） */
.cs-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: rgba(217, 217, 217, 0.2);
  border-radius: 65px;
  padding: 10px 16px;
  height: 64px;
  box-sizing: border-box;
}

.cs-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  color: var(--c-text);
}

.cs-search input::placeholder {
  color: var(--c-grey-mid);
}

.cs-search button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-bg-white);
  color: var(--c-grey-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.25s,
    color 0.25s;
}

.cs-search button:hover {
  background: var(--c-brand);
  color: var(--c-on-dark);
}

.cs-search svg {
  width: 20px;
  height: 20px;
}

/* 卡片網格：4 欄 */
.cs-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
  margin-bottom: 64px;
}

.cs-card-link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.cs-card-cover {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 346 / 274;
  background: var(--c-bg-section);
  border: 3px solid transparent;
  transform: all 0.25s;
}
.cs-card:hover .cs-card-cover {
  border-color: var(--c-yellow);
}
.cs-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.cs-card:hover .cs-card-cover img {
  transform: scale(1.05);
}

.cs-card-title {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--fs-md);
  color: #231815;
  line-height: 1.4;
  margin: 0;
}

.cs-card-desc {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-placeholder);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 了解更多：橘色漸層膠囊 */
.cs-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding: 11px 28px;
  border-radius: 40px;
  color: var(--c-placeholder);
  border: 1px solid var(--c-placeholder);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.cs-card .cs-card-cta i {
  background-color: var(--c-placeholder);
  transform: all 0.25s;
}
.cs-card:hover .cs-card-cta {
  transform: translateX(2px);
  color: var(--c-text-white);
  background: linear-gradient(
    to right,
    var(--c-brand-hover) 70%,
    var(--c-yellow)
  );
  border-color: transparent;
  /* box-shadow: 0 6px 16px rgba(243, 152, 0, 0.35); */
}
.cs-card:hover .cs-card-cta i {
  background-color: var(--c-text-white);
}
/* CTA 箭頭（沿用 news 的 mask icon，反白） */
.cs-card-cta .sv-icon-news-btn {
  background-color: var(--c-on-dark);
}

/* ============ Why Choose GEYES（橘色波紋背景，靜態行銷區塊） ============ */
.cs-why {
  position: relative;
  padding: 4.1666vw 0 5.5vw;
  background-image: url(../../img/ab-why-bg-orange.png);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media(max-width: 1199px) {
  .cs-why  {
    padding-bottom: 200px;
  }
}

@media(max-width: 991px) {
  .cs-why  {
    padding-bottom: 120px;
  }
}

@media(max-width: 575px) {
  .cs-why  {
    padding-bottom: 40px;
  }
}

.cs-why::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 19.1666vw;
  background-image: url(../../img/ab-why-bg-mask.png);
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  content: '';
}

@media (max-width: 575px) {
  .cs-why::before {
    height: 65.7986vw;
    background-image: url(../../img/ab-why-bg-mask-mobile.png);
  }
}

@media (max-width: 415px) {
  .cs-why::before {
    height: 88.5514vw;
    background-image: url(../../img/ab-why-bg-mask-mobile.png);
  }
}

#cs-contact-mask {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  transform: translateY(-65%);
}

.cs-why .container {
  position: relative;
  z-index: 1;
}

.cs-why-head {
  text-align: center;
  margin-bottom: 8.3333vw;
}

@media (max-width: 767px) {
  .cs-why-head {
    margin-bottom: 0px;
  }
}

@media (max-width: 575px) {
  .cs-why-head {
    margin-bottom: 23.6363vw;
  }
}

@media (max-width: 415px) {
  .cs-why-head {
    margin-bottom: 14.9253vw;
  }
}

.cs-why-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 1px;
  color: var(--c-text-2);
  margin: 0 0 16px;
}

.cs-why-title .accent {
  background: linear-gradient(90deg, #ff6100 22%, #ea9604 93%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cs-why-sub {
  font-family: var(--f-body);
  font-size: var(--fs-md);
  color: var(--c-grey-dark);
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.cs-why-sub span {
  color: var(--c-brand);
}

.cs-why-desc {
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--c-grey-dark);
  margin: 0 auto;
  max-width: 760px;
}

/* 3 個圓形特色 */
.cs-why-features-swiper {
  position: relative;
  overflow: hidden;
}

.cs-why-list-button-prev {
  position: absolute;
  top: 50%;
  left: 0;
  width: 60px;
  height: 60px;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.cs-why-list-button-prev::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 10px;
  transform: rotate(-45deg) translateY(-50%);
  background: #ffffff;
}

.cs-why-list-button-prev::after {
  content: '';
  position: absolute;
  top: 76%;
  left: 0;
  width: 100%;
  height: 10px;
  transform: rotate(45deg) translateY(50%);
  background: #ffffff;
}

.cs-why-list-button-next {
  position: absolute;
  top: 50%;
  right: 0;
  width: 60px;
  height: 60px;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.cs-why-list-button-next::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 10px;
  transform: rotate(45deg) translateY(-50%);
  background: #ffffff;
}

.cs-why-list-button-next::after {
  content: '';
  position: absolute;
  top: 76%;
  left: 0;
  width: 100%;
  height: 10px;
  transform: rotate(-45deg) translateY(50%);
  background: #ffffff;
}

.cs-why-list {
  padding: 130px 0;
}

@media (max-width: 991px) {
  .cs-why-list {
    padding: 80px 0;
  }
}

.cs-why-list-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0px;
  border-radius: 50%;
  background: var(--c-bg-white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.slick-current .cs-why-list-block {
  transform: scale(1.5);
  box-shadow: 0 20px 50px rgba(243, 152, 0, 0.3);
}

.cs-why-list-block img {
  width: 150px;
  object-fit: contain;
}

/* 中央項目放大、突出 */
.slick-current .cs-why-list-block img {
  width: 200px;
}

.cs-why-feature-text {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--c-text-2);
  margin: 0;
}

@media (max-width: 1400px) {
  .cs-why-list-block {
    width: 260px;
    height: 260px;
  }

  .cs-why-list-block img {
    width: 130px;
  }

  .slick-current .cs-why-list-block img {
    width: 160px;
  }
}

@media (max-width: 1199px) {
  .cs-why-list-block {
    width: 200px;
    height: 200px;
  }

  .cs-why-list-block img {
    width: 100px;
  }

  .slick-current .cs-why-list-block img {
    width: 130px;
  }
}

@media (max-width: 991px) {
  .cs-search {
    height: 40px;
  }
  .cs-search button {
    width: 27px;
    height: 27px;
  }
  .cs-search svg {
    width: 16px;
    height: 16px;
  }
  .cs-why-list-block {
    width: 260px;
    height: 260px;
  }

  .cs-why-list-block img {
    width: 130px;
  }

  .slick-current .cs-why-list-block img {
    width: 160px;
  }
}

@media (max-width: 575px) {
  .cs-why-list-block {
    width: 150px;
    height: 150px;
  }

  .cs-why-list-block img {
    width: 50px;
  }

  .slick-current .cs-why-list-block img {
    width: 80px;
  }

  .cs-why-feature-text {
    font-size: 14px;
  }
  .cs-why-list-button-next,
  .cs-why-list-button-prev {
    width: 45px;
    height: 40px;
  }
}

/* ============ RWD ============ */
@media (max-width: 1199.98px) {
  .cs-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .cs-layout {
    grid-template-columns: 1fr;
  }

  .cs-layout .article-column,
  .cs-layout .news-toc {
    grid-column: 1;
  }

  .cs-layout .news-toc {
    position: static;
  }

  .cs-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-why-feature--main .cs-why-icon {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .cs-card-grid {
    gap: 16px;
  }

  .cs-search {
    margin-left: 0;
    width: 100%;
  }
}

#custom_system_content_section {
  padding: 0;
}

#custom_system_content_section .news-hero-inner {
  margin-bottom: 0;
}

#custom_system_content_section .news-hero-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

#custom_system_content_section .news-hero-eyebrow {
  font-size: var(--fs-xl);
  display: flex;
  align-items: center;
  gap: 15px;
}

#custom_system_content_section .news-breadcrumb {
  margin: 10px 0;
}

.custom_system_content_top_img {
  width: 100%;
  margin-bottom: 25px;
}

#custom_system_content_top_title_block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---- MARK: 可開發範例：產業卡片網格（3 欄，每卡＝圖示＋標題＋功能標籤） ---- */
#cs_card_list_block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 60px;
}

@media (max-width: 991.98px) {
  #cs_card_list_block {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 767px) {
  #cs_card_list_block {
    grid-template-columns: 1fr;
  }
}

/* 單張產業卡（玻璃白底 + 細框 + 陰影，對齊 Figma） */
.cs_card_list {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: var(--sh-card);
  padding: 24px 26px;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 767px) {
  .cs_card_list {
    display: none;
  }
}

@media (max-width: 575px) {
  .cs_card_list {
    padding: 24px 11px;
  }
}

.cs_card_list:hover {
   border: 1px solid var(--c-brand);
  box-shadow: var(--sh-card-strong);
}

/* 卡片標題列：圖示徽章 + 產業名稱 */
.cs_card_list_title_block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
}

@media (max-width: 767px) {
  .cs_card_list_title_block {
    padding-right: 35px;
  }
}

@media (max-width: 575px) {
  .cs_card_list_title_block {
    gap: 8px;
  }
}

.cs_card_list_icon_block {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
  overflow: hidden;
}

@media (max-width: 575px) {
  .cs_card_list_icon_block {
    width: 36px;
    height: 36px;
  }
}

.cs_card_list_icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.cs_card_list_title {
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* 功能標籤群（自動換行） */
.cs_card_list_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cs_card_chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: #F5F5F5;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #6B6B6B;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .cs_card_list_chips {
    display: none;
  }

  .cs_card_list_mobile.open .cs_card_list_chips {
    display: flex;
  }
}

@media (max-width: 575px) {
  .cs_card_chip {
    font-size: 14px;
  }
}

.cs_card_list_mobile {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: var(--sh-card);
  padding: 24px 26px;
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: none;
}

@media (max-width: 767px) {
  .cs_card_list_mobile {
    display: block;
  }
}

@media (max-width: 575px) {
  .cs_card_list_mobile {
    padding: 24px 11px;
  }
}

.cs_card_list_mobile:hover {
   border: 1px solid var(--c-brand);
  box-shadow: var(--sh-card-strong);
}

.cs_card_list_mobile_btn {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
}

.cs_card_list_mobile_btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0%;
  width: 17px;
  height: 2px;
  transform: translate(0%, -50%) rotate(45deg);
  background: var(--c-brand);
}

.cs_card_list_mobile_btn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0%;
  width: 18px;
  height: 2px;
  transform: translate(0%, -50%) rotate(-45deg);
  background: var(--c-brand);
}

.cs_card_list_mobile.open .cs_card_list_mobile_btn::before{
  transform: translate(0%, -50%) rotate(-45deg);
}

.cs_card_list_mobile.open .cs_card_list_mobile_btn::after{
  transform: translate(0%, -50%) rotate(45deg);
}
