/* ====================================
          layout
======================================*/
body {
  background: #f9f9f9 url("../images/bg-wrap.svg") no-repeat top center;
  /* background-attachment: fixed; */
}

* > .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box; /* 包含內邊距與邊框 */
  position: relative;
}

/* ------- 各區塊的標題、設定 ------- */
.sect-in {
  display: grid;
  gap: var(--size_30);
}
.sect-heading {
  display: flex;
  gap: var(--size_12);
  align-items: center;
}
.sect-icon {
  width: var(--size_72);
  height: var(--size_72);
  display: flex;
}
.sect-icon > img {
  display: block;
  width: 100%;
}
.sect-title {
  position: relative;
  font-weight: var(--weight-med);
  font-size: var(--size_40);
  padding: 0;
  color: var(--color-default);
  letter-spacing: 0.5px;
  margin-bottom: 0;
}
@media (max-width: 1280px) {
  .sect-icon {
    width: var(--size_60);
    height: var(--size_60);
  }
  .sect-title {
    font-size: var(--size_36);
  }
}
@media (max-width: 991px) {
  * > .container {
    max-width: 100%;
  }
  .sect-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .sect-icon {
    width: var(--size_72);
    height: var(--size_72);
  }
  .sect-title {
    font-size: var(--size_32);
  }
}
@media (max-width: 540px) {
  .sect-in {
    gap: var(--size_20);
  }
  .sect-icon {
    width: var(--size_54);
    height: var(--size_54);
  }
  .sect-title {
    font-size: var(--size_30);
  }
}
@media (max-width: 430px) {
  .sect-heading {
    align-items: flex-start;
  }
  .sect-title {
    font-size: var(--size_28);
    padding: var(--size_10) 0;
  }
}

/* ===============================
            header                
=================================*/
header {
  position: relative;
  width: 100%;
  z-index: 10;
}
header:before {
  position: absolute;
  content: "";
  right: 0;
  top: 0;
  background: url("../images/bg-rt.svg") no-repeat right top;
  width: 260px;
  height: 125px;
}
header .navbar {
  padding: 1.25rem 0 0.75rem;
  display: flex;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0;
  gap: var(--size_10);
}

.navbar-brand .brand-logo {
  display: block;
  height: 100%;
}
.brand-title > p {
  margin-bottom: 0.375rem;
  font-size: var(--size_16);
  font-weight: var(--weight-bold);
  color: var(--color-gray);
  line-height: 1;
  letter-spacing: 0.25px;
}
.brand-title > p img {
  display: block;
  height: 18px;
}
.brand-text {
  font-size: var(--size_30);
  font-weight: var(--weight-bold);
  color: #081e5b;
}

.header-r {
  display: grid;
}
/* ---------網站導覽/回首頁/登入--------- */
.top-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--size_20);
  color: #5a5a5a;
  font-weight: var(--weight-med);
  margin-bottom: 0;
  padding: 0;
  padding-left: 0;
}
.top-nav li {
  position: relative;
}
/* 讓第一個元素（導盲磚）貼緊，消除gap的影響 */
.top-nav li:first-child {
  margin-right: -20px;
}

.top-nav li a.accesskey {
  position: relative;
  left: inherit;
  width: 2rem;
  display: block;
  color: transparent;
  box-sizing: content-box;
}

.top-nav .t_nav {
  color: #5a5a5a;
  font-weight: var(--weight-med);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  transition: color 0.3s ease;
}
.top-nav .t_nav:hover,
.top-nav .t_nav:focus,
.top-nav .t_nav:active {
  color: var(--color-ci-blue);
}

.top-nav .menu-login {
  padding: 0.625rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--size_06);
  border-radius: var(--size_60);
  color: var(--color-white);
  background: var(--color-ci-blue);
  font-size: var(--size_16);
  font-weight: var(--weight-bold);
  border: none;
  text-decoration: none;
}
.top-nav .menu-login:hover,
.top-nav .menu-login:focus,
.top-nav .menu-login:active {
  background: var(--color-ci-green);
}

/* 搜尋列 */
.searchbar {
  border: 1px solid var(--color-ci-blue);
  border-radius: 0;
  overflow: hidden;
  background: var(--color-white);
  box-sizing: border-box;
}
.searchbar .form-control {
  border: none;
  box-shadow: none;
  height: 100%;
  padding: calc(0.375rem + 1px) 0.75rem;
}
.searchbar .btn.btn-search {
  border: none;
  background-color: transparent;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  color: var(--color-ci-blue);
}
.searchbar .btn.btn-search > i {
  margin-right: 0;
  font-size: var(--size_18);
}

.searchbar .btn.btn-search:hover,
.searchbar .btn.btn-search:focus,
.searchbar .btn.btn-search:active {
  color: var(--color-ci-green);
}

/* 搜尋列--關鍵字 */
.search-keyword {
  font-size: var(--size_14);
  font-weight: var(--weight-med);
  color: var(--color-white);
  display: flex;
  justify-content: flex-start;
  gap: var(--size_08);
}

.search-keyword a {
  color: #ffee00;
  text-decoration: underline;
}

/* --- 主選單基礎樣式 --- */
.primary-nav {
  background: #0269b3;
}
.primary-nav.collapse:not(.show) {
  display: block;
  width: 100%;
}

