/* ✅ Wix 等級極致寬度，左右貼邊顯示 */

@media (max-width: 768px) {
  body,
  .elementor-container,
  .elementor-widget-wrap,
  .elementor-section,
  .elementor-column {
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
  }

  /* 文字設定保持舒適可讀 */
  p, li {
    font-size: 15px !important;
    line-height: 1.8;
    letter-spacing: 0.5px;
  }

  h1, h2, h3 {
    font-size: 18px !important;
    letter-spacing: 0.4px;
    line-height: 1.4;
  }

  img {
    margin-bottom: 14px;
    max-width: 100%;
    height: auto;
  }
}
/* 診斷：把容器畫出來看寬度是否占滿 */
.blog .site-main > .ast-row,
.archive .site-main > .ast-row,
.elementor-widget-posts .elementor-posts-container,
.wp-block-post-template { outline: 1px dashed rgba(0,0,0,.25); }

/* 若看到容器超窄，強制撐滿父層寬度 */
.blog .site-main > .ast-row,
.archive .site-main > .ast-row,
.elementor-widget-posts .elementor-posts-container,
.wp-block-post-template { width: 100% !important; }
#lihyaw-line-fab{
  position: fixed; right: 16px; bottom: 20px; z-index: 99999;
  display: inline-flex; align-items: center; gap: 8px;
  background: #06C755; color: #fff; text-decoration: none;
  padding: 12px 16px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
/* 讓文章卡片等高 */
.elementor-posts .elementor-post {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.elementor-posts .elementor-post__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.elementor-posts .elementor-post__excerpt {
  margin-top: auto;
}

/* 圖片固定比例 */
.elementor-posts .elementor-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* 移除虛線焦點框 */
.elementor-posts a:focus:not(:focus-visible) { 
  outline: none !important; 
}
/* 移除手機版文章列表左右的虛線框 */
.elementor-posts-container,
.elementor-post {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
/* 手機版：卡片內標題 + 內文 內縮 */
@media (max-width: 767px) {
  /* 標題內縮一點點 */
  .elementor-post__title,
  .elementor-post__title a {
    display: block;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* 內文再縮多一點 */
  .elementor-post__excerpt {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}