/* 前台兩個 layout 共用的基礎樣式：由 style.css 與 inner/header.css 中完全相同的規則抽出
 * 須在各 layout 的主樣式之前載入，主樣式才能照原本順序覆寫
 */

/* 全站色彩與尺寸變數；深色模式在 dark-mode.css 的 body.dark-mode 覆寫同名變數 */
:root {
  /* GO TOP 的直徑；頁尾的避讓高度也讀這個值，兩邊才不會各自寫死 */
  --go-top-size: 3.25rem;
  --main-color: #FFE602;
  --sub-color: #6868AC;
  --menu-txt: #3D444F;
  --page-txt: #1F2631;
  --big-txt: 3rem;
}

a {
  color: #000;
  text-decoration: none;
  -o-transition: all .3s linear;
  -webkit-transition: all .3s linear;
  -moz-transition: all .3s linear;
  transition: all .3s linear
}

a:hover {
  color: #777;
}

* {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
}

img {
  image-rendering: -webkit-optimize-contrast;
  /* 针对WebKit引擎 */
  /*這邊的設定導致 firefox 圖片模糊？*/
  /*image-rendering: crisp-edges;*/
}

/*反白設定
::selection { background: #666; color: #FFF; }
::-moz-selection { background: #666; color: #FFF; }
*/
.alertLine {
  border-color: #d40023;
}

.red {
  color: #d40023;
}

/* 回頂端 */
#goTop {
  display: none;
  cursor: pointer;
  position: fixed;
  /* 與深色模式浮動鈕同層，避免被內容中 z-index:1 的標籤蓋住 */
  z-index: 1000;
  bottom: 1rem;
  right: 1rem;
  width: var(--go-top-size);
  height: var(--go-top-size);
  text-align: center;
  color: black;
  background: #fff;
  border: solid 1px #ccc;
  border-radius: 100%;
  box-shadow: rgba(0, 0, 0, .5) 0 0 5px
}

#goTop:hover {
  background: #999;
  color: #FFF
}

#goTop:focus {
  outline: 3px dotted var(--bs-body-bg) !important;
  outline-offset: 3px;
}

#goTop p:last-child {
  font-size: 0.7em;
  white-space: nowrap;
}

/*按鈕*/
.btnWrap {
  margin: 2em 0;
  text-align: center;
}

@media screen and (max-width: 640px) {
  #goTop {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border: 0;
    border-top: 1px solid #eee
  }

  #goTop p:last-child {
    font-size: 1rem
  }
}

/*IE瀏覽器*/
.warning {
  width: 100%;
  color: #fff;
  text-align: center;
  max-width: 1500px;
  padding: 60px 50px 50px;
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  background-color: #283d86;
  box-shadow: 0 0 15px rgba(51, 51, 51, .5);
  border-radius: 3px;
  z-index: 9999999999;
  -o-transition: all .3s linear;
  -webkit-transition: all .3s linear;
  -moz-transition: all .3s linear;
  transition: all .3s linear;
}

.off {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid #eee;
  padding: 3px 5px 3px 10px;
}

.off:hover {
  background-color: #fff;
  color: #333;
}