.primary-nav > ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(5, 1fr);
}
.primary-nav > ul > li {
  position: relative;
}
.primary-nav > ul > li:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}
.primary-nav > ul > li > a.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.875rem;
  font-size: var(--size_20);
  color: var(--color-white);
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.primary-nav > ul > li > a.dropdown-toggle:after {
  border: none;
  content: "\f067";
  font-family: var(--aw-font);
  font-weight: var(--weight-med);
}
.primary-nav > ul > li > a.dropdown-toggle:hover {
  background: #0c2e8b;
}
.primary-nav > ul > li > a.dropdown-toggle:active {
  color: var(--color-yellow);
}
.primary-nav .navbar-nav .nav-link.show[aria-expanded="true"] {
  background: #0c2e8b;
  color: var(--color-yellow);
}
.primary-nav .navbar-nav .nav-link.show[aria-expanded="true"]:after {
  content: "\f068";
}
.primary-nav .nav-link:focus-visible{
  outline-offset: 2px;
  outline: 2px dashed #e2a00e;
  box-shadow: none;
}
.primary-nav .dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: #0769ae;
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  transform: translateY(-10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-nav .dropdown-item {
  display: block;
  padding: 0.5rem 0.625rem;
  color: var(--color-white);
  font-size: var(--size_18);
  text-decoration: none;
  white-space: normal;
  border-radius: 0.25rem;
}

.primary-nav .dropdown-item:hover,
.primary-nav .dropdown-item:focus {
  background: #034e84;
}
.primary-nav .dropdown-item:active {
  color: var(--color-yellow);
  background: #0b409c;
}

@media (max-width: 1536px) {
  header::before {
    opacity: 0.4;
  }
}
@media (max-width: 1366px) {
  header::before {
    display: none;
  }
}
/* --- 手機版 RWD 樣式 (斷點 991px) --- */
@media (max-width: 991px) {
  header .container {
    padding: 0;
  }
  .navbar:has(.mobile-bar) {
    padding: 0.75rem 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  h1 {
    margin-bottom: 0;
  }
  /* 漢堡選單 */
  .mobile-bar {
    width: 40px;
    height: 40px;
    margin-right: 0;
    z-index: 99;
    line-height: 0;
    position: relative;
    transition: right 0.3s ease;
    padding: 0.375rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 0;
    pointer-events: auto; /* 確保可點擊 */
    visibility: visible; /* 確保可聚焦 */
  }
  .mobile-bar span,
  .mobile-bar span:before,
  .mobile-bar span:after {
    position: absolute;
    content: "";
    background: var(--color-ci-blue);
    height: 3px;
    border-radius: 10px;
    transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    display: flex;
    justify-content: center;
  }
  .mobile-bar span {
    width: 75%;
    margin: 0 auto;
    background: var(--color-ci-green);
  }
  .mobile-bar span:before {
    top: -8px;
    width: 50%;
  }
  .mobile-bar span:after {
    bottom: -8px;
    width: 50%;
  }
  .mobile-bar:focus,
  .mobile-bar:active {
    outline-offset: 2px;
    outline: 2px dashed #e2a00e;
    box-shadow: none;
  }
  .mobile-bar[aria-expanded="true"] span::before {
    top: 0;
    width: 75%;
    transform: rotate(45deg);
    transition: top 0.3s ease 0.1s, transform 0.3s ease-out 0.5s;
  }
  .mobile-bar[aria-expanded="true"] span::after {
    bottom: 0;
    width: 75%;
    transform: rotate(-45deg);
    transition: top 0.3s ease 0.1s, transform 0.3s ease-out 0.5s;
  }
  .mobile-bar[aria-expanded="true"] span {
    background: transparent;
  }

  .header-r {
    display: none;
  }
  .primary-nav.collapse:not(.show) {
    display: none;
  }
  .primary-nav {
    position: fixed;
    width: 100%;
    height: calc(100vh - 84px);
    top: 84px;
    right: -100%;
    padding: 1.5rem;
    pointer-events: auto;
    opacity: 0;
    overflow-y: auto;
    visibility: hidden;
    transition: right 0.2s ease-in, visibility 0.2s ease-in;
  }
  .primary-nav.show {
    visibility: visible;
    opacity: 1;
    right: 0;
  }

  .primary-nav > ul {
    grid-template-columns: 1fr;
    gap: .25rem;
    margin-bottom: 1.5rem;
  }
  .primary-nav > ul > li {
    position: static; 
  }
   .primary-nav> ul:not(.m_top-nav)> li:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  .primary-nav > ul > li > a.dropdown-toggle{
    padding: .5rem 1.25rem;
     white-space: nowrap;
  }

  .primary-nav .dropdown-menu {
    position: relative !important;
    background: #0f549c;
    box-shadow: none;
    border-radius: 0;
    border: none;;
    padding:0.5rem 2.75rem 0.5rem 2.5rem;
    gap: 2px;
  }
   .primary-nav .dropdown-menu:before{
    position: absolute;
    content:"";
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    height: calc(100% - 1rem);
    left: 1.75rem;
   }
  .primary-nav .dropdown-menu.show {
    transform: none !important;
    display: block;
  }
  .primary-nav .dropdown-item{
    padding: 0.3125rem 0.75rem;
    border-radius:0
  }
  .primary-nav .dropdown-item:focus{
    background:#0b427c;
  }
  .search-wrap{
    margin-bottom: var(--size_24)
  }
  /* 網站導覽、回首頁等tnav */
  .primary-nav>ul.m_top-nav {
    display: flex !important;
    flex-wrap: wrap;
    margin: 1rem 0 0;
    padding: 0;
    gap: var(--size_10);
    justify-content: flex-start;
  }
  .primary-nav>ul.m_top-nav>li{
    border-right: none;;
  }
   .primary-nav>ul.m_top-nav>li>a{
    display: flex;
    align-items: center;
    gap: var(--size_06);
    color: var(--color-white);
    font-weight: var(--weight-med);
    padding: 0.5rem 1.25rem;
     white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.5);
   }
   .primary-nav>ul.m_top-nav>li>a:focus, .primary-nav>ul.m_top-nav>li>a:active{
    color: var(--color-yellow);
    background: #0c2e8b;
   }
}
@media (max-width: 540px) {
  .navbar-brand{
    height: 54px;
  }
  .brand-title > p img{
    height: 16px;
  }
  .brand-text{
    font-size: var(--size_24);  
  }
  .primary-nav{
    top: 78px;
    height: calc(100vh - 78px);
    padding: 1.5rem 1.25rem;
  }
}
@media (max-width: 430px) {
.primary-nav{
  padding: 1.25rem 1rem;
}
.primary-nav .dropdown-menu{
  padding: 0.5rem 2.25rem 0.5rem 2rem;
}
.primary-nav .dropdown-menu:before{
  left: 1.5rem;
}
.primary-nav > ul > li > a.dropdown-toggle{
  padding: .5rem 1rem;
  font-size: var(--size_18);
}
.primary-nav .dropdown-item{
  font-size: var(--size_16);
  padding: .3125rem .625rem;
}
}

@media (max-width:390px) {
    .navbar-brand{
    height: 48px;
    margin-right: .5rem;
  }
 .brand-title > p{
  margin-bottom: .25rem;
 }
  .brand-title > p img{
    height: 14px;
    display: none;
  }
   .brand-title > p span{
    width: inherit !important;
    height: inherit !important;
    clip: inherit !important;
    font-size: var(--size_14);
    color: var(--color-gray);
    margin: 0 !important; 
    position: relative !important;
   }

  .brand-text{
    font-size: var(--size_24);  
  }
  .primary-nav{
    top: 72px;
    height: calc(100vh - 72px);
    padding: 1.25rem 1rem;
  }
  .primary-nav>ul.m_top-nav>li>a{
    padding: .5rem 1rem;
  }
}
@media (max-width:360px) {
  .navbar-brand{
    height: 44px;
    margin-right: .5rem;
  }
  .primary-nav{
    top: 68px;
    height: calc(100vh - 68px);
    padding: 1.25rem 1rem;
  }
}

/* =================================
      main content
==================================*/
main {
  padding: 2px 0 0 0;
}

.main-container {
  display: grid;
  gap: 0;
}
.sect-mainwrap {
  display: grid;
  gap: var(--size_60);
}
@media (max-width: 991px) {
  .sect-mainwrap {
    gap: var(--size_50);
  }
}

/*------ 形象圖 ------*/
.sect-banner {
  display: block;
  width: 100%;
}
.sect-banner img {
  display: block;
  width: 100%;
}
@media (max-width: 991px) {
  .sect-banner > .container {
    padding: 0;
  }
  .sect-banner > .container img{
    display: block;
    width: 100%;
  }
}

/*------ 下載專區 ------*/
.sect-download {
  padding: 100px 0 var(--size_20);
}
.sect-download-in {
  grid-template-columns: auto 1fr;
  gap: var(--size_60);
}
.sect-download .sect-heading {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--size_06);
  padding: var(--size_08) 0;
}
.sect-heading > img {
  display: block;
  width: 72px;
}
.sect-list {
  display: grid;
  gap: var(--size_40);
  flex-wrap: nowrap;
  grid-template-columns: repeat(3, 1fr);
}
.card.card-item {
  border-radius: 0;
  border: transparent;
  background: var(--color-white);
  box-shadow: 0 0 12px rgba(48, 56, 96, 0.19);
  transition: box-shadow 0.2s ease-in-out;
  will-change: transform;
  /* display: inline-block; */
}
.card.card-item .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--size_30) var(--size_32);
  gap: var(--size_12);
}
.card-item .item-img {
  width: 90px;
  height: 90px;
  border-radius: 90px;
  background: #469ac1;
  padding: var(--size_15);
}
.card-item .item-img > img {
  display: block;
  width: 100%;
}
.card-item-gov .item-img {
  background: #2583bc;
}
.card-item-fact .item-img {
  background: #6ec8d6;
}
.card-item-report .item-img {
  background: #89e2fa;
}
.card-item .card-text {
  font-size: var(--size_20);
  font-weight: var(--weight-med);
  letter-spacing: 0.2px;
  color: var(--color-default);
  text-decoration: none;
}

