@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Josefin+Sans&family=Noto+Sans+TC&display=swap");
.blog-list-box h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #383838;
}

.blog-list-box h2 {
  font-size: 1.25rem;
  color: #383838;
}

.blog-list-box p {
  font-size: 0.9rem;
  color: #808080;
}

#home, #home #top .home_nav a, #home .social, main, .handouts, .blog_main, #blog figure, .blog_page .thumb, .blog_page .thumb_center, .btn_default, .card-quotes, body {
  display: flex;
  justify-content: center;
  align-items: center;
}

#home #top, #gotop, #goback {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

#blog figure img {
  min-width: 100%;
  min-height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

#blog .content p {
  /* 多行省略 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.popup,
.popup-class, .head_ttl::before,
.head_ttl::after, #goback {
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15), inset -1px -1px 1px rgba(255, 255, 255, 0.25);
}

#goweb, #goapp {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  font-size: 0.9rem;
  line-height: 19.2px;
  font-weight: bolder;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 5px 8px;
  transition: 0.35s;
  animation: icon_jump 0.5s both infinite;
}

/* 重置所有標籤的樣式 */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

/* 重置主體 */
body {
  font-family: sans-serif;
  font-size: 100%;
  line-height: 1.5;
  background: url(../images/bg-tutorial.jpg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang TC", "黑體-繁", "Heiti TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
  color: #1a1a1a;
  letter-spacing: 0.2rem;
  flex-direction: column;
}

/* 重置標題 */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

/* 重置列表 */
ul, ol {
  list-style: none;
}

/* 重置圖片 */
img {
  max-width: 100%;
  height: auto;
  width: 100%;
}

/* 重置連結 */
a {
  text-decoration: none;
  color: #696969;
}

iframe {
  width: 100%;
}

/* 捲軸樣式scrollbox ------------------------ */
.scrollbox {
  overflow: auto;
  padding-right: 10px;
}
.scrollbox::-webkit-scrollbar {
  /* 捲軸底 */
  width: 5px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}
.scrollbox::-webkit-scrollbar-thumb {
  /* 捲軸滾動手抦 */
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

body {
  width: 80%;
  margin: 0 auto;
}

.card-quotes {
  position: relative;
  flex-direction: column;
  margin: 50px 10%;
  padding: 30px 50px;
  border: 1px solid #383838;
  border-radius: 10px;
}

.card-quotes::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 50px;
  height: 50px;
  background: url(../blog/images/template/&ldquo.svg) center no-repeat white;
  background-size: contain;
}

.card-quotes::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background: url(../blog/images/template/&rdquo.svg) center no-repeat white;
  background-size: contain;
}

.card-quotes h2 {
  margin-bottom: 20px;
}

.command {
  width: 100%;
  padding: 10px 20px;
  margin-bottom: 10px;
  color: #808080;
  background-color: #e2e2e2;
  border-radius: 10px;
}

.blog-list {
  width: 100%;
}

.blog-list-box h1 {
  margin: 30px;
}

.blog-list-box h2 {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #383838;
  text-align: center;
}

.blog-list-label {
  font-weight: 700;
}

.blot-list-item {
  display: flex;
  flex-wrap: wrap;
}

.blog-list-disc {
  width: 100%;
  list-style: disc;
  padding-left: 3rem;
  line-height: 2.5;
}

.blog-list-decimal {
  width: 100%;
  list-style: decimal;
  padding-left: 3rem;
  line-height: 2.5;
}

.blot-list-item li {
  flex: 1;
  max-width: 29%;
  min-width: 23%;
  margin: 20px;
  padding: 10px 20px;
  border: 1px solid #383838;
  border-radius: 10px;
}
@media (max-width: 820px) {
  .blot-list-item li {
    flex: auto;
    max-width: 100%;
    min-width: 100%;
    margin: 10px 0;
  }
}

/* 部落格列表頁
        ================================================================ */
/* 主要內容區 ---------------- */
.blog_main {
  flex-direction: column;
  align-items: center;
  width: 90%;
  padding-top: 5px;
}

.med-box {
  display: flex;
  justify-content: center;
  width: 100%;
}
.med-box a {
  width: 250px;
  margin-bottom: 30px;
}

.blogtag {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .blogtag {
    flex-wrap: wrap;
  }
}
.blogtag .tag-button {
  font-size: 0.8rem;
  height: 1.8rem;
  line-height: 1.5rem;
  background-color: #f0f0f0;
  border: 2px solid #808080;
  margin-right: 5px;
  margin-bottom: 10px;
  cursor: pointer;
}
.blogtag .tag-button a {
  display: block;
  height: 100%;
  transition: 0.35s;
  padding: 0 0.6rem;
}
.blogtag .tag-button a:hover {
  background-color: #383838;
  color: #f0f0f0 !important;
}
.blogtag .tag-hr {
  width: 2px;
  height: 1rem;
  background-color: #808080;
  margin-right: 5px;
}

