/* 容器外觀 */
.compare { border-radius: 16px; }

/* 標題下水平線（與設計稿一致的細灰線） */
.title-line { margin: .25rem 0 0; border: 0; border-top: 1px solid #e2e6e9; }

/* 中央 VS 圓章 */
.vs-circle{
  width: 104px; height: 104px; border-radius: 50%;
  background: #fff; border: 8px solid #ecf3f1; color: #1f6b60;
  font-weight: 800; font-size: 34px; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(16,59,55,.10);
}

/* 單列：三欄（左/中/右），左右等寬；中間固定 64px 放箭頭 */
.pair-row{
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 16px;
  align-items: stretch;
}

/* 左右通用卡片 */
.item{
  border-radius: 14px;
  padding: 18px;
  min-height: 96px;
  display: flex; align-items: center; gap: 12px;
}

/* 左（使用前） */
.before{
  background: #f5f5f5;
  color: #616f76;
  border: 1px dashed rgba(0,0,0,.05);
}
.badge-x{
  width: 26px; height: 26px; border-radius: 50%;
  background:#e9efed; border:1px solid #d9e3e0; color:#a5b4af;
  display:grid; place-items:center; font-weight:700; flex:0 0 auto;
}

/* 右（使用後）綠卡片：大圓角 + 柔和陰影（與設計相同） */
.after{
  background: #136a5d; color: #fff;
  box-shadow: 0 10px 28px rgba(15,67,59,.22);
}
.after .ico{
  width: 48px; height: 48px; border-radius: 12px; background: #0e5a4f;
  display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}
.after .ico .fa{ font-size: 20px; color: #e8f7f3; }
.after .text b{ display:block; margin-bottom: .25rem; }

/* 中間箭頭（整條＋箭頭尖）— 每列等高，自然與左右對齊 */
.arrow{
  width: 14px; height: 100%; border-radius: 8px;
  margin: auto; position: relative;
  background: linear-gradient(180deg, #eaf3f1 0%, #d9ebe7 100%);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}
.arrow::after{
  content: ""; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  border-left: 22px solid #d9ebe7;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* ===== RWD：手機雙欄迷你版（≤768px） ===== */
@media (max-width: 767.98px){

  /* 1) 隱藏桌機版的中央 VS 與中欄箭頭 */
  .vs-circle { display: none !important; }
  .pair-row .arrow { display: none !important; }
/* 標題行：左使用前、右使用後並排 */
  .row.align-items-center.mb-3,
  .row.align-items-center.mb-4 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    text-align: center;
  }
  .row.align-items-center.mb-3 .col-12.col-lg-5,
  .row.align-items-center.mb-4 .col-12.col-lg-5 {
    width: 100% !important;
    flex: none !important;
  }


  /* 2) 每列改成「兩欄」：左使用前、右使用後 */
  .pair-row{
    position: relative;
    grid-template-columns: 1fr 1fr !important; /* 左文｜右卡 */
    gap: 10px !important;
    align-items: stretch;
  }

  /* 3) 在兩欄之間畫一個小型右向箭頭（不需改 HTML） */
  .pair-row::after{
    content:"";
    position:absolute;
    left: calc(50% - 5px);           /* 置中，略往左以露出箭頭 */
    top: 50%;
    transform: translateY(-50%);     /* 垂直置中 */
    border-left: 10px solid #d9ebe7; /* 箭頭朝右 */
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    pointer-events: none;
  }

  /* 4) 迷你版視覺微調：縮小 padding、降低最小高、精緻陰影 */
  .item{
    padding: 12px !important;
    min-height: 72px !important;
    border-radius: 12px !important;
  }
  .before{
    background:#f6f8f8 !important;
    color:#617078 !important;
    border:1px dashed rgba(0,0,0,.05) !important;
  }
  .before .txt{ font-size: 14px; line-height: 1.5; }
  .badge-x{ width:22px; height:22px; font-size:13px; }

  .after{
    border-radius: 14px !important;
    box-shadow: 0 6px 16px rgba(15,67,59,.18) !important;
  }
  .after .ico{
    width: 38px; height: 38px; border-radius: 10px;
  }
  .after .ico .fa{ font-size: 18px; }
  .after .text b{ font-size: 15px; margin-bottom: .15rem; }

  /* 5) 標題與水平線：保留左右標題，縮小間距 */
  .title-line{
    display:block !important;
    margin:.25rem 0 .75rem !important;
    border-top:1px solid #e2e6e9 !important;
  }
}

.top-tabs {
    display: flex;
    justify-content: center; /* 整組置中 */
  }
  
  .tabs-inner {
    display: flex;
    gap: 60px;   /* Tabs 間距 */
  }
  
  .tab-item {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a8b86;
    font-size: 16px;
    padding: 6px 2px;
    transition: color .2s ease;
  }
  .tab-item .fa { font-size: 18px; }
  .tab-item:hover { color: #355e57; }
  .tab-item.active {
    color: #0f5e54;
    font-weight: 600;
  }
  
  /* RWD 微調 */
  @media (max-width: 767.98px) {
    .page-title { font-size: 22px; }
    .tabs-inner { gap: 28px; }
    .tab-item { font-size: 15px; }
  }