/* LabTool 官網 2026-10 改版新增樣式（只放新增的區塊，不改原樣板） */

/* 手機與桌機都固定在右下角的 LINE 詢問按鈕 */
.line-float {
  position: fixed;
  right: 20px;
  bottom: 56px;
  z-index: 2000;
  background: #06c755;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.line-float:hover { background: #05a847; text-decoration: none; }

/* 區塊標題 */
.section-title { text-align: center; margin: 36px 0 26px; }
.section-title h3 { margin: 0 0 8px; font-size: 26px; }
.section-title p { color: #666; font-size: 16px; margin: 0; }

/* 痛點清單 */
.pain-list { list-style: none; margin: 0 auto 30px; padding: 0; max-width: 760px; }
.pain-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px dashed #ddd;
  font-size: 17px;
  line-height: 1.6;
}
.pain-list li:before {
  content: "\2022";
  position: absolute;
  left: 10px;
  color: #F03C02;
  font-weight: 700;
}

/* 客戶見證 */
.testimonial {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 22px;
  margin-bottom: 20px;
}
.testimonial p {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin: 0;
}
.testimonial .who { display: block; margin-top: 14px; color: #777; font-size: 13px; }

/* 上線前要填的資料，預覽時會用黃底標出 */
.draft-mark { background: #ffe28a; padding: 0 3px; }

/* 開始使用 3 步 */
.step-num {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: #F03C02;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* 常見問題 */
.faq h4 {
  position: relative;
  margin: 22px 0 0;
  padding-left: 34px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: #222;
}
.faq h4::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: #F03C02;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.faq p {
  margin: 0;
  padding: 6px 0 14px 34px;
  font-size: 15px;
  line-height: 1.9;
  color: #6b6b6b;
  border-bottom: 1px solid #ececec;
}
.faq a { color: #F03C02; }

/* 頁面底部試用區塊 */
.final-cta { text-align: center; padding: 10px 0 30px; }
.final-cta h3 { margin-bottom: 10px; }
.final-cta p { color: #555; font-size: 16px; margin-bottom: 18px; }
.final-cta .btn { margin: 0 6px 8px; }

/* 其他服務、頁尾聯絡 */
.other-service { text-align: center; color: #777; font-size: 14px; padding-bottom: 30px; }
.footer-contact { text-align: center; color: #777; font-size: 14px; margin: 0 0 6px; }

/* 功能頁：以前／現在 說明框 */
.ps-box {
  background: #f7f7f7;
  border-left: 4px solid #F03C02;
  padding: 14px 20px;
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.9;
}
.ps-box p { margin: 0; }
.feature-group h4 { margin: 22px 0 8px; font-size: 18px; }
.feature-group ul { margin: 0 0 6px 18px; }
.feature-group li { margin-bottom: 8px; line-height: 1.8; }
.sidebar-cta { text-align: center; }
.sidebar-cta p { color: #555; margin-bottom: 12px; }
.sidebar-cta .btn { display: block; margin: 0 0 8px; }

/* ===== 手機版選單（取代原本的「Go to..」下拉選單） ===== */
.lt-menu-toggle, .lt-mobile-nav { display: none; }

@media (max-width: 767px) {
  select.selectmenu { display: none !important; }

  .lt-menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    margin: 10px 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    color: #353535;
    cursor: pointer;
  }
  .lt-menu-toggle:focus-visible,
  .lt-list a:focus-visible,
  .lt-sub-toggle:focus-visible { outline: 2px solid #F03C02; outline-offset: -2px; }
  .lt-menu-toggle.lt-active { border-color: #F03C02; }

  .lt-bars { position: relative; display: inline-block; width: 22px; height: 16px; }
  .lt-bars i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #353535;
    border-radius: 2px;
    transition: transform .2s, opacity .2s, top .2s;
  }
  .lt-bars i:nth-child(1) { top: 0; }
  .lt-bars i:nth-child(2) { top: 7px; }
  .lt-bars i:nth-child(3) { top: 14px; }
  .lt-active .lt-bars i:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .lt-active .lt-bars i:nth-child(2) { opacity: 0; }
  .lt-active .lt-bars i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  .lt-mobile-nav {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    margin: 0 0 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    overflow: hidden;
  }
  .lt-mobile-nav.lt-show { display: block; }

  .lt-list, .lt-sub { list-style: none; margin: 0; padding: 0; }
  .lt-list > li { border-bottom: 1px solid #eee; }
  .lt-list > li:last-child { border-bottom: 0; }

  .lt-list a, .lt-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 17px;
    line-height: 1.3;
    color: #353535;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
  }
  .lt-list a:hover, .lt-sub-toggle:hover { background: #f7f7f7; text-decoration: none; }

  .lt-list a.lt-current { color: #F03C02; font-weight: 700; box-shadow: inset 4px 0 0 #F03C02; }
  .lt-list a.lt-cta { background: #F03C02; color: #fff; font-weight: 700; justify-content: center; }
  .lt-list a.lt-cta:hover { background: #d63500; }

  .lt-sub { display: none; background: #fafafa; border-top: 1px solid #eee; }
  .lt-open > .lt-sub { display: block; }
  .lt-sub li { border-bottom: 1px solid #f0f0f0; }
  .lt-sub li:last-child { border-bottom: 0; }
  .lt-sub a { padding-left: 32px; font-size: 16px; min-height: 44px; }

  .lt-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: rotate(45deg);
    transition: transform .15s;
    margin-right: 4px;
  }
  .lt-open > .lt-sub-toggle .lt-caret { transform: rotate(-135deg); margin-top: 4px; }
}

/* ===== SEO：每頁只留一個 H1（頁首標題改用 div，外觀不變），文章標題大小調整 ===== */
.inner-heading .inner-title {
  font-family: "Open Sans", sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 42px;
  margin: 10px 0;
  color: #fff;
}
section#content h1 { font-size: 36px; line-height: 1.4; margin-bottom: 20px; }
@media (max-width: 767px) { section#content h1 { font-size: 28px; } }

/* 首頁重點整理表 */
.facts-table th { width: 22%; background: #f7f7f7; font-weight: 600; white-space: nowrap; }
.facts-table td { line-height: 1.7; }
@media (max-width: 767px) { .facts-table th { white-space: normal; width: 28%; } }

/* ===== 更新記錄：年份時間軸（今年展開、舊年份收合） ===== */
.update-log { margin: 0 0 30px; }
.log-year { margin: 0 0 12px; }
.log-year > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 17px;
  font-weight: 600;
  color: #353535;
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}
.log-year > summary::-webkit-details-marker { display: none; }
.log-year > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #777;
  border-bottom: 2px solid #777;
  transform: rotate(45deg);
  transition: transform .15s;
}
.log-year[open] > summary::after { transform: rotate(-135deg); }
.log-year > summary:hover { background: #f0f0f0; }
.log-year > summary:focus-visible { outline: 2px solid #F03C02; outline-offset: 2px; }

.log-list {
  list-style: none;
  margin: 14px 0 6px 10px;
  padding: 0 0 0 20px;
  border-left: 2px solid #e1e1e1;
}
.log-list li {
  position: relative;
  padding: 6px 0 12px;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}
.log-list li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #bbb;
}
.log-month {
  display: block;
  font-size: 13px;
  color: #777;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.log-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  padding: 0 8px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: 1px;
}
.log-new { background: #e8f5e9; color: #1b5e20; }
.log-adj { background: #e3f2fd; color: #0d47a1; }
.log-fix { background: #fff4dc; color: #7a4b00; }
.log-mix { background: #eeeeee; color: #444; }

.update-log > details:first-of-type .log-list > li:first-child::before { background: #F03C02; border-color: #F03C02; }
.update-log > details:first-of-type .log-list > li:first-child .log-month::after {
  content: "最新";
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
  background: #F03C02;
  border-radius: 4px;
}

/* ===== 牙技學院文章版型 ===== */
.article-body h2 {
  font-size: 26px;
  line-height: 1.45;
  margin: 38px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}
.article-body h3 { font-size: 20px; line-height: 1.5; margin: 24px 0 10px; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.95; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 6px; }
.article-meta { font-size: 14px; color: #888; margin: -6px 0 22px; line-height: 1.7; }
.answer-box {
  background: #fff7f3;
  border-left: 4px solid #F03C02;
  border-radius: 0;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.answer-box p { margin: 0; }
.toc { background: #f7f7f7; border-radius: 6px; padding: 14px 20px; margin: 0 0 28px; }
.toc ol { margin: 8px 0 0 20px; }
.toc li { margin-bottom: 2px; font-size: 16px; }
.tip-box, .warn-box { padding: 14px 20px; margin: 18px 0; border-radius: 0; }
.tip-box { background: #f1f7ff; border-left: 4px solid #1e88e5; }
.warn-box { background: #fff4dc; border-left: 4px solid #e0a000; }
.tip-box p, .warn-box p { margin: 0; }
.src-box { background: #f7f7f7; border-radius: 6px; padding: 14px 20px; margin: 34px 0 10px; font-size: 15px; line-height: 1.9; }
.src-box h3 { margin: 0 0 6px; font-size: 17px; }
.src-box ul { margin: 0 0 0 20px; }
.src-box li { font-size: 15px; line-height: 1.9; margin-bottom: 2px; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.article-body table { width: 100%; font-size: 15px; }
.article-body table th { background: #f7f7f7; white-space: nowrap; }
.article-body table td { line-height: 1.7; }
.related-links { margin: 28px 0 0; padding: 14px 20px; border: 1px solid #e6e6e6; border-radius: 6px; }
.related-links h3 { margin: 0 0 6px; font-size: 17px; }
.related-links ul { margin: 0 0 0 20px; }
@media (max-width: 767px) {
  .article-body h2 { font-size: 22px; }
}

/* ===== 牙技學院列表：分組文章卡片 ===== */
.academy-intro { text-align: center; color: #666; font-size: 17px; line-height: 1.8; margin: 4px 0 6px; }
.academy-h2 { font-size: 24px; line-height: 1.4; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.article-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  color: #353535;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.article-card:hover, .article-card:focus-visible { border-color: #F03C02; box-shadow: 0 2px 10px rgba(0, 0, 0, .07); text-decoration: none; outline: none; }
.article-card h3 { font-size: 18px; line-height: 1.5; margin: 0; color: #222; }
.article-card p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.8; color: #6b6b6b; }
.ac-more { font-size: 14px; font-weight: 600; color: #F03C02; }
.ac-tags { display: flex; gap: 6px; }
.ac-tag { font-size: 12px; font-weight: 600; line-height: 1.7; padding: 0 8px; border-radius: 4px; }
.ac-law { background: #e3f2fd; color: #0d47a1; }
.ac-biz { background: #e8f5e9; color: #1b5e20; }
.ac-data { background: #f3e5f5; color: #4a148c; }
.ac-basic { background: #eeeeee; color: #444; }
.ac-new { background: #F03C02; color: #fff; }
.ac-upd { background: #fff4dc; color: #7a4b00; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { padding: 12px 0; border-bottom: 1px solid #eee; }
.article-list a { font-size: 17px; font-weight: 600; color: #222; }
.article-list a:hover { color: #F03C02; text-decoration: none; }
.article-list span { display: block; margin-top: 2px; font-size: 14.5px; color: #6b6b6b; }