#blog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  width: 100%;
}
#blog article {
  margin-top: 30px;
  box-shadow: 2px 2px 2px #ddd, inset -1px -1px 1px #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: 0.2s;
}
@media (max-width: 820px) {
  #blog article {
    min-width: 45%;
    max-width: 45%;
    margin: 50px 10px 10px;
  }
}
@media (max-width: 820px) {
  #blog article {
    min-width: 100%;
    max-width: 100%;
    margin: 50px 0 10px;
  }
}
#blog article:hover {
  border: 1px solid #808080;
  box-shadow: 5px 5px 0 black;
}
#blog article:hover .content {
  background-color: #f0f0f0;
}
#blog article:hover img {
  min-width: 110%;
  min-height: 110%;
  -o-object-fit: cover;
     object-fit: cover;
}
#blog .blog_item a {
  color: #696969;
  transition: 0.2s;
}
#blog .blog_item a:hover {
  color: #808080;
}
#blog figure {
  height: 250px;
  overflow: hidden;
  background-color: #f0f0f0;
}
@media (max-width: 820px) {
  #blog figure {
    height: 350px;
  }
}
@media (max-width: 576px) {
  #blog figure {
    height: 180px;
  }
}
#blog figure img {
  transition: 0.35s;
}
#blog .content {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.4);
  transition: 0.35s;
  line-height: 1.25rem;
}
#blog .content .date {
  font-size: 0.8rem;
  text-align: right;
  margin-bottom: 20px;
}
#blog .content .blog_head {
  display: flex;
  font-size: 0.8rem;
  text-align: justify;
  margin-top: 20px;
}
#blog .content h2 {
  height: 3rem;
  font-size: 1.15rem;
  line-height: 1.725rem;
  margin: 15px 0;
}
#blog .content p {
  font-size: 0.9rem;
  line-height: 1.35rem;
  -webkit-line-clamp: 2;
}

/* 部落格詳情頁共用
        ================================================================ */
.img-m {
  width: 65% !important;
}

.blog_page {
  width: 78%;
  max-width: 1000px;
}
@media (max-width: 820px) {
  .blog_page {
    width: 100%;
  }
}
.blog_page .blog_page_ttl {
  width: 100%;
}
.blog_page .blog_page_ttl h1 {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 30px 0 20px;
}
.blog_page .blog_page_ttl .blog_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}
@media (max-width: 820px) {
  .blog_page .blog_page_ttl .blog_head {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog_page .blog_page_ttl .blog_head .date {
    margin-bottom: 20px;
  }
}
.blog_page .page_content {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 3rem;
}
.blog_page .page_content li {
  line-height: 2;
}
.blog_page .page_content .first_letter {
  font-size: 2.4rem;
}
.blog_page .page_content .title, .blog_page .page_content .title_l {
  width: 30rem;
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 3.6rem;
  margin: 100px 20px 50px;
}
@media (max-width: 820px) {
  .blog_page .page_content .title, .blog_page .page_content .title_l {
    width: 90%;
  }
}
.blog_page .page_content .title_l {
  width: 50%;
}
.blog_page .page_content .end {
  align-self: flex-end;
  text-align: right;
}
.blog_page .page_content .list {
  /* funky_fonts */
  margin: 50px;
}
@media (max-width: 820px) {
  .blog_page .page_content .list {
    margin: 10px;
  }
}
.blog_page .page_content .list li {
  margin-bottom: 80px;
}
.blog_page .page_content .list_box {
  display: flex;
  flex-wrap: wrap;
}
.blog_page .page_content .list_box li {
  width: 29%;
  border: 1px solid #696969;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 20px;
}
.blog_page .page_content .appreciate {
  display: flex;
  flex-direction: column;
}
.blog_page .page_content figure {
  width: 100%;
  margin: 5px 0;
}
.blog_page .page_content p {
  font-size: 1.15rem;
  line-height: 2.3rem;
  margin: 1rem 0;
}
.blog_page .page_content .disc {
  list-style-type: disc;
  line-height: 2.3rem;
  padding-left: 40px;
}
.blog_page .page_content .decimal-list {
  list-style-type: decimal;
  line-height: 2.07rem;
  padding-left: 40px;
}
@media (max-width: 820px) {
  .blog_page .thumb {
    flex-direction: column;
  }
}
.blog_page .thumb figure {
  margin: 0 50px;
}
@media (max-width: 820px) {
  .blog_page .thumb figure {
    order: 1;
    align-self: center;
  }
}
.blog_page .thumb_s figure {
  min-width: 180px;
  max-width: 180px;
}
.blog_page .thumb_m figure {
  min-width: 200px;
  max-width: 40%;
}
.blog_page .thumb_center figure {
  width: 50%;
}
.blog_page h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.blog_page h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 3rem 0 1rem;
}
.blog_page h4 {
  font-size: 1.15rem;
  line-height: 2.3rem;
  font-weight: 500;
  margin: 1rem 0;
}
.blog_page aside {
  color: #808080;
  letter-spacing: 0.1rem;
  line-height: 1.5rem;
  margin: 1rem 0 2rem;
}
.blog_page aside a {
  color: #808080;
  text-decoration: underline;
}

.search_tag {
  width: 100%;
  font-size: 0.9rem;
  margin: 50px 0 20px;
  text-align: center;
}
.search_tag strong {
  font-weight: 300;
}

