﻿@charset "UTF-8";
html {
    font-size: 1rem;
}

:root {
  --nav-height: 90px;
  --nav-sub-height: 60px;
}

@media only screen and (max-width: 1280px) {
  :root {
    --nav-height: 60px;
  }
}
.s-inner {
  width: 1280px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}
@media only screen and (max-width: 1280px) {
  .s-inner {
    width: 100%;
  }
}
@media only screen and (max-width: 1280px) {
  .s-inner {
    padding: 0 20px;
  }
}

.section-title {
  font-size: 30px;
  font-weight: 400;
}

.btn-primary {
  font-size: 18px;
  color: #FFFFFF;
  background: linear-gradient(to right, #4AA004, #29B4AB);
  border-radius: 11px;
  padding: 10px 35px;
  box-shadow: 0 5px 15px rgba(66, 180, 140, 0.25);
  text-shadow: 0 3px 5px rgba(61, 61, 61, 0.25);
  transition: transform 300ms, box-shadow 300ms;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 17px rgba(66, 180, 140, 0.5);
}

.btn-more {
  font-size: 106.25%;
  color: #6D6D6D;
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-more .btn-text {
  padding-bottom: 3px;
  border-bottom: 2px solid #a78a3e;
  transition: color 300ms;
}
.btn-more .btn-ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #C3A352;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms;
}
.btn-more .btn-ic img {
  width: 7px;
  object-fit: contain;
}
.btn-more:hover .btn-text {
  color: #C3A352;
}
.btn-more:hover .btn-ic {
  transform: translateX(3px);
}

.home {
  /* Modal */
  /* Keyframes for fadeIn */
}
.home header {
  padding-top: var(--nav-height);
  padding-bottom: 70px;
  position: relative;
  height: 610px;
  border-radius: 0 0 20px 20px;
  background: url(../images/bg_hero_home.webp) no-repeat center center/cover;
}
@media only screen and (max-width: 1024px) {
  .home header {
    padding-bottom: 50px;
  }
}
@media only screen and (max-width: 768px) {
  .home header {
    height: auto;
    border-radius: 0;
  }
}
.home header .s-inner {
  position: relative;
  z-index: 3;
}
.home header::before {
  content: "";
  width: 100%;
  height: 100%;
  background: url(../images/img_hero-chart.png) no-repeat center bottom/contain;
  position: absolute;
  bottom: 30px;
  z-index: 1;
}
.home header::after {
  content: "";
  width: 100%;
  height: 70%;
  background: url(../images/bg_main.png) no-repeat center bottom/cover;
  position: absolute;
  margin-top: -30px;
  top: 100%;
  z-index: -1;
}
.home header .header-inner {
  display: flex;
  gap: 50px;
}
@media only screen and (max-width: 768px) {
  .home header .header-inner {
    flex-direction: column;
    gap: 35px;
    padding: 35px 25px;
  }
}
.home header .headline {
  flex: 1;
  color: #FFFFFF;
  padding-top: 90px;
}
.home header .headline__gov {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 15px;
}
.home header .headline__gov-cn {
  font-size: 30px;
}
.home header .headline__gov-en {
  font-size: 18px;
}
@media only screen and (max-width: 375px) {
  .home header .headline__gov-cn {
    font-size: 22px;
  }
  .home header .headline__gov-en {
    font-size: 13px;
  }
}
.home header .headline__cn {
  font-size: 70px;
  letter-spacing: 3px;
  font-weight: 600;
  line-height: 1.5;
  border-top: 1px solid #FFFFFF;
  position: relative;
}
.home header .headline__cn::after {
  content: "農業統計";
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  background: linear-gradient(to right, #FFF7D1 0%, #E0FBCF 37%, #FFFFFF 100%);
  -webkit-background-clip: text; /* 讓背景只顯示在文字上 */
  -webkit-text-fill-color: transparent; /* 把文字本身顏色設透明 */
}
.home header .headline__en {
  font-size: 38px;
  font-family: "roboto", sans-serif;
  font-weight: 300;
}
@media only screen and (max-width: 1024px) {
  .home header .headline__cn {
    font-size: 55px;
  }
  .home header .headline__en {
    font-size: 28px;
  }
}
@media only screen and (max-width: 678px) {
  .home header .headline {
    padding-top: 0;
  }
}
@media only screen and (max-width: 375px) {
  .home header .headline__cn {
    font-size: 35px;
  }
  .home header .headline__en {
    font-size: 17px;
  }
}
.home header .chart-wrapper {
  width: 45%;
  padding-top: 55px;
}
@media only screen and (max-width: 1280px) {
  .home header .chart-wrapper {
    padding-top: 90px;
  }
}
@media only screen and (max-width: 768px) {
  .home header .chart-wrapper {
    width: 100%;
    padding-top: 0;
  }
}
.home header .chart-wrapper .chart {
  background-color: rgba(255, 255, 255, 0.81);
  border-radius: 15px;
  padding: 20px 20px 0;
  backdrop-filter: blur(5px);
}
@media only screen and (max-width: 678px) {
  .home header .chart-wrapper .chart {
    padding: 10px 10px 0;
  }
}
.home header .chart-wrapper .chart .chart-swiper {
  padding-bottom: 50px;
}
.home header .chart-wrapper .chart .chart-swiper-wrapper {
  display: flex;
}
.home header .chart-wrapper .chart .chart-link {
  text-decoration: none;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex: 1;
  align-items: center;
  background-color: #FFFFFF;
  box-shadow: 0 5px 15px rgba(159, 192, 173, 0.15);
  border-radius: 5px;
  width: 100%;
  aspect-ratio: 5/3 !important;
  object-fit: contain;
}
.home header .chart-wrapper .chart .chart-pagination {
  bottom: 15px;
}
.home header .chart-wrapper .chart .chart-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  opacity: 1;
}
.home header .chart-wrapper .chart .chart-pagination .swiper-pagination-bullet-active {
  background: #C3A352;
}
.home header .chart-wrapper .chart .chart-button-prev, .home header .chart-wrapper .chart .chart-button-next {
  top: unset;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background-color: #FFFFFF;
}
.home header .chart-wrapper .chart .chart-button-prev::after, .home header .chart-wrapper .chart .chart-button-next::after {
  font-size: 13px;
  font-weight: bold;
  color: #C3A352;
}
.home header .chart-wrapper .chart .chart-button-next {
  right: 0;
}
.home header .chart-wrapper .chart .chart-button-prev {
  right: 40px;
  left: unset;
}
.home .home-main {
  transform: translateY(-30px);
  padding-bottom: 20px;
  position: relative;
  z-index: 2;
}
.home .home-main .main-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home .home-main__top {
  display: flex;
  flex-direction: row;
}
.home .home-main__col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
.home .home-main .card {
  border-radius: 10px;
  background-color: #FFFFFF;
  box-shadow: 0 5px 15px rgba(159, 192, 173, 0.25);
  flex: 1;
  overflow: hidden;
  container-type: inline-size; /* 只偵測寬度 */
  container-name: card;
}
.home .home-main .card-header {
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 25px;
  color: #FFFFFF;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  background: linear-gradient(rgba(99, 160, 99, 0.8), rgba(99, 160, 99, 0.8)) center/cover no-repeat, url(../images/bg_card_header.png) no-repeat center center/cover;
}
.home .home-main .card-header .addon-info {
  font-size: 18px;
  padding: 7px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.home .home-main .card-body {
  padding: 20px;
}
.home .home-main .card-footer {
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding: 20px;
  justify-content: flex-end;
}
.home .home-main .card.card-horizontal .card-header {
  background: linear-gradient(rgba(195, 163, 82, 0.8), rgba(195, 163, 82, 0.8)) center/cover no-repeat, url(../images/bg_card_header.png) no-repeat center center/cover;
}
.home .home-main .card.card-horizontal.top-news .card-body {
  padding: 13px 15px 10px;
  width:100%;
}
.home .home-main .card.card-horizontal.top-news .card-body .news-swiper {
  padding: 15px 0;
}
.home .home-main .card.card-horizontal.top-news .card-body .news-wrapper {
  max-height: 30px;
}
@media only screen and (max-width: 678px) {
  .home .home-main .card.card-horizontal.top-news .card-body .news-wrapper {
    max-height: 85px;
  }
}
.home .home-main .card.card-horizontal.top-news .card-body .news-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-height: 30px;
}
@media only screen and (max-width: 678px) {
  .home .home-main .card.card-horizontal.top-news .card-body .news-item {
    max-height: 85px;
    flex-direction: column;
  }
}
.home .home-main .card.card-horizontal.top-news .card-body .news-title {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 112.5%;
  color: #626866;
  transition: color 300ms;
}
.home .home-main .card.card-horizontal.top-news .card-body .news-title:hover {
  color: #a78a3e;
}
.home .home-main .card.card-horizontal.top-news .card-body .news-content.is-hide {
  display: none;
}
.home .home-main .card.card-horizontal.top-news .card-body .news-date {
  color: #A6A5A5;
  padding-left: 20px;
}
.home .home-main .card.card-horizontal.top-news .card-body .news-pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 7px;
  bottom: -15px;
  top: unset;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}
