/*==============================================
Contents
- Common
    - body
    - clearfix
- Components
    - banner
    - btn
- Pages
    - Header
        - Navigation Bar
    - Footer
    - Index
    - About
    - News
    - Category
    - Contact
===============================================*/

/*==============================================
    Common
===============================================*/

* {
  box-sizing: border-box;
}

body {
  font-family: "微軟正黑體", "Microsoft JhengHei", "Microsoft YaHei",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* .container {
  margin: 3% 10%;
} */

.center {
  margin-left: auto;
  margin-right: auto;
}

/*----- Clearfix ------------------------------*/

.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  /* *zoom: 1; */
  /* For IE 6&7 only */
}

/*==============================================
    Component
===============================================*/

.btn {
  padding: 0.3em 0.3em;
  background-color: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  color: #333333;
  text-align: center;
  text-shadow: 0 1px 1px rgb(255 255 255 / 75%);
  vertical-align: middle;
  border-radius: 0.2em;
}

.banner {
  background-color: #cbcbcb;
  border-bottom: 1px solid #eee;
  position: relative;
  text-align: center;
}

h1.title {
  border-bottom: #ff6833 0.2em solid;
  color: #ff6600;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1.7em;
  margin: 1em 0;
}

/*==============================================
    Pages
===============================================*/

/*----- Header --------------------------------*/