.btn_box {
  display: flex;
  justify-content: center;
  width: 100%;
}
@media (max-width: 576px) {
  .btn_box {
    flex-direction: column;
  }
}
.btn_default {
  padding: 0.5rem 2rem;
  margin: 20px;
  font-size: 0.9rem;
  color: #f0f0f0;
  background-color: #808080;
  border-radius: 3rem;
  outline: none;
  border: none;
  box-shadow: 2px 2px 0 black;
  transition: 0.35s;
}
.btn_default:hover {
  background-color: #696969;
  box-shadow: 3px 3px 0 black;
}

.box-flex {
  display: flex;
  flex-direction: row;
}
@media (max-width: 820px) {
  .box-flex {
    flex-direction: column;
  }
}

.author {
  width: 100%;
  text-align: right;
  font-size: 0.9rem;
  color: #777;
  margin-top: 3rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* 卡片色彩 */
.green-box {
  color: #869d55;
}

.yellow-box {
  color: #d9b973;
}

.blue-box {
  color: #8cb0bd;
}

.pink-box {
  color: #dbadc7;
}

.orange-box {
  color: #ce9e7e;
}

.purple-box {
  color: #c1b3d2;
}

.gray-box {
  color: #9e9e9e;
}

.green2-box {
  color: #90b19e;
}

.yellow2-box {
  color: #d0be8f;
}

.blue2-box {
  color: #8397bf;
}

.pink2-box {
  color: #cc9cb7;
}

.orange2-box {
  color: #d7b0a7;
}

.purple2-box {
  color: #a697ba;
}

.bg-ap {
  border-left: 5px solid;
  transition: 0.35s;
}
.bg-ap:hover {
  border: 1px solid;
  color: #808080;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 5px 5px 0 black;
  border-radius: 10px;
  padding-left: 30px;
}

/* 卡片排版 */
.course {
  display: flex;
  align-items: center;
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  padding: 20px 10px 20px 20px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15), inset -1px -1px 1px rgba(255, 255, 255, 0.25);
  border-radius: 0 10px 10px 0;
}
.course h3 {
  width: 4rem;
  min-width: 3.5rem;
  height: 3rem;
  line-height: 3rem;
  font-weight: lighter;
  color: #9e9e9e;
  border-right: 1px solid #9e9e9e;
  padding-left: 0.5rem;
}
@media (max-width: 820px) {
  .course h3 {
    display: none;
  }
}
.course .course_title {
  display: block;
  min-width: 80%;
  font-size: 1.15rem;
  line-height: 1.725rem;
  letter-spacing: 0.2rem;
  padding: 20px;
}
.course .course_title span {
  font-size: 0.9rem;
  filter: opacity(55%);
}

@keyframes aboutBtn {
  0% {
    top: 40vh;
    right: 1%;
  }
  32% {
    top: 39.5vh;
    right: 2%;
  }
  60% {
    top: 40.5vh;
    right: 1.5%;
  }
  100% {
    top: 39vh;
    right: 2.5%;
  }
}
@keyframes recommendBtn {
  0% {
    top: 47vh;
    left: 3%;
  }
  40% {
    top: 48.5vh;
    left: 5%;
  }
  65% {
    top: 47.5vh;
    left: 2%;
  }
  100% {
    top: 49vh;
    left: 4%;
  }
}
@keyframes blogBtn {
  0% {
    top: 12vh;
    right: 10%;
  }
  32% {
    top: 10.5vh;
    right: 11.5%;
  }
  60% {
    top: 9vh;
    right: 12.5%;
  }
  100% {
    top: 12vh;
    right: 12%;
  }
}
@keyframes menuTur {
  0% {
    top: 2vh;
    left: -3%;
  }
  25% {
    top: 4.5vh;
    left: -5%;
  }
  50% {
    top: 3vh;
    left: -2%;
  }
  100% {
    top: 5vh;
    left: -4%;
  }
}
@keyframes menuStu {
  0% {
    top: 50vh;
    right: 15%;
  }
  25% {
    top: 48.5vh;
    right: 14%;
  }
  65% {
    top: 50.5vh;
    right: 13%;
  }
  100% {
    top: 51.5vh;
    right: 12.5%;
  }
}
@media (max-width: 820px) {
  @keyframes aboutBtn {
    0% {
      top: 30vh;
      right: 4%;
    }
    32% {
      top: 31vh;
      right: 5.5%;
    }
    55% {
      top: 30.5vh;
      right: 4.5%;
    }
    100% {
      top: 31.5vh;
      right: 5%;
    }
  }
  @keyframes recommendBtn {
    0% {
      top: 48vh;
      left: -10%;
    }
    40% {
      top: 47vh;
      left: -11.5%;
    }
    65% {
      top: 46.5vh;
      left: -12%;
    }
    100% {
      top: 45vh;
      left: -11%;
    }
  }
  @keyframes blogBtn {
    0% {
      top: 5vh;
      right: -10%;
    }
    32% {
      top: 6.5vh;
      right: -11%;
    }
    60% {
      top: 5.5vh;
      right: -10.5%;
    }
    100% {
      top: 6.5vh;
      right: -11.5%;
    }
  }
  @keyframes menuTur {
    0% {
      top: -4.5vh;
      left: -25%;
    }
    25% {
      top: -5vh;
      left: -26%;
    }
    50% {
      top: -6.5vh;
      left: -25.5%;
    }
    100% {
      top: -5.5vh;
      left: -26.5%;
    }
  }
  @keyframes menuStu {
    0% {
      top: 52vh;
      right: -68%;
    }
    25% {
      top: 51.5vh;
      right: -67%;
    }
    65% {
      top: 52.5vh;
      right: -68.5%;
    }
    100% {
      top: 51.5vh;
      right: -69.5%;
    }
  }
}
@media (max-width: 576px) {
  @keyframes aboutBtn {
    0% {
      top: 29vh;
      right: 25%;
    }
    32% {
      top: 29.5vh;
      right: 24%;
    }
    65% {
      top: 30vh;
      right: 24.5%;
    }
    100% {
      top: 30.5vh;
      right: 25.5%;
    }
  }
  @keyframes recommendBtn {
    0% {
      top: 48vh;
      left: -13%;
    }
    40% {
      top: 49vh;
      left: -11%;
    }
    65% {
      top: 48.5vh;
      left: -12.5%;
    }
    100% {
      top: 49.5vh;
      left: -13.5%;
    }
  }
  @keyframes menuTur {
    0% {
      top: -5vh;
      left: -8%;
    }
    25% {
      top: -6vh;
      left: -9%;
    }
    50% {
      top: -7.5vh;
      left: -7%;
    }
    100% {
      top: -6.5vh;
      left: -8.5%;
    }
  }
  @keyframes menuStu {
    0% {
      top: 52vh;
      right: -20%;
    }
    25% {
      top: 53vh;
      right: -19%;
    }
    65% {
      top: 52vh;
      right: -18%;
    }
    100% {
      top: 51vh;
      right: -19.5%;
    }
  }
}
@keyframes menuButton {
  from {
    background: #3d3d3d;
  }
  to {
    background: #6f6f6f;
  }
}
@keyframes icon_jump {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}
/* 首頁  
        ===================================================================  */
