/* ==========================================================================
   伴寵一程 - 寵物資訊 / 文章系統樣式庫 (News & Article Common Style)
   包含：文章列表頁 (/news/) + 文章詳情頁 (/news/*/)
   ========================================================================== */

/* ==========================================
   一、文章列表頁樣式 (/news/)
   ========================================== */

/* === 頁面基礎與字體 === */
.news-page {
  background: #fbfdfd;
  color: #0e3f58;
}
.news-page h1,
.news-page h2,
.news-page h3 {
  font-family: var(--title-font), "Noto Sans TC", sans-serif;
  color: #0e3f58;
}

/* === 模塊一：Hero 區塊（天地上下間距協調統一，消除手機端過大留白） === */
.news-index-hero {
  position: relative;
  background: radial-gradient(circle at 82% 18%, rgba(37, 188, 181, 0.12), transparent 22rem), linear-gradient(180deg, #ffffff 0%, #f7fcfd 100%);
  padding: 56px 0 26px;
  overflow: hidden;
}
.news-index-hero::after {
  display: none;
}
.news-index-hero .about-hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.news-index-hero .about-hero__copy {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 0;
}
.news-index-hero .about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 16px;
  padding: 6px 16px;
  background: rgba(22, 140, 189, 0.08);
  border: 1px solid rgba(22, 140, 189, 0.18);
  border-radius: 999px;
  color: #0e5d79;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.news-index-hero .about-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ad9e;
}
.news-index-hero h1 {
  margin: 0 auto;
  color: #0e3f58;
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.news-index-hero .about-hero__lead {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.85;
  color: #465861;
}
.news-index-hero .about-hero__lead p {
  margin: 0;
}

/* 浮動小動物裝飾 */
.news-index-hero .about-hero__decor {
  pointer-events: none;
}
.news-index-hero .about-hero__animal {
  position: absolute;
  color: rgba(22, 140, 189, 0.16);
  font-size: 38px;
  transition: transform 0.3s ease;
}

/* === 模塊二：文章網格區 === */
.news-page .blog2 {
  padding-top: 36px;
  padding-bottom: 90px;
}
.news-page .blog2-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(183, 211, 223, 0.65);
  box-shadow: 0 8px 24px rgba(14, 63, 88, 0.05);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.news-page .blog2-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 140, 189, 0.5);
  box-shadow: 0 16px 36px rgba(14, 63, 88, 0.12);
}
.news-page .blog2-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: #eef7f9;
}
.news-page .blog2-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}
.news-page .blog2-card:hover .blog2-card__thumb img {
  transform: scale(1.05);
}
.news-page .blog2-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  background: #ffffff;
  border-radius: 0;
}
.news-page .blog2-card__content-tipsitems {
  display: inline-flex;
  align-self: center;
  padding: 5px 13px;
  background: #edf8f9;
  border: 1px solid rgba(22, 140, 189, 0.18);
  border-radius: 999px;
  color: #0c6a82;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.news-page .blog2-card__content-title {
  margin: 0;
}
.news-page .blog2-card__content-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0e3f58;
  font-family: var(--title-font), "Noto Sans TC", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}
.news-page .blog2-card__content-title a:hover {
  color: #168cbd;
}
.news-page .blog2-card__content-meta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none !important;
  border-top: none !important;
}
.news-page .blog2-card__content-meta-item {
  color: #637782;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-page .blog2-card__content-meta-item i {
  color: #168cbd;
  font-size: 13px;
}

