/* ============================================================
   文章內頁/列表 news_content + news_list（聯集保序）
   來源 style.css 行 4480-5351 + 文章 RWD(5714-5766,5768-5800)（純搬移，內容未改）
   ============================================================ */

/* ============================================================
   NEWS HERO（#sw-hero 大標題版型）
   與 service_host_page 共用同款 hero；樣式同步自 css/pages/service_detail.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: 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);
}

/* 方案介紹頁變體：主打標語整行改橘色強調（關鍵字維持粗體） */
.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 右側插圖：覆寫共用 .news-hero-img，靠右垂直置中、落在橘色光暈上 ---- */
#sw-hero .news-hero-img {
  top: 60%;
  bottom: auto;
  right: 0;
  transform: translateY(-50%);
  width: clamp(380px, 42vw, 868px);
  height: auto;
  z-index: 2;
}

/* 平板以下：插圖回到右下當淡色襯底，讓上方大標與麵包屑維持清晰 */
@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-headline {
    margin: 24px 0 0;
  }
}

/* ---- Hero 淺底版面（斜紋底紋 + 右側橘色光暈 + 大標題/橘色副標） ---- */
#sw-hero {
  background: url(../../img/sw-hero-bg.png) top center no-repeat;
  background-size: contain;
  overflow: hidden;
  padding-bottom: 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;
}

/* 副標：橘色英文副標 ＋ 品牌徽章圖示 */
#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-breadcrumb {
  margin-top: 80px;
}
@media (max-width: 991.98px) {
  #sw-hero .news-breadcrumb {
    margin-top: 150px;
  }
  #sw-hero .news-hero-title.sw-hero-uiux {
    margin: 6px 0 0;
    gap: 7px;
  }
}
@media (max-width: 575px) {
  #sw-hero .news-breadcrumb {
    margin-top: 215px;
  }
}
/* 主打標語：關鍵字改橘色、其餘深灰 */
#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 */
#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;
  }
}

/* === 3 欄版型：左 sidebar / 中 article / 右 toc === */
.news-detail {
  background: var(--c-bg-page);
  padding: 40px 0 280px;
  position: relative;
}

@media(max-width: 1199px) {
  .news-detail {
    padding-bottom: 200px;
  }
}

@media(max-width: 991px) {
  .news-detail {
    padding-bottom: 120px;
  }
}

.news-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr) 164px;
  gap: 40px 145px;
  align-items: start;
}

.news-detail .news-layout {
  gap: 40px 50px;
}

.news-sidebar {
  grid-column: 1;
  grid-row: 1;
}

.article-column {
  grid-column: 2;
  grid-row: 1;
}

.news-toc {
  grid-column: 3;
  grid-row: 1;
}

/* === 文章卡片 === */
.news-article {
  background: var(--c-bg-white);
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.article-header {
  margin-bottom: 16px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* 描邊 chip：灰邊框 + 灰字，非橘色實心 */
.article-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: transparent;
  border: 1px solid var(--c-grey-mid);
  color: var(--c-grey-dark);
  border-radius: 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.article-date {
  color: var(--c-grey-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: var(--fs-sm);
}

.article-title {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 1px;
  color: var(--c-grey-dark);
  line-height: 1.4;
  margin: 0;
}

/* 標籤列：上下細灰線 */
.article-tags {
  list-style: none;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--c-grey-mid);
  border-bottom: 1px solid var(--c-grey-mid);
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.article-tags li {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-sm);
  color: var(--c-grey-mid);
}

/* 封面圖 */
.article-cover {
  margin: 24px 0 32px;
  border-radius: 16px;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* 內文段落 */
.article-body {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-body-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 段落標題：整圈灰色描邊圓角框（高 64）＋ 橘色小圓點，符合 Figma node 1413-27694 */
.article-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 64px;
  padding: 12px 24px 12px 15px;
  border: 1px solid var(--c-grey-mid);
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--fs-md);
  color: var(--c-placeholder);
  margin: 0;
  /* 捲動定位時預留固定 Header 高度，避免段落標題被主選單遮住 */
  scroll-margin-top: 130px;
}

.article-heading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-brand);
  flex-shrink: 0;
}