.w-90 {
  width: 90%;
}

#home {
  position: relative;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
#home #top {
  position: relative;
  z-index: 2;
  width: 70%;
  max-width: 1100px;
  height: 50%;
  margin-bottom: 18vh;
  /*index 中心點主按鈕 */
}
@media (max-width: 820px) {
  #home #top {
    width: 60%;
  }
}
#home #top img {
  -o-object-fit: contain;
     object-fit: contain;
  width: 100%;
  height: 100%;
}
#home #top .home_nav {
  width: 100%;
}
#home #top .home_nav a {
  color: #e2e2e2;
  font-weight: lighter;
  border-radius: 50%;
}
#home #top .home_nav .menu-btn {
  opacity: 0.8;
  font-size: 1.15rem;
  line-height: 1.725rem;
  background-color: #696969;
  transition: 0.35s;
  border: 5px solid #383838;
  text-align: center;
}
#home #top .home_nav .menu-btn:hover {
  background-color: #383838;
}
#home #top .home_nav .about-btn {
  width: 95px;
  height: 95px;
  position: absolute;
  top: 12vh;
  right: -2%;
  animation: aboutBtn 4s alternate infinite linear;
}
@media (max-width: 576px) {
  #home #top .home_nav .about-btn {
    width: 65px;
    height: 65px;
    font-size: 12px;
  }
}
#home #top .home_nav .recommend-btn {
  width: 115px;
  height: 115px;
  position: absolute;
  top: 47vh;
  left: 3%;
  animation: recommendBtn 4s alternate infinite linear;
}
#home #top .home_nav .blog-btn {
  width: 115px;
  height: 115px;
  position: absolute;
  top: 19.5vh;
  right: -2%;
  animation: blogBtn 4s alternate infinite linear;
}
#home #top .home_nav #menu-tur,
#home #top .home_nav #menu-stu {
  opacity: 0.8;
  position: absolute;
  top: 50%;
  left: 50%;
}
#home #top .home_nav #menu-tur {
  margin: 35px 0 0 35px;
  animation: menuTur 4s alternate infinite linear;
}
@media (max-width: 576px) {
  #home #top .home_nav #menu-tur {
    margin: 20px 0 0 -50px;
  }
}
#home #top .home_nav #menu-stu {
  margin: -20px 0 0 -180px;
  animation: menuStu 4s alternate infinite linear;
}
@media (max-width: 576px) {
  #home #top .home_nav #menu-stu {
    margin: -20px 0 0 -80px;
  }
}
@media (max-width: 576px) {
  #home .social {
    flex-direction: column;
  }
}
#home .social a {
  width: 200px;
  margin: 0.5rem;
}

