/* ============================================================
   服務內頁 service_web_page + service_app_page（.sw-* 共用，聯集保序）
   來源 style.css 行 6314-7647（純搬移，內容未改）

   MARK: Service Web Page (service_web_page.php) - 網頁設計內頁
   ============================================================ */

/* 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 區塊後與標語的間距 */
#sw-hero .news-hero-desc {
  margin-top: 20px;
}

/* ---- Hero 右側 UI/UX 玻璃擬物插圖（sv-web-hero）----
   覆寫共用 .news-hero-img：正方形插圖需限制尺寸並靠右置中，
   對齊 Figma（插圖約佔 40% 寬、貼齊右側並落在橘色光暈上） */
/* 合併圖（插圖＋光暈）垂直置中於 hero，避免貼齊上方與主選單重疊 */
#sw-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) {
  #sw-hero .news-hero-img {
    top: 45%;
  }
}

#sw-hero.sg-hero .news-hero-img {
  top: 55%;
  width: clamp(289px, 60vw, 1136px);
  right: clamp(-20px, 3vw, 10px);
}

#sw-hero.sp-hero .news-hero-img {
  top: 55%;
  width: clamp(217px, 60vw, 765px);
  right: clamp(20px, 8vw, 200px);
}
/* 平板以下：插圖回到右下當淡色襯底，讓上方大標與麵包屑維持清晰 */
@media (max-width: 991.98px) {
  .sw-title-sep {
    margin: 0 8px;
  }
  #sw-hero .news-hero-img {
    top: 12%;
    right: -10%;
    transform: none;
    width: clamp(300px, 70vw, 520px);
  }
  #sw-hero.sg-hero .news-hero-img {
    top: 30%;
    right: -10%;
  }
  #sw-hero.sp-hero .news-hero-img {
    top: 20%;
    right: 0;
  }
  .sw-hero-headline {
    margin: 24px 0 0;
  }
}

@media (max-width: 1199px) {
  #sw-hero .news-hero-img {
    top: 17%;
  }
}

/* ---- Hero 淺底版面（斜紋底紋 + 右側橘色光暈 + 大標題/橘色副標）----
   背景改為淺色斜紋底圖 sw-hero-bg.png，橘色光暈以 CSS 製作並置於插圖後方，
   文案順序：大標題 → UI/UX 副標 → 麵包屑 → 主打標語 → 描述（對齊 Figma） */
#sw-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) {
  #sw-hero {
    padding: 120px 0 0;
  }
}

@media (max-width: 575px) {
  #sw-hero {
    padding: 80px 0 0;
  }
}

/* 文案區置於最上層，避免被光暈/插圖覆蓋 */
#sw-hero .container {
  position: relative;
  z-index: 5;
}

/* 主標題：頁面大標（深色，64px 級距） */
#sw-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 ＋ 品牌徽章圖示 */
#sw-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);
}

#sw-hero .news-hero-title.sw-hero-uiux br {
  display: none;
}
#sw-hero .news-breadcrumb {
  margin-top: 20px;
}
#sw-hero.sg-hero .news-breadcrumb {
  margin-top: 24px;
}
#sw-hero.sp-hero .news-breadcrumb {
  margin-top: 24px;
}

@media (max-width: 991.98px) {
  #sw-hero .news-breadcrumb,
  #sw-hero.sg-hero .news-breadcrumb,
  #sw-hero.sp-hero .news-breadcrumb {
    margin-top: 150px;
  }

  #sw-hero .news-hero-title.sw-hero-uiux {
    margin: 6px 0 0;
    gap: 7px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  #sw-hero .news-hero-title.sw-hero-uiux br {
    display: block;
  }
}
/* 主打標語：關鍵字改橘色、其餘深灰（對齊 Figma） */
#sw-hero .sw-hero-headline {
  color: #222;
  font-size: clamp(16px, 1.8vw, 24px);
}

#sw-hero .sw-hero-headline-key {
  color: var(--c-brand);
}

/* 描述文：18px / 1.6（對齊 Figma） */
#sw-hero .news-hero-desc {
  font-size: 18px;
  line-height: 1.6;
}

/* 平板以下：光暈移至右下，與插圖一致 */
@media (max-width: 991.98px) {
  #sw-hero .sw-hero-headline-val {
    display: block;
  }
}
@media (max-width: 575px) {
  #sw-hero {
    background: url(../../img/sw-hero-bg-mobile.png) top center no-repeat;
    background-size: contain;
  }
  #sw-hero .news-hero-desc {
    font-size: 14px;
  }
}

/* ---- 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);
}

/* ---- 客製化系統開發（左裝飾橘球 + 右 3 列項目） ---- */
.sw-app-intro {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

@media (max-width: 575px) {
  .sw-app-intro {
    padding: 0 0 96px;
  }
}

.sw-app-intro-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
}

