@charset "utf-8";

/* ================================ 衛浴小學堂 - 文章內容樣式定義 ================================ */

/* 標題區塊樣式 */
#bathroom-school-detail .title,
#bathroom-school-detail .title {
  position: relative;
  padding-right: 80px;
}
#bathroom-school-detail .title .time,
#bathroom-school-detail .title .time {
  font-size: 15px;
  color: #000;
}
#bathroom-school-detail .title .category,
#bathroom-school-detail .title .category {
  display: inline-block;
  margin-left: 5px;
  padding: 5px;
  background: #f1f1f1;
  font-size: 13px;
  color: #172b50;
}
#bathroom-school-detail .title h1 {
  padding: 20px 0;
  font-size: 30px;
  color: #333333;
  line-height: 40px;
  font-weight: 600;
  margin: 0;
}

/* 分享功能 */
#bathroom-school-detail .title .share {
  position: absolute;
  right: 0;
  top: 8px;
  z-index: 1;
}
#bathroom-school-detail .title .share span {
  display: block;
  width: 15px;
  height: 15px;
  background: url(../images/product_detail_share.png);
  text-indent: -9999px;
  cursor: pointer;
  transition: all 0.3s;
}
#bathroom-school-detail .title .share span:hover {
  opacity: 0.8;
}
#bathroom-school-detail .title .share .wrap {
  position: absolute;
  right: 0;
  top: 30px;
  display: none;
  width: 140px;
  padding: 5px 15px;
  background: #fff;
  border: 1px solid #999;
  box-sizing: border-box;
}
#bathroom-school-detail .title .share .wrap a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}
#bathroom-school-detail .title .share .wrap a:hover {
  opacity: 0.6;
}
#bathroom-school-detail .title .share .wrap a::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 28px;
  margin-right: 10px;
  background: url(../images/share_icon.png);
  vertical-align: middle;
}
#bathroom-school-detail .title .share .wrap .copy::before {
  background-position: left top;
}
#bathroom-school-detail .title .share .wrap .fb::before {
  background-position: center top;
}
#bathroom-school-detail .title .share .wrap .email::before {
  background-position: right top;
}

/* 覆蓋原本 board.css 的 editor 樣式 */
#bathroom-school-detail .editor {
  padding: 0;
  border: none;
}
#bathroom-school-detail .editor p {
  padding: 0;
  background: none;
}

/* 主視覺圖區塊 */
#bathroom-school-detail .hero-image {
  margin: 0 0 40px 0;
}
#bathroom-school-detail .hero-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* 前言區塊 */
#bathroom-school-detail .introduction {
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: #333333;
  line-height: 1.8;
  white-space: pre-line;
}

/* 前言後面如果不是目錄，則加上下邊距 */
#bathroom-school-detail .editor .introduction:not(:has(+ .toc)):not(:has(+ .table-of-contents)) {
  margin-bottom: 24px;
}

/* 目錄區塊樣式 */
#bathroom-school-detail .editor .toc,
#bathroom-school-detail .editor .table-of-contents {
  position: relative;
  margin: 40px auto 40px;
  padding: 0;
  max-width: 800px;
  max-height: 320px;
  overflow: hidden;
  background-color: transparent;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(242, 242, 242, 1);
  border-radius: 8px;
  transition: max-height 0.3s ease;
}
#bathroom-school-detail .editor .toc.expanded {
  max-height: none;
}

/* 目錄展開/收合按鈕 */
#bathroom-school-detail .editor .toc .toc-toggle {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 0 0;
  margin: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 1) 100%
  );
  text-align: center;
  border-top: none;
}
#bathroom-school-detail .editor .toc.expanded .toc-toggle {
  position: static;
  background: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid rgba(242, 242, 242, 1);
}
#bathroom-school-detail .editor .toc .toc-toggle-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  margin: 0;
  background-color: transparent;
  border: none;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}
#bathroom-school-detail .editor .toc.expanded .toc-toggle-btn {
  border-radius: 0;
}
#bathroom-school-detail .editor .toc .toc-toggle-btn:hover {
  background-color: #f9f9f9;
}

/* 目錄標題 */
#bathroom-school-detail .editor .toc h2 {
  margin: 0 0 20px 0;
  padding: 20px 0 0 16px;
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  border: none;
  line-height: 1.2;
}

/* 目錄列表樣式重置 */
#bathroom-school-detail .editor .toc ul {
  margin: 0;
  padding: 0 16px;
  list-style: none;
}
#bathroom-school-detail .editor .toc li {
  margin: 0;
  padding: 0;
}

