/*--------- fonts START ----------*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');
/*--------- fonts END ------------*/





/*---------- Var START -----------*/
:root {
  --Max-Width: 900px;
    /* --hue: 200;
  --saturation: 60%;
  --lightness: 55%; */

  /* https://www.w3schools.com/colors/colors_hsl.asp */

  --hue: 200;  
  --saturation: 20%;
  --lightness: 40%;
  --main-color: hsl(var(--hue), var(--saturation), var(--lightness));

  --white: hsl(0, 0%, 100%);

  /* text colors */
  --text-white: hsl(0, 0%, 100%);
  --text-light-gray: hsl(0, 0% , 96%);
  --text-x-dark-gray: hsl(0, 0%, 10%);
  --text-dark-gray: hsl(0, 0%, 20%);

  /* input bg color */
  --input-bg-color: hsl(var(--hue), 48%, 92%);

  /* bg colors */
  --body-bg-color: hsl(var(--hue), 60%, 98%); /*主體背景色*/
  /* --body-bg-color: hsl(var(--hue), 60%, 94%); */
  --bg-color: hsl(var(--hue), 60%, 97%); /*橫福背景色*/
  --bg-color-2: hsl(var(--hue), 60%, 96%); /*橫福背景色*/
  /* --bg-color: hsl(var(--hue), 60%, 96%); */
  --bg-white: hsl(0, 0%, 100%);

  /* border color */
  --border-color: hsl(var(--hue), 48%, 80%);
  --border-color-1: hsl(0, 0%, 90%);

  /* shadow */
  /* --shadow: 0 0 5px hsla(var(--hue), 57%, 63%, 0.3); */
  /* --shadow: 0 0 5px hsla(var(--hue), 57%, 20%, 0.3); */
  --shadow: 0 0 2px hsla(var(--hue), 57%, 10%, 0.3);
  --focus-shadow: 0 0 10px hsla(var(--hue), 57%, 63%, 0.6);

  /* font size */
  --fs-4xl: 50px;
  --fs-3xl: 35px;
  --fs-2xl: 26px;
  --fs-xl: 22px;
  --fs-lg: 18px;
  --fs-md: 16px;
  --fs-sm: 14px;
}

body.t-dark {
  /* --white: hsl(var(--hue), 8%, 21%); */
  --white: hsl(240, 8%, 21%);
  /* text colors */
  --text-x-dark-gray: hsl(0, 0%, 94%);
  --text-dark-gray: hsl(0, 0%, 84%);

  /* bg colors */
  --body-bg-color: hsl(var(--hue), 20%, 10%);
  --bg-color: hsl(var(--hue), 13%, 17%);
  --bg-color-2: hsl(var(--hue), 13%, 17%);

  /* input bg color */
  --input-bg-color: hsl(var(--hue), 15%, 20%);

  /* border color */
  --border-color: hsl(var(--hue), 15%, 30%);
  --border-color-1: hsl(240, 9%, 30%);
  /* shadow */
  --shadow: 0 0 10px hsla(var(--hue), 19%, 7%, 0.9);
}
/*---------- Var END -------------*/





/*-------- Banner START ---------*/
.banner-bg {
  background-image: url(../img/aob1920pthvc.jpg);
}
/*-------- Banner END -----------*/





/*-------- Service START --------*/
.card-service {
  width: 100%;
  height: 300px;
  border-radius: 25px;
  /* box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24); */
  background-color: var(--bg-color-2);
}

.image-content,
.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 15px;
}

.image-content {
  position: relative;
  /* row-gap: 5px; */
  padding: 25px 0;
}

/* .overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #4070F4;
  border-radius: 25px 25px 0 0;
} */

.card-image {
  position: relative;
  height: 90px;
  width: 90px;
  border-radius: 50%;
  background-color: var(--main-color);
  padding: 5px;
}

.card-image i {
  height: 100%;
  width: 100%;
  /* object-fit: cover; */
  border-radius: 50%;
  border: 3px solid var(--white);
  font-size: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
}

.title {
  font-size: 22px;
  font-weight: 500;
  /* color: #333; */
}

.description {
  font-size: 16px;  
  text-align: center;
  /* color: #333; */
}
/*-------- Service END ----------*/





/*------- Breadcrumb START -------*/
.breadcrumb-nav {
  padding: 30px 0 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 0;
  list-style: none;
  font-size: var(--fs-md);
}

.breadcrumb i {
  margin: 0 10px;
  color: var(--main-color);
}

/*------- Breadcrumb END ---------*/





/*---------- Chart START ---------*/

/* .chart-group {
  padding: 5px;
} */

.chart-size {
  width: 100%;
  height: 350px;
  margin: 0 auto;
  padding: auto;
  margin-bottom: 10px;
}

