:root {
  --bg-color: #645B4E;
  --text-color: white;
  --card-bg: #8E7F6D;
  --highlight-color: #FDF7AA;
  --menu-hover-text: black;
  --logo-color:#ffffff;
  --border-color: white;
}

.light-mode {
  --bg-color: #fffbc1;;
  --text-color: #000000;
  --card-bg: #ffb743;
  --highlight-color: #645641;
  --menu-hover-text: #ffffff;
  --border-color: #645641;
  --logo-color: #645641;
}

.header {
  background-color: var(--bg-color); 
  display: flex;
  justify-content: space-between;
  align-items: left;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 10;  
}


.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem;
  position: relative;
  z-index: 10;
}

.top-bar.aligned-bar {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0rem; 
  padding-right: 1rem;
  padding-top: 2rem;
  padding-bottom: 0rem;
}


.back-btn {
  display: flex;
  align-items: center;
  position:relative;
}

.back-icon-wrapper {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-icon {
  width: 24px;
  height: 24px;
  display: none;
  transform: scaleX(-1) translateY(3px);
}

body.light-mode .light-arrow {
  display: block;
}

body:not(.light-mode) .dark-arrow {
  display: block;
}


.logo-text {
  font-size: 2.2rem;
  font-weight: bold;
  font-family: cursive;
  color: var(--logo-color);
  margin: 0;
  padding-left: 1.2rem;
  flex-grow: 1;
  text-align: left;
}



body {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.light-mode .menu-btn {
  border: 2px solid #645B4E;
}

.bio-text,
.mobile-menu-box {
  background-color: var(--card-bg);
}

/* menu hover effect */
.menu-item:hover,
.mobile-menu:hover {
  background-color: var(--highlight-color);
  color: var(--menu-hover-text) !important;
}

/* buttonstyle */
.refresh {
  cursor: pointer;
  transition: transform 0.4s ease;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Add the style after clicking */
.refresh.active {
  transform: rotate(180deg);
}

.refresh:hover {
  transform: rotate(90deg);
}

body.light-mode .refresh img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(13%) saturate(901%) hue-rotate(3deg) brightness(93%) contrast(87%);
}


/* basic*/

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

/* ======= The menu is positioned on the right======= */
.menu-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: nowrap;
}


  @media (min-width: 900px) {
    .menu-group {
      gap: 3rem; 
    }
  
    .refresh {
      margin-right: 1rem; 
    }
  }

.container-box {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.menu-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}


.logo img {
    display: block;
    color: var(--logo-color);
}

.menu {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: visible;
    background-color: transparent; 
}

.menu-item {
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  border: none; 
  border-right: 1px solid var(--border-color); 
  background-color: transparent;
  cursor: pointer;
  text-decoration: none;
}

.menu-item:last-child {
  border-right: none;
}


/* light mode change */
body.light-mode .menu-item {
  color: #645641;
}

.menu-item:hover {
  background-color: var(--highlight-color);
  color: var(--menu-hover-text);
}


.menu-item.active {
    background-color: #FDF7AA;
    color: black;
}

.menu-item:first-child {
    border-top-left-radius: 0.40rem;
    border-bottom-left-radius: 0.40rem;
}

.menu-item:last-child {
    border-top-right-radius: 0.40rem;
    border-bottom-right-radius: 0.40rem;
}

.menu-btn {
    display: none;
    cursor: pointer;
    margin-right: 2rem;
}

@media (max-width: 900px) {
    .menu-btn {
        display: block;
        margin-left: 1rem;
        display: none;
        cursor: pointer;
        border: 2px solid #FDF7AA; /* 浅黄色边框 */
        border-radius: 0.5rem;
        padding: 0.8rem;
        margin-right: 2rem; 
    }
}


/* ======= mobile menu style ======= */
#menu-toggle:checked ~ .mobile-menu-box {
  display: flex;
}
.mobile-menu-box {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #BDA88C;        
  border: 1px solid var(--highlight-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 0.5rem;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  gap: 0.8rem;
  min-width: 180px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}



.mobile-menu {
  background-color: transparent;
  border: 1px solid var(--highlight-color); 
  color: var(--text-color);                
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.8rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
}


.mobile-menu:hover {
  background-color: #FDF7AA;
  color: black !important;
  transform: scale(1.03);
}
a:hover {
  color: #FDF7AA;
  text-decoration: none;
}

.mobile-menu:visited {
    color: white;
}

/* light mode mobile style */
body.light-mode .mobile-menu-box {
  background-color: #BDA88C;
  border: 1px solid #645641;
}

body.light-mode .mobile-menu {
  border: 1px solid #645641;
  color: white;
}

/* hover effect */
body.light-mode .mobile-menu:hover {
  background-color: #FDF7AA;
  color: #333 !important;
}


/* ======= Banner style======= */
.home-banner-1 {
    background-color: rgba(0, 0, 0, 0.6);
}

.banner-txt1 {
  font-size: 48px;
  color: #FDF7AA;
  font-family: cursive;
  line-height: 1.3;
  margin-bottom: 3rem; 
}

.hero-banner {
  position: relative;
  height: auto;
}

.home-banner-1 {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0.6);
    transition: filter 1s ease;
  }