.useTool p {
  font-size: 1.5625rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.useTool ul {
  padding-left: 0;
  list-style: none
}

.useTool li {
  display: inline-block;
  margin: 0 5px;
}

.useTool a {
  display: block;
  background: #fff;
  padding: 7px 10px;
  border-radius: 60px;
}

.useTool b {
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.useTool figure {
  width: 30px;
  float: left;
  margin-right: 5px;
  margin-bottom: 0;
}

.useTool span {
  float: right;
  margin-top: 2px;
  font-weight: 600;
}

/* submit-loading */
.load-wrapp {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 65%);
  top: 0;
  left: 0;
  z-index: 99999;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading span {
  color: #fff;
  font-size: 1.5625rem;
  margin-top: 40px;
  display: table;
}

.spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.bubble-1,
.bubble-2 {
  position: absolute;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 100%;
  background-color: #fff;
}

.bubble-2 {
  top: auto;
  bottom: 0;
}

.loading .spinner {
  animation: loadingI 2s linear infinite;
}

.loading .bubble-1,
.loading .bubble-2 {
  -webkit-animation: bubble 2s ease-in-out infinite;
  animation: bubble 2s ease-in-out infinite;
  -moz-animation: bubble 2s ease-in-out infinite;
  -o-animation: bubble 2s ease-in-out infinite;
}

.loading .bubble-2 {
  animation-delay: -1s;
}

/* animation:loadingI */
@-o-keyframes loadingI {
  100% {
    transform: rotate(360deg);
  }
}

@-moz-keyframes loadingI {
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes loadingI {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loadingI {
  100% {
    transform: rotate(360deg);
  }
}

/* bubble */
@-o-keyframes bubble {

  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

@-moz-keyframes bubble {

  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

@-webkit-keyframes bubble {

  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

@keyframes bubble {

  0%,
  100% {
    transform: scale(0);
  }

  50% {
    transform: scale(1);
  }
}

/* submit-loading END*/

.container {
  --bs-gutter-x: 40px;
}

@media (min-width: 768px) {
  .container {
    --bs-gutter-x: 48px;
  }
}

/*全頁佈局*/
h1,
h2,
h3,
h4,
h5,
p,
ul,
figure {
  margin-bottom: 0;
}

.wrapper {
  padding: 2rem 0;
}

.mainTit--line {
  border-bottom: 1px solid rgb(123 137 159 / 50%);
  padding-bottom: 2rem;
}

.smTit--sm {
  font-size: 1rem;
  margin-top: 3rem;
}

.mainTit+.smTit {
  margin-top: 1rem
}

.underline {
  text-decoration: underline;
  color: #6868AC
}

/*清單樣式*/
.listStyle+.listStyle {
  margin-top: 3rem
}

.listStyle li+li {
  padding-top: 1rem;
  margin-top: 1rem
}

.listStyle--line {
  list-style: decimal;
  font-size: 1.25rem;
}

.listStyle--line li {
  position: relative;
}

.listStyle--line li:after {
  content: '';
  width: 100%;
  height: 1px;
  background: rgb(123 137 159 / 50%);
  position: absolute;
  bottom: -10px;
  left: -20px;
}

.listStyle--line li:first-child:before {
  content: '';
  width: 100%;
  height: 1px;
  background: rgb(123 137 159 / 50%);
  position: absolute;
  top: -10px;
  left: -20px;
}

/*提醒:編輯器插入的圖需做以下設定，圖才不會變形*/
.tx01 img {
  max-width: 100%;
  height: auto !important;
}

/*header 無障礙 按鈕*/
.accessibility {
  position: absolute;
  font-size: 0.9em;
  top: 1%;
  left: -20%;
  padding: 5px;
}

/*最上層之導覽列區塊部份*/
header {
  background: var(--main-color);
}

/* 左邊按鈕區塊 */
.nav-t-container-bar {
  font-weight: 400;
}

.nav-t-container {
  font-size: 0.9375rem;
}

.nav-t-container-font-size {
  font-weight: 700;
}

.font-size-items>button {
  background: #3d3d3b;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  min-width: 30px;
  border: none;
}

.font-size-items:has(.font-size-medium.active)>button {
  font-size: 0.85rem;
}

.font-size-items .font-size-small {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px
}

.font-size-items button.active {
  color: #4A4A49;
  background: #fff;
}

.font-size-items .font-size-large {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px
}

.nav-b-items {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-size: 1.115rem;
  font-weight: 700;
  margin: 0;
  padding: 0
}

.nav-link {
  padding: .25rem .8rem;
  font-weight: 400;
  font-size: 1rem;
  color: var(--menu-txt);
  transition: all .5s;
  border-radius: 20px;
}

.nav-link:hover {
  background: #fff;
}

.nav-b-item {
  position: relative;
}

.nav-b-item:last-of-type:before {
  content: '';
  position: absolute;
  left: -4px;
  top: 7px;
  width: 1px;
  height: 18px;
  background: rgb(0 0 0 / 40%);
}

.default-menu {
  background: #fff;
  color: #3D444F
}

.primary-navigation-offcanvas {
  width: 150px;
  background-color: rgb(255 230 2);
}

.primary-navigation-offcanvas .nav-b-item:last-of-type:before {
  display: none;
}

.primary-navigation-offcanvas .nav-link {
  color: #000;
}

.primary-navigation-close {
  width: 30px;
  height: 30px;
}

.index-nav:hover {
  background: #e4e3eb;
  color: black;
}

/*麵包屑*/
.breadCrumbs-block {
  margin-top: 15px;
}

.breadCrumbs-block .breadCrumbs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadCrumbs-block .breadCrumbs .item {
  display: inline-block;
  padding: 0 7px 0 0;
  font-size: 0.875rem;
}

.breadCrumbs-block .breadCrumbs .item:after {
  content: '»';
  display: inline-block;
  color: #4a4948
}

.breadCrumbs-block .breadCrumbs .item a {
  display: inline-block;
  padding: 0 7px 0 0;
  color: #4a4948;
}

.breadCrumbs-block .breadCrumbs .item.active:after {
  display: none
}

.breadCrumbs-block .breadCrumbs .item.active a {
  padding-right: 0;
  color: #0A6B30;
}

/*page number*/
.page-number {
  margin-top: 5rem;
}

.pagination {
  display: block;
}

.pagination>li {
  display: inline-block;
}

.pagination>li>a {
  border: none;
  color: #333;
  transition: all .5s;
  padding: 10px 18px;
  font-size: 1.1rem;
  font-weight: bold;
  background: rgb(148 163 185 / 10%);
}

.pagination>li>a:hover {
  color: #000;
}

@media (max-width: 600px) {
  .pagination>li>a {
    padding: 5px 5px;
  }
}