/* Start custom CSS for html, class: .elementor-element-a16de8e *//* =========================================================
   台鋼保險小學堂｜六大保障介紹頁｜親民簡潔版
   字體：Noto Sans TC
   設計方向：非表格、非大量卡片、短頁面、低間距
   ========================================================= */

.tsg-six-page {
  --navy: #061f33;
  --navy-2: #0b304c;
  --gold: #f2a900;
  --gold-soft: #f7c85f;
  --paper: #fcfbf8;
  --cream: #f8f5ee;
  --light: #eef3f6;
  --white: #ffffff;
  --text: #172936;
  --muted: #60707b;
  --line: rgba(6,31,51,.13);
  color: var(--text);
  background: var(--paper);
  font-family: "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  font-weight: 500;
  line-height: 1.75;
}

.tsg-six-page,
.tsg-six-page * {
  box-sizing: border-box;
}

.tsg-six-page a {
  color: inherit;
  text-decoration: none;
}

.tsg-six-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* 共用主視覺：六頁皆顯示六大保障介紹 */
.tsg-six-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 48%, rgba(242,169,0,.16), transparent 24%),
    linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 100%);
}

.tsg-six-hero::after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -175px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(242,169,0,.28);
  border-radius: 50%;
}

.tsg-six-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1fr) 230px;
  align-items: center;
  gap: 36px;
  min-height: 255px;
  padding: 34px 0;
}

.tsg-six-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
  color: rgba(255,255,255,.60);
  font-size: 12px;
}

.tsg-six-hero h1 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(36px,4.4vw,52px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .02em;
}

.tsg-six-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.80);
  font-size: 16px;
  line-height: 1.75;
}

.tsg-six-hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 58px);
  justify-content: center;
  gap: 10px;
}

.tsg-six-hero__visual span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
}

.tsg-six-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 六頁固定頁籤 */
.tsg-six-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--white);
  background: rgba(6,31,51,.98);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.tsg-six-tabs__scroll {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.tsg-six-tabs__scroll::-webkit-scrollbar {
  display: none;
}

.tsg-six-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 142px;
  padding: 15px 17px;
  color: rgba(255,255,255,.70) !important;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.tsg-six-tab::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
}

.tsg-six-tab:hover,
.tsg-six-tab.is-active {
  color: var(--white) !important;
  background: rgba(255,255,255,.055);
}

.tsg-six-tab.is-active::after {
  transform: scaleX(1);
}

/* 險種內容：使用自然分欄與文字節奏，不做表格 */
.tsg-six-content {
  position: relative;
  padding: 24px 0 20px;
}

.tsg-six-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 48px));
  height: calc(100% - 18px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(6,31,51,.04);
  pointer-events: none;
}

.tsg-six-content::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 48px));
  height: calc(100% - 18px);
  background-image:
    linear-gradient(
      90deg,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,.98) 42%,
      rgba(255,255,255,.72) 64%,
      rgba(255,255,255,.18) 100%
    ),
    var(--tsg-bg-illustration);
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
  opacity: .18;
  pointer-events: none;
}

.tsg-six-content .tsg-six-container {
  position: relative;
  z-index: 2;
  padding: 22px 26px 18px;
}

.tsg-six-title-row {
  display: block;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tsg-six-title-row h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: clamp(28px,3vw,38px);
  font-weight: 800;
  line-height: 1.3;
}

.tsg-six-title-row p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tsg-six-title-row__icon {
  display: none;
}

/* 主要說明：左文右重點 */
.tsg-six-overview {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(270px,.75fr);
  gap: 28px;
  margin-bottom: 18px;
}

.tsg-six-overview__main h3,
.tsg-six-overview__side h3,
.tsg-six-check h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
}

.tsg-six-overview__main p,
.tsg-six-overview__side p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tsg-six-overview__side {
  padding-left: 22px;
  border-left: 4px solid var(--gold);
}