/* 遮罩层 */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(119, 119, 119, 0.25); /* 灰色遮罩 */
  pointer-events: none;
  z-index: 1;
  transition: opacity 1s ease;
}

/* Light up after rolling: Make the mask transparent */
.hero-banner.active .image-overlay {
  opacity: 0;
}
  
.banner-txt1 {
  font-size: 48px;
  color: #FDF7AA;
  font-family: cursive;
  line-height: 1.4;
  margin-bottom: 2rem;
}

  /* Center text and line */
.hero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}
  
.hero-line {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; /* ← 更粗一点 */
  height: 300px;
  background-color: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  z-index: 5;
  animation: floatLine 3s ease-in-out infinite;
}

body.light-mode .hero-line {
  background-color: #645641;
  box-shadow: 0 0 6px rgba(100, 86, 65, 0.6);
}



@keyframes floatLine {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
    opacity: 0.8;
  }
}


/* Mobile When displayed: Line shorter */
@media (max-width: 900px) {
  .hero-line {
    height: 120px;
  }
} 

.hero-line::before,
.hero-line::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero-line::before {
  top: 0;
}

.hero-line::after {
  bottom: 0;
  box-shadow: 0 0 6px 2px white;
}


/* --- rolling efect --- */

body:has(.scrolled) .hero-banner .home-banner-1 {
  filter: brightness(1);
}

body:has(.scrolled) .hero-banner .image-overlay {
  opacity: 0; /* Gray mask fades out */
}

.hero-banner:has(.hero-center:hover) .home-banner-1 {
  filter: brightness(1);
}
.hero-banner:has(.hero-center:hover) .image-overlay {
  opacity: 0;
}

.banner-txt2 {
    font-size: 40px;
    font-family: cursive;
    bottom: 30px;
    left: 30px;
}

/* ======= content descriptive======= */
.text-description {
    margin-top: 130px !important;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    text-align: center;
  }
  
  @media (max-width: 900px) {
    .text-description {
    margin-top: 100px !important;
    margin-bottom: 1rem;
    }
  }
  
  
  .middle-txt {
    font-family: cursive;
    font-size: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.2;
    transition: font-size 0.3s ease;
  }
  
  @media (max-width: 900px) {
    .middle-txt {
      font-size: 30px;       
      line-height: 1.6;
      padding: 0 1rem;       
    }
  }

.bio-heading {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 1rem;
}


.quote-author {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: white;
    font-style: italic;
  }
  body.light-mode .quote-author {
    color: #645641;
  }
  
  
.bio-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

@media (max-width: 900px) {
  .bio-section {
    flex-direction: column;
    align-items: center;
    text-align: center; 
  }

  .bio-image {
    border-radius: 2rem;
  }

.bio-text {
    width: 100%;
    max-width: 600px;
  }
}


.bio-image {
  width: 100%;
  max-width: 370px;
  height: auto;
  border-radius: 0;
}
    
  
  @media (max-width: 900px) {
    .bio-image {
      border-radius: 2rem; 
    }
  }
  

.bio-text {
  flex: 1;
  width: 500px;             
  background-color: #C2A789;
  font-family: cursive;
  padding: 2rem 3rem;     
  height: auto;
}

.bio-heading {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.bio-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
}


a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: #FDF7AA;
    text-decoration: none;
}


/* Featured Story */
.featured-story {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
}

.featured-text {
  position: absolute;
  bottom: 0rem;
  left: 2rem;
  right: 2rem;
  color: white;
  font-family: cursive;
  font-size: 2rem;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  padding-bottom: 2rem;
}


@media (max-width: 768px) {
  .featured-text {
    font-size: 1.2rem;
    left: 1rem;
    right: 1rem;
    bottom: 0rem;
  }
}


/* ======= footer ======= */

.site-footer {
  background-color: #C2A789;
  margin-top: 40px;
  padding: 2rem 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}


.featured-story .divider {
  border: none;
  border-top: 2px solid white;
  width: 100%;
  margin: 1.2rem 0;
}

body.light-mode .divider {
  border-top: 2px solid #645641;
}


body.light-mode .more-title {
  color: black;
}
body.light-mode .thumb-article {
  background-color:#C2A789;
}


