/* ============================
   /assets/css/notice.css
   只針對 .notice-wrap 作用，不影響 NAV / footer
   ============================ */

/* 全頁容器 */
.notice-wrap {
  max-width: 980px;
  margin: 40px auto 90px;
  padding: 0 16px 90px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.8;
}

/* 麵包屑 */
.notice-wrap .breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}
.notice-wrap .breadcrumb a {
  color: #0f766e;
  text-decoration: none;
}
.notice-wrap .breadcrumb a:hover {
  text-decoration: underline;
}

/* 主標題、副標題 */
.notice-wrap h1 {
  font-size: 28px;
  margin: 8px 0 4px;
  color: #0f766e;
}
.notice-wrap .notice-subtitle {
  margin: 0 0 20px;
  color: #4b5563;
}

/* 快速導覽區 */
.notice-wrap .notice-toc {
  background: #e6f7f5;
  border-radius: 999px;
  padding: 10px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.notice-wrap .notice-toc strong {
  margin-right: 6px;
  color: #0f766e;
}
.notice-wrap .notice-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.notice-wrap .notice-toc-links a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #19a7a0;
  color: #0f766e;
  text-decoration: none;
  background: #ffffff;
  font-size: 13px;
  white-space: nowrap;
}
.notice-wrap .notice-toc-links a:hover {
  background: #ccf1ec;
}

/* 區塊卡片通用樣式 */
.notice-wrap .section {
  border-radius: 18px;
  padding: 20px 22px 16px;
  margin: 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

/* 奇數：白底；偶數：淺蒂芬妮綠底 */
.notice-wrap .section:nth-of-type(odd) {
  background: #ffffff;
}
.notice-wrap .section:nth-of-type(even) {
  background: #e6f7f5;
}

/* 小標題 */
.notice-wrap .section > h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f766e;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.notice-wrap .section > h2::before {
  content: '';
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: #19a7a0;
}

/* 內文 */
.notice-wrap .section-body {
  color: #111827;
  font-size: 15px;
  line-height: 1.9;
  word-break: break-all;
}

/* 內文中的連結（若有） */
.notice-wrap .section-body a {
  color: #0f766e;
  text-decoration: underline;
}
.notice-wrap .section-body a:hover {
  text-decoration: none;
}

/* 回到頁首：放在卡片右下角 */
.notice-wrap .section .back-top {
  text-align: right;
  margin-top: 8px;
  font-size: 13px;
}
.notice-wrap .section .back-top a {
  color: #0f766e;
  text-decoration: none;
}
.notice-wrap .section .back-top a:hover {
  text-decoration: underline;
}

/* 無內容時的提醒框 */
.notice-wrap .notice-empty {
  margin: 30px 0 60px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0f172a;
}

/* RWD */
@media (max-width: 768px) {
  .notice-wrap {
    margin-top: 24px;
    padding: 0 10px 80px;
  }
  .notice-wrap .section {
    padding: 18px 14px 14px;
  }
  .notice-wrap .notice-toc {
    border-radius: 14px;
    padding: 8px 10px;
  }
}