/* === 加載更多按鈕（置於網格正下方） === */
.news-load-more-row {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.news-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  padding: 14px 34px;
  border: 1.5px solid #8ecfda;
  border-radius: 999px;
  color: #0c5f80;
  background: #ffffff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 63, 88, 0.08);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.news-load-more:hover,
.news-load-more:focus-visible {
  color: #ffffff;
  background: #168cbd;
  border-color: #168cbd;
  box-shadow: 0 14px 28px rgba(22, 140, 189, 0.25);
  transform: translateY(-2px);
}
.news-load-more:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(22, 140, 189, 0.18);
}
.news-load-more:focus-visible {
  outline: 3px solid rgba(37, 188, 181, 0.35);
  outline-offset: 3px;
}
.news-load-more i {
  font-size: 13px;
  transition: transform 0.2s ease;
}
.news-load-more:hover i {
  transform: translateY(2px);
}
.news-load-more.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.news-load-more.is-loading i {
  animation: news-spin 0.75s linear infinite;
}
.news-load-more.is-finished {
  background: #f1f6f8;
  color: #7b919c;
  border-color: #d1e2e7;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
@keyframes news-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 卡片淡入動效 */
.news-card--new {
  animation: news-card-reveal 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes news-card-reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 響應式：iPad & 平板端 (768px - 1199.98px) === */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .news-index-hero {
    padding: 50px 20px 22px;
  }
  .news-index-hero h1 {
    font-size: clamp(32px, 4.4vw, 44px);
  }
  .news-page .blog2 {
    padding-top: 28px;
    padding-bottom: 70px;
  }
  .news-load-more-row {
    margin-top: 40px;
  }
}

/* === 響應式：手機端優先優化 (< 768px) === */
@media (max-width: 767.98px) {
  /* 模塊一：天地上下位置統一對齊，消除原先 126px 突兀留白 */
  .news-index-hero {
    padding: 60px 16px 14px;
  }
  .news-index-hero .about-hero__center {
    min-height: auto;
  }
  .news-index-hero .about-eyebrow {
    font-size: 12.5px;
    padding: 5px 13px;
    margin-bottom: 12px;
  }
  .news-index-hero h1 {
    font-size: clamp(23px, 6.2vw, 28px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    max-width: 100%;
    word-break: break-word;
  }
  .news-index-hero .about-hero__lead {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.75;
    padding: 0 4px;
  }
  .news-index-hero .about-hero__animal {
    font-size: 24px;
    opacity: 0.12;
  }
  .news-index-hero .about-hero__animal--paw-left {
    top: 8%;
    left: 2%;
  }
  .news-index-hero .about-hero__animal--paw-right {
    top: 10%;
    right: 2%;
  }

  /* 文章列表區域：緊湊銜接，首屏能直接看到文章內容 */
  .news-page .blog2 {
    padding-top: 14px;
    padding-bottom: 50px;
  }
  .news-page .blog2-card__content {
    padding: 18px 16px 18px;
  }
  .news-page .blog2-card__content-title {
    margin-top: 0;
  }
  .news-page .blog2-card__content-title a {
    font-size: 17.5px;
    line-height: 1.48;
  }
  .news-page .blog2-card__content-meta {
    padding-top: 14px;
    margin-top: auto;
    border: none !important;
    border-top: none !important;
  }
  .news-page .blog2-card__content-meta-item {
    font-size: 12.5px;
  }

  /* 加載更多按鈕：在手機端寬度舒適、易觸摸點擊 */
  .news-load-more-row {
    margin-top: 32px;
    padding: 0 12px;
  }
  .news-load-more {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    padding: 13px 20px;
    font-size: 15px;
  }
}

/* ==========================================
   二、文章詳情頁樣式 (/news/*/)
   ========================================== */

/* 新聞詳情頁全面升級樣式：對齊原版排版結構與伴寵一程品牌風格 */
.article-page {
  background: transparent;
  color: #384f57;
  font-family: inherit;
  line-height: 1.85;
}

/* 主視圖模塊：正常左右對齊，寬度與正文保持統一 */
.article-header {
  padding: 42px 0 0;
  background: transparent;
}
.article-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 36px;
  border-bottom: 1px solid #e7f0f3;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #7b939c;
}
.article-breadcrumb a {
  color: #55727d;
  text-decoration: none;
  transition: color .2s;
}
.article-breadcrumb a:hover {
  color: #168cbd;
}
.article-breadcrumb .separator {
  color: #b7ccd4;
}
.article-breadcrumb .current {
  color: #1a3541;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
}
.article-header h1 {
  margin: 0 0 14px;
  color: #0c3e53;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.article-header__date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7b939c;
  font-size: 14px;
  margin-bottom: 18px;
}