.card.card-item:hover,
.card.card-item:focus,
.card.card-item:active {
  animation: jellyShake 0.6s ease-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}
.card.card-item:hover .card-text,
.card.card-item:focus .card-text,
.card.card-item:active .card-text {
  color: var(--color-ci-blue);
}
@keyframes jellyShake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(12px);
  }
  40% {
    transform: translateX(-8px);
  }
  60% {
    transform: translateX(6px);
  }
  80% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 1366px) {
  .sect-download {
    padding: 100px var(--size_10) var(--size_20);
  }
  .card-item .item-img {
    width: 72px;
    height: 100%;
  }
}

@media (max-width: 1280px) {
  .sect-download-in {
    gap: var(--size_50);
  }
  .sect-list {
    gap: var(--size_30);
  }
  .card.card-item .card-body {
    padding: var(--size_30) var(--size_24);
  }

  .card-item .item-img {
    width: 72px;
    height: 100%;
  }
}
@media (max-width: 1024px) {
   .sect-download {
    padding: 80px var(--size_10) var(--size_20);
  }
  .card.card-item .card-body {
    padding: var(--size_24) var(--size_20);
  }
  .card-item .card-text > span {
    display: block;
  }
}
@media (max-width: 991px) {
  .sect-download {
    padding: 60px var(--size_10) var(--size_20);
  }
  .sect-download-in {
    grid-template-columns: 1fr;
    gap: var(--size_30);
  }
  .sect-download .sect-heading {
    flex-direction: row;
    justify-content: flex-start;
  }
  .sect-list {
    gap: var(--size_24);
  }
  .card.card-item .card-body {
    flex-direction: column;
  }
  .card-item .card-text {
    white-space: normal;
    letter-spacing: 0;
    font-size: var(--size_18);
  }
  .card-item .card-text > span {
    display: inline;
  }
}
@media (max-width: 540px) {
  .sect-download-in {
    gap: var(--size_20);
  }
  .sect-list {
    grid-template-columns: 1fr;
    gap: var(--size_30);
  }
  .card.card-item .card-body {
    flex-direction: row;
    justify-content: flex-start;
    padding: var(--size_24) var(--size_30);
  }
  .card-item .card-text {
    font-size: var(--size_24);
  }
}
@media (max-width: 430px) {
  .card.card-item .card-body {
    padding: var(--size_30);
  }
  .card-item .card-text {
    font-size: var(--size_20);
  }
}
@media (max-width: 390px) {
  .card.card-item .card-body {
    padding: var(--size_30) var(--size_20);
  }
}

/*------ 砂石量價統圖表 ------*/
.sect-charts {
  padding: 0 0 var(--size_20);
}

.sect-chart-in {
  padding: var(--size_80) var(--size_60);
  background: var(--color-white);
  border-radius: 0;
  box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);
}
.chart-wrap {
}
/* 圖表 */
/* 年月按鈕切換 */
.period-buttons {
  margin-bottom: var(--size_10);
  padding-right: var(--size_32);
  display: flex;
  gap: var(--size_08);
  justify-content: flex-end;
}

.btn.btn-filter {
  padding: 0.5rem 2rem;
  border: 1px solid #6cb1c3;
  background: #c0f1ff;
  color:#2d82af;
  border-radius: 0;
  cursor: pointer;
  font-weight: var(--weight-med);
  font-size: var(--size_18);
  line-height: 1.6;
}

.btn-filter.active {
  background: var(--color-ci-blue);
  color: var(--color-white);
  border-color:  var(--color-ci-blue);
}

