﻿@charset "utf-8";
@import url("all_shared.css");

/*TOP回到最上面*/
#TOP {
  position: absolute;
  top: -95px;
  padding-top: 0px;
  right: 10px;
  width: 50px;
  height: 81px;
  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;
}

/*-----------header*/
.header {
  width: 100%;
  height: 90px;
  z-index: 9999;
  position: relative;
  top: 0;
  transition: top 0.5s ease-in-out;
  position: inherit;
  background-color: #439fe6;
}
.header .headerbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 15px;
  height: 90px;
  margin: 0 auto;
}
.header .headerbox .logo {
  height: 30px;
}
.header .headerbox .logo img {
  height: 100%;
  width: auto;
}
.header .headerbox .topmenu {
  align-self: flex-start;
  width: fit-content;
  height: 80px;
  display: flex;
  background: #fff;
  padding: 0 20px;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 3px 4px 2px #00000030;
  flex: 0 0 auto;
}

.header .headerbox .topbox {
  color: #fff;
  font-size: 15px;
}

#menu {
  display: flex;
  gap: 1px;
  margin: auto;
}
#menu > li {
  width: auto;
  position: relative;
}
#menu li {
}

#menu > li > a {
  padding: 10px 15px;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
  border-radius: 30px;
  color: #1f1f1f;
  font-weight: 500;
}
#menu > li:nth-child(1) > a {
  background: url(../frontimages/icon-01.svg) no-repeat 18px center;
  background-size: 21px auto;
  padding: 10px 20px 10px 45px;
}
#menu > li:nth-child(2) > a {
  background: url(../frontimages/icon-02.svg) no-repeat 18px center;
  background-size: 21px auto;
  padding: 10px 20px 10px 45px;
}
#menu > li:nth-child(3) > a {
  background: url(../frontimages/icon-03.svg) no-repeat 18px center;
  background-size: 21px auto;
  padding: 10px 20px 10px 45px;
}
#menu > li:nth-child(4) > a {
  background: url(../frontimages/icon-04.svg) no-repeat 18px center;
  background-size: 21px auto;
  padding: 10px 20px 10px 45px;
}
#menu > li:nth-child(5) > a {
  background: url(../frontimages/icon-05.svg) no-repeat 18px center;
  background-size: 21px auto;
  padding: 10px 20px 10px 45px;
}
#menu > li:nth-child(6) > a {
  background: url(../frontimages/icon-06.svg) no-repeat 18px center;
  background-size: 21px auto;
  padding: 10px 20px 10px 45px;
}
#menu > li > a:hover {
  background-color: #ffcb5e;
  border-radius: 30px;
}

#menu li > ul {
  display: none;
  margin: 0;
  z-index: 8000;
  line-height: 150%;
  list-style: none;
  position: absolute;
  top: 35px;
  left: 0;
  width: auto;
  height: auto;
  background: rgb(255, 255, 255);
  box-shadow: 0 3px 4px 2px #00000030;
  border-radius: 15px;
  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%;
}
#menu li ul li:hover {
  background-color: #ffcb5e;
}

#menu li ul li:first-child {
  border-top: 0;
}

#menu li ul li a {
  display: block;
  color: #1f1f1f;
  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: #FFC730; */
  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: #213742;
}

.footer .footerbox {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

.footerbox p {
  height: auto;
  margin: 5px auto;
  color: #ffffff;
  font-size: 15px;
  font-weight: 300;
}

/*分隔插圖*/
.bg-img {
  width: 100%;
  position: relative;
  z-index: 5;
}

/*article-------------*/
.article {
  width: 100%;
  height: auto;
  margin: auto;
  overflow: hidden;
}
.article .articlebox {
  width: 100%;
  height: auto;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-bottom: 50px;
}

/*共用版-間距*/
.page-section {
  position: relative;
}
.page-section .sectionbox {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
}
.page-section .sectionbox div {
  position: relative;
  z-index: 10;
}

/*邊緣插圖*/
.page-section:nth-child(1) .sectionbox::after {
  content: "";
  position: absolute;
  top: -180px;
  left: -300px;
  width: 380px;
  height: 288px;
  background: url(../frontimages/pageimg-bg01.svg) no-repeat center;
  background-size: 100% auto;
  z-index: -1;
}
.page-section:nth-child(n + 2):nth-child(even) .sectionbox::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -340px;
  width: 380px;
  height: 394px;
  background: url(../frontimages/pageimg-bg02.svg) no-repeat center;
  background-size: 100% auto;
  z-index: -1;
  opacity: 0.8;
}
.page-section:nth-child(n + 2):nth-child(odd) .sectionbox::after {
  content: "";
  position: absolute;
  top: -210px;
  left: -320px;
  width: 350px;
  height: 317px;
  background: url(../frontimages/pageimg-bg03.svg) no-repeat center;
  background-size: 100% auto;
  z-index: -1;
  opacity: 0.8;
}