/* 目錄第一層項目 (對應 h2 標題) */
#bathroom-school-detail .editor .toc > ul > li {
  margin-bottom: 18px;
}
#bathroom-school-detail .editor .toc > ul > li:last-child {
  margin-bottom: 0;
}
#bathroom-school-detail .editor .toc > ul > li > a {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  text-decoration: none;
  line-height: 1.8;
  margin-bottom: 10px;
  transition: color 0.3s;
}

/* 目錄第二層和第三層容器 */
#bathroom-school-detail .editor .toc > ul > li > ul {
  padding-left: 0;
}
#bathroom-school-detail .editor .toc > ul > li > ul > li {
  margin-bottom: 12px;
}
#bathroom-school-detail .editor .toc > ul > li > ul > li:last-child {
  margin-bottom: 0;
}

/* 目錄第二層項目 (對應 h3 標題) */
#bathroom-school-detail .editor .toc > ul > li > ul > li > a {
  display: block;
  padding-left: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #333333;
  text-decoration: none;
  line-height: 1.8;
  margin-bottom: 10px;
  transition: color 0.3s;
}

/* 目錄第三層項目 (對應 h4 標題) */
#bathroom-school-detail
  .editor
  .toc
  > ul
  > li
  > ul
  > li
  > ul
  > li.has-border {
  padding-left: 32px;
  margin-bottom: 10px;
  line-height: 1.3;
}
#bathroom-school-detail
  .editor
  .toc
  > ul
  > li
  > ul
  > li
  > ul
  > li.has-border:last-child {
  margin-bottom: 0;
}
#bathroom-school-detail
  .editor
  .toc
  > ul
  > li
  > ul
  > li
  > ul
  > li.has-border
  > a {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  color: #333333;
}

/* H1 標題 - 文章主標題 (30px bold) */
#bathroom-school-detail h1 {
  margin: 20px 0 16px 0;
  font-size: 30px;
  font-weight: bold;
  color: #333333;
  line-height: 1.4;
  padding: 0;
}

#bathroom-school-detail h1 strong {
  color: #333333!important;
}

/* H2 標題 - 大段落標題 (23px bold)，與內文間距 16px */
#bathroom-school-detail .editor h2 {
  margin-bottom: 16px;
  font-size: 23px;
  font-weight: bold;
  color: #333333;
  line-height: 2;
  border-bottom: 1px solid #d7d7d7;
  scroll-margin-top: 125px;
}

#bathroom-school-detail .editor h2 strong {
  color: #333333!important;
}

/* H3 標題 - 子段落標題 (20px bold)，與內文間距 8px */
#bathroom-school-detail .editor h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  line-height: 1.4;
  scroll-margin-top: 130px;
}

#bathroom-school-detail .editor h3 strong {
  color: #333333!important;
}

/* H4 標題 - 小標題 (17px bold)，與內文間距 8px */
#bathroom-school-detail .editor h4 {
  margin-bottom: 8px;
  padding-left: 0;
  font-size: 17px;
  font-weight: bold;
  color: #333333;
  line-height: 1.4;
  scroll-margin-top: 130px;
}

#bathroom-school-detail .editor h4 strong {
  color: #333333!important;
}

/* H5 標題 - 重點資訊 (15px bold)，與內文間距 8px */
#bathroom-school-detail .editor h5 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: bold;
  color: #333333;
  line-height: 1.4;
}

#bathroom-school-detail .editor h5 strong {
  color: #333333!important;
}

/* H6 標題 - 輔助說明 (14px regular)，與內文間距 8px */
#bathroom-school-detail .editor h6 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: normal;
  color: #333333;
  line-height: 1.4;
}

#bathroom-school-detail .editor h6 strong {
  color: #333333!important;
}

/* 標題縮排層級樣式 (h2~h6) */
#bathroom-school-detail .editor h2.ql-indent-1,
#bathroom-school-detail .editor h3.ql-indent-1,
#bathroom-school-detail .editor h4.ql-indent-1,
#bathroom-school-detail .editor h5.ql-indent-1,
#bathroom-school-detail .editor h6.ql-indent-1 {
  padding-left: 3em;
}

#bathroom-school-detail .editor h2.ql-indent-2,
#bathroom-school-detail .editor h3.ql-indent-2,
#bathroom-school-detail .editor h4.ql-indent-2,
#bathroom-school-detail .editor h5.ql-indent-2,
#bathroom-school-detail .editor h6.ql-indent-2 {
  padding-left: 6em;
}