.btn-filter:hover {
  background: #35b0d8;
  border-color: #35b0d8;
  color: var(--color-white);
}

.btn-filter.active:hover {
  background: #0e5c92;
  border-color: #0e5c92;
  color: var(--color-white);
}

/* 數據類型選擇按鈕切換 */
.data-type-buttons-vertical {
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--size_10);
}
.data-type-buttons-vertical .btn-filter {
  background: #c5ecdb;
  border-color: #4cb491;
  color: #066b49;
  padding: 0.5rem 1.5rem;
  font-size: var(--size_18);
  font-weight: var(--weight-med);
}

.data-type-buttons-vertical .btn-filter.active {
  background: var(--color-ci-green);
  border-color: var(--color-ci-green);
  color: var(--color-white);
}

.data-type-buttons-vertical .btn-filter:hover {
  background: #70b497;
  border-color: #70b497;
  color: var(--color-white);
}

.data-type-buttons-vertical .btn-filter.active:hover {
  background: #0f7553;
  border-color: #0f7553;
  color: var(--color-white);
}

/* 圖表主要呈現區 */
.chart-container {
  position: relative;
  width: 100%;
  height: 500px;
}
.chart-container  canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
   image-rendering: crisp-edges; /* 嘗試清晰渲染 */
}
@media (max-width: 1366px) {
  .sect-charts {
    padding: 0 var(--size_10) var(--size_20);
  }
  .sect-chart-in {
    padding: var(--size_60);
  }
}
@media (max-width: 1024px) {
  .data-type-buttons-vertical {
    padding: 1.25rem 0;
  }
  .sect-chart-in {
    padding: var(--size_60) var(--size_40);
  }
}
@media (max-width: 991px) {
  .sect-chart-in {
    padding: var(--size_40) var(--size_24);
  }
  .period-buttons {
    padding-right: 0;
    justify-content: center;

  }
  .period-buttons > .btn-filter {
    /* flex-grow: 1; */
    padding: .5rem 2.5rem;
  }
  .data-type-buttons-vertical {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--size_10);
    margin-top: 1.5rem;
    padding: 0;
  }
  .data-type-buttons-vertical .btn-filter {
    /* flex-grow: 1; */
    padding: 0.5rem 1rem;
  }
  .chart-wrap .row .col-lg-10{
    order: 1;
  }
  .chart-wrap .row .col-lg-2{
    order: 2;
  }
}
@media (max-width: 767.98px) {
  .sect-chart-in {
    padding: var(--size_40) var(--size_20);
  }

  .data-type-buttons-vertical {
    flex-direction: row;
    padding: 0;
    margin-bottom: 1.25rem;
  }
  .chart-container {
    margin: 0; /* 取消上下的 margin */
    width: 100%;
    height: 400px;
  }
  .chart-wrap .col-lg-10 {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 540px) {
  .chart-container canvas {
    min-width: unset; /* 取消 min-width，讓它自動縮放 */
    width: 100% !important; /* 強制 canvas 寬度跟容器寬度一樣 */
    height: auto !important;
  }
  .data-type-buttons-vertical .btn-filter{
    font-size: var(--size_16);
  }
}
@media (max-width: 430px) {
  .sect-charts {
    padding-left: 0;
    padding-right: 0;
  }
  .data-type-buttons-vertical .btn-filter {
    flex: 0 0 calc(100% / 2 - 5px);
    padding-top: .375rem;
    padding-bottom: .375rem;
  }
  .chart-container canvas{
    width: 100%;
  }
}

/* 公式說明 */
.formula-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

.formula-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.formula-item {
    display: flex;
    align-items: center;
    font-size: var(--size_16);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    flex: 1;
}

.formula-left {
    justify-content: flex-start;
}

.formula-right {
    justify-content: flex-start;
}

.formula-name {
    font-weight: bold;
    color: #2c3e50;
    min-width: 80px;
    margin-right: 10px;
}

.formula-equals {
    font-weight: bold;
    color: #34495e;
    margin: 0 10px;
}

.formula-expression {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px;
    position: relative;
}

.numerator {
    padding: 2px 8px;
    border-bottom: 2px solid #3498db;
    font-size: var(--size_14);
    color: #2c3e50;
    white-space: nowrap;
}

.denominator {
    padding: 2px 8px;
    font-size: var(--size_14);
    color: #2c3e50;
    white-space: nowrap;
}

.multiply {
    font-weight: bold;
    color: #e74c3c;
    margin-left: 8px;
    font-size: var(--size_16);
}

.formula-label {
    background: #3498db !important;
    color: white !important;
    border: none !important;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: default;
}
.sect-chart-in .row .offset-lg-2{
  margin-top: 1.25rem;
}
/* 響應式設計 */
@media (max-width: 991px) {
    .sect-chart-in .row .offset-lg-2{
    order: 2;
  }
    .formula-container {
        margin-top: 20px;
    }
    
    .formula-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .formula-item {
        align-items: center !important;
        padding: 15px;
        border-radius: 6px;
        border: 1px solid #e9ecef;
        width: 100%;
        flex-direction: row !important;

    }
    
    .formula-name {
        margin-bottom: 8px;
        min-width: auto;
        font-size: var(--size_16);
        color: #2980b9;
    }
    
    .formula-equals {
        margin: 5px 0;
    }
    
    .formula-expression {
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .formula-item {
        font-size: var(--size_14);
        padding: 12px;
    }
    
    .formula-name {
        font-size: var(--size_14);
    }
    
    .numerator,
    .denominator {
        font-size: var(--size_12);
        padding: 1px 6px;
    }
    
    .multiply {
        font-size: var(--size_14);
    }
    
    .formula-row {
        gap: 10px;
    }
}




/*------ 最新砂石量價統計指標 ------*/

.sect-indicators {
  padding: 0 0 var(--size_20);
  overflow: hidden;
}
.sect-indicators-in {
  padding: var(--size_80);
  background: var(--color-white);
  border-radius: 0;
  box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);
  gap: var(--size_30);
}
.sect-wrap {
  display: grid;
  gap: var(--size_08);
}

.sect-wrap:has(.table-responsive) {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}
.tabs-heading {
  display: flex;
  align-items: center;
}
.tabs-heading .heading-title{
  font-size: var(--size_22);
  font-weight: var(--weight-bold);
  margin-bottom: 0;
  color: #325e90;
  letter-spacing: .3px;
}
.tabs-region {
  gap: var(--size_10);
}
.tabs-region .nav-link {
  border-radius: 0;
  background: #e4f8ff;
  border: 1px solid #198fb6;
  padding: 0.5rem 1.5rem;
  color: #0b617d;
  transition: all 0.2s;
}
.tabs-region .nav-link:hover,
.tabs-region .nav-link:focus,
.tabs-region .nav-link:active {
  background: #0a90bf;
  border-color: #0a90bf;
  color: #fffb00;
}
.tabs-region .nav-link.active,
.tabs-region .show > .nav-link {
  background: #41add0;
  border-color: #329dc1;
  color: var(--color-white);
}

.table.table-indicator th,
.table.table-indicator td {
  font-size: var(--size_20);
}
.table.table-indicator th {
  font-weight: var(--weight-bold);
}
.table.table-indicator th,
.table.table-indicator td {
  white-space: nowrap;
}
.table.table-indicator thead tr th {
  padding: 1.25rem 1.25rem;
  color: var(--color-white);
  background: #225b9c;
}

.table.table-indicator tbody tr th,
.table.table-indicator tbody tr td {
  padding: 1rem 1.25rem;
}
.table-striped.table-striped-all > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: var(--color-white);
}
.table-striped.table-striped-all > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: #edf5ff;
}
.table.table-indicator > :not(caption) > * > * {
  border-bottom-width: 0;
}