.article-body-text {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-sm);
  line-height: 32px;
  color: var(--c-grey-dark);
  margin: 0;
  padding: 0;
}

/* === 文章下方相關 tag pills === */
.article-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 60px 0;
}

.article-relateds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-related-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-brand);
  color: var(--c-brand);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-xs);
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s;
}

.article-related-pill:hover,
.article-related-pill.is-active {
  background: var(--c-brand);
  color: var(--c-text-white);
}

/* === 左：sidebar（搜尋 + 分類） === */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px 60px;
}

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 217, 217, 0.2);
  border-radius: 65px;
  padding: 10px 16px 10px 16px;
  height: 64px;
  box-sizing: border-box;
}

.sidebar-search input {
  width: calc(100% - 44px);
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  color: var(--c-text);
  padding: 0;
}

.sidebar-search input::placeholder {
  color: var(--c-grey-mid);
}

.sidebar-search button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--c-bg-white);
  color: var(--c-grey-dark);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.25s,
    color 0.25s;
}

.sidebar-search button:hover {
  background: var(--c-brand);
  color: var(--c-on-dark);
}

.sidebar-search svg {
  width: 22px;
  height: 22px;
}

/* 分類清單 */
.sidebar-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li:last-child  {
  border-bottom: 1px dashed var(--c-text-2);
}

.sidebar-categories li{
  border-top: 1px dashed var(--c-text-2);
}

.sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 35px;
  color: var(--c-text-2);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-md);
  letter-spacing: -0.5px;
  transition: color 0.25s;
  min-height: 56px;
}

.sidebar-categories a:hover {
  color: var(--c-brand);
}

/* 較淡灰（沒 count 的次級） */
.sidebar-categories li.is-muted a {
  color: var(--c-placeholder);
  padding-left: 50px;
}

/* 橘色重點（沒 count 但醒目） */
.sidebar-categories li.is-accent a {
  color: var(--c-brand);
  padding-left: 50px;
}

/* 主 active：橘色漸層大塊、白字、無上下分隔線 */
.sidebar-categories li.is-active {
  border: 0;
}

.sidebar-categories li.is-active + li {
  border-top: 0;
}

.sidebar-categories li.is-active a {
  background: linear-gradient(
    to right,
    var(--c-brand-hover) 60%,
    var(--c-yellow)
  );
  color: var(--c-on-dark);
  border-radius: 10px;
  min-height: 88px;
}

.cat-count {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-grey-mid);
  color: var(--c-grey-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.sidebar-categories li.is-active .cat-count {
  border: 1px solid var(--c-on-dark);
  color: var(--c-on-dark);
}

/* === 右：TOC 目次（獨立欄、sticky；左側橘色漸層直線） === */
/* top 需大於固定 Header 高度（topbar 36 + 主列 78 ≒ 114），避免捲動時與主選單重疊 */
.news-toc {
  position: sticky;
  top: 130px;
}

/* 容器左側預留漸層線空間；以 ::after 於最左畫線（橘 → 透明），符合 Figma node 1413-27814 */
.news-toc-inner {
  position: relative;
  padding-left: 36px;
}

.news-toc-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--c-brand) 0%,
    rgba(243, 152, 0, 0) 100%
  );
  border-radius: 2px;
}

/* 「目次」標題：橘色，與下方圓點左對齊 */
.news-toc-title {
  color: var(--c-brand);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: var(--fs-md);
  margin: 0 0 36px;
  padding-left: 0;
  letter-spacing: -0.5px;
}

.news-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 991px) {
  .news-toc-title {
    margin: 0 0 16px;
  }
  .news-toc ol {
    gap: 8px
  }
}

/* li 自己加左內距讓 ::before 圓點佔位（圓點與「目次」標題左對齊） */
.news-toc li {
  position: relative;
  padding-left: 22px;
}

.news-toc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-grey-light);
}

