@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  background: linear-gradient(135deg, #f3ede7 0%, #f7f3ee 100%);
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Times New Roman', Times, serif;
  color: #373737;
  min-height: 100vh;
  transition: background 0.5s;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Top header container*/
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(251,245,238,0.95);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  padding: 0 40px;
  height: 64px;
  box-sizing: border-box;
}

.name {
  color: #575655;
  font-size: 28px;
  font-family: 'Poppins', 'Times New Roman', Times, serif;
  margin: 0;
  padding: 0;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.04);
  /* No longer need to locate */
}

.top_manu {
  font-size: 16px;
  font-family: 'Poppins', 'Times New Roman', Times, serif;
  color: #353535;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  box-sizing: border-box;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  /* no position、width、background、box-shadow、border-radius */
}

.top_manu li a {
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  font-weight: 500;
}

/* Leave the header height at the top of the main content. */
.title, .box, .main-content {
  margin-top: 80px !important;
}

.title {
  color: #575655;
  font-family: 'Poppins', 'Times New Roman', Times, serif;
  padding-top: 110px;
  margin: 0 auto;
  min-height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 1200px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  margin-bottom: 32px;
  transition: background 0.3s;
}

.intro-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 0 24px 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.intro-avatar {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}
#keqing-anim {
  width: 180px;
  height: 220px;
  background: #f7f3ee;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.intro-card {
  background: rgba(255,255,255,0.98);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px 36px 28px 36px;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.intro-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #a88b4a;
  margin-bottom: 0;
}
.intro-desc {
  font-size: 1.2rem;
  color: #575655;
  margin-bottom: 8px;
  font-weight: 500;
}
.intro-tags {
  margin: 8px 0 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.intro-tag {
  background: #f7f3ee !important;
  color: #7a5c1b;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  letter-spacing: 1px;
}
.intro-text {
  color: #575655;
  font-size: 1.05rem;
  margin: 0 0 4px 0;
  line-height: 1.7;
}
.intro-btns {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}
.intro-btns .button {
  font-size: 1.08rem;
  padding: 12px 32px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(247,200,115,0.12);
  font-weight: 600;
  letter-spacing: 1px;
}
@media (max-width: 900px) {
  .intro-flex {
    flex-direction: column;
    gap: 18px;
    padding: 18px 0 10px 0;
  }
  .intro-card {
    padding: 18px 10px 16px 10px;
    min-width: 0;
    max-width: 98vw;
  }
  .intro-avatar {
    min-width: 0;
  }
}

.title h1, .title h2 {
  font-family: 'Poppins', 'Times New Roman', serif;
  font-weight: 600;
  margin-bottom: 12px;
}

.button {
  font-family: 'Poppins', 'Times New Roman', Times, serif;
  font-size: 18px;
  display: inline-block;
  padding: 12px 32px;
  background: #f7f3ee;
  color: #373737;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.3s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-top: 16px;
  font-weight: 600;
}
.button:hover {
  transform: scale(1.05);
}

.media-container {
  color: #343434;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  padding: 32px 0 32px 0;
}

.media-block {
  width: 45%;
  box-sizing: border-box;
  text-align: center;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 24px 18px 18px 18px;
  margin-bottom: 18px;
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative;
}
.media-block:hover {
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}

.media-block h3 {
  margin-top: 18px;
  font-family: 'Poppins', serif;
  text-align: center;
  font-weight: 500;
}

.media-block img,
.media-block embed {
  width: 100%;
  height: 340px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.2s;
}
.media-block img:hover,
.media-block embed:hover {
  transform: scale(1.04);
}

.subtitle {
  text-align: center;
  padding: 10px;
}

.point {
  font-size: 30px;
  font-family: 'Poppins', 'Times New Roman', Times, serif;
  color: #575655;
  margin: 0 10px;
}

.point::before {
  content: "·";
  margin-right: 10px;
  color: #797979;
}

/* Back to Top button*/
#backToTop {
  display: none;
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 2000;
  background: linear-gradient(90deg, #f7c873 0%, #f3ede7 100%);
  color: #373737;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: 0 4px 16px rgba(247,200,115,0.18);
  font-size: 28px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
#backToTop:hover {
  background: linear-gradient(90deg, #f3ede7 0%, #f7c873 100%);
  transform: scale(1.12);
}

/* Page loading animation mask */
#pageLoader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(243,237,231,0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #f7c873;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 2px;
  opacity: 1;
  transition: opacity 0.5s;
}

#pageLoader.hide {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .header {
    padding: 0 10px;
    height: 56px;
  }
  .name {
    font-size: 22px;
  }
  .top_manu {
    font-size: 16px;
    gap: 14px;
  }
  .title, .box, .main-content {
    margin-top: 70px !important;
  }
  .media-block {
    width: 90%;
  }
  .title {
    padding-top: 90px;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-end;
    padding: 0 4px;
    height: auto;
    border-radius: 0;
  }
  .name {
    align-self: flex-start;
    font-size: 18px;
    margin-bottom: 2px;
  }
  .top_manu {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 0;
  }
  .title, .box, .main-content {
    margin-top: 60px !important;
  }
  .media-block {
    width: 100%;
    padding: 12px 4px 12px 4px;
  }
  #backToTop {
    right: 12px;
    bottom: 32px;
    /* width: 44px;
    height: 44px; */
    font-size: 22px;
  }
}