.home .home-main .card.card-horizontal.top-news .card-body .news-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #dadada;
  opacity: 1;
}
.home .home-main .card.card-horizontal.top-news .card-body .news-pagination .swiper-pagination-bullet-active {
  background: #C3A352;
}
@media only screen and (max-width: 678px) {
  .home .home-main .card.card-horizontal.top-news .card-body {
    flex-direction: column-reverse;
  }
  .home .home-main .card.card-horizontal.top-news .card-body .news-title {
    -webkit-line-clamp: 2;
  }
  .home .home-main .card.card-horizontal.top-news .card-body .news-date {
    padding: 0;
  }
}
@media only screen and (max-width: 425px) {
  .home .home-main .card.card-horizontal.top-news {
    flex-direction: column;
  }
  .home .home-main .card.card-horizontal.top-news .card-header {
    padding: 10px;
  }
  .home .home-main .card.card-horizontal.top-news .card-body::after {
    display: none;
  }
}
.home .home-main .card.card-vertical {
  display: flex;
  flex-direction: column;
}
.home .home-main .card.card-vertical .card-header {
  padding: 20px;
  height: 75px;
}
.home .home-main .card.card-vertical .card-body {
  flex: 1;
  padding: 20px 20px 0;
}
.home .home-main .card.card-vertical.card-statistic-search .card-body .item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 110px;
}
.home .home-main .card.card-vertical.card-statistic-search .card-body .item:hover .title {
  color: #a78a3e;
}
.home .home-main .card.card-vertical.card-statistic-search .card-body .item:hover .title::after {
  transform: translateX(3px);
}
.home .home-main .card.card-vertical.card-statistic-search .card-body .item .title {
  font-size: 144%;
  color: #626866;
  font-weight: 500;
  border-bottom: 1px solid rgba(166, 165, 165, 0.5);
  padding: 0 10px;
  min-height: 130px;
  width: 100%;
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  transition: color 300ms;
  gap: 10px;
}
.home .home-main .card.card-vertical.card-statistic-search .card-body .item .title::after {
  content: "";
  width: 10px;
  height: 13px;
  background: url(../images/ic_arrow_gold.png) no-repeat center/contain;
  transition: transform 300ms;
}
.home .home-main .card.card-vertical.card-statistic-search .card-body .item .icon {
  display: block;
  width: 90px;
  height: 90px;
}
.home .home-main .card.card-vertical.card-statistic-search .card-body .item .icon img {
  width: 100%;
  height: 100%;
}
@container card (max-width: 350px) {
  .home .home-main .card.card-vertical.card-statistic-search .card-body .item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
  }
  .home .home-main .card.card-vertical.card-statistic-search .card-body .item .icon {
    width: 65px;
    height: 65px;
  }
  .home .home-main .card.card-vertical.card-statistic-search .card-body .item .title {
    min-height: unset;
    padding-bottom: 15px;
    padding-left: 0;
  }
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group {
  padding: 20px;
  border-bottom: 1px solid rgba(166, 165, 165, 0.5);
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group:last-child {
  border: none;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group.books .icon {
  background: url(../images/ic_books.png) no-repeat center/contain;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group.analysis .icon {
  background: url(../images/ic_analysis.png) no-repeat center/contain;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-header .header-title {
  font-size: 25px;
  color: #626866;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(166, 165, 165, 0.5);
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item:last-child {
  border: none;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item .icon {
  display: block;
  width: 50px;
  height: 50px;
  margin: 10px;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item .title {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  gap: 3px;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item .title .badge span {
  font-size: 15px;
  color: #C3A352;
  border: 1px solid #C3A352;
  border-radius: 5px;
  display: inline-block;
  padding: 3px 8px;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item .title .date {
  font-size: 15px;
  color: #A6A5A5;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item .title .text {
  font-size: 113%;
  color: #626866;
  transition: color 300ms;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item:hover .title > .text {
  color: #C3A352;
}
@container card (max-width: 300px) {
  .home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 15px;
  }
  .home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item .icon {
    margin: 0;
  }
  .home .home-main .card.card-vertical.card-statistic-analysis-books .card-body .item-group .sub-body .sub-item .title {
    padding-top: 0;
  }
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(166, 165, 165, 0.5);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info.left {
  align-items: flex-start;
  justify-content: space-between;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info.right {
  align-items: flex-end;
  justify-content: space-between;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .year {
  font-size: 94%;
  color: #A6A5A5;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .amount {
  font-size: 144%;
  color: #626866;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .amount .unit {
  font-size: 16px;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .title {
  font-size: 125%;
  color: #626866;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .value {
  font-size: 125%;
  width: 115px;
  white-space: nowrap;
  gap: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .value.up::before, .home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .value.down::before {
  content: "";
  width: 26px;
  height: 18px;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .value.up {
  color: #FF9A8A;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .value.up::before {
  background: url(../images/ic_up.png) no-repeat center/contain;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .value.down {
  color: #69B689;
}
.home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .value.down::before {
  background: url(../images/ic_down.png) no-repeat center/contain;
}
@container card (max-width: 350px) {
  .home .home-main .card.card-vertical.card-statistic-indicator .card-body .item {
    flex-direction: column;
  }
  .home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info.right {
    align-items: flex-start;
  }
  .home .home-main .card.card-vertical.card-statistic-indicator .card-body .item .col-info .value {
    width: auto;
    gap: 5px;
  }
}
.home .news-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
  /* 半透明背景 */
  /* 內容框 */
  /* Header 區塊 */
  /* 關閉按鈕 */
  /* Title */
  /* Content */
  /* Footer */
}
.home .news-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 保留動畫，並鎖定最終狀態 */
  animation: fadeIn 0.3s ease forwards;
}
.home .news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.home .news-modal__dialog {
  position: relative;
  max-width: 720px;
  width: calc(100% - 2rem);
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  padding: 13px 18px 18px;
  box-shadow: 0 10px 30px rgba(159, 192, 173, 0.2);
  overflow-y: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.home .news-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EEE8D8;
}
.home .news-modal__header-title {
  font-size: 20px;
  color: #a78a3e;
}
.home .news-modal__close {
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
  border-radius: 7px;
  line-height: 1;
  color: #626866;
  transition: color 300ms, background-color 300ms;
}
.home .news-modal__close:hover {
  color: #a78a3e;
  background-color: #f1f1f1;
}
.home .news-modal__title {
  margin: 0 0 25px;
  font-size: 20px;
  line-height: 1.7;
  font-weight: bold;
  color: #3d3d3d;
}
.home .news-modal__content {
  flex: 1;
  line-height: 1.9;
  font-size: 17px;
  color: #6D6D6D;
  overflow-y: auto;
}
.home .news-modal__content .div-news-flie {
    margin-top: 25px;
}
.home .news-modal__content a.news_file{
    text-decoration:underline;
}
.home .news-modal__footer {
  margin-top: 25px;
  font-size: 15px;
  color: #A6A5A5;
}
.home .news-modal.is-open .news-modal__dialog {
  opacity: 1;
  transform: translateY(0);
}
.home .news-modal.is-open .news-modal__backdrop {
  opacity: 1;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*# sourceMappingURL=home.css.map */