#bathroom-school-detail .editor h2.ql-indent-3,
#bathroom-school-detail .editor h3.ql-indent-3,
#bathroom-school-detail .editor h4.ql-indent-3,
#bathroom-school-detail .editor h5.ql-indent-3,
#bathroom-school-detail .editor h6.ql-indent-3 {
  padding-left: 9em;
}

#bathroom-school-detail .editor h2.ql-indent-4,
#bathroom-school-detail .editor h3.ql-indent-4,
#bathroom-school-detail .editor h4.ql-indent-4,
#bathroom-school-detail .editor h5.ql-indent-4,
#bathroom-school-detail .editor h6.ql-indent-4 {
  padding-left: 12em;
}

#bathroom-school-detail .editor h2.ql-indent-5,
#bathroom-school-detail .editor h3.ql-indent-5,
#bathroom-school-detail .editor h4.ql-indent-5,
#bathroom-school-detail .editor h5.ql-indent-5,
#bathroom-school-detail .editor h6.ql-indent-5 {
  padding-left: 15em;
}

#bathroom-school-detail .editor h2.ql-indent-6,
#bathroom-school-detail .editor h3.ql-indent-6,
#bathroom-school-detail .editor h4.ql-indent-6,
#bathroom-school-detail .editor h5.ql-indent-6,
#bathroom-school-detail .editor h6.ql-indent-6 {
  padding-left: 18em;
}

#bathroom-school-detail .editor h2.ql-indent-7,
#bathroom-school-detail .editor h3.ql-indent-7,
#bathroom-school-detail .editor h4.ql-indent-7,
#bathroom-school-detail .editor h5.ql-indent-7,
#bathroom-school-detail .editor h6.ql-indent-7 {
  padding-left: 21em;
}

#bathroom-school-detail .editor h2.ql-indent-8,
#bathroom-school-detail .editor h3.ql-indent-8,
#bathroom-school-detail .editor h4.ql-indent-8,
#bathroom-school-detail .editor h5.ql-indent-8,
#bathroom-school-detail .editor h6.ql-indent-8 {
  padding-left: 24em;
}

/* 內文段落 (15px regular)，段落間距 24px */
#bathroom-school-detail .editor p {
  margin: 0 0 24px 0;
  font-size: 15px;
  color: #333333;
  line-height: 1.8;
}

/* 粗體樣式 - 確保 strong 標籤正確顯示為粗體 */
#bathroom-school-detail .editor strong {
  font-weight: bold;
  color: inherit;
}

/* 段落縮排層級樣式 */
#bathroom-school-detail .editor p.ql-indent-1 {
  padding-left: 3em;
}
#bathroom-school-detail .editor p.ql-indent-2 {
  padding-left: 6em;
}
#bathroom-school-detail .editor p.ql-indent-3 {
  padding-left: 9em;
}
#bathroom-school-detail .editor p.ql-indent-4 {
  padding-left: 12em;
}
#bathroom-school-detail .editor p.ql-indent-5 {
  padding-left: 15em;
}
#bathroom-school-detail .editor p.ql-indent-6 {
  padding-left: 18em;
}
#bathroom-school-detail .editor p.ql-indent-7 {
  padding-left: 21em;
}
#bathroom-school-detail .editor p.ql-indent-8 {
  padding-left: 24em;
}

/* 大段落之間間距 40px (h2 與 h2、h2 與 h3、區塊元素等) */
#bathroom-school-detail .editor h2 + h2,
#bathroom-school-detail .editor h2 + h3,
#bathroom-school-detail .editor > section,
#bathroom-school-detail .editor > div {
  margin-top: 40px;
}

#bathroom-school-detail .editor img {
  display: block;
  margin: 0 auto 24px;
  max-width: 100%;
  height: auto;
}

#bathroom-school-detail .editor img.ql-align-left {
  margin-left: 0;
  margin-right: auto;
}

#bathroom-school-detail .editor img.ql-align-center {
  margin-left: auto;
  margin-right: auto;
}

#bathroom-school-detail .editor img.ql-align-right {
  margin-left: auto;
  margin-right: 0;
}

#bathroom-school-detail .editor img.ql-indent-1 { padding-left: 3em; }
#bathroom-school-detail .editor img.ql-indent-2 { padding-left: 6em; }
#bathroom-school-detail .editor img.ql-indent-3 { padding-left: 9em; }
#bathroom-school-detail .editor img.ql-indent-4 { padding-left: 12em; }
#bathroom-school-detail .editor img.ql-indent-5 { padding-left: 15em; }
#bathroom-school-detail .editor img.ql-indent-6 { padding-left: 18em; }
#bathroom-school-detail .editor img.ql-indent-7 { padding-left: 21em; }
#bathroom-school-detail .editor img.ql-indent-8 { padding-left: 24em; }