/*內容標題*/
.page-section .section-title {
  font-size: 24px;
  display: inline-block;
  font-weight: bold;
  padding-left: 35px;
  background: url(../frontimages/pageimg-titleimg.svg) no-repeat left 5px;
  background-size: 25px auto;
}

/*新聞-下載列表*/
.news-section .news-list {
  background-color: rgba(255, 255, 255, 0.7);
}
.news-section .news-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 2px solid #b7d3eb79;
  padding: 15px;
}
.news-section .news-list li:nth-child(even) {
  background-color: #f2faff;
}
.news-section .news-list li:nth-child(even):hover {
  background-color: #d7edffab;
}
.news-section .news-list li:last-child {
  border-bottom: 2px solid #b7d3eb79;
}
.news-section .news-list li:hover {
  background-color: #c5dff4c3;
}
.news-section .news-list .news-date {
  background-color: #0072b3;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}
.news-section .news-list .news-tag {
  color: #de0000;
  font-weight: bold;
}
.news-section .news-list .news-text {
  font-weight: 500;
  color: #1f1f1f;
}
.news-section .news-list li .news-text:hover {
  text-decoration: underline;
}
.news-section .news-list .news-download {
  background-color: #4a4a4a;
  padding: 5px 12px;
  margin-left: auto;
  color: #fff;
  font-size: 16px;
  border-radius: 30px;
  flex: 0 0 auto;
}
.news-section .news-list .news-download:hover {
  background-color: rgb(96, 96, 96);
}

/*內容框--*/
.section-content-border {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid #b7d3eb79;
  border-radius: 40px;
  padding: 20px 35px;
  background: rgba(255, 255, 255, 0.5);
}
.section-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 40px;
  padding: 20px 35px;
}
.content-section .section-content-border .schedule-item {
}
.content-section .section-content-border h3 {
  color: #0072b3;
}
.content-section .section-content-border h4 {
}
.content-section .section-content-border .schedule-item .event-list li {
  /* list-style-type: disc; */
  /* margin-left: 10px; */
}
.articlebox .section-content-border ul li{
  list-style:disc;
}
.articlebox .section-content-border ol li{
  list-style:decimal;
}
.articlebox .section-content-border ul,.articlebox .section-content-border ol{
  margin: 15px 30px;
}
.content-section .section-content-border > img {
  width: fit-content;
}

/* 圖片分頁----------- */
.content-section .gallery-group {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 每列固定三張 */
  gap: 1rem;
}
.content-section .gallery-group .gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px;
  border: 2px solid #b7d3eb79;
  border-radius: 20px;
  background-color: #fff;
  overflow: hidden;
}
.content-section .gallery-group .gallery-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
}
.content-section .gallery-group .gallery-item .gallery-image {
  width: 100%; /* ✅ 總是放大填滿寬度（保留比例） */
  height: auto;
  object-fit: contain;
  display: block;
}
.content-section .gallery-group .gallery-item .gallery-caption {
  display: inline-block;
  width: 100%;
  text-align: left;
  height: 35px;
  line-height: 22px;
}

/* 下載------------ */
.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-list .download-btn {
  width: calc(100% / 3 - 10px);
  min-height: 60px;
  display: flex;
  padding: 0px 0 0px 45px;
  border-radius: 8px;
  color: #1f1f1f;
  border: 1px solid #b3b3b3;
  line-height: 20px;
  align-items: center;
  background: #ececec url(../frontimages/icon-down.svg) no-repeat 17px center;
  background-size: auto 22px;
}
.download-list .download-btn:hover {
  background-color: #ddd;
}

