@charset "UTF-8";
/* ---------------------------------------- */
/*   layout.css                             */
/*    |- 01 global（全域設定）                */
/*    |- 02 header                          */
/*    |- 03 footer                          */
/*    |- 04 頁面共用 class                   */
/* ---------------------------------------- */
:root {
  --primary: #123d83;
  --primary-dark: #0e264c ;
  --primary-light: #348fad;
  --primary-background: #e5eff7;
  --primary-background-light: #ecf2f6;
  --primary-background-lighter: #f6fafb;
  --black: #111111;
  --dark: #333;
  --dark-grey: #666;
  --sec-grey: #969696;
  --grey: #d3d3d3;
  --light-grey: #eeeeee;
  --white-grey: #f2f2f2;
  --background: #f8f8f8;
  --white: #fff;
  --error: #d6141c;
}

/* ---------------------------------------- */
/*  全域設定                                 */
/* ---------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
}

a {
  text-decoration: none;
  color: var(--black);
  font-size: 16px;
  transition: 0.3s;
}
a:hover {
  color: var(--primary);
}

/* ---------------------------------------- */
/*  header                                  */
/* ---------------------------------------- */
.header {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 0 0 37px;
  height: 100px;
  background-color: #e5eff7;
  z-index: 200;
  transition: 0.3s;
}
@media (max-width: 1200px) {
  .header {
    padding: 10px 0px;
    height: 90px;
    background-color: var(--white);
  }
}
.header.bg-white {
  background-color: var(--white);
  border-bottom: 1px solid var(--light-grey);
}
.header .logo {
  display: block; position: absolute; left: 37px;
}
.header .logo img {
  display: block;
  width: 300px;
}
@media (max-width: 1200px) {
.header .logo {
  left: 17px;
}
  .header .logo img {
    width: 250px;
  }
}
@media (max-width: 500px) {
.header .logo {
  left: 8px;
}
  .header .logo img {
    width: 240px;
  }
}
@media (max-width: 400px) {
  .header .logo img {
    width: 210px;
  }
}

.navigation-wrapper {
  display: flex;
}
@media (max-width: 1200px) {
  .navigation-wrapper {
    flex-direction: column;
  }
}