/* iframe (影片嵌入等) */
#bathroom-school-detail .editor iframe {
  display: block;
  margin: 0 auto 24px;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* 列表 */
#bathroom-school-detail .editor ul,
#bathroom-school-detail .editor ol {
  margin: 0 0 24px 0;
  padding: 0 0 0 12px;
  font-size: 15px;
  color: #333333;
  line-height: 1.8;
}
#bathroom-school-detail .editor ul {
  list-style-type: disc;
}
#bathroom-school-detail .editor ol {
  list-style-type: decimal;
}
#bathroom-school-detail .editor li {
  padding-left: 8px;
}
/* 只有 Quill 列表項目移除預設符號 */
#bathroom-school-detail .editor li[data-list] {
  list-style-type: none;
  position: relative;
}
#bathroom-school-detail .editor ul ul,
#bathroom-school-detail .editor ol ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ========== Quill 列表樣式（data-list 屬性）========== */
/* 無序列表 - 所有層級都是實心圓點 • */
#bathroom-school-detail .editor li[data-list="bullet"]:before {
  content: "\2022";
  display: inline-block;
  white-space: nowrap;
  width: 0.8em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 有序列表 - 數字、字母、羅馬數字循環 */
/* 第一層：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"]:not(.ql-indent-1):not(.ql-indent-2):not(.ql-indent-3):not(.ql-indent-4):not(.ql-indent-5):not(.ql-indent-6):not(.ql-indent-7):not(.ql-indent-8) {
  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8;
  counter-increment: list-0;
}

#bathroom-school-detail .editor li[data-list="ordered"]:not(.ql-indent-1):not(.ql-indent-2):not(.ql-indent-3):not(.ql-indent-4):not(.ql-indent-5):not(.ql-indent-6):not(.ql-indent-7):not(.ql-indent-8):before {
  content: counter(list-0, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 層級 2：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"].ql-indent-1 {
  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8;
  counter-increment: list-1;
}

#bathroom-school-detail
  .editor
  li[data-list="ordered"].ql-indent-1:before {
  content: counter(list-1, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 層級 3：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"].ql-indent-2 {
  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8;
  counter-increment: list-2;
}

#bathroom-school-detail
  .editor
  li[data-list="ordered"].ql-indent-2:before {
  content: counter(list-2, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 層級 4：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"].ql-indent-3 {
  counter-reset: list-4 list-5 list-6 list-7 list-8;
  counter-increment: list-3;
}

#bathroom-school-detail
  .editor
  li[data-list="ordered"].ql-indent-3:before {
  content: counter(list-3, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 層級 5：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"].ql-indent-4 {
  counter-reset: list-5 list-6 list-7 list-8;
  counter-increment: list-4;
}

#bathroom-school-detail
  .editor
  li[data-list="ordered"].ql-indent-4:before {
  content: counter(list-4, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 層級 6：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"].ql-indent-5 {
  counter-reset: list-6 list-7 list-8;
  counter-increment: list-5;
}

#bathroom-school-detail
  .editor
  li[data-list="ordered"].ql-indent-5:before {
  content: counter(list-5, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 層級 7：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"].ql-indent-6 {
  counter-reset: list-7 list-8;
  counter-increment: list-6;
}

#bathroom-school-detail
  .editor
  li[data-list="ordered"].ql-indent-6:before {
  content: counter(list-6, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 層級 8：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"].ql-indent-7 {
  counter-reset: list-8;
  counter-increment: list-7;
}

#bathroom-school-detail
  .editor
  li[data-list="ordered"].ql-indent-7:before {
  content: counter(list-7, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 層級 9：數字 1, 2, 3... */
#bathroom-school-detail .editor li[data-list="ordered"].ql-indent-8 {
  counter-increment: list-8;
}

#bathroom-school-detail
  .editor
  li[data-list="ordered"].ql-indent-8:before {
  content: counter(list-8, decimal) ". ";
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}

/* 縮排層級樣式 */
#bathroom-school-detail .editor li.ql-indent-1 {
  padding-left: 4.5em;
}

#bathroom-school-detail .editor li.ql-indent-2 {
  padding-left: 7.5em;
}

#bathroom-school-detail .editor li.ql-indent-3 {
  padding-left: 10.5em;
}