#readAllBtn {
  position: fixed;
  left: 32px;
  /* left: 32px; */
  bottom: 32px;
  z-index: 2000;
  background: linear-gradient(90deg, #f7c873 0%, #f3ede7 100%);
  color: #373737;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: 0 4px 16px rgba(247,200,115,0.18);
  font-size: 28px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, opacity 0.3s;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
}
#readAllBtn.show {
  display: flex;
  opacity: 1;
}
#readAllBtn:hover, #readAllBtn.reading {
  background: linear-gradient(90deg, #f3ede7 0%, #f7c873 100%);
  color: #ff9800;
  transform: scale(1.12);
}
@media (max-width: 900px) {
  #readAllBtn {
    right: 12px;
    bottom: 32px;
    /* width: 44px;
    height: 44px; */
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  #readAllBtn {
    right: 8px;
    bottom: 32px;
    /* width: 36px;
    height: 36px; */
    font-size: 16px;
  }
}

.collapser {
  display: inline-block;
  animation: arrow-bounce 1.2s infinite ease-in-out;
  transition: color 0.2s;
}

@keyframes arrow-bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(6px); }
  60% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3ede7 0%, #f7f3ee 100%);
  position: relative;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
}
.hero-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  margin-bottom: 32px;
}
.hero-title {
  font-size: 2.8rem;
  font-family: 'Poppins', 'Times New Roman', serif;
  font-weight: 700;
  color: #575655;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 1.6rem;
  color: #a88b4a;
  margin-bottom: 18px;
  font-weight: 600;
  
}

.scroll-down-btn {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: transparent;
  color: #a88b4a;
  border: none;
  border-radius: 0;
  font-size: 3.2rem;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
  transition: none;
  z-index: 10;
  line-height: 1;
}
.scroll-down-btn:hover {
  background: transparent;
  color: #a88b4a;
  transform: translateX(-50%) scale(1.12);
}
.content-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 80px;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  margin: 0 auto 32px auto;
  max-width: 1200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
@media (max-width: 900px) {
  .hero-img {
    width: 140px;
    height: 140px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-section {
    padding-top: 0;
    padding-bottom: 0;
  }
  .content-section {
    padding-top: 30px;
    padding-bottom: 20px;
    border-radius: 12px;
  }
  .scroll-down-btn {
    font-size: 1rem;
    padding: 10px 22px;
    bottom: 18px;
  }
}
@media (max-width: 600px) {
  .hero-img {
    width: 90px;
    height: 90px;
  }
  .hero-title {
    font-size: 1.2rem;
  }
  .hero-section {
    padding-top: 0;
    padding-bottom: 0;
  }
  .content-section {
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0;
  }
  .scroll-down-btn {
    font-size: 0.9rem;
    padding: 7px 14px;
    bottom: 8px;
  }
}

.site-footer{
  text-align: center;
  padding: 10px 0 6px 0;
}

.footer-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: none;
  margin-top: 0;
  margin-bottom: 0;
}

.section-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 70px;
}

.toggle-btn {
  border: none;
  background: none;
  color: #575655;
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 8px;
  cursor: pointer;
  outline: none;
  transition: color 0.2s, transform 0.2s;
  vertical-align: middle;
}
.toggle-btn:focus, .toggle-btn:hover {
  color: #a88b4a;
  transform: scale(1.2);
}

.section-box {
  background: #f7f3ee !important;
  color: #7a5c1b;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-hobby-title {
  font-size: 2rem;
  font-weight: 700;
  color: #575655;
  margin-bottom: 0;
  margin-left: 8px;
  margin-top: 0;
  text-align: left;
}
.work-hobby-underline {
  width: 120px;
  height: 4px;
  background: #f7c873;
  border-radius: 2px;
  margin-left: 8px;
  margin-bottom: 32px;
}
.work-hobby-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
}
.work-hobby-card {
  width: 220px;
  height: 260px;
  background: #f7f3ee;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-hobby-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.work-hobby-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.work-hobby-name {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #7a5c1b;
  width: 100%;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  background: #f7f3ee;
}
.work-hobby-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #575655;
  margin-bottom: 0;
  margin-left: 8px;
  margin-top: 0;
  text-align: left;
}
.work-hobby-detail-underline {
  width: 120px;
  height: 4px;
  background: #f7c873;
  border-radius: 2px;
  margin-left: 8px;
  margin-bottom: 32px;
}
