@charset "UTF-8";
.mainArea.blogInsPage {
  padding-top: 120px;
}
@media (max-width: 1180px) {
  .mainArea.blogInsPage {
    padding-top: 90px;
  }
}

.blogInfoBox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 10px;
}
.blogInfoBox .dateBox,
.blogInfoBox .classTitle {
  padding: 5px 0;
}
.blogInfoBox .dateBox .date {
  line-height: 1;
}
.blogInfoBox .classTitle {
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.5px;
  padding: 5px 10px;
}

.blogList {
  position: relative;
}
.blogList .blogItem {
  padding: 30px 0px 20px;
}
.blogList .item {
  width: 100%;
  border-bottom: 1px solid #959595;
  display: flex;
  align-items: flex-start;
  padding-bottom: 20px;
}
@media (max-width: 840px) {
  .blogList .item {
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
  }
}
.blogList .Img {
  max-width: 400px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.5s;
}
@media (max-width: 1180px) {
  .blogList .Img {
    width: 50%;
    max-width: 400px;
  }
}
@media (max-width: 840px) {
  .blogList .Img {
    width: 100%;
    margin: 0 auto;
  }
}
.blogList .Img a {
  display: block;
}
.blogList .Img img {
  width: 100%;
  display: block;
  height: auto;
  transition: all 0.5s;
}
@media (min-width: 1181px) {
  .blogList .Img:hover {
    opacity: 0.8;
  }
  .blogList .Img:hover img {
    filter: blur(2px);
  }
}
.blogList .Txt {
  flex-grow: 1;
  padding: 15px 40px;
}
@media (max-width: 1180px) {
  .blogList .Txt {
    padding: 10px 30px;
  }
}
@media (max-width: 840px) {
  .blogList .Txt {
    width: 100%;
    padding: 10px 0;
  }
}
.blogList .Txt .title a {
  display: block;
  font-size: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .blogList .Txt .title a {
    font-size: 22px;
  }
}
.blogList .Txt .title.ellipsis {
  max-height: 70px;
}
.blogList .Txt .text {
  padding: 20px 0;
  color: #252525;
  font-size: 16px;
}
@media (max-width: 1180px) {
  .blogList .Txt .text {
    font-size: 15px;
  }
}
.blogList .Txt .text.ellipsis {
  max-height: 120px;
}

