﻿@charset "utf-8";
@import url("all_shared.css");
@import url("page.css");

/*TOP回到最上面*/
#TOP {
  position: absolute;
  top: -95px;
  padding-top: 0px;
  right: 10px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 999;
  opacity: 0.8;
  border-radius: 11px;
  box-shadow: 0px 2px 6px 1px rgba(69, 69, 69, 0.4);
  transition: 0.3s;
}
#TOP:hover {
  opacity: 1;
}
#TOP img {
  width: 100%;
  height: auto;
}

/* 錨點補償 */
:root {
  --header-h: 70px;
}
a[name] { scroll-margin-top: var(--header-h); }
/* 錨點補償 */
/*-----------header*/
.header {
  width: 100%;
  z-index: 9999;
  transition: top 0.5s ease-in-out;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  left: 0;
  box-shadow: 0 0px 6px 0px #53535352;
}
.header .headerbox {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0 15px;
  height: var(--header-h);
  margin: 0 auto;
}
.header .headerbox .logo {
  font-size: 0;
}
.header .headerbox .logo a {
  display: inline-block;
  height: 65px;
}
.header .headerbox .logo img {
  height:100% ;
  width: auto;
}
.header .headerbox .topmenu {
  align-self: flex-start;
  width: fit-content;
  align-items: center;
  height: 70px;
  gap: 15px;
  display: flex;
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  /* padding-top: 10px; */
}
.header .headerbox .topmenu .searchbox {
  border-bottom: 1px #b2b2b2 solid;
  align-items: center;
}
.header .headerbox .topmenu .searchbox .input-search {
  width: 130px;
  border: 0;
  font-size: 16px;
  padding: 0;
}
.header .headerbox .topmenu .searchbox .input-search::placeholder {
  color: #9e9e9e;
}
.header .headerbox .topmenu .searchbox .btn-search {
  display: inline-block;
  width: 18px;
  height: auto;
  border: 0;
  opacity: 0.8;
}
.header .headerbox .topmenu .searchbox .btn-search img {
  width: 100%;
}
#menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  gap: 20px;
  margin: auto;
  position: relative;
}
#menu > li {
  width: auto;
  position: relative;
}
#menu li {
}

#menu > li > a {
  display: inline-block;
  padding: 0px 0px 2px 0px;
  font-size: 19px;
  text-decoration: none;
  transition: 0.3s;
  border-radius: 30px;
  color: #5c5c5c;
  font-weight: 400;
}
#menu > li > a:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: -5px;
  display: inline-block;
  width: 100%;
  height: 5px;
  border-radius: 30px;
  background: #d3d3d3;
  transition: 0.5s;
}

#menu li > ul {
  display: none;
  margin: 0;
  z-index: 8000;
  line-height: 150%;
  list-style: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 160px;
  height: auto;
  background: rgba(0, 0, 0, 0.8);
  scroll-behavior: smooth;
  overflow: hidden;
}

#menu li ul li {
  float: left;
  display: block;
  width: 100%;
  height: auto;
  padding: 0px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left;
  line-height: 150%;
  transition: 0.2s;
}
#menu li ul li:hover {
  background-color: #000000;
}

#menu li ul li:first-child {
  border-top: 0;
}

#menu li ul li a {
  display: block;
  color: #eeeeee;
  width: auto;
  padding: 15px 10px;
  line-height: 110%;
  font-size: 18px;
  text-decoration: none;
  font-weight: normal;
}

#menu li ul li a:hover {
  text-decoration: none;
  color: #ffffff;
  transition: all 0.5s ease-out;
  font-weight: normal;
}

#nav.nav-panel > ul > li h2 a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-panel > ul > li h2 a img {
  height: 20px;
}
/*header-----------end*/
/*adv-----------------*/
.adv {
  width: 100%;
  height: auto;
  margin: auto;
}
.adv .advbox {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: auto;
  font-size: 0;
}
.adv .advbox img {
  width: 100%;
  height: auto;
}