/* 導言摘要模塊：不設置寬度；PC端不限制行數；iPad及移動端限制3行並支援「顯示更多」按鈕 */
.article-lead-wrap {
  margin: 0 0 24px;
  width: 100%;
}
.article-lead-text {
  color: #4b6671;
  font-size: 16px;
  line-height: 1.85;
  position: relative;
}
/* PC端（大於1080px）：完全不限制行數，隱藏切換按鈕 */
.article-lead-toggle {
  display: none;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  color: #168cbd;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* iPad端及移動端（<= 1080px）：限制3行，超出時才顯示切換按鈕 */
@media (max-width: 1080px) {
  .article-lead-wrap.is-collapsible.is-collapsed .article-lead-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .article-lead-wrap.is-collapsible .article-lead-toggle {
    display: inline-block;
  }
}

/* 作者模塊：參考首圖簡約自然排版，無大外框與底色，融入頁面；姓名與頭像直鏈團隊頁面 */
.article-author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0 0;
  border-top: 1px solid #edf4f6;
  margin-top: 24px;
}
.article-author-avatar {
  flex: 0 0 52px;
  display: block;
}
.article-author-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e1f1f4;
  box-shadow: 0 2px 8px rgba(12, 95, 128, 0.08);
  transition: transform .2s ease;
}
.article-author-avatar:hover img {
  transform: scale(1.05);
}
.article-author-content {
  flex: 1;
  min-width: 0;
}
.article-author-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.article-author-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.article-author-name {
  font-size: 16.5px;
  font-weight: 800;
  color: #0c3e53;
  text-decoration: none;
  transition: color .2s;
}
.article-author-name:hover {
  color: #168cbd;
  text-decoration: underline;
}
.article-author-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: #eef8fa;
  color: #0c5f80;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #d2edf1;
}
.article-author-desc {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #657e88;
  line-height: 1.65;
}
.article-author-guide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: #55727d;
  margin-top: 4px;
}
.article-author-guide-prompt {
  font-weight: 600;
  color: #335967;
}
.article-author-guide-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.article-author-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #168cbd;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.article-author-guide-btn:hover {
  color: #0c5f80;
  text-decoration: underline;
}
@media (max-width: 640px) {
  .article-author-card {
    gap: 12px;
  }
  .article-author-avatar {
    flex: 0 0 44px;
  }
  .article-author-avatar img {
    width: 44px;
    height: 44px;
  }
  .article-author-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.55;
  }
  .article-author-guide {
    font-size: 12.5px;
  }
}

/* 封面橫幅視覺 */
.article-cover {
  margin: 28px 0 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(12, 62, 83, 0.06);
  max-height: 520px;
}
.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* 核心正文與側邊欄佈局：加大頁面寬度，主副寬度協調 */
.article-body-section {
  padding: 42px 0 80px;
}
.article-body-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

/* 正文樣式：標準化排版間隙系統（便於全站文章共用） */
.article-content {
  min-width: 0;
  font-size: 16px;
  line-height: 1.85;
  color: #384f57;
}