/* ============ RWD ============ */
@media (max-width: 1199.98px) {
  .sw-app-band-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .sw-hero-pills {
    gap: 8px;
  }

  .sw-hero-pill {
    font-size: var(--fs-xs);
    padding: 6px 14px;
  }

  .sw-app-intro-layout {
    grid-template-columns: 1fr;
    gap: 96px;
  }
}

.sw-secure-title {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: 1px;
}

@media(max-width: 991px) {
  .sw-secure-title {
    color: #000;
  }
}

@media (max-width: 575.98px) {
  .sw-app-intro-title,
  .sw-app-cross-title,
  .sw-secure-title {
    font-size: var(--fs-lg);
  }
}

.sw-app-intro-deco {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 左側團隊照片（Figma 為圓形遮罩 PNG，已含透明邊角） */
.sw-app-intro-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
}

.sw-app-intro-copy {
  padding-left: 16px;
}

.sw-app-intro-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-text-2);
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.sw-app-intro-title span {
  color: var(--c-brand);
}

.sw-app-intro-sub {
  font-size: var(--fs-caption);
  line-height: 1.85;
  color: var(--c-divider);
  margin: 0 0 32px;
}

.sw-bullet-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.sw-bullet-row {
  width: calc(50% - 9px);
  display: grid;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 24px;
  background: var(--c-bg-white);
  border: 1px solid var(--c-bg-page);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  background: linear-gradient(
    -33deg,
    var(--c-brand) 0%,
    rgba(255, 255, 255, 0) 6%
  );
}

.sw-bullet-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sw-bullet-body strong {
  font-size: var(--fs-sm);
  color: var(--c-brand);
  font-weight: 700;
  transition: all 0.35s ease-in-out;
}

.sw-bullet-row:hover .sw-bullet-body strong {
  color: var(--c-brand-hover);
}

.sw-bullet-body span {
  font-size: var(--fs-xs);
  color: var(--c-divider);
  line-height: 1.7;
}

/* ---- 可開發範例｜各產業 APP 開發解決方案 ---- */
.sw-secure {
  position: relative;
  padding: 19.7916vw 0 110px;
  color: var(--c-text-2);
  background-image: url(../../img/app-dev-bg.png);
  background-position: top left;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

@media (max-width: 991px) {
  .sw-secure {
    padding: 0 0 110px;
  }
}

.sw-secure-head {
  text-align: center;
  margin-bottom: 40px;
}

.sw-secure-title .accent {
  color: var(--c-brand);
}

.sw-secure-sub {
  font-size: var(--fs-md);
  line-height: 1.5;
  color: #fff;
  margin: 0;
}

@media(max-width: 991px) {
  .sw-secure-sub {
    color: #000;
  }
}

@media(max-width: 575.98px) {
  .sw-secure-sub {
    font-size: var(--fs-sm);
  }
}

/* ---- 可開發範例：產業卡片網格（3 欄，每卡＝圖示＋標題＋功能標籤） ---- */
#app_card_list_block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 單張產業卡（玻璃白底 + 細框 + 陰影，對齊 Figma） */
.app_card_list {
  background: rgba(255, 255, 255, 0.55);
  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) {
  .app_card_list {
    padding: 10px 15px;
  }
}

.app_card_list:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card-strong);
}

/* 卡片標題列：圖示徽章 + 產業名稱 */
.app_card_list_title_block {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

@media (max-width: 767px) {
  .app_card_list_title_block {
    padding-right: 30px;
  }
}

.app_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: #E8E8E8;
  overflow: hidden;
}

@media (max-width: 575px) {
  .app_card_list_icon_block {
    width: 26px;
    height: 26px;
  }
}

.app_card_list_icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.app_card_list_title {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.app_card_list_mobile_btn {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
  display: none;
}

@media (max-width: 767px) {
  .app_card_list_mobile_btn {
    display: block;
  }
}

.app_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);
}

.app_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);
}

.app_card_list.open .app_card_list_mobile_btn::before{
  transform: translate(0%, -50%) rotate(-45deg);
}

.app_card_list.open .app_card_list_mobile_btn::after{
  transform: translate(0%, -50%) rotate(45deg);
}

/* 功能標籤群（自動換行） */
.app_card_list_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .app_card_list_chips {
    display: none;
  }

  .app_card_list.open .app_card_list_chips {
    display: flex;
  }
}

.app_card_chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: #6b6b6b;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  #app_card_list_block {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 767px) {
  #app_card_list_block {
    grid-template-columns: 1fr;
  }
}

.app_card_bottom_btn_block {
    text-align: center;
    padding-top: 65px;
}