/* 北部區 */
.table-striped.table-striped-north > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: var(--color-white);
}
.table-striped.table-striped-north > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: #e9f7ef;
}

/* 中部區 */
.table-striped.table-striped-central > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: var(--color-white);
}
.table-striped.table-striped-central > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: #fff3f7;
}
/* 南部區 */
.table-striped.table-striped-south > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: var(--color-white);
}
.table-striped.table-striped-south > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: #fcfae4;;
}

/* 東部區 */
.table-striped.table-striped-east > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: var(--color-white);
}
.table-striped.table-striped-east > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: #f6f2ff;
}

/* 固定首欄 */
.table-indicator {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
  transform: translateZ(0); /* 啟用硬體加速 */
}

.table-indicator thead tr th {
  position: sticky;
  z-index: 3;
  top: 0;
  left: 0;
  background: #225b9c;
  height: 67px;
}

/* 固定首欄 (thead 和 tbody 都需要處理) */
.table-indicator thead tr th:first-child,
.table-indicator tbody th {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 106px;
  min-width: 106px;
  background-clip: padding-box; /* 確保背景正確裁切 */
}
/* 首欄標題特殊處理 */
.table-indicator thead tr th:first-child {
  background: #225b9c;
  color: white;
}

@media (max-width: 1440px) {
  .sect-indicators-in {
    padding: var(--size_60);
  }
}
@media (max-width: 1366px) {
  .sect-indicators {
    padding: 0 var(--size_10) var(--size_20);
  }

  .sect-indicators-in {
    padding: var(--size_60);
  }
  .table.table-indicator th,
  .table.table-indicator td {
    font-size: var(--size_18);
  }
}
@media (max-width: 1024px) {
  .sect-indicators-in {
    padding: var(--size_60) var(--size_40);
  }
}

@media (max-width: 991px) {
  .sect-indicators-in {
    padding: var(--size_40) var(--size_24);
  }

  .table.table-indicator th,
  .table.table-indicator td {
    font-size: var(--size_18);
  }
  .table.table-indicator thead tr th {
    padding: 1.25rem 1rem;
  }

  .table.table-indicator tbody tr th,
  .table.table-indicator tbody tr td {
    padding: 1rem;
  }
}
@media (max-width: 540px) {
  .tabs-heading {
    flex-direction: column;
  }
  .tabs-heading .heading-title{
    margin-bottom: var(--size_08);
  }
  .tabs-region {
    gap: var(--size_06);
  }
  .tabs-region .nav-link {
    padding: 0.5rem 1rem;
  }
  .tabs-region.justify-content-end {
    justify-content: center !important;
  }
}
@media (max-width: 430px) {
  .sect-indicators {
    padding-left: 0;
    padding-right: 0;
  }
  .tabs-region .nav-link {
    padding: 0.5rem 1.5rem;
  }
}


/* ========== 圖台連結 ========== */
.sect-maps {
  padding: 0 0 var(--size_20);
}
.sect-in {
  display: grid;
}
.sect-map-in {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--size_80);
}
.map-card {
  box-shadow: var(--bs-shadow);
  background: var(--color-white);
  padding: var(--size_30);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
  overflow: hidden;
}
.map-card.map-item01 {
  background: #6ec8d6;
}
.map-card.map-item02 {
  background: #469ac1;
}
.map-card.map-item03 {
  background: #89e2fa;
}
.map-card .card-label {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--bs-border-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem var(--size_40);
  font-size: var(--size_22);
  font-weight: var(--weight-med);
  letter-spacing: 0.2px;
  position: relative;
  transition: all 0.3s ease-in-out;
}
.map-card.map-item01 .card-label {
  color: #004d59;
}
.map-card.map-item02 .card-label {
  color: var(--color-white);
}
.map-card.map-item03 .card-label {
  color: #121698;
}
.map-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.2s ease-in-out;
}
.map-card:hover,
.map-card:focus,
.map-card:active {
  transform: translateY(-5px) scale(1.02);
  transform-origin: center center;
  box-shadow: 0px 0px 1rem 0 rgba(0, 0, 0, 0.3);
  background: #0f75b7;
}
.map-card:hover > img,
.map-card:focus > img,
.map-card:active > img {
  transform: none !important;
  object-fit: contain;
  height: auto;
}

.map-card:hover .card-label,
.map-card:focus .card-label,
.map-card:active .card-label {
  color: var(--color-white);
  transition: color 0.3s ease-in-out;
  position: absolute;
  border-radius: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  /* z-index: 2; */
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1366px) {
  .sect-maps {
    padding: 0 var(--size_10) var(--size_20);
  }
  .sect-map-in {
    gap: var(--size_60);
  }
}
@media (max-width: 1024px) {
  .sect-map-in {
    gap: var(--size_40);
  }
  .map-card {
    padding: var(--size_20);
  }
  .map-card .card-label {
    font-size: var(--size_20);
  }
}
@media (max-width: 991px) {
  .sect-map-in {
    gap: var(--size_30);
  }
  .map-card {
    padding: var(--size_15);
  }
  .map-card .card-label {
    padding: 0.75rem var(--size_20);
    font-size: var(--size_16);
  }
}