body.blogPage article.contentBox .topBox,
body.blogPage article.contentBox .shareBox,
body.blogPage article.contentBox .sideShare,
body.blogPage article.contentBox .textEditor,
body.blogPage article.contentBox .pageBox {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
body.blogPage article.contentBox .textEditor {
  counter-reset: sec;
}
body.blogPage article.contentBox .textEditor p {
  margin-bottom: 1.1em;
}
body.blogPage article.contentBox .textEditor td,
body.blogPage article.contentBox .textEditor th {
  font-size: 16px;
}
body.blogPage article.contentBox .textEditor .h2Title,
body.blogPage article.contentBox .textEditor .h3Title,
body.blogPage article.contentBox .textEditor .h4Title {
  color: #1f1f1f;
  font-weight: 700;
  scroll-margin-top: 110px;
}
body.blogPage article.contentBox .textEditor .h2Title {
  counter-increment: sec;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  -moz-column-gap: 16px;
       column-gap: 16px;
  font-size: 26px;
  line-height: 1.45;
  margin: 64px 6px 24px 0;
  padding: 16px 22px;
  border: 1.5px solid #1f1f1f;
  border-radius: 12px;
  box-shadow: 5px 5px 0 #ff5c00;
  background: #fff;
}
body.blogPage article.contentBox .textEditor .h2Title::before {
  content: counter(sec, decimal-leading-zero);
  display: flex;
  align-items: center;
  align-self: stretch;
  padding-right: 16px;
  border-right: 1.5px solid #e6e6e6;
  font-family: Poppins, sans-serif;
  font-size: clamp(28px, 0.8vw + 22px, 36px);
  font-weight: 600;
  line-height: 1;
  color: #ff5c00;
}
body.blogPage article.contentBox .textEditor .h3Title {
  font-size: 20px;
  line-height: 1.5;
  margin: 36px 0 12px;
}
body.blogPage article.contentBox .textEditor .h3Title::before {
  content: "/";
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: 1.15em;
  color: #ff5c00;
  margin-right: 0.45em;
}
body.blogPage article.contentBox .textEditor .h4Title {
  font-size: 17px;
  line-height: 1.5;
  margin: 24px 0 8px;
}
body.blogPage article.contentBox .textEditor .template_qa_001 summary .h2Title,
body.blogPage article.contentBox .textEditor .template_qa_001 summary .h3Title {
  all: revert;
  color: #fff;
}
body.blogPage article.contentBox .textEditor .template_qa_001 summary .h2Title::before,
body.blogPage article.contentBox .textEditor .template_qa_001 summary .h3Title::before {
  content: none;
}
@media (max-width: 767px) {
  body.blogPage article.contentBox .textEditor .h2Title {
    font-size: 21px;
  }
  body.blogPage article.contentBox .textEditor .h3Title {
    font-size: 18px;
  }
}

.ixToc {
  display: none;
}

@media (min-width: 1360px) {
  .ixToc {
    display: block;
    position: fixed;
    top: 130px;
    /* 文章寬 780px 置中，目錄寬 200px，與文章保持 64px
       590px = 文章寬一半 390px + 目錄寬 200px；64px 是間距 */
    left: max(20px, 50% - 590px - 64px);
    width: 200px;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    scrollbar-width: thin;
    font-family: "Noto Sans TC", sans-serif;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .ixToc.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}
.ixToc__head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding-bottom: 14px;
}

.ixToc__en {
  display: block;
  font: 600 11px/1 Poppins, sans-serif;
  letter-spacing: 0.22em;
  color: #ff5c00;
  margin-bottom: 6px;
}

.ixToc__zh {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
}

.ixToc__bar {
  height: 3px;
  background: #eee;
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}
.ixToc__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #ff5c00;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.ixToc__list,
.ixToc__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ixToc__item > a {
  display: flex;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-left: 2px solid #eee;
  font-size: 14px;
  line-height: 1.5;
  color: #777;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ixToc__item > a:hover {
  color: #1f1f1f;
}

.ixToc__num {
  flex: 0 0 22px;
  font: 600 13px/1.6 Poppins, sans-serif;
  color: #bbb;
  transition: color 0.2s;
}

.ixToc__item.is-active > a {
  color: #1f1f1f;
  font-weight: 700;
  border-left-color: #ff5c00;
  background: linear-gradient(90deg, #fff4ec, rgba(255, 244, 236, 0));
}

.ixToc__item.is-active .ixToc__num {
  color: #ff5c00;
}

.ixToc__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ixToc__sub a {
  display: block;
  padding: 5px 8px 5px 44px;
  border-left: 2px solid #eee;
  font-size: 13px;
  line-height: 1.5;
  color: #999;
  text-decoration: none;
}
.ixToc__sub a::before {
  content: "/";
  font-family: Poppins, sans-serif;
  color: #ffb48a;
  margin-right: 6px;
}
.ixToc__sub a:hover, .ixToc__sub a.is-current {
  color: #1f1f1f;
}
.ixToc__sub a.is-current {
  font-weight: 600;
}
.ixToc__sub a.is-current::before {
  color: #ff5c00;
}

.ixToc__item.is-active .ixToc__sub {
  max-height: 600px;
}

.ixToc__top {
  display: inline-block;
  margin-top: 14px;
  font: 500 12px Poppins, "Noto Sans TC", sans-serif;
  color: #999;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.ixToc__top:hover {
  color: #ff5c00;
}

/* 部落格列表首頁：分類書架。overflow 只覆寫列表首頁，文章頁與分類頁維持原樣 */
.blogHub.mainArea {
  overflow-x: clip;
  overflow-y: visible;
}

.ixShelves {
  font-family: "Noto Sans TC", sans-serif;
  color: #1f1f1f;
  counter-reset: shelf;
  margin-top: 48px;
}

.ixShelf {
  counter-increment: shelf;
  padding: 64px 0;
}
.ixShelf:first-child {
  padding-top: 0;
}
.ixShelf:nth-child(even) {
  background: #f5f5f5;
  box-shadow: 0 0 0 100vmax #f5f5f5;
  clip-path: inset(0 -100vmax);
}
.ixShelf.is-open .ixCard.is-more {
  display: flex;
  animation: ixCardIn 0.3s ease both;
}
.ixShelf.is-open .ixShelf__load {
  display: none;
}
.ixShelf.is-open .ixShelf__all {
  display: inline-block;
}

.ixShelf__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  -moz-column-gap: 16px;
       column-gap: 16px;
  row-gap: 14px;
  padding: 20px 24px;
  margin: 0 6px 24px 0;
  border: 1.5px solid #1f1f1f;
  border-radius: 12px;
  box-shadow: 5px 5px 0 #ff5c00;
  background: #fff;
}
.ixShelf__head::before {
  content: counter(shelf, decimal-leading-zero);
  display: flex;
  align-items: center;
  align-self: stretch;
  padding-right: 16px;
  border-right: 1.5px solid #e6e6e6;
  font: 600 30px/1 Poppins, sans-serif;
  color: #ff5c00;
}

.ixShelf__text {
  display: contents;
}

.ixShelf__title {
  grid-column: 2;
  margin: 0;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 700;
}
.ixShelf__title a {
  color: #1f1f1f;
  text-decoration: none;
}
.ixShelf__title a:hover {
  color: #ff5c00;
}

.ixShelf__desc {
  grid-column: 1/-1;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #555;
}

.contentBox > .ixShelf__desc {
  margin-bottom: 24px;
}

.ixShelf__more {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #1f1f1f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s;
}
.ixShelf__more:hover {
  background: #ff5c00;
  color: #fff;
}

.ixShelf__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contentBox > .ixShelf__grid {
  margin-top: 8px;
}

.ixCard {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1.5px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ixCard:hover {
  border-color: #1f1f1f;
  box-shadow: 5px 5px 0 #ff5c00;
  transform: translate(-2px, -2px);
}
.ixCard.is-more {
  display: none;
}

@keyframes ixCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ixCard__date {
  font: 500 13px/1 Poppins, sans-serif;
  color: #767676;
  margin-bottom: 12px;
}

.ixCard__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 700;
  color: #1f1f1f;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ixCard__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ixShelf__foot {
  margin-top: 16px;
  text-align: center;
}

.ixShelf__load,
.ixShelf__all {
  display: inline-block;
  padding: 10px 28px;
  border: 1.5px solid #1f1f1f;
  border-radius: 8px;
  background: #fff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ixShelf__load:hover,
.ixShelf__all:hover {
  background: #ff5c00;
  border-color: #ff5c00;
  color: #fff;
}

.ixShelf__all {
  display: none;
}

@media (min-width: 1024px) {
  .ixShelf {
    display: grid;
    grid-template-columns: 340px 1fr;
    -moz-column-gap: 40px;
         column-gap: 40px;
    align-items: start;
  }
  .ixShelf__head {
    position: sticky;
    top: 110px;
    margin-bottom: 0;
  }
  .ixShelf__body {
    min-width: 0;
  }
}
@media (max-width: 1023px) {
  .ixShelf__more {
    display: none;
  }
  .ixShelf__head {
    margin-bottom: 12px;
  }
  .ixShelf .ixShelf__grid {
    gap: 0;
  }
  .ixShelf .ixCard {
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    background: transparent;
  }
  .ixShelf .ixCard:hover {
    border-color: #e0e0e0;
    box-shadow: none;
    transform: none;
  }
  .ixShelf .ixCard__date {
    margin-bottom: 8px;
  }
  .ixShelf .ixCard__title {
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
  }
  .ixShelf .ixCard__text {
    -webkit-line-clamp: 2;
  }
  .ixShelf__foot {
    display: flex;
    gap: 10px;
  }
  .ixShelf__load,
  .ixShelf__foot .ixShelf__all {
    flex: 1;
    display: block;
    padding: 12px 8px;
    text-align: center;
  }
  .ixShelf.is-open .ixShelf__load {
    display: none;
  }
  .ixShelf__foot .ixShelf__all {
    border-color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
  }
  .ixShelf__foot .ixShelf__all:hover {
    border-color: #ff5c00;
    background: #ff5c00;
  }
}
@media (max-width: 767px) {
  .ixShelf {
    padding: 48px 0;
  }
  .ixShelf:first-child {
    padding-top: 0;
  }
  .ixShelf__head {
    padding: 16px;
  }
  .ixShelf__head::before {
    font-size: 28px;
    padding-right: 14px;
  }
  .ixShelf__title {
    font-size: 21px;
  }
}