.navigation {
  display: flex;
  justify-content: space-between;
  height: 100%;
}
@media (max-width: 1200px) {
  .navigation {
    position: fixed;
    flex-direction: column;
    top: 90px;
    right: -100%;
    bottom: 0;
    padding: 30px 30px 0;
    width: 100%;
    height: calc(100% - 90px);
    z-index: 10;
    overflow-y: scroll;
    background-color: var(--white);
    transition: right 0.3s;
  }
  .navigation.active {
    right: 0;
  }
}
.navigation.active {
  transform: translateX(0);
}
.navigation-list {
  display: flex;
}
@media (max-width: 1200px) {
  .navigation-list {
    flex-direction: column;
    margin-bottom: 40px;
    width: 100%;
  }
}
.navigation-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 60px;
  transition: 0.3s;
}
@media (max-width: 1200px) {
  .navigation-item {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0;
  }
  .navigation-item + .navigation-item {
    border-top: 1px dotted var(--grey);
  }
}
.navigation-item:last-child {
  margin-right: 0;
}
.navigation-item::before {
  position: absolute;
  content: "";
  left: 0;
  height: 35px;
  width: 1px;
}
@media (max-width: 1200px) {
  .navigation-item::before {
    display: none;
  }
}
@media (max-width: 1200px) {
  .navigation-item.accordion::before, .navigation-item.accordion::after {
    display: block;
    content: "";
    position: absolute;
    top: 30px;
    left: initial;
    right: 30px;
    z-index: 1;
    width: 14px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.5);
  }
  .navigation-item.accordion::after {
    transform: rotate(-90deg);
  }
}
@media (min-width: 1025px) {
  .navigation-item:hover .navigation-sub {
    display: block;
  }
}
@media (min-width: 1280px) {
  .navigation-item:hover > a,
  .navigation-item:hover .navigation-link {
    color: var(--primary-light);
  }
}
.navigation-item > a {
  font-size: 17px;
  color: var(--black);
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
@media (max-width: 1200px) {
  .navigation-item > a {
    padding: 20px 0;
    width: fit-content;
  }
}
.navigation-item > a:hover {
  color: var(--primary-light);
}
.navigation-link {
  display: block;
  font-size: 17px;
  transition: color 0.3s;
}
@media (max-width: 1200px) {
  .navigation-link {
    display: flex;
    align-items: center;
    padding: 20px 0;
    width: fit-content;
  }
}
.navigation-link:hover {
  color: var(--primary-light);
}
@media (max-width: 1200px) {
  .navigation-link:hover {
    color: var(--black);
  }
}
.navigation-sub {
  display: none;
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  width: 200px;
  list-style: none;
  background-color: var(--white);
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: border-top 0.3s;
}
@media (max-width: 1200px) {
  .navigation-sub {
    position: initial;
    display: block;
    transform: translateX(0);
    height: 0;
    overflow: hidden;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    transition: height 0.3s;
  }
}
.navigation-sub.active {
  display: block;
  height: auto;
}
.navigation-sub .sub-item {
  text-align: center;
  transition: 0.3s;
}
@media (max-width: 1200px) {
  .navigation-sub .sub-item {
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
  }
}
.navigation-sub .sub-item:hover {
  background-color: var(--background);
}
.navigation-sub .sub-item > a {
  display: block;
  padding: 12px 15px;
  font-size: 15px;
}
@media (max-width: 1200px) {
  .navigation-sub .sub-item > a {
    padding: 12px;
  }
}

.button-groups {
  display: flex;
  align-items: center;
  margin-left: 50px;
}

.button-groups a {
  display: block;
}
.button-groups img {
  display: block;
  width: 100%;
}
.button-groups .search-button,
.button-groups .language {
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 100%;
  cursor: pointer;
  min-height: 100px;
}
.button-groups .search-button > img,
.button-groups .language > img {
  width: 20px;
}
.button-groups .search-button {
  background-color: var(--primary);
}
@media (max-width: 1200px) {
.button-groups {
  margin-left: 0px;
}
.button-groups .search-button,
.button-groups .language {
  min-height: 90px;
}
}
@media (max-width: 600px) {
.button-groups .search-button,
.button-groups .language {
  padding: 0 15px;
}
}
@media (max-width: 400px) {
.button-groups .search-button,
.button-groups .language {
  padding: 0 10px;
}
}
.button-groups .language {
  position: relative;
  background-color: var(--error);
}


.button-groups .language:hover button::before {
  opacity: 0;
}
.button-groups .language:hover button::after {
  opacity: 1;
}
.button-groups .language:hover .icon::before {
  opacity: 0;
}
.button-groups .language:hover .icon::after {
  opacity: 1;
}
.button-groups .language .icon {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--white);
}

.button-groups .language .icon > img {
  width: 20px;
}
.button-groups .language-menu {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  display: none;
  flex-direction: column;
  background-color: var(--white);
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}
@media (max-width: 1200px) {
.button-groups .language-menu {
  top: 86px;
}
}
@media (max-width: 700px) {
.button-groups .language span{
  display: none;
}
.button-groups .language-menu {
  left: auto;
  right: 0px;
  width: auto;
  transform: translateX(0);
}
}

.button-groups .language-menu > a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  white-space: nowrap;
}

.button-groups .language-menu > a:hover {
  background-color: var(--white-grey);
}

.mobile-menu {
  display: flex;
  align-items: center;
  background-color: var(--primary-light);
  min-height: 90px;
  padding: 0px 20px;
}
@media (min-width: 1201px) {
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 600px) {
.mobile-menu {
  padding: 0 10px;
}
}
@media (max-width: 400px) {
.mobile-menu {
  padding: 0 8px;
}
}