@media (max-width: 540px) {
  .sect-map-in {
    gap: var(--size_40);
    grid-template-columns: 1fr;
  }
  .map-card {
    padding: var(--size_30);
  }
  .map-card .card-label {
    padding: 0.75rem var(--size_40);
    font-size: var(--size_24);
    letter-spacing: 0.2px;
  }
}

@media (max-width: 430px) {
  .map-card {
    padding: var(--size_20);
  }
}
@media (max-width: 390px) {
  .map-card .card-label {
    padding: 0.75rem var(--size_30);
    font-size: var(--size_22);
  }
}
@media (max-width: 375px) {
  .map-card .card-label {
    padding: 0.75rem var(--size_24);
    font-size: var(--size_20);
  }
}


/* ========== 相關連結 ========== */
.sect-links {
  padding: 0 0 100px 0;
}
.sect-links ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--size_60);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sect-links ul li a {
  display: block;
  position: relative;
  background: var(--color-white);
  padding: var(--size_20);
  box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}
.link-item:hover,
.link-item:focus,
.link-item:active {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.img-thumb {
  position: relative;
  overflow: hidden;
}
.img-thumb:after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.img-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.2s ease-in-out;
}
.overlay-brand {
  position: absolute;
  color: var(--color-white);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: var(--weight-bold);
  font-size: 1.25rem;
  z-index: 1;
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.8));
}
.overlay-brand > img {
  display: block;
  margin: 0 auto;
}
.link-item:hover .img-thumb:after,
.link-item:focus .img-thumb:after,
.link-item:active .img-thumb:after {
  background: rgba(6, 24, 81, 0.45);
}

.link-item:hover .img-thumb > img,
.link-item:focus .img-thumb > img,
.link-item:active .img-thumb > img {
  /* transform: scale(1.1); */
  transform: translateY(-5px) scale(1.05);

  transform-origin: center center;
}
@media (max-width: 1366px) {
  .sect-links {
    padding: 0 var(--size_10) 100px;
  }
  .sect-links ul {
    gap: var(--size_40);
  }
  .sect-links ul li a {
    padding: var(--size_15);
  }
}
@media (max-width: 991px) {
  .sect-links ul {
    gap: var(--size_30);
  }
  .sect-links ul li a {
    padding: var(--size_10);
  }
}

@media (max-width: 540px) {
  .sect-links {
    padding: 0 var(--size_10) 80px;
  }

  .sect-links ul {
    gap: var(--size_40);
    grid-template-columns: 1fr;
  }
  .sect-links ul li a {
    padding: var(--size_15);
  }
  .overlay-brand > img {
    max-width: inherit;
    width: 240px;
    height: auto;
  }
}

@media (max-width: 375px) {
  .sect-links ul {
    gap: var(--size_30);
  }
  .sect-links ul li a {
    padding: var(--size_10);
  }
  .overlay-brand > img {
    max-width: inherit;
    width: 200px;
    height: auto;
  }
}


/* =================================
            footer               
==================================*/
footer {
  color: var(--color-white);
}
.ft-menu-wrap {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: #25517a url("../images/bg-ft-menu.svg") no-repeat right bottom;
  background-blend-mode: screen;
  background-size: cover;
  width: 100%; /* 讓包裝器可以縮放 */
}

/* footer選單 */
.ft-menu {
  color: var(--color-white);
  padding: 100px 0;
  transition: padding 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* 添加過渡效果 */
  width: 100%; /* 讓容器可以縮放 */
  margin: 0 auto; /* 水平置中 */
  box-sizing: border-box; /* 包含 padding 在寬度計算內 */
}

/* 收合狀態下的樣式 */
.ft-menu.collapsed {
  padding: 100px 0 60px; /* 減少底部 padding */
}

.ft-menu ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
  gap: var(--size_40);
  list-style-type: none;
  align-items: flex-start;
  width: 100%; /* Grid 容器填滿父元素 */
  box-sizing: border-box;
}

.ft-menu ul li:not(.ft-menu-item ul li) {
  border: 1px solid #88caf3;
  height: 100%;
  transition: height 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
  display: flex;
  flex-direction: column;
}

/* 收合狀態下的 li 樣式 */
.ft-menu.collapsed ul li:not(.ft-menu-item ul li) {
  height: auto; 
}

.ft-menu ul li .ft-menu-title {
  font-size: var(--size_18);
  font-weight: var(--weight-bold);
  display: flex;
  padding: 0.625rem 100px 0.625rem 1rem;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--size_20);
  gap: var(--size_06);
  color: var(--color-yellow);
  letter-spacing: 0.5px;
  border-bottom: 1px solid #88caf3;
  flex-shrink: 0;
}

/* 收合狀態下移除標題的 margin-bottom */
.ft-menu.collapsed ul li .ft-menu-title {
  margin-bottom: 0;
  border-bottom: none; /* 可選：移除底部邊框 */
}

.ft-menu ul li .ft-menu-title > img {
  display: block;
  width: var(--size_32);
}

.ft-menu-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--size_08);
  padding: 0 1.25rem 1.5rem;
  overflow: hidden; /* 確保收合時內容完全隱藏 */
  flex: 1;
  opacity: 1; /* 預設可見 */
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* 添加透明度過渡 */
}
/* 收合時的透明度變化 */
.ft-menu.collapsed .ft-menu-item {
  opacity: 0;
}

.ft-menu-item ul {
  padding-left: 1.25rem;
  letter-spacing: 0.5px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: var(--size_08);
  list-style-type: disc;
  width: 100%;
}

.ft-menu-item ul li a {
  display: block;
  color: var(--color-white);
  position: relative;
  text-decoration: none;
  border: none;
  padding: .25rem;
}
.ft-menu-item ul li .temp-link {
  display: inline-block;
  font-weight: var(--weight-normal);
  vertical-align: top;
}
.ft-menu-item ul li .temp-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: inherit;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-yellow);
  transition: all 0.3s ease;
}
.ft-menu-item ul li .temp-link:hover,
.ft-menu-item ul li .temp-link:focus {
  color: var(--color-yellow);
  
}

.ft-menu-item ul li .temp-link:hover:after {
  width: 100%;
}