@media (max-width: 991px) {
  .news-toc li::before {
    top: 15px;
    transform: translateY(-50%);
  }
}

.news-toc li.is-active::before {
  background: var(--c-brand);
}

.news-toc a {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-base);
  color: var(--c-placeholder);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.25s;
}

@media (max-width: 991px) {
  .news-toc a {
    font-size: var(--fs-sm)
  }
}
.news-toc a:hover {
  color: var(--c-brand);
}

.news-toc li.is-active a {
  color: var(--c-text-2);
  font-weight: 500;
}

/* === Read more 相關文章 === */
.news-related {
  background: var(--c-bg-page);
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
  position: relative;
}

/* 區塊只與「內容區塊」（中欄）同寬、同左緣對齊。
   下列位移＝側欄寬 + 欄距 / 目次寬 + 欄距，需與 .news-layout 的
   grid-template-columns 及 gap 對應（見上方 .news-layout 與其 RWD）。 */
@media (min-width: 1200px) {
  .news-related-head,
  .news-related-wrap {
    margin-left: 336px;
    /* 側欄 286 + 欄距 50 */
    margin-right: 214px;
    /* 目次 164 + 欄距 50 */
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .news-related-head,
  .news-related-wrap {
    margin-left: 264px;
    /* 側欄 240 + 欄距 24 */
    margin-right: 164px;
    /* 目次 140 + 欄距 24 */
  }
}

.news-related-head {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-grey-light);
}

.news-related-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 32px);
  margin: 0;
  color: var(--c-grey-dark);
  letter-spacing: 1px;
}

/* 包覆 swiper + 左右絕對定位箭頭 */
.news-related-wrap {
  position: relative;
  padding: 0 80px;
}

.news-related-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--c-bg-white);
  border: 1px solid var(--c-grey-light);
  color: var(--c-grey-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.news-related-arrow svg {
  width: 20px;
  height: 20px;
}

.news-related-arrow:hover {
  background: var(--c-brand);
  color: var(--c-on-dark);
  border-color: var(--c-brand);
}

.news-related-prev {
  left: 0;
}

.news-related-next {
  right: 0;
}

.news-related-swiper {
  overflow: hidden;
}

/* 卡片：無白底外框，圖片＋文字直接置於頁面底色上（依畫面 Figma node 1413-27712） */
.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-card-cover {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 422 / 234;
  border-radius: 16px;
}

.related-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.related-card:hover .related-card-cover img {
  transform: scale(1.05);
}

/* 圖片下方內容：與圖片左右切齊（無白底內距），上方留 20px */
.related-card-body {
  padding: 20px 0 0;
}

.related-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

/* 關鍵字列：灰字 #關鍵字（依畫面置於標題上方） */
.related-card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}

.related-card-tags li {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-sm);
  color: var(--c-grey-mid);
}

/* 卡片內分類 chip = 橘色漸層（不同於文章卡內描邊版） */
.related-card-meta .article-category {
  background: linear-gradient(to right, var(--c-brand-hover) 60%, var(--c-yellow));
  border-color: transparent;
  color: var(--c-on-dark);
  font-size: var(--fs-sm);
  padding: 6px 18px;
}

.related-card-meta time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--c-grey-mid);
}

/* 卡片內 tag 列：不要上下細線 */
.article-tags--inline {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  gap: 12px;
}

.article-tags--inline li {
  color: var(--c-grey-mid);
}

.related-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: var(--fs-md);
  color: var(--c-bg-black);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   MARK: News List Page (news_list.html)
   ============================================================ */

/* 2 欄版型：sidebar + 主內容（無 TOC） */
.news-layout--list {
  grid-template-columns: 286px minmax(0, 1fr);
}

.news-layout--list .news-sidebar {
  grid-column: 1;
  grid-row: 1;
}

.news-layout--list .news-list-main {
  grid-column: 2;
  grid-row: 1;
}

/* 分類「最新消息」active 內含次行「所有文章」 */
.sidebar-categories .cat-sub {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: -0.3px;
  margin-top: 2px;
  opacity: 0.85;
}