.menu-big {
  width: 140px;
  height: 140px;
  position: absolute;
  left: 50%;
  top: 0;
  list-style: none;
  font-size: 1.5rem;
  line-height: 1.8rem;
  font-weight: lighter;
}
.menu-big .menu-button {
  width: 140px;
  height: 140px;
  position: absolute;
  left: 0;
  top: 0;
  border: 10px solid #383838;
  animation: menuButton 2s alternate infinite;
}
.menu-big .menu-item {
  width: 5.5rem;
  height: 5.5rem;
  position: absolute;
  left: 20%;
  top: 20%;
  border-radius: 50%;
  background-color: #696969;
  transform: translate(0px, 0px);
  transition: 0.5s;
}
.menu-big .menu-item:hover {
  opacity: 0.8;
  box-shadow: 5px 5px 0 black;
}
.menu-big .menu-item a {
  position: relative;
  top: 25%;
  left: 0;
  font-size: 1.15rem;
  line-height: 1.38rem;
  text-align: center;
}

#menu-1:not(:target) > a:first-of-type, #menu-1:target > a:last-of-type,
#menu-2:not(:target) > a:first-of-type,
#menu-2:target > a:last-of-type {
  opacity: 1;
  z-index: 1;
}
#menu-1:not(:target) > .icon-plus:before, #menu-1:target > .icon-minus:before,
#menu-2:not(:target) > .icon-plus:before,
#menu-2:target > .icon-minus:before {
  opacity: 1;
}

#menu-1:target > .menu-item:nth-child(3) {
  transform: rotate(90deg) translateY(150px) rotate(-90deg);
  transition-delay: 0.1s;
}
@media (max-width: 576px) {
  #menu-1:target > .menu-item:nth-child(3) {
    transform: rotate(0deg) translateY(110px) rotate(0deg);
  }
}
#menu-1:target > .menu-item:nth-child(4) {
  transform: rotate(45deg) translateY(150px) rotate(-45deg);
  transition-delay: 0.2s;
}
@media (max-width: 576px) {
  #menu-1:target > .menu-item:nth-child(4) {
    transform: rotate(-45deg) translateY(120px) rotate(45deg);
  }
}
#menu-1:target > .menu-item:nth-child(5) {
  transform: rotate(0deg) translateY(150px) rotate(0deg);
  transition-delay: 0.3s;
}
@media (max-width: 576px) {
  #menu-1:target > .menu-item:nth-child(5) {
    transform: rotate(-90deg) translateY(130px) rotate(90deg);
  }
}

#menu-2:target > .menu-item:nth-child(3) {
  transform: rotate(-90deg) translateY(150px) rotate(90deg);
  transition-delay: 0.1s;
}
@media (max-width: 576px) {
  #menu-2:target > .menu-item:nth-child(3) {
    transform: rotate(90deg) translateY(110px) rotate(-90deg);
  }
}
#menu-2:target > .menu-item:nth-child(4) {
  transform: rotate(-45deg) translateY(150px) rotate(45deg);
  transition-delay: 0.2s;
}
@media (max-width: 576px) {
  #menu-2:target > .menu-item:nth-child(4) {
    transform: rotate(45deg) translateY(120px) rotate(-45deg);
  }
}
#menu-2:target > .menu-item:nth-child(5) {
  transform: rotate(0deg) translateY(150px) rotate(0deg);
  transition-delay: 0.3s;
}
@media (max-width: 576px) {
  #menu-2:target > .menu-item:nth-child(5) {
    transform: rotate(0deg) translateY(130px) rotate(0deg);
  }
}

.popup {
  top: 25px;
  width: 320px;
}

.popup-class {
  bottom: 25px;
  width: 240px;
}

.popup,
.popup-class {
  position: absolute;
  right: 25px;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
  font-size: 0.9rem;
  line-height: 1.495rem;
  letter-spacing: 0.1rem;
  text-align: justify;
}
.popup ul,
.popup-class ul {
  max-height: 150px;
}
.popup .close,
.popup-class .close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  border-radius: 50%;
  background-color: #808080;
  color: #f0f0f0;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0;
  font-weight: bold;
  cursor: pointer;
}
.popup .close:hover,
.popup-class .close:hover {
  background-color: #696969;
}
@media (max-width: 576px) {
  .popup,
  .popup-class {
    display: none;
  }
}

/*內頁共用區  
        ================================================================ */
.bg_red {
  background-image: url(../images/bg-tutorial_red.jpg) !important;
}

.bg_black {
  background: url(../images/bg-tutorial_b.jpg) !important;
}