/* 一級大章節標題 H2：清晰的段落間距與章節頂部隔離 */
.article-content h2 {
  margin: 52px 0 18px;
  padding-top: 14px;
  border-top: 2px solid #dbecef;
  color: #0c3e53;
  font-size: clamp(23px, 2.3vw, 28px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}
.article-content > h2:first-of-type,
.article-summary-block h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* 二級子章節標題 H3：從屬層次分明 */
.article-content h3 {
  margin: 36px 0 14px;
  color: #0c5f80;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  scroll-margin-top: 100px;
}

/* 三級小標題 H4 */
.article-content h4 {
  margin: 24px 0 12px;
  color: #126b84;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

/* 常規正文段落間距 */
.article-content p {
  margin: 0 0 16px;
  color: #384f57;
  line-height: 1.85;
}
.article-content p:last-child {
  margin-bottom: 0;
}
.article-content strong {
  color: #0c3e53;
  font-weight: 700;
}

/* 重點摘要：無外框，直接文本清單，前方加粗標籤 */
.article-summary-block {
  margin: 0 0 36px;
  padding: 0;
}
.article-summary-list {
  list-style: disc;
  margin: 0 0 24px 22px;
  padding: 0;
}
.article-summary-list li {
  margin: 10px 0;
  padding-left: 4px;
  color: #3e5660;
  line-height: 1.8;
}
.article-summary-list strong {
  color: #0c3e53;
  font-weight: 800;
}

/* 引用塊 / 提醒塊：標準化統一間隔 */
.article-quote {
  margin: 22px 0 26px;
  padding: 15px 18px;
  border-left: 4px solid #168cbd;
  background: #f2f9fa;
  border-radius: 0 10px 10px 0;
  color: #35535e;
  font-size: 15px;
  line-height: 1.8;
}
.article-quote p {
  margin: 0;
}
.article-note {
  margin: 20px 0 26px;
  padding: 15px 18px;
  border-left: 4px solid #20b6b3;
  background: #f2fafb;
  border-radius: 0 10px 10px 0;
  color: #35535e;
  font-size: 15px;
  line-height: 1.8;
}
.article-note strong,
.article-note-label {
  color: #0c3e53;
  font-size: 15px;
  font-weight: 700;
}

/* 資料來源與說明區塊：無外框，純白背景，簡潔分隔，完全區隔於手風琴卡片 */
.article-sources-box {
  margin: 54px 0 10px;
  padding: 32px 0 0;
  border: none;
  border-top: 1px solid #e5edf0;
  background: transparent;
}
.article-sources-box h3 {
  margin: 0 0 18px;
  padding-bottom: 0;
  border-bottom: none;
  color: #0c3e53;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-sources-box h3 i {
  color: #168cbd;
  font-size: 18px;
}
.article-sources-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: source-counter;
}
.article-sources-list li {
  position: relative;
  padding-left: 28px;
  margin: 14px 0;
  color: #4b6671;
  font-size: 14.5px;
  line-height: 1.8;
}
.article-sources-list li::before {
  content: counter(source-counter) ".";
  counter-increment: source-counter;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #168cbd;
}
.article-sources-list .source-tag {
  font-weight: 700;
  color: #0c3e53;
  margin-right: 4px;
}
.article-sources-list a {
  color: #168cbd;
  text-decoration: none;
  border-bottom: 1px dashed #7fc5d7;
  padding-bottom: 1px;
  transition: all .2s ease;
  word-break: break-all;
}
.article-sources-list a:hover {
  color: #0c5f80;
  border-bottom-style: solid;
}
.article-sources-list a .ext-icon {
  font-size: 11px;
  margin-left: 4px;
  display: inline-block;
  opacity: .8;
}

/* 正文中插圖 */
.article-figure {
  margin: 30px 0;
  text-align: center;
}
.article-figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 6px 20px rgba(12, 62, 83, 0.05);
}
.article-figure figcaption {
  margin-top: 10px;
  color: #7b9299;
  font-size: 13px;
}

/* 聯絡資訊行 */
.contact-meta-row {
  margin: 6px 0 !important;
  font-size: 15px;
  color: #415a63;
}
.contact-meta-row strong {
  color: #0c3e53;
}
.contact-meta-row a {
  color: #168cbd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 列表點樣式：統一縮排與項目間距 */
.article-bullet-list {
  margin: 12px 0 22px 22px;
  padding: 0;
  list-style: disc;
}
.article-bullet-list li {
  margin: 8px 0;
  padding-left: 4px;
  color: #3e5660;
  line-height: 1.8;
}

/* 表格樣式 + 8行收縮 + 漸變遮罩 + 查看更多按鈕 */
.article-table-wrap {
  width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid #dbecef;
  border-radius: 12px;
  background: #ffffff;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.article-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
}
.article-table th, .article-table td {
  padding: 12px 14px;
  border-right: 1px solid #e7f0f2;
  border-bottom: 1px solid #e7f0f2;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
.article-table th {
  color: #0c3e53;
  background: #eef8fa;
  font-weight: 700;
  white-space: nowrap;
}
.article-table th:last-child, .article-table td:last-child {
  border-right: 0;
}
.article-table tr:last-child td {
  border-bottom: 0;
}

/* 收縮狀態：只顯示前8行，下方有白色透明漸變遮罩 */
.article-table-wrap.is-collapsible:not(.is-expanded) tbody tr:nth-child(n+9) {
  display: none;
}
.article-table-wrap.is-collapsible:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 90%);
  z-index: 2;
}
.article-table-action {
  display: flex;
  justify-content: center;
  margin: -10px 0 28px;
}
.article-table-action button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border: 1px solid #b5e4ec;
  border-radius: 999px;
  background: #ffffff;
  color: #0c5f80;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(12, 62, 83, 0.08);
  transition: all .2s ease;
}
.article-table-action button:hover {
  background: #eef8fa;
  border-color: #168cbd;
  color: #168cbd;
  transform: translateY(-1px);
}
.article-table-action button i {
  font-size: 12px;
  transition: transform .2s ease;
}
.article-table-action button[aria-expanded="true"] i {
  transform: rotate(180deg);
}