.sidebar-categories li.is-active .cat-name {
  line-height: 1.3;
}

/* 側欄 tag 雲 */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-brand);
  color: var(--c-grey-dark);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-xs);
  line-height: 1;
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.sidebar-tag:hover,
.sidebar-tag.is-active {
  background: var(--c-brand);
  color: var(--c-text-white);
}

/* 主內容欄：grid + pagination */
.news-list-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 2 欄卡片網格 */
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
}

/* 單張新聞卡 */
.news-card {
  background: var(--c-bg-white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 24px;
  gap: 24px;
}

.news-card-cover {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 357 / 275;
}

@media (max-width: 575px) {
  .news-card-cover {
    display: none;
  }
}

.news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.news-card:hover .news-card-cover img {
  transform: scale(1.05);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* 卡片內分類 chip = 橘色漸層（覆寫 .article-category 預設描邊版） */
.news-card-meta .article-category {
  background: linear-gradient(
    to right,
    var(--c-brand-hover) 60%,
    var(--c-yellow)
  );
  border-color: transparent;
  color: var(--c-on-dark);
  font-size: var(--fs-sm);
  padding: 6px 34px;
}

@media(max-width: 575px) {
  .news-card-meta .article-category {
    padding: 6px 20px;
  }
}

.news-card-meta time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--c-grey-mid);
}

.news-card-title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--c-text-2);
  line-height: 1.5;
  letter-spacing: 0.5px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media(max-width: 767px) {
  .news-card-title {
    display: block;
  }
}

.news-card-excerpt {
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  color: var(--c-placeholder);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

@media (max-width: 575px) {
  .news-card-foot {
    display: none;
  }
}

/* 「了解更多」CTA pill */
.news-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 40px;
  color: var(--c-grey-dark);
  border-radius: 999px;
  border: 1px solid var(--c-grey-mid);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 1px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

@media (max-width: 575px) {
  .news-card-cta {
    font-size: 13px;
    padding: 13px 12px;
  }
}

.news-card:hover .news-card-cta {
  transform: translateX(2px);
  box-shadow: 0 6px 16px rgba(243, 152, 0, 0.3);
}

/* CTA 右側小箭頭：CSS 純三角 */
.sv-icon-news-btn {
  mask-image: url('../../img/sv-icon-news-btn.svg');
}

/* 分頁列 .news-pagination 已抽為全域元件 css/components/pagination.css（全站列表頁共用） */

/* === RWD === */
@media (max-width: 1199.98px) {
  .news-layout {
    gap: 24px;
  }

  .sidebar-categories a {
    padding: 12px 20px;
    font-size: var(--fs-base);
  }
}

@media (max-width: 991.98px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar,
  .article-column,
  .news-toc {
    grid-column: 1;
    grid-row: auto;
  }
  
  .article-column {
    order: 2;
  }

  .news-sidebar {
    order: 0;
  }

  .news-toc {
    order: 1;
    position: static;
  }

  /* list 頁：sidebar 在主內容上方、卡片網格仍維持 2 欄 */
  .news-layout--list .news-sidebar {
    grid-column: 1;
    order: 1;
    grid-row: auto;
  }

  .news-layout--list .news-list-main {
    grid-column: 1;
    order: 2;
    grid-row: auto;
  }

  .sidebar-tags {
    margin-bottom: 16px;
  }
}
@media (max-width: 767.98px) {
  .news-article {
    padding: 24px;
    border-radius: 24px;
  }

  .article-title {
    font-size: var(--fs-md);
  }

  .news-related-wrap {
    padding: 0 40px;
  }

  .news-related-arrow {
    width: 44px;
    height: 44px;
  }

  /* list 頁：卡片網格收成單欄 */
  .news-card-grid {
    gap: 35px 30px;
  }

  .article-divider {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .article-divider .news-card-cta {
    margin-left: auto;
  }
}

@media (max-width: 575.98px) {
  .news-card-grid {
    gap: 20px;
  }
}