/* 收合按鈕 */
.btn.btn-ft-toggle {
  width: 80px;
  height: 60px;
  border-radius: 72px 72px 0 0;
  background: #008dbb;
  color: var(--color-white);
  display: grid;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  bottom: 0;
  transition: all 0.3s ease;
  transform-origin: center center;
  padding: 1.125rem var(--size_28);
}
.btn.btn-ft-toggle i {
  font-size: var(--size_30);
  margin-right: 0;
  transition: all 0.3s ease;
}
.btn.btn-ft-toggle span {
  font-size: var(--size_15);
}
.btn.btn-ft-toggle:hover i.fa-chevron-up,
.btn.btn-ft-toggle:focus i.fa-chevron-up {
  transform: rotate(180deg);
}
.btn.btn-ft-toggle:hover i.fa-chevron-down,
.btn.btn-ft-toggle:focus i.fa-chevron-down {
  transform: scale(1.05);
  transform-origin: center center;
}
.btn.btn-ft-toggle[aria-expanded="false"] i.fa-chevron-up {
  transform: rotate(0);
}
/* ft-contact-wrap聯絡資訊 */
.ft-contact-wrap {
  position: relative;
  background: #0f1c42;
  border-top: 1px solid #bfefff;
  padding: 60px 0;
  background-blend-mode: screen;
  background-size: cover;
}
.ft-contact-wrap::before,
.ft-contact-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.ft-contact-wrap::before {
  background: url("../images/bg-ft-contact-l.svg") no-repeat left top;
  background-size: cover;
}
.ft-contact-wrap::after {
  background: url("../images/bg-ft-contact-r.svg") no-repeat right center;
  background-size: cover;
  opacity: 0.7;
}
.ft-info {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--size_60);
  z-index: 1;
  align-items: center;
}
.footer-brand {
  padding: 0.375rem 0.625rem;
}

.footer-brand a {
  display: flex;
  gap: var(--size_14);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-brand a .brand-logo {
  display: block;
  margin: 0 auto;
  height: var(--size_72);
}
.footer-brand a .brand-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.footer-brand a .brand-title img {
  filter: brightness(0) invert(1);
  height: 18px;
}
.footer-brand .brand-text {
  color: var(--color-white);
  font-size: var(--size_24);
}

.ft-info-content {
  padding-right: 1.5rem;
}
.ft-info-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--size_30);
  margin: 0 0 1.875rem 0;
}
.accessibility-logo {
  display: block;
  width: 88px;
  height: 31px;
}
.ft-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--size_16);
  list-style: none;
  padding: 0;
  margin: 0;
}
.ft-link li {
  position: relative;
  gap: var(--size_20);
}

.ft-link li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-white);
  font-size: var(--size_16);
  position: relative;
  border: 1px solid #7adeff;
  box-shadow: 2px 2px 0 #8dd3ff;
  transition: all 0.3s ease;
}

.ft-link li a:hover,
.ft-link li a:focus {
  color: var(--color-yellow);
  transform: scale(1.05);
  transform-origin: center center;
}

.ft-info-sect {
  margin-bottom: 1rem;
  display: grid;
  gap: var(--size_10);
  font-size: var(--size_16);
}
.contact-info {
  display: grid;
  gap: var(--size_08);
}
.contact-item {
  display: grid;
  grid-template-columns: 45% auto;
  gap: var(--size_30);
  justify-content: start;
}
.contact-item a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--size_08);
  color: var(--color-white);
  font-size: var(--size_16);
  text-decoration: none;
}

.contact-item a > img {
  width: 1.5rem;
  height: 1.5rem;
}
.contact-item a:hover,
.contact-item a:focus,
.contact-item a:active {
  color: var(--color-yellow);
}
/*系統維護及網站更新資訊 */
.system-info ul,
.ft-updateinfo ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.system-info ul {
  display: grid;
  gap: var(--size_08);
}
.info-vendor {
  display: grid;
  grid-template-columns: 40% auto;
}
.info-vendor .vendor a {
  color: var(--color-white);
}
/* 更新日期及人數 */
.ft-updateinfo ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 20% 1fr;
  gap: 1.5rem;
  color: var(--color-white);
}
.ft-updateinfo span {
  font-weight: var(--weight-med);
}
.ft-updateinfo:has(img) ul {
  margin-bottom: 0.75rem;
}
/* footer-bottom */
.ft-bottom {
  position: relative;
  background: #363636;
  /* padding: 200px 0 50px; */
  padding: 0.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: var(--size_14);
  line-height: 1.5rem;
  letter-spacing: 0.5px;
}
.ft-bottom > span {
  margin-left: 0.375rem;
}
@media (max-width: 1366px) {
  .ft-menu {
    padding: 100px 1.25rem;
  }
  .ft-menu.collapsed {
    padding: 100px 1.25rem 60px;
  }
  .ft-menu > ul {
    gap: var(--size_30);
  }
}
@media (max-width: 1280px) {
  .ft-menu > ul {
    gap: var(--size_30);
  }
  .ft-menu ul li .ft-menu-title {
    padding: 0.625rem 80px 0.625rem 1rem;
  }
  .contact-item {
    grid-template-columns: 60% auto;
  }
}
@media (max-width: 1024px) {
  .ft-menu-wrap {
    background-size: auto;
  }
  .ft-menu {
    padding: var(--size_60) 1.25rem;
  }
  .ft-menu > ul {
    gap: var(--size_40);
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }
  .ft-info {
    grid-template-columns: 1fr;
    gap: var(--size_30);
  }
  .ft-info-content {
    padding-right: 0;
  }
  .ft-info-top {
    justify-content: center;
  }
  .ft-info-sect {
    justify-content: center;
    grid-template-columns: 80%;
  }
  .contact-item {
    grid-template-columns: 1fr auto;
  }
  .ft-menu ul li .ft-menu-title {
    padding: 0.625rem 80px 0.625rem 1rem;
  }
  .info-vendor {
    grid-template-columns: 50% auto;
  }
  .ft-updateinfo ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 991px) {
  .ft-menu-wrap {
    display: none;
  }
  .ft-contact-wrap::before {
    display: none;
  }
  .ft-contact-wrap::after {
    transform: scaleX(-1); /* 右側圖片水平反轉 */
    background-position: right 10% bottom;
  }
  .ft-info{
    gap: var(--size_12);
  }
  .ft-info-sect {
    grid-template-columns: 90%;
  }
  .ft-info-top{
    flex-direction: column;
    justify-content: center;
  }
  .ft-bottom {
    white-space: normal;
  }
  .ft-bottom > span {
    display: block;
  }
}