.chart-table > table {
  border-collapse: collapse; /* 單層框線 */
  width: 95%;
  margin: 0 auto;
  margin-top: -30px;
  margin-bottom: 40px;
  font-size: 17px;
  text-align: center;
}

.chart-table > table td {  
  width: 50%;  
}
/*---------- Chart END -----------*/





/*---------- Unit START ----------*/
.unin-group {
  box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
  border-radius: 5px;
  background-color: var(--bg-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.unit-item-angle input[type="text"]:read-only {  
  background-color: var(--input-bg-color);
}

.input-group {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;  
}

.unit-item,
.unit-item-angle,
.unit-item-angle-title {
  margin: 5px 10px;
}

.input-group > input {
  padding: auto;
}

.input-group > span {
  cursor: pointer;
}

.unit-form-ctrl {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.unit-form-ctrl {
  display: block;
  border: 2px solid var(--border-color);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 6px 12px;  
  line-height: 1.5;
  font-size: 1rem;
}

.unit-form-ctrl-text {
  display: block;
  width: 100px;
  margin-left: -1px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;  
  background-color: var(--border-color);
  color: var(--text-dark-gray);
  padding: 6px 12px;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  border: 2px solid var(--border-color);
}

/*---------- Unit END ------------*/





/*---------- luban START ------------*/
.luban-table > table {
  border-collapse: collapse; /* 單層框線 */
  width: 100%;
  margin-top: 30px;
  font-size: 17px;
  text-align: center;
}

.luban-table > tr,td {  
  border: 1px solid var(--border-color);
  padding: 5px;
}

.unit-item h3 {
  display: inline-block;
  font-weight: 400;
  font-size: 17px;
  padding-left: 5px;
  margin-bottom: 5px;  
}

.unit-item i {
  font-size: 18px;
  color: var(--main-color);
}

.img-area img {
  margin-bottom: 15px;
}

.ctrl-group,
.user-enter {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.ctrl-item,
.input-user-enter {
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.ctrl-group button {
  width: 12%;
}

.ctrl-group button>i {
  margin: 0 2px;
  color: var(--main-color);
}

.user-enter {
  margin-top: 15px;
}

.ctrl-group input[type="text"],
.user-enter input[type="text"],
.input-user-enter,
.luban-btn {
  display: block;
  border: 2px solid var(--border-color);
  padding: 6px 12px;  
  line-height: 1.5;
  font-size: 1rem;
}

.luban-btn {
  background-color: var(--input-bg-color);
  margin: 0px -2px 0px -2px;
  color: var(--text-dark-gray);
  font-family: inherit; /* 繼承父項字型 */
  font-weight: inherit;
  font-size: inherit;
}

.text-start,
.input-user-enter {  
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;  
}

.text-end {  
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;  
}
/*---------- luban END --------------*/





/*---------- Base START ----------*/
html {
  scroll-behavior: smooth;
 }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::before,
::after {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text-dark-gray);
  background-color: var(--body-bg-color);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--main-color);
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-x-dark-gray);
  line-height: 1.3;
}

p {
  margin-bottom: 15px;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

::selection {
  color: var(--text-white);
  background-color: var(--main-color);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: var(--body-bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

.wrap {
  overflow: hidden;
}

.container {
  max-width: var(--Max-Width);
  margin: auto;
  padding: 0 20px;
}

/*---------- Base END ------------*/





/*-------- Section START ----------*/
.section-padding {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title .title {
  display: inline-block;
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--main-color);/* 字型顏色 */  
  margin: 0 0 12px;
  padding: 0 40px;
  position: relative;
}

.section-title .title::before,
.section-title .title::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 34px;
  background-color: var(--main-color); /* 兩邊槓線顏色 */
  /* background-color: #4b4047;  */
  top: 50%;
  transform: translateY(-50%);
}

.section-title .title::before {
  left: 0;
}

.section-title .title::after {
  right: 0;
}

.section-title .sub-title {
  font-size: var(--fs-xl);
}
/*-------- Section END ------------*/





/*-------- header START -----------*/
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 2;
  padding: 10px 0;
}

.header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  z-index: -1;
  transform: translateY(calc(-100% - 10px));
  transition: transform 0.3s ease;
}

.header.bg-reveal::before {
  transform: translateY(0);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo a {
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.header .logo h3 {
  color: var(--text-x-dark-gray);
  font-size: 22px;
  font-weight: 600;
  margin-left: 10px;
}

.header .logo i {
  color: var(--main-color);
  font-size: 28px;
}

.logo img {
  margin-right: 0px;
  height: 34px;
}

.toggle-btn {  
  display: block;
  margin-left: auto;
  padding-right: 5px;
  position: relative;  
  border: none;
  /* z-index: 1; */
  background-color: transparent; 
}

.toggle-btn i {
  font-size: 20px;
  color: var(--main-color);
}

.toggle-btn i:last-child {
  display: none;
}

.toggle-btn i:first-child {
  display: block;
}

body.t-dark .toggle-btn i:last-child {
  display: block;
}

body.t-dark .toggle-btn i:first-child {
  display: none;
}

.nav li {
  display: inline-block;
  margin-left: 20px;
  position: relative;
}

/* .nav .menu-item {
  display: inline-block;
  margin-left: 30px;
  position: relative;
} */

.nav a {
  text-transform: capitalize;
  font-size: var(--fs-md);
  color: var(--text-x-dark-gray);
  font-weight: 400;
  display: block;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--main-color);
}

.nav-toggler {
  display: none;
}

.home {
  padding: 100px 0 30px;
}

li > a i {
  font-size: 13px;
  margin-left: 3px;
  pointer-events: none;
  /* 圖示翻轉時有漸變效果 */
  transition: color 0.3s ease;
}

.sub-menu {
  position: absolute;
  top: 100%;
  background-color: var(--bg-color);
  left: 0;
  width: 140px;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
}

.menu-item:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sub-menu-item a {
  display: block;
  padding: 10px 10px;
  transition: color 0.3s ease;
}

.header-backdrop {
  display: none;
}
/*-------- header END -------------*/





/*---------- Grid START ----------*/
.grid-fieldset {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /*12等分,一欄*/
  /*grid-auto-rows: minmax(100px, auto); 指定列最小高度*/
  gap: 15px;
}

fieldset {
  grid-column: span 6; /*指定跨幾欄*/
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /*12等分,一欄*/
  /*grid-auto-rows: minmax(100px, auto); 指定列最小高度*/
  gap: 5px;
}

.unit-item-angle-title,
.col-12 {
  grid-column: span 12; /*指定跨幾欄*/
}

.unit-item,
.unit-item-angle,
.from-range,
.chart-item,
.col-6 {
  grid-column: span 6;
}

.card-service {
  grid-column: span 4; /*指定跨幾欄*/
}


/*---------- Grid END ------------*/





/*---------- Form START ----------*/
fieldset {
  border: 0;
}

.title {
  margin: 5px 0px 10px 0px;
}

.title h3 {
  display: inline-block;
  font-size: var(--fs-xl);
}

.title i {
  font-size: 22px;
  cursor: pointer;
}

.result-div {
  margin-top: 10px;
}

/* 覆寫各家瀏覽器預設 placeholder 設定 */
::placeholder {
  color: var(--text-dark-gray);
  opacity: 1;
}

/* input:disabled, select:disabled {
  opacity: 0.4;
} */

input:focus, select:focus, textarea {
  outline: 0px solid var(--border-color);
}

textarea {
  height: 100px;
  resize: none; /* 禁止拉伸 */  
}

select, input {  
  height: 40px;
  color: var(--text-x-dark-gray);
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
}

.select-arrow:after {
  -webkit-font-smoothing: antialiased;  
  backface-visibility: hidden;
  align-items: center;
  top: 0;
  bottom: 0;
  right: 12px;
  /* color: var(--ts-gray-700); */
  color: var(--main-color);
  content: '\f078';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: flex;
  position: relative;
  font-size: 15px;
  justify-content: center;
  pointer-events: none;  
  text-align: center; 
}

select, input, textarea {  
  border-radius: 10px;
  /* border: 1px solid #000; */
  padding: 0 10px;
  width: 100%;  /*控件全尺寸*/
  font-family: inherit; /* 繼承父項字型 */
  font-weight: inherit;
  font-size: inherit;
}

.radio-type {
  margin: 15px 0px 4px 0px;
}

input[type="radio"] {
  display: none;
}

input[type="radio"] + label,
label:before {
  display: block;  
  width: auto;
  padding: 1em;
  line-height: 1.4;
  background-color: transparent;
  text-align: center;
  font-weight: 500;
  border-radius: 30px;
  /* border: 1px solid var(--border-color); */
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  -webkit-transition: 0.35s ease-in-out;
  -moz-transition: 0.35s ease-in-out;
  -o-transition: 0.35s ease-in-out;
  transition: 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;
}

input[type="radio"]:checked + label {
  background-color: var(--main-color);
  color: var(--text-white);
  font-weight: 500;
  font-size: var(--fs-md);
  border-color: var(--border-color);
}

/* park-div 遮照 */
.div-mask {
  opacity: 0.35;
}

.park-div {  
  display: flex;
  align-items: center;
  height: 40px;  
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0px;
  /* background-color: #9d5780; */
}

.park-div input {
  border: none;
  outline: none;
}

.park-div select {
  border: none;
  outline: none;
}

.park-div i {
  color: var(--main-color);
  font-size: 16px;
  margin-left: 10px;
  margin-top: 1px;
}

/*---------- Form END ------------*/





/*---------- button START ----------*/
button {
  cursor: pointer;
}

.btn {
  margin: 5px 0px 10px 0px;
  display: inline-block;
  padding: 10px 28px;
  /* background-color: var(--main-color); */
  background-color: var(--main-color);
  /* color: var(--text-white); */
  color: var(--text-white);
  font-weight: 500;
  font-size: var(--fs-md);
  text-transform: capitalize;
  line-height: 1.5;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: 30px;
  vertical-align: middle;
  user-select: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--main-color);
  border-color: var(--main-color);
}

.result-output {
  font-size: 22px;
  margin-left: 10px;
  display: inline-block;
}

/*---------- button END ------------*/





/*-------- toTop btn START ----------*/
.topBtn {
  /* display: none; */
  height: 50px;
  width: 50px;
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 1;  
  background-color: #208490;
  opacity: 0.7;
  border-radius: 50%;
  text-decoration: none;
  vertical-align: middle;
  border: 1px solid transparent;
  font-size: 24px;
  color: var(--text-white);
}
/*-------- toTop btn END ------------*/





/*---------- footer START ----------*/
.footer{
  padding: 30px 0;
  background-color: var(--main-color);
  text-align: center;
}
.footer h3{
  color: var(--text-white);
  font-size: var(--fs-xl);
  margin: 0 0 15px;
  font-weight: 400;
  text-transform: capitalize;
}
.footer h4{
  color: var(--text-white);
  font-size: var(--fs-l);
  margin: 20px 0 15px;
  font-weight: 400;
  text-transform: capitalize;
}
.footer .social-links i{
  font-size: 18px;
}
.footer .social-links a{
  height: 40px;
  width: 40px;
  display: inline-flex;
  background-color: var(--bg-white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  border: 1px solid transparent;
  transition: all 0.5s ease;
}
.footer .social-links a:hover{
  background-color: transparent;
  color: var(--text-white);
  border-color: initial;
}
/*---------- footer END ------------*/





/*------- Responsive START ---------*/
@media(max-width: 767px) {
  fieldset,
  .unit-item,
  .unin-group-title,
  .unit-item-angle,
  .from-range,
  .range,
  .img-area,
  .ctrl-group,
  .user-enter,
  .chart-item,
  .card-service {
    grid-column: span 12; /*指定跨幾欄*/
  }
  
  .radio-type {
    margin: 0px;
  }

  /* header */
  .nav-toggler {
    display: block;
    height: 34px;
    width: 40px;
    border: none;
    z-index: 1;
    background-color: transparent;
  }

  .header-backdrop {
    display: block;
  }

  .header-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    visibility: hidden;
    background-color: var(--white);
  }

  .header-backdrop.active {
    visibility: visible;
    opacity: 0.8;
  }

  .nav-toggler span {
    display: block;
    height: 2px;
    width: 27px;
    background-color: var(--main-color);
    margin: auto;
    position: relative;
    transition: background-color 0.3s ease;
  }
 
  .nav-toggler.active span {
    background-color: transparent;    
  }
 
  .nav-toggler span::after,
  .nav-toggler span::before {
    content: '';
    position: absolute;
    left: 0; top:0;
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    transition: transform 0.3s ease;
  }
 
  .nav-toggler span::before {
    transform: translateY(-7px);
  }
 
  .nav-toggler.active span::before {
    transform: rotate(45deg);
  }

  .nav-toggler span::after {
    transform: translateY(7px);
  }

  .nav-toggler.active span::after {
    transform: rotate(-45deg);
  }

  .nav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 70%;
    background-color: var(--bg-color);
    padding: 60px 30px 30px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: all 0.3s ease;
  }

  .nav.open {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }

  .nav li {
    display: block;
    margin: 0;
  }

  .nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color-1);
    font-size: var(--fs-lg);
  }

  /*  在 active 時，圖示箭頭翻轉 */
  .menu-item.active > a i {
    transform: rotate(-180deg);
  }

  .menu-item:first-child > a {
    border-top: 1px solid var(--border-color-1);
  }

  .sub-menu {
    position: relative;
    width: 100%;
    opacity: 1;
    background-color: transparent;
    visibility: visible;
    box-shadow: none;
    transform: translateY(0);
    top: auto;
    padding: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px var(--border-color-1);
  }

  .sub-menu-item a {
    padding: 12px 45px;    
  }  
}
/*------- Responsive END -----------*/