#bathroom-school-detail .editor li.ql-indent-4 {
  padding-left: 13.5em;
}

#bathroom-school-detail .editor li.ql-indent-5 {
  padding-left: 16.5em;
}

#bathroom-school-detail .editor li.ql-indent-6 {
  padding-left: 19.5em;
}

#bathroom-school-detail .editor li.ql-indent-7 {
  padding-left: 22.5em;
}

#bathroom-school-detail .editor li.ql-indent-8 {
  padding-left: 25.5em;
}

/* 引用區塊 */
#bathroom-school-detail .editor blockquote {
  margin: 24px 0;
  padding: 20px 25px;
  background-color: #f9f9f9;
  border-left: 4px solid #e8505b;
  font-size: 15px;
  color: #333333;
  line-height: 1.8;
}

/* 表格 */
#bathroom-school-detail .editor table {
  margin: 24px 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
#bathroom-school-detail .editor th {
  padding: 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  font-weight: bold;
  text-align: left;
}
#bathroom-school-detail .editor td {
  padding: 12px;
  border: 1px solid #ddd;
}

/* 對齊樣式 */
#bathroom-school-detail .editor .ql-align-left {
  text-align: left;
}
#bathroom-school-detail .editor .ql-align-center {
  text-align: center;
}
#bathroom-school-detail .editor .ql-align-right {
  text-align: right;
}

/* 連結 */
#bathroom-school-detail .editor a {
  color: #0000ff;
  text-decoration: underline;
  transition: color 0.3s;
  cursor: pointer;
}
#bathroom-school-detail .editor a:hover {
  color: #0000ff;
  text-decoration: underline;
}

/* 按鈕樣式 */
#bathroom-school-detail .editor button {
  margin-bottom: 40px;
  min-width: 160px;
  display: flex;
  padding: 0;
  border: none;
  background: none;
  cursor: default;
}

/* 按鈕對齊方式 - 使用 class */
#bathroom-school-detail .editor button.btn-align-left {
  margin-left: 0;
  margin-right: auto;
}

#bathroom-school-detail .editor button.btn-align-center {
  margin-left: auto;
  margin-right: auto;
}

#bathroom-school-detail .editor button.btn-align-right {
  margin-left: auto;
  margin-right: 0;
}

#bathroom-school-detail .editor button > a {
  display: block;
  width: 100%;
  padding: 9px 40px;
  background-color: #333333;
  border-radius: 30px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

#bathroom-school-detail .editor button > a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

/* 重點標記區塊 */
#bathroom-school-detail .editor .highlight,
#bathroom-school-detail .editor .note {
  margin: 24px 0;
  padding: 20px 25px;
  background-color: #fff9e6;
  border-left: 4px solid #ffb800;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.8;
}

/* 分隔線 */
#bathroom-school-detail .editor hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* 程式碼區塊 (如果有) */
#bathroom-school-detail .editor pre,
#bathroom-school-detail .editor code {
  background-color: #f5f5f5;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}
#bathroom-school-detail .editor pre {
  margin: 24px 0;
  padding: 15px;
  overflow-x: auto;
}
#bathroom-school-detail .editor code {
  padding: 2px 6px;
}

/* 返回列表按鈕 */
#bathroom-school-detail .back {
  display: block;
  width: 155px;
  margin: 30px auto;
  padding: 10px 0;
  border: 1px solid #d8d8d8;
  border-radius: 25px;
  font-size: 15px;
  color: #333;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
}
#bathroom-school-detail .back::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 12px;
  margin-right: 5px;
  background: url(../images/back_list.png);
  vertical-align: middle;
}
#bathroom-school-detail .back:hover {
  background: #f1f1f1;
}

/* 錯誤訊息樣式 */
.error-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}
.error-message h2 {
  color: #999;
  margin-bottom: 15px;
}
.error-message p {
  margin-bottom: 20px;
}
.error-message a {
  color: #0066cc;
  text-decoration: none;
}
.error-message a:hover {
  text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 768px) {
  #bathroom-school-detail .title {
    padding-right: 40px;
  }
  #bathroom-school-detail .title h1 {
    font-size: 24px;
    line-height: 32px;
  }
  #bathroom-school-detail .editor h2 {
    font-size: 20px;
  }
  #bathroom-school-detail .editor h3 {
    font-size: 18px;
  }
  #bathroom-school-detail .editor h4 {
    font-size: 16px;
  }
  #bathroom-school-detail .editor table {
    font-size: 13px;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
}