/* 常見問題 FAQ 區塊：標準化間距系統 */
.article-faq-section {
  margin-top: 48px;
}
.home-faq .service-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 24px;
}
.home-faq .service-faq-item {
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid #d9edf2;
  border-radius: 12px;
  background: #f8fcfd;
  padding: 0 24px;
  transition: border-color .2s, box-shadow .2s;
}
.home-faq .service-faq-item:hover {
  border-color: #b5e4ec;
  box-shadow: 0 4px 14px rgba(12, 95, 128, 0.05);
}
.home-faq .service-faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-weight: 700;
  color: #0c5f80;
  min-width: 0;
}
.home-faq .service-faq-item summary::-webkit-details-marker {
  display: none;
}
.home-faq .service-faq-item__title {
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
}
.home-faq .service-faq-item summary i {
  color: #168cbd;
  font-size: 16px;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.home-faq .service-faq-item[open] summary i {
  transform: rotate(45deg);
}
.home-faq .service-faq-item__answer {
  padding: 0 0 22px;
  color: #586b73;
  line-height: 1.85;
  font-size: 15px;
  min-width: 0;
}
.home-faq .service-faq-item__answer p {
  margin: 0 0 12px;
  padding: 0;
  color: inherit;
  line-height: inherit;
}
.home-faq .service-faq-item__answer p:last-child {
  margin-bottom: 0;
}
.home-faq .service-faq-item__answer a {
  color: #168cbd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 側邊欄：統一放置右側，吸頂跟隨 */
.article-sidebar {
  position: sticky;
  top: 35px;
  margin-top: -16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-box {
  background: #fbfdfe;
  border: 1px solid #dbecef;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(12, 62, 83, 0.03);
}
.sidebar-box h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf4f6;
  font-size: 17px;
  font-weight: 800;
  color: #0c3e53;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-box h3 i {
  color: #168cbd;
  font-size: 15px;
}
.sidebar-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar-toc-list li {
  margin: 7px 0;
}
.sidebar-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #4b6671;
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: all .2s ease;
}
.sidebar-toc-list a .toc-num {
  font-size: 12px;
  font-weight: 700;
  color: #168cbd;
  flex-shrink: 0;
}
.sidebar-toc-list a:hover {
  background: #eef8fa;
  color: #0c5f80;
  transform: translateX(3px);
}
.sidebar-contact-card {
  background: linear-gradient(145deg, #f0fafd, #e5f6f8);
  border: 1px solid #c5ebf1;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(12, 62, 83, 0.04);
}
.sidebar-contact-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0c3e53;
  line-height: 1.35;
}
.sidebar-contact-card p {
  font-size: 13.5px;
  color: #55727d;
  line-height: 1.65;
  margin: 0 0 16px;
}
.sidebar-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: #25d366;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all .2s ease;
}
.sidebar-whatsapp-btn:hover {
  background: #1da851;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}
.sidebar-whatsapp-btn i {
  font-size: 19px;
}

/* 側邊欄：獨立火化與收費入口卡片（優化背景色為淡雅青白質感，精緻層次） */
.sidebar-promo-card {
  display: block;
  background: linear-gradient(160deg, #f8fcfd, #f2f9fb);
  border: 1px solid #d4ebf0;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: #0c3e53;
  box-shadow: 0 4px 16px rgba(12, 62, 83, 0.03);
  transition: all .25s ease;
  position: relative;
}
.sidebar-promo-card:hover {
  border-color: #168cbd;
  background: linear-gradient(160deg, #ffffff, #eef7fa);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(12, 95, 128, 0.08);
}
.sidebar-promo-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.sidebar-promo-card__title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0c3e53;
  margin: 0;
  line-height: 1.35;
  transition: color .2s ease;
}
.sidebar-promo-card:hover .sidebar-promo-card__title {
  color: #168cbd;
}
.sidebar-promo-card__arrow {
  color: #8daab6;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform .2s ease, color .2s ease;
}
.sidebar-promo-card:hover .sidebar-promo-card__arrow {
  color: #168cbd;
  transform: translateX(4px);
}
.sidebar-promo-card__desc {
  font-size: 13px;
  color: #6a838d;
  line-height: 1.55;
  margin: 0;
}

/* 手機端懸浮膠囊目錄元件（採用伴寵一程品牌青綠/海洋藍色系） */
.mobile-floating-toc {
  display: none;
}
@media (max-width: 1080px) {
  /* 手機端隱藏麵包屑導航 */
  .article-breadcrumb {
    display: none !important;
  }

  .mobile-floating-toc {
    display: block;
    position: fixed;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 1050;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  /* 當在頁面頂部時隱藏懸浮膠囊，避免遮擋 Header 標誌與選單 */
  .mobile-floating-toc.is-hidden-top {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none !important;
  }
  .mobile-floating-toc.is-open {
    pointer-events: auto;
  }
  .mobile-toc-toggle-btn {
    pointer-events: auto;
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: #168fbd;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(22, 143, 189, 0.32), 0 2px 6px rgba(12, 62, 83, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .mobile-toc-toggle-btn:active {
    transform: scale(0.98);
    background: #1279a1;
  }
  .mobile-toc-toggle-btn .toc-icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
  }
  .mobile-toc-toggle-btn .toc-icon-group span {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
  }
  .mobile-toc-toggle-btn .toc-chevron {
    color: #ffffff;
    font-size: 13px;
    transition: transform .25s ease;
  }
  .mobile-floating-toc.is-open .mobile-toc-toggle-btn .toc-chevron {
    transform: rotate(180deg);
  }
  .mobile-toc-dropdown {
    display: none;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    margin-top: 8px;
    padding: 12px 10px 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #cce9ef;
    box-shadow: 0 16px 36px rgba(12, 62, 83, 0.14), 0 4px 12px rgba(12, 62, 83, 0.06);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }
  .mobile-floating-toc.is-open .mobile-toc-dropdown {
    display: block;
  }
  .mobile-toc-dropdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mobile-toc-dropdown-list li {
    margin: 3px 0;
  }
  .mobile-toc-dropdown-list a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #3e5b66;
    font-size: 13.5px;
    line-height: 1.5;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .2s, color .2s;
  }
  .mobile-toc-dropdown-list a .m-toc-num {
    font-size: 11.5px;
    font-weight: 700;
    color: #168cbd;
    flex-shrink: 0;
  }
  .mobile-toc-dropdown-list a:hover,
  .mobile-toc-dropdown-list a:active {
    background: #edf8fa;
    color: #0c5f80;
  }
  /* 在移動端隱藏重複的右側底部邊欄目錄盒子，避免冗餘 */
  .article-sidebar .sidebar-box {
    display: none;
  }
}

/* 響應式調整 */
@media (max-width: 1080px) {
  .article-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .article-sidebar {
    position: static;
    margin-top: 0;
    order: 2;
  }
}
@media (max-width: 768px) {
  .home-faq .service-faq-item {
    padding: 0 16px;
  }
  .home-faq .service-faq-item summary {
    padding: 18px 0;
  }
  .home-faq .service-faq-item__title {
    font-size: 16px;
  }
  .article-header {
    padding: 32px 0 24px;
  }
  .article-header h1 {
    font-size: 24px;
  }
  .article-body-section {
    padding: 28px 0 50px;
  }
  .article-body-container, .article-header__inner {
    padding: 0 16px;
  }
}