main {
  flex-direction: column;
  width: calc(90% - 165px);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

iframe {
  height: 100px;
}

iframe + main {
  margin-top: 120px;
}

header {
  width: 100%;
}

.top_header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 85px;
  padding: 20px;
  margin-bottom: 10px;
  background-image: url(../images/bg-tutorial.jpg);
  border-bottom: 1px dotted #9e9e9e;
}
@media (max-width: 820px) {
  .top_header {
    padding: 10px;
  }
}
.top_header .page_logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top_header .page_logo a:first-child {
  display: block;
  width: 180px;
}
.top_header .page_logo a:last-child {
  width: auto;
}
.top_header .page_logo a:hover {
  color: #1a1a1a;
}
.top_header .page_logo img {
  max-height: 60px;
}
@media (max-width: 576px) {
  .top_header .page_logo img {
    max-height: 50px;
  }
}
.top_header .page_logo .page_title {
  width: 100%;
  font-size: 1.25rem;
}
.top_header .page_logo .page_title a {
  padding-top: 30px;
}
@media (max-width: 820px) {
  .top_header .page_logo .page_title {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
}
@media (max-width: 820px) {
  .top_header .page_logo .page_title span {
    display: none;
  }
}

.nav_bar {
  position: fixed;
  top: 85px;
  left: 0;
  width: 185px;
  height: 86vh;
  border-right: 1px dotted #9e9e9e;
  padding-top: 40px;
  padding-bottom: 30px;
}
@media (max-width: 820px) {
  .nav_bar {
    display: none;
  }
}
.nav_bar ul {
  margin: 10px 20px;
}
.nav_bar li {
  font-size: 0.9rem;
  padding: 5px 0;
  text-align: center;
  border: 2px solid #383838;
  margin-bottom: 20px;
  transition: 0.5s;
}
.nav_bar li:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.nav_bar li a {
  color: #696969;
}
.nav_bar li img {
  width: 15px;
  margin-right: 5px;
}

/* 網站名稱 */
.head_ttl {
  display: flex;
  align-items: flex-end;
  margin-right: 5%;
  position: relative;
}
@media (max-width: 576px) {
  .head_ttl {
    display: none;
  }
}

.head_ttl::before,
.head_ttl::after {
  border-radius: 50%;
}

.head_ttl::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -14px;
  width: 30px;
  height: 30px;
}

.head_ttl::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: 10px;
  width: 40px;
  height: 40px;
}

/* card list box ------------------------ */
.row {
  display: flex;
  flex-wrap: wrap;
  padding-top: 20px;
}
@media (max-width: 576px) {
  .row {
    width: 100%;
    justify-content: center !important;
  }
}
.row > div {
  width: 29%;
  margin: 30px 1%;
}
@media (max-width: 1512px) {
  .row > div {
    width: 29%;
  }
}
@media (max-width: 1200px) {
  .row > div {
    width: 45%;
  }
}
@media (max-width: 576px) {
  .row > div {
    width: 80% !important;
  }
}

/* ABOUT頁  
        ================================================================  */
#about {
  display: flex;
  width: 100%;
  padding-top: 100px;
}
#about h1 {
  font-size: 2.4rem;
  margin: 15px 0;
}
#about .experience {
  margin-bottom: 100px;
  color: #f0f0f0;
  width: 65%;
  font-size: 0.9rem;
  line-height: 1.8rem;
}
@media (max-width: 1200px) {
  #about .experience {
    width: 90%;
    padding-left: 100px;
  }
}
#about .experience h2 {
  font-size: 1.25rem;
  line-height: 1.875rem;
  border-bottom: 3px solid #e2e2e2;
  margin: 30px 0 20px;
  padding-bottom: 10px;
}
#about .experience .expertise {
  display: flex;
  -moz-column-count: 3;
       column-count: 3;
  -moz-column-gap: 10%;
       column-gap: 10%;
}
@media (max-width: 576px) {
  #about .experience .expertise {
    flex-direction: column;
  }
}
#about .experience .expertise > div {
  width: 100%;
}
@media (max-width: 576px) {
  #about .experience .expertise > div {
    margin-bottom: 20px;
  }
}
#about .rita {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 500px;
}
@media (max-width: 1200px) {
  #about .rita {
    display: none;
  }
}
#about .icons {
  width: 4%;
  position: fixed;
  top: 125px;
  left: 20px;
}
#about .icons img {
  width: auto;
  height: 5.5vh;
  margin-bottom: 5px;
}

/*教學講義區  
        ============================================================== */
#tutorial {
  width: 100%;
  margin: 84px 0 0 100px;
  align-self: flex-start;
}
@media (max-width: 1200px) {
  #tutorial {
    width: calc(100% - 200px);
  }
}
@media (max-width: 820px) {
  #tutorial {
    width: 90%;
    margin: 120px 5% 0 5%;
  }
}

#stu_link {
  position: relative;
  display: block;
  line-height: 40px;
  padding: 0 0.6rem;
  margin-right: 10px;
  font-size: 0.9rem;
  text-align: center;
  color: #f0f0f0;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 5px;
  transition: 0.35s;
  animation: icon_jump 0.5s both infinite;
}
@media (max-width: 576px) {
  #stu_link {
    min-width: 6rem;
    font-size: 0.8rem;
    padding: 0;
    line-height: 3rem;
  }
}
#stu_link .arrow_r {
  position: absolute;
  top: calc(50% - 10px);
  right: -12px;
  z-index: -1;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.35);
  transition: 0.35s;
}
#stu_link:hover {
  color: #1a1a1a;
  background-color: #e4e4e4;
  box-shadow: 5px 5px 0 black;
}
#stu_link:hover .arrow_r {
  opacity: 0;
}

/*學員作品 區  
        ============================================================== */
#stu_title {
  color: #696969;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: right;
}
@media (max-width: 576px) {
  #stu_title {
    font-size: 1.15rem;
  }
}
#stu_title span {
  display: block;
  font-weight: normal;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
}

a#stu_title:hover {
  padding-bottom: 5px;
  border-bottom: #696969 1px solid;
}