.app_card_bottom_btn {
    display: inline-flex;
    padding: 12px 46px;
    background: linear-gradient(90deg, var(--c-brand) 22%, #EA9604 100%);
    gap: 20px;
    color: #fff;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.app_card_bottom_btn:hover{
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   技術架構｜Android 與 iOS 雙平台開發（深色帶 + 手機情境底圖 + 4 玻璃卡）
   ============================================================ */
.sw-tech {
  position: relative;
  padding: 90px 0 100px;
  background-color: #0d0d0d;
  background-image: url(../../img/app-tech-bg.png);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--c-on-dark);
  overflow: hidden;
}

.sw-tech-head {
  text-align: center;
  margin-bottom: 48px;
}

.sw-tech-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--c-on-dark);
  margin: 0 0 18px;
  letter-spacing: 1px;
}

.sw-tech-title .accent {
  color: var(--c-brand);
}

.sw-tech-sub {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--c-on-dark-muted);
  margin: 0;
}

/* 4 卡 2×2 置中（玻璃擬物深色卡） */
.sw-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}

.sw-tech-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.sw-tech-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(237, 109, 31, 0.5);
}

.sw-tech-card-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(255, 255, 255, 0.08); */
  border-radius: 10px;
}

.sw-tech-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sw-tech-card-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--c-on-dark);
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.sw-tech-card-desc {
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--c-on-dark-muted);
  margin: 0;
}

@media (max-width: 767px) {
  .sw-tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
   開發流程｜從想法到上架，全程陪伴（7 步驟橫向時間軸）
   ============================================================ */
.sw-flow {
  padding: 90px 0;
}

.sw-flow-head {
  text-align: center;
  margin-bottom: 56px;
}

.sw-flow-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--c-text-2);
  margin: 0 0 18px;
  letter-spacing: 1px;
}

.sw-flow-title .accent {
  color: var(--c-brand);
}

.sw-flow-sub {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--c-grey-dark);
  margin: 0;
}

/* 步驟列：7 等分，圓點以一條水平線串接 */
.sw-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  position: relative;
}

/* 串接線：落在圓點垂直中心，置於圓點後方 */
.sw-flow-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 7.14%;
  right: 7.14%;
  height: 2px;
  background: var(--c-brand);
  opacity: 0.5;
  z-index: 0;
}

.sw-flow-step {
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

/* 序號橘色圓點 */
.sw-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-on-dark);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  box-shadow: 0 6px 14px rgba(237, 109, 31, 0.35);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.sw-flow-num::before {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  position: absolute;
  background-color: var(--c-brand);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: '';
  z-index: -1;
}

.sw-flow-step-title {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
  color: var(--c-text-2);
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.sw-flow-step-desc {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--c-grey-dark);
  margin: 0;
}

/* 平板：改 4 欄網格、隱藏長串接線 */
@media (max-width: 991.98px) {
  .sw-flow-steps {
    flex-wrap: wrap;
    gap: 36px 0;
  }
  .sw-flow-steps::before {
    display: none;
  }
  .sw-flow-step {
    flex: 0 0 25%;
  }
}

@media (max-width: 575px) {
  .sw-flow-step {
    flex: 0 0 50%;
  }
}

/* ============================================================
   APP 開發問題 Q&A（深淺手風琴 + 關鍵字搜尋）
   ============================================================ */
.sw-qa {
  padding: 90px 0 390px;
  position: relative;
}

@media(max-width: 1199px) {
  .sw-qa {
    padding-bottom: 310px;
  }
}

@media(max-width: 991px) {
  .sw-qa {
    padding-bottom: 230px;
  }
}

.sw-qa-bg {
  background: rgba(255,255,255,0.4);
  border-radius: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 45px 30px;
  box-shadow: 0 6px 14px #ccc;
}

.sw-qa-block {
  width: 100%;
  height: 1050px;
  overflow-y: auto;
}

.sw-qa-block::-webkit-scrollbar {
  width: 5px;
}
 
.sw-qa-block::-webkit-scrollbar-track {
  background: #ddd;
}
 
.sw-qa-block::-webkit-scrollbar-thumb {
  background: #666; 
}

.sw-qa-head {
  text-align: center;
  margin-bottom: 32px;
}

.sw-qa-eyebrow {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: 2px;
  margin: 0 0 8px;
  display: inline-block;
}

.sw-qa-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  font-size: 28px;
  color: var(--c-text-2);
  margin: 0 0 16px;
  letter-spacing: 1px;
}

.sw-qa-sub {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--c-grey-dark);
  margin: 0;
}

/* 關鍵字搜尋輸入框（膠囊狀，含放大鏡圖示） */
.sw-qa-search {
  max-width: 720px;
  margin: 0 auto 36px;
}

.sw-qa-search input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 1px solid var(--c-input-border);
  border-radius: var(--r-full);
  background: var(--c-bg-white)
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237d7d7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E")
    no-repeat 20px center;
  font-size: var(--fs-sm);
  color: var(--c-text);
  box-shadow: var(--sh-input);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sw-qa-search input:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(237, 109, 31, 0.15);
}

.sw-qa-search input::placeholder {
  color: var(--c-placeholder);
}

/* 列表置中限寬 */
.sw-qa-list {
  max-width: 960px;
  margin: 0 auto;
}