/*footer*/
.footer {
  width: 100%;
  height: auto;
  margin: 0 auto;
  clear: both;
  z-index: 99999;
  background: linear-gradient(to bottom, #ffffff 0%, #d9d7d7 100%);
  border-top: 2px solid #f2f2f2;
}

.footer .footerbox {
  width: 95%;
  margin: auto;
  padding: 40px 0;
  display: flex;
  align-items: center;
  font-size: 15px;
}

.footer .footerbox .footer-logo {
  width: 130px;
  padding: 0 30px 0 0;
  flex: 0 0 auto;
  overflow: hidden;
}
.footer .footerbox .footer-logo img {
  width: 100%;
}
.footer .footerbox .footer-text {
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px #b2b2b2 solid;
  box-shadow: -1px 0 0px 0px #ffffff;
}
.footer .footerbox .footer-text .text span {
  padding: 0 10px;
}
.footer .footerbox .footer-text .text span:first-child {
  border-right: 1px solid #bdbdbd;
  padding-left: 0;
}
.footer .footerbox .footer-text .title {
  font-size: 120%;
  font-weight: 500;
}

.footer .footerbox .footer-text .f-menu a {
  display: inline-block;
  font-size: 110%;
  color: #1f1f1f;
  padding: 0px 10px;
  border-right: 1px #1f1f1f solid;
}
.footer .footerbox .footer-text .f-menu a:hover {
  text-decoration: underline;
}
.footer .footerbox .footer-text .f-menu a:first-child {
  padding-left: 0;
}
.footer .footerbox .footer-text .f-menu a:last-child {
  border-right: 0;
}
.footer .footerbox .footer-text .copyright {
  font-size: 80%;
  color: #717171;
}
.footer-link p {
  text-align: right;
}
/*外部連結*/
.footer-link {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  margin-left: auto;
}
.footer-link ul {
  display: none;
}
.topmenu .linkgroup {
  padding: 0 0 0 15px;
  border-left: 1px solid #d1d1d1;
}
.linkgroup {
  display: flex;
  gap: 10px;
}
.linkgroup > li {
  cursor: pointer;
  position: relative;
  padding: 0px;
  font-size: 0;
}
.linkgroup .btn-img {
  display: inline-block;
  height: 23px;
  padding: 0;
  width: auto;
  opacity: 0.65;
}
.linkgroup > li .btn-img:hover {
  opacity: 1;
  transition: 0.5s;
}
.linkgroup .btn-img img {
  height: 100%;
  width: auto;
}
.linkgroup .btn-listbox {
  display: none;
  position: absolute;
  top: 24px;
  right: 50%;
  transform: translateX(50%);
  z-index: 99;
}
.linkgroup > li:hover .btn-listbox {
  display: block;
  background-color: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 20px;
  box-shadow: 1px 1px 6px 2px #0000001f;
  overflow: hidden;
}
.linkgroup > li:hover .btn-listbox li a {
  color: #1f1f1f;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  width: max-content;
  font-size: 16px;
}
.linkgroup > li:hover .btn-listbox li:hover {
  background-color: #ededed;
}
.linkgroup > li:hover .btn-listbox li img {
  width: 20px;
}
#nav .linkgroup {
  display: flex;
  align-items: center;
  right: 0;
  padding: 10px 10px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px #ffffff7e solid;
  background-color: #626262;
}
#nav .linkgroup > li {
  border: 0;
}
#nav .linkgroup > li > a {
  padding: 0;
}
#nav .linkgroup .btn-listbox {
  left: 0;
  width: max-content;
  right: inherit;
  transform: inherit;
}
#nav .linkgroup .btn-img {
  height: 26px;
  padding: 0;
}
#nav .linkgroup .btn-listbox a {
  display: flex;
  font-size: 16px;
  color: #1f1f1f;
  padding: 8px 10px;
}
#nav .linkgroup .searchbox {
  background-color: #fff;
  display: flex;
  height: 30px;
  width: calc(100% - 132px);
  align-items: center;
  margin-left: auto;
}
#nav .linkgroup .searchbox form {
  width: 100%;
  display: flex;
  height: 30px;
  align-items: center;
}
#nav .linkgroup .searchbox .input-search {
  border: 0;
  padding: 0 5px;
  width: calc(100% - 35px);
  font-size: 16px;
}
#nav .linkgroup .searchbox .btn-search {
  display: inline-block;
  padding: 3px 6px;
  height: 25px;
}
#nav .linkgroup .searchbox .btn-search img {
  height: 100%;
}
/*article-------------*/
.article {
  width: 100%;
  height: auto;
  margin: auto;
  overflow: hidden;
}
.article .articlebox {
  width: 100%;
  height: auto;
  margin: auto;
  display: flex;
  flex-direction: column;
}
/*灰背景*/
.page-section.bg-gray {
  background: url(/frontimages/icon-08.svg) no-repeat center;
  background-size: cover;
  box-shadow: 0 2px 8px 0px rgb(0 0 0 / 30%);
}