#stu_box {
  width: 90%;
  margin-top: 100px;
}
#stu_box .row {
  gap: 30px;
}
#stu_box .thumbnail {
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
}
#stu_box .thumbnail .stu_name {
  position: absolute;
  top: -18px;
  right: 0;
  z-index: 1;
  font-size: 12px;
  padding: 5px;
  border-radius: 5px 5px 0 0;
  background-color: #e4e4e4;
}
#stu_box .thumbnail .caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dotted #808080;
  margin-top: 10px;
  padding: 10px;
  font-size: 0.8rem;
}
@media (max-width: 576px) {
  #stu_box .thumbnail .caption {
    flex-direction: row;
  }
}
#stu_box .thumbnail .caption h4 {
  flex: 1.1;
}
@media (max-width: 576px) {
  #stu_box .thumbnail .caption h4 {
    margin-bottom: 0.5rem;
    margin-top: 10px;
  }
}
#stu_box .thumbnail .caption p {
  flex: 1;
  text-align: right;
}
#stu_box .thumbnail .caption a {
  color: #696969;
}
#stu_box .thumbnail .caption a:hover {
  padding-bottom: 0.2rem;
  border-bottom: #575757 1px solid;
}

/* 作品滑入按鈕 ---------------- */
.view {
  overflow: hidden;
  position: relative;
}
.view .mask,
.view .content {
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
}
.view img {
  width: 100%;
}

.viewbtn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  padding: 25%;
  color: #f0f0f0;
  font-size: 1.5rem;
  line-height: 2.25rem;
  text-align: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.viewbtn a {
  color: #9e9e9e;
}
.viewbtn a:hover {
  color: #f0f0f0;
}
.viewbtn .left {
  position: absolute;
  top: 10%;
  left: 10%;
}
.viewbtn .right {
  position: absolute;
  bottom: 15%;
  right: 10%;
  font-size: 1.25rem;
}
.viewbtn .right2 {
  position: absolute;
  bottom: -5%;
  right: 10%;
  font-size: 1.25rem;
}

.view-ninth .mask-1,
.view-ninth .mask-2,
.view-ninth .mask-3,
.view-ninth .mask-4 {
  background-color: #383838;
  height: 1000px;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  transition: all 0.2s ease-in-out 0.3s;
}
.view-ninth .mask-1 {
  left: auto;
  right: 0px;
  transform: rotate(56.5deg) translateX(-500px);
  transform-origin: 102% 0%;
}
.view-ninth .mask-2 {
  top: auto;
  bottom: 0px;
  transform: rotate(56.5deg) translateX(500px);
  transform-origin: 0% 102%;
  border: 2px solid #f0f0f0;
}
.view-ninth .mask-3 {
  left: auto;
  right: 0px;
  transform: rotate(56.5deg) translateX(-500px);
  transform-origin: 101% 0%;
}
.view-ninth .mask-4 {
  top: auto;
  bottom: 0px;
  transform: rotate(56.5deg) translateX(500px);
  transform-origin: 0% 102%;
}
.view-ninth .content {
  background: rgba(0, 0, 0, 0.6);
  height: 0px;
  opacity: 0.5;
  width: 100%;
  overflow: hidden;
  transform: rotate(-33.5deg) translate(-500px, 500px);
  transform-origin: 0% 100%;
  transition: all 0.3s ease-in-out 0.2s;
}
.view-ninth:hover .content {
  height: 100%;
  width: 100%;
  opacity: 0.8;
  transform: rotate(0deg) translate(0px, 0px);
}
.view-ninth:hover .mask-1,
.view-ninth:hover .mask-2,
.view-ninth:hover .mask-3,
.view-ninth:hover .mask-4 {
  transition-delay: 0s;
}
.view-ninth:hover .mask-1,
.view-ninth:hover .mask-3 {
  transform: rotate(59deg) translateX(6px);
}
.view-ninth:hover .mask-2,
.view-ninth:hover .mask-4 {
  transform: rotate(59deg) translate(-17px, 17px);
}

/* 平面作品分類按鈕 ---------------- */
.top_btn_box {
  display: flex;
  align-items: center;
}

.top_btn {
  margin-left: 20px;
  padding: 10px 20px;
  font-size: 0.9rem;
  text-align: center;
  color: #a42d2d;
  background-color: transparent;
  border-radius: 10px;
  border: 1px solid #808080;
}
.top_btn a {
  display: block;
  color: #696969;
  background-color: transparent;
}
.top_btn a:hover {
  display: block;
  border-radius: 10px;
  color: #a42d2d;
}

/* 講義/作品內頁
        ================================================================ */
.handouts {
  flex-direction: column;
  width: 85%;
  text-align: center;
  margin-top: 100px;
}
.handouts img {
  -o-object-fit: contain;
     object-fit: contain;
  max-width: 100%;
  max-height: 85vh;
  margin-bottom: 5vh;
}

.big_img_box {
  text-align: center;
  margin-top: 100px;
}
.big_img_box .big_img {
  -o-object-fit: contain;
     object-fit: contain;
  width: 80% !important;
  height: auto !important;
}

/* 設計資源導航頁
        ================================================================ */
.rec_main {
  margin: 0 50px 0 230px;
  align-items: normal;
}
@media (max-width: 820px) {
  .rec_main {
    width: 90%;
    margin: 140px 0 0 10%;
  }
}

