/* Homepage responsive layout. Loaded only by Module/Home/Index.php. */
.home-banner {
  max-width: 100%;
  height: auto;
}
.home-wrap {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}
.home-layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.home-main {
  flex: 1 1 auto;
  min-width: 0;
}
.home-side {
  flex: 0 0 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
}
.home-syslink {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333333;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}
.home-syslink img {
  max-width: 88px;
  height: auto;
}
.home-heading {
  margin: 12px 0 8px;
}
.home-heading img {
  max-width: 100%;
  height: auto;
  display: block;
}
.home-list {
  min-height: 200px;
}
.home-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 33px;
  padding: 4px 2px;
  line-height: 23px;
}
.home-row:nth-child(even) {
  background-color: #eeeeee;
}
.home-row-cate {
  text-align: center;
}
.home-row-title {
  min-width: 0;
  padding-right: 8px;
  text-align: left;
}
.home-row-title a {
  color: #333333;
}
.home-row-date {
  color: #db2400;
  white-space: nowrap;
}
.home-row-count {
  text-align: right;
  white-space: nowrap;
}
.home-more {
  padding-top: 8px;
}
.home-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 1000px;
  border: 0;
  margin-top: 12px;
}
.home-totop {
  width: 100% !important;
  max-width: 1000px;
}

@media (max-width: 1000px) {
  .home-menu-bar,
  .home-menu-outer,
  .home-menu-outer .headnav,
  .home-menu-outer .headnav-inner,
  .home-menu-outer .hdmenu {
    height: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .home-menu-outer {
    background-color: #751400 !important;
    background-image: none !important;
  }
  .home-menu-outer .headnav {
    text-align: left;
  }
  .home-menu-outer .rwd-nav-toggle {
    display: block !important;
    float: none !important;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 16px;
    background: #751400;
    color: #ffffff;
    font-size: 18px;
    font-family: "微軟正黑體", sans-serif;
    cursor: pointer;
  }
  .rwd-nav-toggle:after {
    content: "  ≡";
  }
  .home-menu-outer .hdmenu {
    display: none;
  }
  .home-menu-outer .rwd-nav-check:checked ~ .hdmenu {
    display: block !important;
  }
  .home-menu-outer .hdmenu ul li {
    float: none !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    white-space: normal;
  }
  .home-menu-outer .hdmenu .menu-item {
    height: auto !important;
    padding: 12px 16px !important;
    text-align: left;
    line-height: 1.4;
  }
  .home-menu-outer .menu-sep {
    display: none;
  }
  .home-menu-outer .hdmenu ul li ul,
  .home-menu-outer .hdmenu ul li:hover ul {
    display: block !important;
    position: static !important;
    width: 100% !important;
    border: 0;
    background: #fff5ea;
  }
  .home-menu-outer .hdmenu li li .menu-item {
    color: #333333 !important;
    text-shadow: none;
    padding: 10px 16px 10px 28px !important;
  }
}

@media (max-width: 800px) {
  .home-layout {
    flex-direction: column;
  }
  .home-side {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-top: 8px;
    gap: 12px 20px;
  }
  .home-syslink {
    width: 120px;
  }
  .home-frame {
    height: 70vh;
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .home-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .home-row-title,
  .home-row-date {
    grid-column: 1 / -1;
  }
  .home-row-date,
  .home-row-count {
    white-space: normal;
  }
  .PolicyBlock {
    line-height: 2.2;
  }
}