/*首頁*/
.article .articlebox .index-imgbox {
  width: 100%;
  margin: auto;
  position: relative;
}
.article .articlebox .index-imgbox .imgbox {
  font-size: 0;
}
.article .articlebox .index-imgbox .imgbox img {
  width: 100%;
}
.article .articlebox .index-imgbox .bottom-textbox {
  width: 100%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #00000000 0%, rgba(0, 0, 0, 0.5) 80%);
  padding: 0 0 40px 0;
  color: #fff;
}
.index-imgbox .bottom-textbox .index-date {
  font-size: 18px;
}
.index-imgbox .bottom-textbox .index-date span {
  padding: 0 20px;
  border-left: 1px solid #fff;
  line-height: 25px;
}
.index-imgbox .bottom-textbox .index-date span:first-child {
  border: 0;
}
.index-imgbox .bottom-textbox .index-title {
  font-size: 45px;
  text-align: center;
  font-weight: 500;
  width: 90%;
  line-height: 50px;
}
.index-imgbox .bottom-textbox .index-btn {
  display: flex;
  gap: 15px;
}
.index-imgbox .bottom-textbox .index-btn a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.3);
  display: inline-block;
  padding: 8px 20px;
  font-size: 18px;
  transition: 0.3s;
}
.index-imgbox .bottom-textbox .index-btn a:hover {
  background-color: #fff;
  color: #1f1f1f;
}
/* == 手機版型區 =============================== */
@media screen and (max-width: 767px) {
:root {
  --header-h: 65px;
}
a[name] { scroll-margin-top: var(--header-h); }
  .header {
    width: 100%;
    height: auto;
  }
  .header .headerbox .logo a {
    display: inline-block;
    width: 160px;
  }
  .header .headerbox .logo img {
    height: 100%;
    width: auto;
  }
  .header .headerbox .topmenu {
    display: none;
  }
  .header .headerbox .topbox {
    position: absolute;
    right: 65px;
  }
  .header .headerbox {
    width: 100%;
    height:var(--header-h);
    margin: 0 auto;
    padding-left: 10px;
  }
  /*adv*/
  .adv {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0px auto;
  }

  .adv .ADVbox {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0px auto;
    font-size: 0;
  }

  .adv .ADVbox img {
    width: 100%;
    height: auto;
  }
  .footer {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .footer .footerbox {
    width: 95%;
    height: auto;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
  }
  .footer .footerbox .footer-logo {
    width: 80px;
    padding: 0 0px 0 0;
  }
  .footer .footerbox .footer-text {
    padding-left: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-left: 0px #b2b2b2 solid;
    box-shadow: 0px 0 0px 0px #ffffff;
  }
  .footer .footerbox .footer-text .text {
    text-align: center;
  }
  .footer .footerbox .footer-text .text span {
    display: block;
  }
  .footer .footerbox .footer-text .text span:first-child {
    border-right: 0px solid #bdbdbd;
    padding-left: 0;
  }
  .footer .footerbox .footer-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
    color: #666666;
    align-items: center;
    align-self: center;
  }
  .footer .footerbox .footer-text .f-menu {
    text-align: center;
  }
  .linkgroup {
    display: none;
  }
  .footer-link .linkgroup {
    display: flex;
  }
  .footer-link .linkgroup .btn-listbox {
    left: 50%;
    transform: translateX(-50%);
    bottom: 41px;
    top: auto;
    width: max-content;
  }
  /*header---------------------*/
  .article .articlebox {
    width: 100%;
    height: auto;
    margin: auto;
    overflow: hidden;
  }
  /**/

  /*首頁*/
  .article .articlebox .index-imgbox .bottom-textbox {
    gap: 10px;
    padding: 0 0 15px 0;
    height: 80%;
  }
  .index-imgbox .bottom-textbox .index-title {
    font-size: 25px;
    text-align: center;
    font-weight: 500;
    line-height: 28px;
  }
  .index-imgbox .bottom-textbox .index-date {
    font-size: 14px;
  }
  .index-imgbox .bottom-textbox .index-date span {
    padding: 0 15px;
    border-left: 1px solid #fff;
  }
  .index-imgbox .bottom-textbox .index-btn {
    display: flex;
    gap: 10px;
  }
  .index-imgbox .bottom-textbox .index-btn a {
    padding: 4px 10px;
    font-size: 16px;
  }
}
/* == 平板版型區 =============================== */
@media screen and (min-width: 768px) and (max-width: 1200px) {
:root {
  --header-h: 65px;
}
a[name] { scroll-margin-top: var(--header-h); }
  /*adv*/
  .adv {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0px auto;
  }

  .adv .ADVbox {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0px auto;
    font-size: 0;
  }

  .adv .ADVbox img {
    width: 100%;
    height: auto;
  }

  /*-----------header*/
  .header {
    width: 100%;
    height: auto;
  }

  .header .headerbox {
    width: 100%;
    height: var(--header-h);
    margin: 0 auto;
  }
  .header .headerbox .logo a {
    display: inline-block;
    width: 160px;
  }
  .header .headerbox .topmenu {
    display: none;
  }
  .linkgroup {
    display: none;
  }
  #nav .linkgroup .searchbox {
    background-color: #fff;
    display: flex;
    height: 30px;
    width: 300px;
    align-items: center;
  }
  /*header---------------------*/
  /*footer*/
  .footer {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .footer .footerbox {
    width: 95%;
    height: auto;
    margin: 0 auto;
  }

  /*首頁*/
  .article .articlebox .index-imgbox .bottom-textbox {
    gap: 10px;
    padding: 0 0 30px 0;
  }
  .index-imgbox .bottom-textbox .index-title {
    font-size: 30px;
    text-align: center;
    font-weight: 500;
    line-height: 35px;
  }
}