#HOT {
  padding-top: 40px;
}

.rec_card a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 280px;
  padding: 20px 20px 25px;
  color: #383838;
}
.rec_card .rec_ttl {
  padding: 100px 0.3rem 0 0;
}
.rec_card .list_ttl {
  line-height: 1.5;
  padding-top: 100px;
}
@media (max-width: 820px) {
  .rec_card .list_ttl {
    padding-top: 0;
  }
}
.rec_card .list_ttl .en {
  position: relative;
  display: inline-block;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: -0.01em;
  font-size: 4rem;
}
.rec_card .list_ttl .en::before {
  content: "";
  display: block;
  width: 130%;
  height: 2px;
  background-color: #383838;
}
.rec_card .list_ttl .en::after {
  content: "";
  display: block;
  position: absolute;
  top: -0.3rem;
  right: -30%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #383838;
}
.rec_card .list_ttl .tw {
  font-size: 1.25rem;
  font-weight: lighter;
  padding-left: 10px;
}
.rec_card h3 {
  letter-spacing: -0.01em;
  font-size: 1.5rem;
  font-weight: normal;
  padding-top: 50px;
}
.rec_card ul {
  display: flex;
  flex-wrap: wrap;
  border-left: 2px solid #383838;
}
.rec_card ul li {
  width: 25%;
  border: 2px solid #383838;
  border-left: none;
  margin: 50px 0;
  background-color: rgba(255, 255, 255, 0.4);
}
.rec_card ul li:hover {
  background-color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 1200px) {
  .rec_card ul li {
    width: 33%;
  }
}
@media (max-width: 820px) {
  .rec_card ul li {
    width: 46%;
  }
}
@media (max-width: 576px) {
  .rec_card ul li {
    width: 90%;
  }
}
.rec_card ul li .rec_card_ttl {
  display: flex;
  flex-direction: column;
}
.rec_card ul li .rec_card_ttl figure {
  display: flex;
  align-items: center;
  height: 50px;
  margin-bottom: 20px;
}
.rec_card ul li .rec_card_ttl figure img {
  max-height: 45px;
  max-width: 100px;
  width: auto;
}
.rec_card ul li .rec_card_ttl h4 {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.95rem;
}
.rec_card ul li aside {
  font-size: 0.8rem;
  line-height: 1.04rem;
}

/* icon 圖標區 
        ================================================================ */
.icon_good {
  /* 學員作品區 */
  position: absolute;
  top: -40px;
  right: 5px;
  width: 30px;
}
.icon_new {
  /* 學員作品區 */
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 40px;
  height: 17px;
  background-repeat: no-repeat;
  background-image: url(../images/icon/icon-new.svg);
  animation: icon_jump 0.5s both infinite;
}

/* button 按鈕區 
        ============================================================== */
#gotop {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 2;
  width: 35px;
  height: 35px;
  line-height: 35px;
  background-color: #9e9e9e;
  background-image: url(../images/icon/arrow-up.svg);
  padding: 10px;
  border-radius: 30px;
  cursor: pointer;
}
#goback {
  border: none;
  position: fixed;
  left: 20px;
  top: 140px;
  width: 50px;
  height: 50px;
  background-image: url(../images/icon/arrow-back.svg);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 0.8;
  padding: 10px;
  cursor: pointer;
  transition: 0.35s;
}
#goback:hover {
  background-color: #f0f0f0;
}
#goweb {
  /* 學員作品區 */
  right: 20px;
  top: 140px;
}
#goweb:hover {
  color: #1a1a1a;
  background-color: #f0f0f0;
}
#goapp {
  /* 學員作品區 */
  right: 20px;
  top: 220px;
}
#goapp:hover {
  color: #1a1a1a;
  background-color: #f0f0f0;
}

/* -----------點讚樣式 -----------*/
.like-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  /* 圖標與數字之間的間距 */
  margin-top: 10px;
  /* 與上方內容的間距 */
}

.heart-icon {
  width: 24px;
  height: 24px;
  fill: #ccc;
  /* 預設灰色 */
  cursor: pointer;
  transition: fill 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.heart-icon.liked {
  fill: red;
  /* 按讚後的顏色 */
  transform: scale(1.1);
  /* 稍微放大 */
}

/* 點擊時的「彈出」動畫 */
.heart-icon.pop {
  animation: pop-animation 0.4s ease-out;
}

@keyframes pop-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1.1);
  }
}
.like-count {
  font-size: 1.1em;
  color: #555;
  font-weight: bold;
}

/* ----------- 按鈕樣式 ----------- */
.btn_aside_box {
  display: flex;
}
.btn_aside {
  text-decoration: none;
  margin-right: 20px;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  color: #f0f0f0;
  background-color: #696969;
  transition: 0.35s;
}
.btn_aside:hover {
  background-color: #383838;
}

/* 頁尾區
        ================================================================ */
footer {
  width: 100%;
  color: #696969;
  font-size: 0.8rem;
  border-top: 1px dotted #696969;
  padding: 30px 0;
  text-align: center;
}
footer iframe {
  height: 1.5rem;
  line-height: 1.5rem;
}