.form-section .sectionbox {
  border-top: 2px dashed #b7d3eb79;
  padding-top: 30px;
}
.form-section .css_tr {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-section .css_tr .css_td {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.form-section .css_tr .css_td b {
  width: 90%;
  display: inline-block;
}
.form-section .css_tr .css_td .spanbox {
}
.form-section .css_tr .css_td .spanbox .text_input {
  width: 500px;
  border-radius: 8px;
  border: 1px solid #4a4a4a;
}

/* 導覽------- */
#sitemap {
  width: 100%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  overflow: hidden;
}

#sitemap .title {
  width: calc(100% / 6 - 1px);
  float: left;
  text-align: left;
  color: #1f1f1f;
  font-size: 1.2rem;
  font-weight: bold;
  padding-bottom: 8px;
}

#sitemap .title a {
  color: #1f1f1f;
  transition: 0.3s;
}
#sitemap .title > a {
  display: block;
  width: 100%;
  background-color: #0072b3;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 500;
}
#sitemap .title a:hover {
  text-decoration: none;
  color: #53e2f5;
}

#sitemap .title ul {
  padding: 10px;
}

#sitemap .title ul li {
  list-style-type: none;
  text-align: left;
  font-weight: normal;
}

#sitemap .title ul li a {
  color: #1f1f1f;
  padding: 0;
  border: 0;
  text-decoration: none;
  line-height: 160%;
}

#sitemap .title ul li a:hover {
  color: #004077;
  border: 0;
  text-decoration: underline;
}

/**/

/* == 手機版型區 =============================== */
@media screen and (max-width: 767px) {
  .header {
    width: 100%;
    height: auto;
    position: inherit;
  }
  .header .headerbox .logo {
    height: 25px;
  }
  .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: 65px;
    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;
    margin: 0 auto;
  }
  .footerbox p {
    font-size: 14px;
  }

  /*header---------------------*/
  .article .articlebox {
    width: 100%;
    height: auto;
    margin: auto;
    overflow: hidden;
    gap: 30px;
  }
  /*共用版-間距*/
  .page-section .sectionbox {
    width: 95%;
    font-size: 90%;
  }
  /*標題*/
  .page-section .section-title {
    font-size: 22px;
    display: inline-block;
    font-weight: bold;
    padding-left: 27px;
    background-size: 22px auto;
  }

  /*內容框--*/
  .section-content-border {
    padding: 15px;
  }

  .section-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  .news-section .news-list li {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 6px;
  }
  .news-section .news-list .news-date {
    background-color: #0072b3;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
  }
  .news-section .news-list .news-text {
    font-weight: 500;
    width: 100%;
  }
  /*內容框--*/
  .content-section .section-content-border {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid #b7d3eb;
    border-radius: 30px;
    padding: 15px 15px;
  }
  .content-section .section-content-border .schedule-item .event-list li {
    /* list-style-type: disc;
    margin-left: 25px; */
  }

  /* 圖片分頁----------- */
  /* 圖片分頁----------- */
  .content-section .gallery-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 每列固定三張 */
    gap: 1rem;
  }

  /* 下載------------ */
  .download-list .download-btn {
    width: 100%;
  }
  .download-section .section-content-border {
    padding: 30px 20px;
  }
  .form-section .spanbox {
    width: 100%;
  }
  .form-section .css_tr .css_td .spanbox .text_input {
    width: 100%;
  }
}
@media screen and (min-width: 1201px) and (max-width: 1330px) {
  .header .headerbox .topmenu {
    padding: 0 10px;
  }
  #menu > li > a{
    padding: 10px 10px 10px 35px !important;
    background-position: 10px center !important;
    
  }
}
/* == 平板版型區 =============================== */
@media screen and (min-width: 768px) and (max-width: 1200px) {
  /*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: 65px;
    margin: 0 auto;
  }

  .header .headerbox .topmenu {
    display: none;
  }

  .header .headerbox .topbox {
    position: absolute;
    right: 65px;
  }
  /*header---------------------*/
  /*footer*/
  .footer {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .footer .footerbox {
    width: 95%;
    height: auto;
    margin: 0 auto;
  }
  /*共用版-間距*/
  .page-section .sectionbox {
    width: 95%;
  }
  /*內容標題*/
  .page-section .section-title {
  }

  .content-section .gallery-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 每列固定三張 */
    gap: 1rem;
  }
}
