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

body {
  font-family:"Noto Sans TC", serif;
  font-weight: 400;
  line-height: 1.7;
  color: rgb(74,74,74);
  background: #fff;
}

a{
  text-decoration: none;
}

/**/

.loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.slide-in {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #EE7943;
    top: 0;
    left: -100%;
    animation: slideIn 1s forwards;
}

.animation-logo {
    opacity: 0;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.5s 1s forwards;
}
.animation-logo img{
  min-width: 500px;
  filter: brightness(0) invert(1);
}

.slide-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    bottom: -100%;
    animation: slideCover 1s 2s forwards;
    z-index: 3;
}

@keyframes slideIn {
    0% { left: -100%; }
    100% { left: 0; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideCover {
    0% { bottom: -100%; }
    100% { bottom: 0; }
}

@keyframes revealContent {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animation-content {
    display: none;
    opacity: 0;
}



/**/
.navbar{
  width: 100%;
  padding:10px 0;
  position: absolute;
}

.navbar-brand{
  margin: auto;
  text-align: center;
}
.navbar-brand .logo{
  width:50%;
  margin:auto;
/*  filter: brightness(0) invert(1);*/
}
.navbarorange{
  background: #EE7943;
}
.navbarorange .logo{
  filter: brightness(0) invert(1);
}

.navbar.shrink {
  width: 100%;
  padding:10px; /* 滾動後縮小 */
  background: rgba(255, 255, 255, 0.2); /* 半透明白色背景 */
    backdrop-filter: blur(10px); /* 背景模糊 */
    -webkit-backdrop-filter: blur(10px); /* 適配 Safari */
  position: fixed;
  z-index: 999;
}
.navbar.shrink .logo{
  width:50%;
/*  filter: brightness(0) invert(1);*/
}

.banner{
  padding-top: 80px;
}


.introgrid{
  display: flex;
  flex-direction: column;
  gap: 12px; /* 卡片間距 */
}

.subintro{
  min-height: 100%;
  color: rgba(255, 255, 255, .5);
  padding: 50px;
}
.subintro a{
  color: rgba(255, 255, 255, .5);
}
.subintro span img{
  min-width: 100px;
  margin-bottom: 40px;
  opacity: 0.5;
}
.sub1{
  background: #EE7943;
}
.sub2{
  background: #67BCEA;
}
.subintro h3{
  font-size: 16px;
  line-height: 1.7;
  margin:30px 0 0;
}


.div-hover {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.div-hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit; /* 讓 ::before 繼承背景 */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
}
.subcard:hover .div-hover::before{
    transform: scale(1.1); /* 背景圖片放大 10% */
}

.subcard:hover .subintro a{
    color: rgba(255,255,255,1);
}

.subcard:hover .subintro span img{
  opacity: 1;
}


@media screen and (max-width: 768px) { 
  .div-hover {
    height: 350px;
  }
  .navbar-brand .logo{
    width:100%;
  }
  .navbar.shrink .logo{
    width:100%;
  }
  .animation-logo img{
    min-width: 300px;
    filter: brightness(0) invert(1);
  }
}





/**/
.article-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center bottom;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card a{
  color: #EE7943;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6)80%);
  z-index: 1;
  transition: opacity 0.5s ease-in-out; 
}
.article-card:hover::before{
  opacity: 0;
}

.article-card .title {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  z-index: 2;
  margin:0 0 15px 15px;
  color: #fff
}

.article-card .title2 {
  position: relative;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  z-index: 2;
  margin:0 0 20px 20px;
  color: #fff
}

.article-card .tag {
  position: relative;
  z-index: 2;
  max-width: 75px;
  margin: 10px;
}

.article-card:hover .tag{
    filter: invert(42%) sepia(90%) saturate(509%) hue-rotate(-10deg) brightness(97%) contrast(90%);
}



@media screen and (max-width: 768px) {
  .article-card .title,.article-card .title2 {
    font-size: 25px;
    line-height: 1.6;
    margin:0 0 15px 15px;
  }
  .subintro{
    padding:20px 0 15px;
  }
  .subintro span img{
    margin-bottom:30px;
  }
  .subintro h3{
    margin-top: 20px;
  }
}



/*single page*/

.page-hero{
  min-height: 550px;
  background: center no-repeat;
  background-size: cover;
}
.page-hero .logo{
  position: absolute;
  max-width: 300px;
  left: 50%;
  top: 20px;
  transform:translatex(-50%);
}


.page-article{
  background:#fff;
  margin-top: -200px;
  padding:30px;
  /*box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);*/
}
article .title{
  font-size: 42px;
  line-height: 1.3;
  font-weight: 900;
  margin-bottom: 15px;
}
.page-article h2{
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
  color: rgba(0, 0, 0, .5);
  margin-bottom: 3em;
}

article img{
  width: 100%;
  margin:auto;
}
article figure{
  margin: 3em auto;
  text-align: center;
}
article figcaption{
  text-align: center;
  font-size: 13px;
  padding: 10px 0;
}

article .dayimg{
  width:80%;
  margin:0 auto;
}
article blockquote{
  display: block;
  font-style: italic;
  color: #555;
  background-color: #FFECE3;
  padding: 30px;
}

article .gpt{
  font-size: 13px!important;
  color: #999;
}

.page-article h3{
  font-size: 18px;
  font-weight: 700;
  margin:3em 0 15px;
}
.page-article p{
  font-size: 14.4px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.05em;
  margin: 0 auto 2.5em;
}


.page-article li{
  font-size: 14.4px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: justify;
  margin-bottom: 5px;
}


.page-sidebar{
  margin-top: 50px;
  padding: 30px;
}
.page-sidebar p{
  font-size: 14.4px;
  margin-bottom:10px;
}
.page-sidebar .category{
  font-size: 16px;
  font-weight: bold;
  color: #EE7943;
}
.page-sidebar .tags{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgb(74,74,74);
}
.page-sidebar .tags a{
  font-size: 12px;
  display: inline-block;
  color: rgb(74,74,74);
  border:1px solid rgb(74,74,74);
  padding: 3px 6px;
  margin-right:5px;
  margin-bottom: 5px;
}
.page-sidebar .tags a:hover{
  color: #fff;
  background: #46605E;
}
.page-sidebar #share{
  margin-top: 30px;
}
.page-sidebar #share a{
  font-size:30px;
  margin-right:5px;
}

.summary{
  padding: 20px 0;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  margin-bottom: 6em;
  color: rgba(0, 0, 0, .5);
}
.summary p{
  line-height: 1.7;
  margin: 0!important;
  letter-spacing: 0.08em;
  text-align: justify;
  font-size: 18px;
  font-style: italic;
  font-family: serif;
}

@media screen and (max-width: 768px) {
  .page-hero{
    min-height:30vh;
  }
  .page-article{
    width: 98%;
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: none;
    padding: 30px 15px;
  }
  article .title{
    font-size: 25px;
    line-height: 1.38;
    font-weight: 900;
    margin-bottom: 10px;
  }
  .page-article p{
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
  }
}

.footer{
  border-top:1px solid rgba(0, 0, 0, .8);
  padding-top: 6em;
  text-align: center;
  font-size: 11px;
  color: rgba(0, 0, 0,.5);
}
.footer img{
  max-width: 250px;
}