.hamburger {
  display: none;
  position: relative;
  margin: 0;
  width: 25px;
  height: 16px;
  z-index: 10;
  cursor: pointer;
}
@media (max-width: 1200px) {
  .hamburger {
    display: block;
  }
}
.hamburger-line {
  display: block;
  position: absolute;
  height: 1.5px;
  width: 25px;
  background: #FFF;
  border-radius: 1px;
  opacity: 1;
  left: 0;
  transform: rotate(0);
  transition: all 0.25s ease-in-out;
}
.hamburger-line:first-child {
  top: 0;
}
.hamburger-line:first-child.active {
  opacity: 0;
}
.hamburger-line:nth-child(2), .hamburger-line:nth-child(3) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-line:nth-child(2).active {
  opacity: 1;
  transform: rotate(45deg);
}
.hamburger-line:nth-child(3).active {
  transform: rotate(-45deg);
}
.hamburger-line:last-child {
  bottom: 0;
}
.hamburger-line:last-child.active {
  opacity: 0;
}

/* ---------------------------------------- */
/*  footer                                  */
/* ---------------------------------------- */
.footer {
  padding: 20px 0;
  background-color: #314665;
  color: var(--white);
}
.footer a {
  color: var(--white);
}
.footer .wrapper {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 1279px) {
  .footer .wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
}
.footer .contact {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 1px;
}
.footer .footer-right {
  width: 100%;
  display: flex;  justify-content: space-between; align-items: center;
}
@media (max-width: 1100px) {
  .footer .footer-right {
    flex-wrap: wrap;
  }
  .footer .footer-right .nav {
  width: 100%; display: flex;  justify-content: center; align-items: center;
}
.footer .footer-right .copyright {
  width: 100%; text-align: center;
}
}
.footer .footer-right .nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer .footer-right .nav .nav-item {
  position: relative;
}
.footer .footer-right .nav .nav-item:not(:last-child)::after {
  content: "．";
  margin: 0 8px;
}
@media (max-width: 767px) {
  .footer .footer-right .nav .nav-item:not(:last-child)::after {
    display: none;
  }
  .footer .footer-right .nav a {
  margin: 0 10px;
}
}
.footer .footer-right .nav a {
  font-size: 15px;
  padding: 0 0px 0 0;
}
.footer .footer-right .copyright {
  font-size: 15px;
  line-height: 1.33;
  color: rgba(255, 255, 255, 0.5);
}
.footer .footer-right .copyright a {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------------- */
/*  共用 class                               */
/* ---------------------------------------- */
main {
  min-height: calc(100vh - 158px); /* 減去 footer 高度 */
}
@media (max-width: 1279px) {
  main {
    min-height: calc(100vh - 243px);
  }
}
@media (max-width: 767px) {
  main {
    min-height: calc(100vh - 257px);
  }
}
main.main {
  padding-top: 100px;
}
@media (max-width: 1279px) {
  main.main {
    padding-top: 100px;
  }
}
@media (max-width: 767px) {
  main.main {
    padding-top: 140px;
  }
}
main.page-bg {
  position: relative;
}
main.page-bg::before, main.page-bg::after {
  position: absolute;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}
main.page-bg::before {
  top: 118px;
  left: 0;
  width: 290px;
  height: 285px;
  background-image: url("../images/icon/bg-deco-1.svg");
}
@media (max-width: 1279px) {
  main.page-bg::before {
    top: 90px;
  }
}
main.page-bg::after {
  right: 0;
  bottom: 0;
  width: 620px;
  height: 570px;
  background-image: url("../images/icon/bg-deco-2.svg");
}

.wrapper {
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
  max-width: 1420px;
}

.content-wrapper {
  margin: 0 auto;
  padding: 0 60px 100px;
  max-width: 1280px;
}
@media (max-width: 1279px) {
  .content-wrapper {
    padding: 0 30px 50px;
  }
}

.background-mask {
  position: fixed;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 200;
  background: rgba(26, 26, 26, 0.7);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.background-mask.active {
  height: 100vh;
  opacity: 1;
}

/*  ---------------------------------------- */
/*   按鈕                                    */
/* ---------------------------------------- */
.button--download, .button--white, .button--black, .button--solid-primary, .button--plus, .button {
  display: inline-block;
  padding: 15px 50px;
  border: 1px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.button--download:hover, .button--white:hover, .button--black:hover, .button--solid-primary:hover, .button--plus:hover, .button:hover {
  background-color: var(--primary);
  color: var(--white);
}

.button--plus {
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  padding: 17px 36px 17px 45px;
  border: none;
  color: var(--white);
  background: linear-gradient(to top, #1eb8d4, #123d83);
  transition: 0.3s;
}
.button--plus img {
  margin-left: 20px;
  width: 20px;
  height: 20px;
}
.button--plus:hover {
  background: linear-gradient(to top, #123d83, #1eb8d4);
}

.button--solid-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.button--solid-primary:hover {
  background-color: var(--primary-dark);
}

.button--black {
  border: 1px solid var(--black);
  color: var(--black);
}
.button--black:hover {
  background-color: var(--black);
  color: var(--white);
}

.button--white {
  border: 1px solid var(--white);
  color: var(--white);
}
.button--white:hover {
  background-color: var(--white);
  color: var(--primary);
}

.button--download {
  display: flex;
  margin: 15px 0;
  width: fit-content;
}
.button--download img {
  margin: 0 0 0 8px;
  width: 16px;
}
.button--download:hover {
  background-color: var(--primary-background);
  color: var(--primary);
}

/*  ---------------------------------------- */
/*   隱私權提醒                               */
/* ---------------------------------------- */
.privacy-box {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  margin: 0 auto;
  padding: 24px 50px;
  background-color: var(--white);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  line-height: 22px;
  font-weight: 400;
  font-size: 14px;
  border-radius: 4px;
  z-index: 10;
}
@media (max-width: 1279px) {
  .privacy-box {
    bottom: 1.5rem;
  }
}
@media (max-width: 767px) {
  .privacy-box {
    padding: 24px;
  }
}
.privacy-box .button-group {
  display: flex;
  gap: 15px;
  white-space: nowrap;
}
.privacy-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
@media (max-width: 767px) {
  .privacy-wrapper {
    flex-direction: column;
    gap: 15px;
  }
}
.privacy-wrapper a {
  color: var(--primary-light);
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.3s ease;
  font-size: 14px;
}
.privacy-wrapper a:hover {
  opacity: 0.7;
}
.privacy-button {
  padding: 8px 20px;
  border: 1px solid var(--primary);
  background-color: var(--white);
  color: var(--primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.5s ease-out;
}
.privacy-button:hover {
  background-color: var(--light-grey);
  color: var(--primary);
}
.privacy-button.solid {
  background-color: var(--primary);
  color: var(--white);
}
.privacy-button.solid:hover {
  background-color: var(--primary-dark);
}

/*  ---------------------------------------- */
/*   各頁標題                                 */
/* ---------------------------------------- */
.content-top {
  margin: 50px auto;
  padding: 0 60px;
  width: 100%;
  max-width: 1280px;
}
@media (max-width: 767px) {
  .content-top {
    margin: 0 auto;
  }
}
.content-top .title {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}
@media (max-width: 767px) {
  .content-top .title {
    margin: 30px 0 0 0;
    font-size: 24px;
  }
}

.page-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .page-title {
    margin-bottom: 24px;
  }
}
.page-title p {
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: var(--primary-light);
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .page-title p {
    font-size: 18px;
  }
}
.page-title h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 60px;
  letter-spacing: 1.2px;
  color: #333;
}
@media (max-width: 767px) {
  .page-title h1 {
    font-size: 30px;
  }
}

/*  ---------------------------------------- */
/*   麵包屑                                  */
/* ---------------------------------------- */
.breadcrumbs {
  display: flex;
  margin: 30px 0 40px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--dark-grey);
}
@media (max-width: 767px) {
  .breadcrumbs {
    display: none;
  }
}
.breadcrumbs-item {
  position: relative;
}
.breadcrumbs-item:not(:first-child):after {
  position: absolute;
  content: "/ ";
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  color: var(--sec-grey);
  font-size: 13px;
}
.breadcrumbs-item + .breadcrumbs-item {
  margin-left: 20px;
  padding-left: 20px;
}
.breadcrumbs-item a {
  font-size: 14px;
  color: var(--sec-grey);
}
.breadcrumbs-item a:hover {
  color: var(--primary);
}

/*  ---------------------------------------- */
/*   網站架構（側邊欄）                         */
/* ---------------------------------------- */
.content-has-sidebar {
  display: flex;
  margin: 0 auto;
  padding: 0 60px 100px;
  width: 100%;
  max-width: 1280px;
}
@media (max-width: 1279px) {
  .content-has-sidebar {
    padding: 0 24px 50px;
  }
}
@media (max-width: 767px) {
  .content-has-sidebar {
    flex-direction: column;
    padding: 30px;
  }
}

/* ---------------- 網站架構 ---------------- */
.main:not(.homepage) {
  /* ----------------- 側邊欄 ----------------- */
  /* -------------- 內容（有側邊欄） -------------- */
}
.main:not(.homepage) .content {
  display: flex;
  width: 100%;
  max-width: 100%;
}
@media (max-width: 767px) {
  .main:not(.homepage) .content {
    flex-direction: column;
  }
}
.main:not(.homepage) .content-sub {
  margin: 0 70px 50px 0;
  padding: 25px 25px 10px;
  width: 250px;
  height: fit-content;
  box-sizing: border-box;
}
@media (max-width: 1279px) {
  .main:not(.homepage) .content-sub {
    margin: 0 30px 50px 0;
    width: 160px;
    min-height: initial;
  }
}
@media (max-width: 767px) {
  .main:not(.homepage) .content-sub {
    position: relative;
    margin: 0 0 30px;
    padding: 0;
    width: 100%;
    min-height: initial;
    border: none;
    background: var(--background);
    box-shadow: none;
  }
}
.main:not(.homepage) .content-sub .title {
  position: relative;
  margin-bottom: 15px;
  padding: 0 0 15px 0;
  font-size: 20px;
  font-weight: 500;
}
@media (max-width: 767px) {
  .main:not(.homepage) .content-sub .title {
    margin-bottom: 0;
    padding: 15px 55px 15px 20px;
    height: 55px;
    border: 1px solid var(--grey);
    font-size: 16px;
  }
}
.main:not(.homepage) .content-sub .title::before, .main:not(.homepage) .content-sub .title::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
  height: 1px;
}
@media (min-width: 1280px) {
  .main:not(.homepage) .content-sub .title::before {
    width: 100%;
    background-color: var(--light-grey);
  }
}
@media (min-width: 1280px) {
  .main:not(.homepage) .content-sub .title::after {
    width: 20%;
    background-color: var(--primary-light);
  }
}
.main:not(.homepage) .content-sub .nav-container {
  position: relative;
}
.main:not(.homepage) .content-sub .nav {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 1;
}
@media (max-width: 767px) {
  .main:not(.homepage) .content-sub .nav {
    display: none;
    position: absolute;
    top: 55px;
    width: 100%;
    border: 1px solid var(--grey);
    border-top: none;
  }
}
.main:not(.homepage) .content-sub .nav-item {
  position: relative;
  line-height: 1.5;
  text-transform: capitalize;
}
@media (max-width: 767px) {
  .main:not(.homepage) .content-sub .nav-item {
    background-color: var(--white);
  }
  .main:not(.homepage) .content-sub .nav-item:not(:last-child) {
    border-bottom: 1px solid var(--grey);
  }
}
.main:not(.homepage) .content-sub .nav-item.active .accordion-menu {
  display: block;
}
.main:not(.homepage) .content-sub .nav-item .category-title {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  transition: 0.3s;
  color: var(--primary);
  cursor: pointer;
}
@media (max-width: 767px) {
  .main:not(.homepage) .content-sub .nav-item .category-title {
    padding: 15px;
  }
}
.main:not(.homepage) .content-sub .nav-item .accordion-menu {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white-grey);
}
.main:not(.homepage) .content-sub .nav-item .accordion-menu a {
  display: block;
  color: var(--dark-grey);
}
.main:not(.homepage) .content-sub .nav-item .accordion-item {
  display: flex;
  align-items: center;
  padding: 8px 25px;
  line-height: 1.7;
  color: var(--grey);
}
.main:not(.homepage) .content-sub .nav-item .accordion-item:hover a {
  color: var(--primary);
}
.main:not(.homepage) .content-sub .nav-item .accordion-item.active a {
  color: var(--primary);
}
.main:not(.homepage) .content-sub .sub-nav {
  display: flex;
  flex-direction: column;
  padding-left: 30px;
  font-size: 15px;
}
.main:not(.homepage) .content-sub .sub-nav-item {
  position: relative;
  margin-bottom: 10px;
  color: var(--dark-grey);
}
.main:not(.homepage) .content-sub .sub-nav-item::before {
  position: absolute;
  content: "";
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--dark-grey);
}
.main:not(.homepage) .content-main {
  width: calc(100% - 320px);
  margin-bottom: 100px;
}
@media (max-width: 1279px) {
  .main:not(.homepage) .content-main {
    width: calc(100% - 180px);
  }
}
@media (max-width: 767px) {
  .main:not(.homepage) .content-main {
    margin-bottom: 60px;
    width: 100%;
  }
}
.main:not(.homepage) .content-main h1.title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--light-grey);
}