@media (max-width: 540px) {
  .ft-menu > ul {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--size_24);
  }
  .ft-info-sect {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
  .contact-info {
    gap: var(--size_16);
  }
  .contact-item {
    grid-template-columns: 1fr;
    gap: var(--size_08);
  }
  .info-phone i {
    margin-right: var(--size_04);
  }
  .info-vendor,
  .ft-updateinfo ul {
    grid-template-columns: 1fr;
    gap: var(--size_08);
  }
}
@media (max-width: 430px) {
  .ft-menu-wrap {
    display: none;
  }

  .ft-menu > ul {
    grid-template-columns: 1fr;
  }
  .ft-info {
    gap: var(--size_20);
  }
  .footer-brand a .brand-logo {
    height: var(--size_60);
  }

  .ft-link {
    grid-template-columns: 1fr;
    gap: var(--size_08);
  }
  .ft-link li a {
    text-align: center;
  }

  .ft-info-sect {
    padding: 0;
  }

  .contact-item a {
    align-items: flex-start;
    gap: var(--size_04);
  }
  .contact-item a i {
    display: none;
    margin: 0.25rem 0 0 0;
  }
  .ft-bottom {
    padding: 0.5rem;
    text-align: center;
  }
  .ft-bottom > span {
    margin-left: 0;
  }
}


/* =================================
            scrollTop               
==================================*/

.spytop_fixed {
  position: fixed;
  bottom: 5rem;
  right: var(--size_40);
  font-size: var(--size_30);
  display: none;
  z-index: 20;
}

.btn-spytop {
  background: linear-gradient(to bottom, #42b0ff 0%, #445edf 100%);
  width: 60px;
  height: 60px;
  border-radius: 60px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 3px solid var(--color-white);
  transition: all 0.3s ease;
}

.spytop_fixed:hover,
.spytop_fixed:focus {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transform: scale(1.1);
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.16);
}


/* ================================
          登入彈跳視窗
 ================================*/
.popup-dialog {
  position: relative;
  max-width: 450px;
  margin: 1.75rem auto;
  padding: 0;
  pointer-events: auto;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  background-clip: padding-box;
  outline: 0;
  border-radius:0;
  box-shadow: 3px 3px 12px 2px rgb(0 0 0 / 30%);
}

.popup-dialog h2 {
  font-size: var(--size_30);
  text-align: center;
  margin-bottom: 0;
  padding: 1.5rem 1.5rem 0.875rem;
  background: #d6ecfb;
  color: var(--color-primary);
  border-bottom: 1px solid #a8d1ed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.popup-dialog-body {
  padding: 1.5rem 1.5rem 1.5rem;
  display: grid;
  gap: var(--size_20);
}

.login-row {
  border-bottom: 1px solid #adbdd8;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
}

.login-row label {
  font-size: var(--size_18);
  margin-bottom: 0;
  color: var(--color-gray);
  margin-right: var(--size_08);
}

.login-row span {
  font-size:var(--size_15);
  color: var(--color-ci-blue);
  margin: 0 0.25rem 0 0;
}

.popup-dialog-body input {
  border: 0;
  box-shadow: none;
  padding: 0.5rem 0.75rem;
  font-size: var(--size_18);
  color: var(--color-primary);
}

.btn.btn-login {
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--size_18);
}
.btn-login:hover,
.btn-login:focus,
.btn-login:active {
  background: #4379dc;
  color: var(--color-white);
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.12);
}

.login-otherifno ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0;
}

.login-otherifno ul li:after {
  content: " | ";
  margin: 0 10px;
}

.login-otherifno ul li:last-child:after {
  content: "";
}

.login-otherifno ul li a {
  padding: 0.5rem 1rem;
  color: var(--color-default);
}

.btn.btn-forget:hover,
.btn.btn-forget:focus,
.btn.btn-login:active {
  color: var(--color-primary);
}

.login-contact {
  font-size: var(--size_15);
  color: #6c757d;
  text-align: center;
  border-top: 1px solid #d9dedf;
  margin: 0.25rem 0 0.5rem 0;
  padding: 1rem 0 0 0;
}
.login-contact p {
  margin-bottom: 0.25rem;
}

button.mfp-close {
  text-indent: -999999px;
}
.mfp-close-btn-in .mfp-close {
  opacity: 1;
}
button.mfp-close:before {
  content: "\f00d";
  font-family: var(--aw-font);
  font-style: normal;
  font-variant: normal;
  font-size: var(--size_20);
  width: 20px;
  margin: 0 auto;
  position: absolute;
  text-indent: 0;
  right: 12px;
  color: var(--color-gray);
}
.mfp-close:hover,
.mfp-close:focus {
  opacity: 0.75;
}

.warningarea p.bg-warning {
  color: var(--color-white);
  border-radius: 0.25rem;
  margin-bottom: 0;
}

.google-recaptcha-box {
  display: grid;
  justify-content: center;
  padding: 1rem 0 0.25rem;
}
@media (max-width: 768px) {
    .mfp-wrap{
    height: 100vh !important;
  }

  .popup-dialog {
    width: auto;
    /* margin: 1.5rem auto; */
  }
  .login-row span,
  .login-row label {
    color: #3668a5;
    font-size: var(--size_16);
  }
  .popup-dialog-body {
    padding: 1.875rem 1.25rem 1.5rem;
  }
  .popup-dialog-body input {
    width: 100%;
    margin-top: 0.25rem;
  }
  .google-recaptcha-box {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .popup-dialog {
    margin: 1.5rem auto;
    max-width: 90%;
  }
  .popup-dialog h2 {
    font-size: var(--size_24);
    padding: 1.25rem 1.5rem 0.75rem;
  }
  .popup-dialog-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .login-row {
    padding: 0 0.75rem 0.25rem;
  }
  .popup-dialog-body input {
    padding: 0.375rem 0.625rem;
  }
  .btn.btn-login {
    margin-bottom: 0.75rem 0 1.25rem;
  }
  .google-recaptcha-box {
    padding: 0.25rem 0;
  }
  .login-otherifno ul {
    margin-bottom: 0.5rem;
  }
  .login-contact {
    margin: 0;
  }
}