body.light-mode .divider {
  border-top: 2px solid #645641;
}


/* ======= mobile design ======= */
@media (max-width: 900px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: left;
  }

  .menu {
    display: none !important;
  }

  body.light-mode .menu-btn img {
    filter: brightness(0) saturate(100%) invert(19%) sepia(13%) saturate(901%) hue-rotate(3deg) brightness(93%) contrast(87%);
  }
  

  .menu-btn {
    display: block !important;
  }

  -box {
    display: block !important;
    flex-direction: column;
    margin-top: 1rem;
  }
  .banner-txt1,
  .banner-txt2,
  .middle-txt {
    font-size: 24px;
    width: auto;
  }

  .bio-section {
    flex-direction: column;
  }

  .bio-image {
    order: -1;
  }
}






/* ======= Article Page Styles ======= */

.article-header.cover-wrapper {
  padding-top: 4rem;
  padding-bottom: 0.5rem;
}

.theme-toggle-btn {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  color: var(--highlight-color);
}

/* Header & Cover */
.cover-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  text-align: center;
}

.cover-img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.divider {
  border: none;
  border-top: 2px solid white;
  margin: 1.2rem auto;
  max-width: 1000px;
}
.home-divider {
  border: none;
  border-top: 2px solid white;
  width: 100%;
  margin: 1.2rem 0;
  max-width: none;
}

body.light-mode .divider {
  border-top: 2px solid #645641;
}
body.light-mode .home-divider {
  border-top: 2px solid #645641;
}


/* Main Article */
.article-body {
  padding: 0 2rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.article-body p {
  margin: 0;
  margin-top: 1.8rem;    
  margin-bottom: 2.2rem;    
  font-size: 1.1rem;
  line-height: 1.9;   
  color: var(--text-color);
  line-height: 1.6;
}


.art-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--highlight-color);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.article-date {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 2rem;
}

/* Interview Section */
.interview-block:first-of-type {
  margin-top: 3rem;
}

.question,
.answer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}


/* Avatar */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-small {
  width: 50px;
  height: 50px;
}

.avatar-large {
  width: 100px;
  height: 100px;
}

/* Highlight Text */
.article-highlight {
  font-style: italic;
  font-size: 1.4rem;
  color: var(--highlight-color);
}

.article-image-block {
  margin: 2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-image-block img {
  width: 80%;
  height: auto;
  border-radius: 1rem;
}

.banner-4-txt {
  margin-top: 0.8rem;
  font-size: 0.75rem !important;
  color: #cccccc  !important;
  text-align: center;
  max-width: 80%;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
}

.article-end-description {
  max-width: 600px;
  margin: 3rem auto 0 0; 
  padding-left: 2rem;
  padding-right: 2rem;
  color: #bbbbbb !important;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}


.article-end-description p {
  color: #bbbbbb !important;
  font-size: 0.95rem;
  line-height: 1.7;
}


/* More Section */
.more-section {
  margin-top: 3rem;
}

.more-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.5rem;
  color: white;
  margin: 4rem 0 2rem;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
}

.more-title::before,
.more-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: white;
  opacity: 0.7;
}


body.light-mode .more-title::before,
body.light-mode .more-title::after {
  background-color: #645641;
}

.more-articles {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb-article {
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 1rem;
  width: 250px;
  transition: all 0.3s ease;
}

.thumb-title {
  font-size: 1rem;
  color: var(--highlight-color);
  margin-top: 0.5rem;
  font-weight: 600;
}

.thumb-article img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
}

@media screen and (min-width: 768px) {
  .thumb-article {
    width: 320px;
  }
}

  .thumb-desc {
    font-size: 1.05rem;
  }

.thumb-desc {
  font-size: 1rem;
  color: white;
  margin-top: 0.2rem;
}

.site-footer {
  background-color: #C2A789;
  margin-top: 40px;
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}



.site-footer img {
  margin-bottom: 0.5rem;
}

.site-footer .copyright {
  color: white;
  font-size: 1rem;
}

.refresh {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.4s ease;
}

.refresh:hover {
  transform: rotate(90deg);
}

.refresh.active {
  transform: rotate(180deg);
}
body.light-mode .refresh img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(13%) saturate(901%) hue-rotate(3deg) brightness(93%) contrast(87%);
}

/* Article2 */
.article-image-text-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto;
  max-width: 900px;
  gap: 24px;
  flex-wrap: wrap;
}

.image-side {
  max-width: 400px;
  border-radius: 8px;
}

.text-box-side {
  background-color: var(--card-bg);
  padding: 24px;
  max-width: 360px;
  font-size: 1rem;
  text-align: center;
  font-style: italic;
  font-weight: 600;
  color: var(--bg-color);
  border-radius: 4px;
}