/* 三個核心重點改為橫向文字，不做卡片框 */
.tsg-six-keypoints {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  margin-bottom: 18px;
  padding: 15px 0;
  background: var(--light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tsg-six-keypoint {
  padding: 0 20px;
}

.tsg-six-keypoint + .tsg-six-keypoint {
  border-left: 1px solid var(--line);
}

.tsg-six-keypoint strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.tsg-six-keypoint p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* 建議檢視情況：簡單條列 */
.tsg-six-check {
  margin-bottom: 14px;
}

.tsg-six-check__list {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tsg-six-check__list li {
  position: relative;
  padding-left: 15px;
  color: var(--text);
  font-size: 13px;
}

.tsg-six-check__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* 常見問題：短版 */
.tsg-six-faq-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.tsg-six-faq {
  border-top: 1px solid var(--line);
}

.tsg-six-faq:last-child {
  border-bottom: 1px solid var(--line);
}

.tsg-six-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.tsg-six-faq summary::-webkit-details-marker {
  display: none;
}

.tsg-six-faq summary::after {
  content: "+";
  color: var(--gold);
  font-family: Arial,sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}

.tsg-six-faq[open] summary::after {
  transform: rotate(45deg);
}

.tsg-six-faq__answer {
  padding: 0 28px 12px 2px;
}

.tsg-six-faq__answer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* 返回主頁 */
.tsg-six-return {
  color: var(--white);
  background: var(--navy);
}

.tsg-six-return__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.tsg-six-return h2 {
  margin: 0 0 2px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.tsg-six-return p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

.tsg-six-return__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 225px;
  min-height: 43px;
  padding: 9px 18px;
  color: var(--navy) !important;
  background: var(--gold);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.tsg-six-note {
  padding: 10px 15px;
  color: var(--muted);
  background: #e9eef1;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 1024px) {
  .tsg-six-tabs__scroll {
    justify-content: flex-start;
  }

  .tsg-six-check__list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 767px) {
  .tsg-six-container {
    width: min(100% - 30px,1180px);
  }

  .tsg-six-hero__inner {
    grid-template-columns: minmax(0,1fr) 110px;
    gap: 16px;
    min-height: 0;
    padding: 25px 0;
  }

  .tsg-six-hero h1 {
    font-size: 31px;
  }

  .tsg-six-hero p {
    font-size: 14px;
  }

  .tsg-six-hero__visual {
    grid-template-columns: repeat(2,46px);
    gap: 7px;
  }

  .tsg-six-hero__visual span {
    width: 46px;
    height: 46px;
    padding: 6px;
  }

  .tsg-six-tab {
    min-width: 118px;
    padding: 13px 12px;
    font-size: 12px;
  }

  .tsg-six-content {
    padding: 16px 0 14px;
  }

  .tsg-six-content::before,
  .tsg-six-content::after {
    width: min(100% - 30px,1180px);
  }

  .tsg-six-content::after {
    background-position: center, right center;
    background-size: 100% 100%, auto 100%;
    opacity: .13;
  }

  .tsg-six-content .tsg-six-container {
    padding: 18px 16px 14px;
  }

  .tsg-six-title-row {
    margin-bottom: 13px;
    padding-bottom: 11px;
  }

  .tsg-six-title-row h2 {
    font-size: 27px;
  }

  .tsg-six-overview,
  .tsg-six-keypoints {
    grid-template-columns: 1fr;
  }

  .tsg-six-overview {
    gap: 12px;
    margin-bottom: 13px;
  }

  .tsg-six-overview__side {
    padding: 12px 0 0 14px;
  }

  .tsg-six-keypoints {
    padding: 5px 0;
    margin-bottom: 14px;
  }

  .tsg-six-keypoint {
    padding: 10px 16px;
  }

  .tsg-six-keypoint + .tsg-six-keypoint {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tsg-six-check__list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tsg-six-return__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 17px 0;
  }

  .tsg-six-return__button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .tsg-six-container {
    width: calc(100% - 24px);
  }

  .tsg-six-content::before,
  .tsg-six-content::after {
    width: calc(100% - 24px);
  }

  .tsg-six-hero__inner {
    grid-template-columns: 1fr 84px;
  }

  .tsg-six-hero__visual {
    grid-template-columns: repeat(2,38px);
  }

  .tsg-six-hero__visual span {
    width: 38px;
    height: 38px;
  }

  .tsg-six-hero h1 {
    font-size: 28px;
  }
}


/* =========================================================
   平板／手機頁籤：固定三欄兩列，不使用水平滑動
   ========================================================= */
@media (max-width: 1024px) {
  .tsg-six-tabs__scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    overflow: visible;
  }

  .tsg-six-tab {
    width: 100%;
    min-width: 0;
    padding: 13px 8px;
    border-right: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
    font-size: 13px;
    white-space: normal;
    line-height: 1.4;
  }

  .tsg-six-tab:nth-child(3n) {
    border-right: 0;
  }

  .tsg-six-tab:nth-child(n+4) {
    border-bottom: 0;
  }

  .tsg-six-tab::after {
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 767px) {
  .tsg-six-tab {
    min-height: 48px;
    padding: 11px 5px;
    font-size: 12px;
  }

  .tsg-six-tab::after {
    left: 8px;
    right: 8px;
  }
}

@media (max-width: 390px) {
  .tsg-six-tab {
    padding-left: 3px;
    padding-right: 3px;
    font-size: 11px;
  }
}


/* 長照/失能險頁籤：維持單行顯示 */
@media (max-width: 1024px) {
  .tsg-six-tab {
    white-space: nowrap;
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media (max-width: 767px) {
  .tsg-six-tab {
    font-size: 11.5px;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 390px) {
  .tsg-six-tab {
    font-size: 10.5px;
    padding-left: 2px;
    padding-right: 2px;
  }
}/* End custom CSS */