.floating-toc {
  background:linear-gradient(to bottom, #00f2fe, #248cce);
  color: white;
  font-family: system-ui, sans-serif;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-width: 90vw;
  margin: 1rem auto;
}

/* 電腦版：懸浮左側 */
@media (min-width: 768px) {
  .floating-toc {
    position: fixed;
    top: 120px;
    left: 7%;
    width: 240px;
    z-index: 999;
    margin: 0;
  }
}

.floating-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.floating-toc-header i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

/* 收合內容 */
.floating-toc-body {
  background: #ffffff;
  color: #333;
  padding: 12px 16px;
  display: none;
}

/* 手機版：直接展開內容且不能收合 */
@media (max-width: 767px) {
  .floating-toc-body {
    display: block !important;
  }
  .toc-section {
    width: 20% !important;
  }

  .floating-toc-header {
    cursor: default;
    justify-content: center;
  }

  .floating-toc-header i {
    display: none;
  }
}

.floating-toc-body ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}
.floating-toc-body li {
  margin-bottom: 10px;
}
.floating-toc-body a {
  color: #0b5fd8;
  text-decoration: none;
  font-size: 14px;
}
.floating-toc-body a:hover {
  text-decoration: underline;
}

.register-guide {
  margin: 2rem 5px;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  /*font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;*/
  width: auto;
}

#triplea-h2,.qa-section h2 {
    background:linear-gradient(to bottom, #00f2fe 0%, #4ab6e6 50%, #248cce 100%);
    padding: 1rem 1rem;
    margin: 2rem 0 1rem 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600 !important;
    line-height: 2.8rem;
    border-radius: 4px;
    box-shadow: 0.4rem 0.4rem 0px #387ea16b;
  }

  #triplea-h3 {
  font-size: 1.45rem;
  font-weight: bold;
  color: #0a3d62;
  background: linear-gradient(135deg, #cfe4ff, #f0f8ff);
  padding: 10px 16px;
  border-left: 6px solid #0a3d62;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  }    
  #triplea-h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ff6f00;
  margin: 1.2rem 0 0.6rem;
  padding-left: 12px;
  border-left: 5px solid #28a745;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .triplea-section, .register-guide {
    margin: 1rem 6px;
    padding: 1.25rem 1rem;
    border-radius: 10px;
    width: auto;
  }


  #triplea-h2 {
    font-size: 1.5rem;
  }
  #triplea-h3 {
    font-size: 1.2rem;
    padding: 8px 12px;
  }  
  #triplea-h4 {
    font-size: 1.05rem;
    padding-left: 10px;
    margin: 1rem 0 0.5rem;
  }
}  
  .triplea-figure {
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
  background-color: #f8fbfe; /* 柔和背景，與 QA 區塊協調 */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.triplea-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
  .triplea-figcaption {
    text-align: center;
    margin-top: 0.5rem;
    color: #0051a3 !important;
    font-weight: bold;
    font-size: 0.95rem;
  }

 .triplea-figcaption a{
    text-align: center;
    margin-top: 0.5rem;
    color: #0051a3;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
  }

  .triplea-button {
  display: inline-block;
  background: linear-gradient(to bottom, #00f2fe, #248cce);
  color: white;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.triplea-button:hover {
  background: linear-gradient(to bottom, #248cce, #00a3cc);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}


.qa-section {
  border-radius: 15px;
  background-color: #f5f9fc; 
  padding: 1.5rem 1.5rem;
  width: auto;
}
.qa-inner {
  max-width: 1540px;
  margin: 0 auto;
}   
  /* QA 整體卡片框 */
.qa-box {
  background: #fff;
  border-radius: 18px;
  border: 5px solid #248cce;
  padding: 32px;
  box-shadow: 6px 13px 4px rgba(0, 0, 0, 0.25);
  margin-top: 1.5rem;
  position: relative;
}

/* Q1 / Q2 / Q3 小標籤 */
.qa-label {
  position: absolute;
  top: -14px;
  left: 24px;
  background: #248cce;
  color: white;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* Q1 特別紅色版本 */
.qa-box.r {
  border-color: #e53935;
}
.qa-box.r .qa-label {
  background-color: #e53935;
}

/* Q3 特別綠色版本 */
.qa-box.g {
  border-color: #43a047;
}
.qa-box.g .qa-label {
  background-color: #43a047;
}

/* QA 標題 */
.qa-box h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

/* QA 文字列表 */
.qa-box ul {
  list-style: disc;
  padding-left: 1.2rem;
}
.qa-box li {
  margin-bottom: 0.6rem;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

/* 圖片區塊（可選） */
.qa-images {
  margin-top: 1.5rem;
  text-align: center;
}
.qa-images img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
  




.seth-extend{
  width: auto; 
  max-width: 1250px;
  margin: 40px auto;
  padding: 22px 24px;
  background: #fdfdfd;
  border: 1px solid #e9eef5;
  border-left: 5px solid #248cce;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.seth-extend > h2{
  margin: 0 0 14px;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 800;
  color: #18222f;
}
.seth-extend-list{
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.seth-extend-item{
  position: relative;
  padding-left: 12px;
}
.seth-extend-item::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #c9a634;
  line-height: 1.2;
}
.seth-extend-link{
  text-decoration: none;
  font-weight: 700;
  color: #0e3566;
  background-image: linear-gradient(90deg,#ffe18a 0%,#ffba00 100%);
  background-repeat: no-repeat;
  background-size: 100% .55em;
  background-position: 0 88%;
  transition: background-size .2s ease, color .2s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.seth-extend-link:hover{
  color: #2b2b2b;
  background-size: 100% .9em;
}
@media (max-width:640px){
  .seth-extend{ padding: 18px; }
  .seth-extend > h2{ margin-bottom: 10px; }
}

.table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  margin:24px 0;
}

.table-wrap table{
  width:100%;
  border-collapse:collapse;
}

.table-wrap th,
.table-wrap td{
  padding:12px 10px;
  line-height:1.6;
  vertical-align:middle;
}