/*  ---------------------------------------- */
/*   搜尋欄                                  */
/* ---------------------------------------- */
.search-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 30px;
  width: calc(100% - 40px);
  max-width: 500px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
  cursor: initial;
  z-index: 201;
}
.search-box > .container {
  margin: 0 auto;
  padding: 60px 30px;
  max-width: 768px;
}
@media (max-width: 767px) {
  .search-box {
    padding: 0;
  }
}
.search-box .close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 25px;
  height: 25px;
  cursor: pointer;
}
.search-box .title {
  line-height: 1.5;
  font-size: 36px;
  color: var(--primary);
}

.search-form {
  margin-top: 15px;
  display: flex;
  align-items: center;
}
.search-form .search-input,
.search-form .submit {
  border: none;
  outline: none;
}
.search-form .search-input {
  padding: 0 20px;
  width: calc(100% - 52px);
  height: 52px;
  background: var(--white);
  font-size: 16px;
  border: 1px var(--grey) solid;
  border-radius: 5px 0 0 5px;
  transition: 0.3s;
}
@media (max-width: 1279px) {
  .search-form .search-input {
    height: 40px;
  }
}
.search-form .search-input::placeholder {
  color: var(--grey);
}
.search-form .search-input:hover, .search-form .search-input:focus {
  border: 1px var(--sec-grey) solid;
}
.search-form .submit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}
@media (max-width: 1279px) {
  .search-form .submit {
    width: 40px;
    height: 40px;
  }
}
.search-form .submit:hover {
  background: var(--primary);
}
.search-form .submit img {
  display: block;
  width: 18px;
  height: 18px;
}

/*  ---------------------------------------- */
/*   圖文編輯器                               */
/* ---------------------------------------- */
.user_editor {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: static !important;
  overflow-x: auto;
  line-height: 1.6;
  letter-spacing: 0.8px;
}
.user_editor table {
  width: 100% !important;
}
.user_editor img {
  margin: 10px 0;
  max-width: 100% !important;
}

/*  ---------------------------------------- */
/*   頁碼                                    */
/* ---------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 50px 0 0 0;
  list-style: none;
  font-family: "Noto Sans TC", sans-serif;
}
.pagination-item {
  display: flex;
  margin: 0 4px;
  border-radius: 50%;
  transition: all 0.5s;
}
.pagination-item:hover .link {
  color: var(--primary-light);
}
.pagination-item:hover .link img {
  opacity: 0.4;
}
.pagination-item img {
  width: 7px;
  height: auto;
  transition: 0.3s;
}
.pagination-item .link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  transition: 0.3s;
  color: var(--dark-grey);
}
.pagination-item .icon-next {
  transform: rotate(180deg);
}
.pagination-item.active {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}
.pagination-item.active .link {
  color: var(--white);
}

/*# sourceMappingURL=layout.css.map */