header {
  background: linear-gradient(270deg, #e9e9e9 10%, #ffffff 100%);
  background: -moz-linear-gradient(270deg, #e9e9e9 10%, #ffffff 100%);
  background: -webkit-linear-gradient(270deg, #e9e9e9 10%, #ffffff 100%);
  background: -o-linear-gradient(270deg, #e9e9e9 10%, #ffffff 100%);
  border-bottom: #ff6833 0.4em solid;
}

.logo {
  padding-top: 2em;
  padding-left: 10%;
}

.logo > h1 {
  width: 100%;
  height: 100%;
  text-indent: 101%;
  white-space: nowrap;
  overflow: hidden;
  background-image: url(../img/logo.png);
  background-repeat: no-repeat;
}

/* Navigation Bar */

nav.top ul {
  float: right;
  position: relative;
  right: 10%;
}

nav.top li {
  background: linear-gradient(90deg, #4d7cc4 70%, #a1ccec 100%);
  background: -moz-linear-gradient(90deg, #4d7cc4 70%, #a1ccec 100%);
  background: -o-linear-gradient(90deg, #4d7cc4 70%, #a1ccec 100%);
  background: -webkit-linear-gradient(90deg, #4d7cc4 70%, #a1ccec 100%);
  border-left: 1px solid #9ec6e9;
  float: left;
  font-size: 1em;
  font-weight: bold;
  padding: 0.8em 0;
}

nav.top li:hover {
  background: linear-gradient(268deg, #1e4f92 76%, #2562b5 100%);
  background: -moz-linear-gradient(268deg, #1e4f92 76%, #2562b5 100%);
  background: -webkit-linear-gradient(268deg, #1e4f92 76%, #2562b5 100%);
  background: -o-linear-gradient(268deg, #1e4f92 76%, #2562b5 100%);
}

nav.top li:first-of-type {
  border-top-left-radius: 0.5em;
}

nav.top li:last-of-type {
  border-top-right-radius: 0.5em;
}

nav.top a {
  text-decoration: none;
  color: white;
  padding: 1em 2.5em;
}

/*----- Footer --------------------------------*/

footer {
  background-color: #484848;
  color: white;
  padding: 1em 1em;
  line-height: 1.3em;
  text-align: center;
}

/*----- Index ---------------------------------*/

#indexCarouselIndicators {
  border: #6295d0 5px solid;
  display: block;
  width: 100%;
}

#indexCarouselIndicators img {
  width: auto;
  height: 15em;
  max-height: 15em;
}

.infobox {
  margin: 1em 0em;
}

.info-head {
  margin-bottom: 0.5em;
}

.info-head > h2 {
  border-bottom: 3px solid #ff6600;
  color: #ff6600;
  float: left;
  line-height: 1.5em;
  width: 33%;
  font-size: 1em;
}

.info-head > a {
  border-bottom: 3px solid #6295d0;
  float: left;
  line-height: 1.5em;
  text-align: right;
  width: 66%;
}

.info-content {
  line-height: 1.5em;
}

.info-content > ol {
  list-style: decimal;
  margin-left: 1em;
}

.info-content > img {
  border: #6295d0 5px solid;
  float: right;
  margin: 0.3em;
}

/*----- Index_popular -------------------------*/
.popular_list {
  text-align: center;
}
.popular_list div {
  padding: 0.25rem;
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}
.popular_list img {
  max-width: 100%;
  max-height: auto;
}

.popular_list a {
  vertical-align: bottom;
  text-decoration: none;
  color: black;
}

/*----- About ---------------------------------*/

.about {
  margin: 0 0.5em;
  line-height: 2em;
}

#about_img1 {
  float: left;
  margin: 0.3em;
  margin-right: 1.5em;
  border: 5px solid #6295d0;
}

#about_img2 {
  float: right;
  margin: 1em;
  padding-right: 1em;
}

.about h2 {
  margin: 1em;
  color: #ff6600;
  font-size: 1.2em;
  font-weight: bold;
}

.about h3 {
  border-bottom: 3px solid #fc9;
  display: inline;
  font-size: 1em;
  font-weight: bold;
}

/*----- News ----------------------------------*/

.news {
  margin: 2em auto;
  text-align: center;
  width: 80%;
  line-height: 2em;
}

.news thead td:first-of-type {
  width: 30%;
  background: linear-gradient(#fe6634 5%, #ff7c46);
  background: -moz-linear-gradient(#fe6634 5%, #ff7c46);
  background: -o-linear-gradient(#fe6634 5%, #ff7c46);
  background: -webkit-linear-gradient(#fe6634 5%, #ff7c46);
  border-radius: 0.5em 0 0 0;
  color: white;
}

.news thead td:last-of-type {
  background: linear-gradient(#3a739e 5%, #3b86c0);
  background: -moz-linear-gradient(#3a739e 5%, #3b86c0);
  background: -o-linear-gradient(#3a739e 5%, #3b86c0);
  background: -webkit-linear-gradient(#3a739e 5%, #3b86c0);
  border-radius: 0 0.5em 0 0;
  color: white;
}

.news tbody tr {
  border-bottom: 1px solid #ccc;
}

.news a {
  text-decoration: none;
  color: black;
}

.news a:hover {
  color: #09f;
}

.news #news_title {
  text-align: left;
  padding-left: 1em;
}
.news-detail-date {
  padding-left: 1.5em;
  font-weight: bold;
  border-left: 5px solid #6295d0;
}

.news-detail-title {
  padding-top: 0.5em;
  padding-left: 1em;
  margin-bottom: 1em;
  font-weight: bold;
  font-size: 1.5em;
  border-left: 5px solid #6295d0;
}

.news-detail-content {
  line-height: 1.2em;
  font-size: 1.2em;
}

/*----- Category ------------------------------*/

.category li {
  display: block;
  float: left;
  border: 1px solid #aaa;
  margin: 0.5em;
}

.category a {
  text-decoration: none;
  color: #333;
}

.category li:hover {
  border-color: #0088cc;
}

.category p {
  display: block;
  padding: 0.5em 1em;
  font-weight: bold;
}

.category img {
  width: 20em;
  max-height: 12em;
  vertical-align: bottom;
}

/*----- Product -------------------------------*/

.product:after {
  content: "";
  display: table;
  clear: both;
}

.product-category {
  float: left;
  width: 20%;
  padding: 0 1em;
}

.product-category h2 {
  color: #06c;
  text-align: center;
  padding-bottom: 1em;
  font-weight: bold;
}

.product-category a {
  text-decoration: none;
  color: black;
  line-height: 1.3em;
}

.product-category li {
  background-color: #eee;
  border-radius: 0.3em;
  padding: 0.5em;
  margin-top: 0.5em;
  text-align: center;
}

.product-category li.activate-category {
  background-color: #0088cc;
}

.product-category li.activate-category a {
  background-color: #0088cc;
  color: white;
}

.product-list {
  float: left;
  width: 80%;
}

.product-list:after {
  content: "";
  display: table;
  clear: both;
}

.product-list h1 {
  margin: 0;
}

.product-grid {
  float: left;
  width: 30%;
  margin: 1em 0.5em;
  padding: 0.5em 0;
  border: gray 1px solid;
  font-weight: bold;
  text-align: center;
}

.product-grid p {
  font-size: 1.5em;
}

.product-grid a {
  text-decoration: none;
  color: white;
  background-color: #0088cc;
  border-radius: 0.3em;
  text-align: center;
  margin-top: 0.5em;
  padding: 0.5em;
  display: inline-block;
}

.product-grid img {
  max-width: 10em;
  max-height: 8em;
}

/*----- Contact -------------------------------*/

.contact h2 {
  color: #ff6600;
  font-size: 1.2em;
  font-weight: bold;
}

.contact:after {
  content: "";
  display: table;
  clear: both;
}

.contact-info {
  width: 50%;
  float: left;
  padding: 1em;
}

.contact-info p {
  line-height: 3em;
}

.contact-form {
  background-color: #eeeeee;
  padding: 1em;
  border-radius: 10px;
}

.contact-form-submit > input {
  float: right;
  margin-right: 10%;
  width: 12em;
  padding: 0.5em;
  border-radius: 0.5em;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgb(0 0 0 / 25%);
  background-color: #da4f49;
  background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
  background-image: -webkit-gradient(
    linear,
    0 0,
    0 100%,
    from(#ee5f5b),
    to(#bd362f)
  );
  background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
  background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
  background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
  background-repeat: repeat-x;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.contact-form > input:hover {
  background-color: #bd362f;
  background-position: 0 -15px;
}

.contact-form-row {
  margin: 1em;
  line-height: 2em;
  vertical-align: middle;
}

.contact-form-row label {
  float: left;
  text-align: right;
  width: 20%;
}

.contact-form-row input,
textarea {
  float: left;
  width: 70%;
  margin-left: 2em;
  border: #6e6e6e solid 1px;
  border-radius: 4px;
}

.contact-form-row input {
  height: 2em;
}
