

/* 公共样式 可复用     */
:root {
  --primary-color: #fff;
  --secondary-color: #333;
  --accent-color: #00bcd4;
  --gold-color: #FFBA51 ;
  --overlay-color: rgba(255, 255, 255, 0.9);
  --sidebar-bg: rgba(228, 228, 228);
  --content-panel-bg: rgba(255, 255, 255, 0.95);
  --dropdown-bg: rgba(255, 255, 255, 0.5);
  --arrow-size: 40px;
  --text-color: #666;
  --mask-opacity: 0.5; /* 遮罩层透明度 */
  --border-color: #bcbcbc;
  --h3box-color:#666;
  --pagination-bg: #c1c1c1;
}
/* 引入 Inter-Regular（400 字重） */
@font-face {
    font-family: 'EnRegular';
    font-style: normal;
    font-weight: 400; /* Regular 对应 400 */
    src: url('../fonts/Inter/Inter-Regular.woff2') format('woff2');
     font-display: swap; /* 使用交换策略避免阻塞渲染 */
  }
  
  /* 引入 Inter-Extra Light（200 字重） */
  @font-face {
    font-family: 'EnLight';
    font-style: normal;
    font-weight: 200; 
    /* 路径替换为你的 Extra Light 字重文件实际位置 */
    src: url('../fonts/Inter/Inter-ExtraLight.woff2') format('woff2'); /* 假设文件名 */
     font-display: swap; /* 使用交换策略避免阻塞渲染 */
  }

/* 引入 Noto Sans SC 字体（中文）- 常规字重（400） */
@font-face {
    font-family: 'ZhRegular';
    font-style: normal;
    font-weight: 400; /* 对应 Regular */
    /* 路径指向 Noto Sans SC 常规字重文件 */
    src: url('../fonts/NotoSansSC/NotoSansSC-Regular.otf') format('opentype');
     font-display: swap; /* 使用交换策略避免阻塞渲染 */
  }
  
  /* 可选：引入 Noto Sans SC 其他字重（如粗体700） */
  @font-face {
    font-family: 'EnThin';
    font-style: normal;
    font-weight: 100; /* 对应 Bold */
    src: url('../fonts/NotoSansSC/NotoSansSC-Thin.otf') format('opentype');
     font-display: swap; /* 使用交换策略避免阻塞渲染 */
  }
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'EnRegular', 'ZhRegular', sans-serif;
   /* font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; */
  font-weight: 400; /* regular字重  thin 100 Extra Light200 */
  background-color: var(--primary-color);
    color: var(--secondary-color);
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 1;
  transition: opacity 0.6s ease-in-out 0.6s;
  height: 5rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 70%,
    rgba(255, 255, 255, 0) 100%
  );
}

.logo {
  font-size: 1.5rem;

  /* color: white; */
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  width: 100%;
  display: flex;
  justify-content: space-around;
  gap: 3rem;
}

.nav-item {
  position: relative;
  cursor: pointer; /* 强制鼠标样式，避免判定偏差 */
}

.nav-link {
  /* color: white; */
  text-decoration: none;
  /* font-weight: 500; */
    font-family: 'EnRegular';
  position: relative;
  padding: 0.5rem ;
  display: block;
  transition: color 0.3s ease;
  text-align: center;
  /* width: 140px; */
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-color);
}
.actives {
    color: var(--gold-color);
}

/* Remove the underline effect */
.nav-link::after {
  display: none;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  min-width: 140px;
  width: 100%;
  max-width: 150px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
  display: none; /* 只在默认状态下隐藏 */
  z-index: 9999999 !important;
  /* pointer-events: none;  */
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  display: block; /* 确保添加这个属性 */
  animation: dropdownRollDown 0.5s ease forwards;
}

/* Keyframes for dropdown background roll down effect */
@keyframes dropdownRollDown {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Keyframes for dropdown items fade in effect */
@keyframes dropdownFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-item {
  padding: 1.1rem 1rem;
  text-decoration: none;
  display: block;
  color: var(--secondary-color);
  /* font-weight: 400; */
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: none;
  position: relative;
  overflow: auto;
  backdrop-filter: blur(2px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.27) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
  transition: opacity 0.3s ease;
  /* color: white; */
  font-size: 0.8rem;
  white-space: nowrap;
}
.nav-dropdown-item:nth-child(1) {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 55%,
    rgba(255, 255, 255, 0.5) 100%
  );
}
.nav-dropdown-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent); */
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.nav-dropdown-item:hover::before {
  /* transform: translateX(100%); */
}

/* Trigger animation for each item with different delays */
.nav-item:hover .nav-dropdown-item:nth-child(1) {
  animation: dropdownFadeIn 0.5s ease forwards 0.1s;
}

.nav-item:hover .nav-dropdown-item:nth-child(2) {
  animation: dropdownFadeIn 0.5s ease forwards 0.2s;
}

.nav-item:hover .nav-dropdown-item:nth-child(3) {
  animation: dropdownFadeIn 0.5s ease forwards 0.3s;
}

.nav-item:hover .nav-dropdown-item:nth-child(4) {
  animation: dropdownFadeIn 0.5s ease forwards 0.4s;
}

.nav-item:hover .nav-dropdown-item:nth-child(5) {
  animation: dropdownFadeIn 0.5s ease forwards 0.5s;
}

/* Keyframes for waterfall effect */
@keyframes dropdownFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 导航栏下拉框 */
.nav-dropdown-item:hover {
  /* background-color: rgba(255, 255, 255, 0.3); */
  color: var(--gold-color);
  padding-left: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.collection-btn {
  background: none;
  border: none;
  /* color: white; */
  font-size: 0.9rem;
  /* font-weight: 500; */
  cursor: pointer;
  transition: opacity 0.3s ease;
  letter-spacing: 0.05em;
    /* 添加SVG图标样式 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 8px;
}

.menu-toggle svg {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}



/* 确保按钮有合适的尺寸 */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 8px;
}

.search-btn,
.lang-toggle {
  background: none;
  border: none;
  /* color: white; */
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-btn:hover,
.lang-toggle:hover {
  transform: scale(1.1);
}
/* 遮罩层 */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.5); */
  z-index: 199;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  visibility: hidden;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--sidebar-bg);
  backdrop-filter: blur(10px);
  z-index: 200;
  transition: left 0.5s ease;
  padding: 2rem;
  box-sizing: border-box;
  color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  /* opacity: 0.8; */
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  margin: 2rem 0;
  padding-bottom: 1rem;
  text-align: left;
 /* font-weight: bolder; */
}
.sidebar-header img{
  width: 3rem !important;
    height: 3rem !important;
}

.sidebar-title {
  font-size: 1.5rem;
   /* font-weight: 600; */
  color: var(--secondary-color);
  text-align: center;
 /* font-weight: bolder; */
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.sidebar-menu ::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.sidebar-menu-item {
  margin-bottom: 1rem;
  /* padding-bottom: 0.5rem; */
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

.sidebar-menu-item a {
  color: var(--secondary-color);
  text-decoration: none;
  /* font-weight: 500; */
  display: block;
  width: 100%;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

.sidebar-menu-item a:hover {
  color: var(--gold-color);
}

.sidebar-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
    color: rgb(0 0 0 / 60%);
}

.sidebar-footer-title {
  /* font-weight: 500; */
  margin-bottom: 0.5rem;
  /* color: var(--secondary-color); */
}

.sidebar-footer-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.sidebar-footer-link {
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.sidebar-footer-link:hover {
  color: var(--gold-color);
}

/* Content Panel Overlay */
.content-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 149;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.content-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Content Panel Styles */
.content-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background-color: var(--sidebar-bg);
  z-index: 150;
  transition: transform 0.5s ease;
  padding: 2rem;
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  opacity: 1;
  visibility: visible;
  transform: translateX(100%);
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.content-panel::-webkit-scrollbar {
  display: none;
}

.content-panel.active {
  transform: translateX(0);
}

.content-panel-header {
  margin-bottom: 1.5rem;
}

.content-panel-title {
  font-size: 1.2rem;
   /* font-weight: 600; */
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.content-panel-search {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 0.7rem;
  color: #333;
  cursor: pointer;
}

.content-panel-search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--secondary-color);
  border-radius: 2rem;
}

.content-panel-search-input::placeholder {
  color: #999;
}

.content-panel-search-input:focus {
  outline: none;
  /* border-color: var(--gold-color); */
  /* box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2); */
}

.content-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1.5rem;
}

.content-item:last-child {
  border-bottom: none;
}

.content-item-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.content-item-title {
  font-size: 1rem;
  /* font-weight: 500; */
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.content-item-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.search-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background-color: var(--content-panel-bg);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

.search-overlay.active {
  transform: translateX(0);
}

.search-container {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid #ddd;
  background-color: transparent;
  color: var(--secondary-color);
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

.search-close {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
}

.search-results {
  flex: 1;
  overflow-y: auto;
}

.search-result-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  /* font-weight: 500; */
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.search-result-description {
  font-size: 0.9rem;
  color: #666;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--dropdown-bg);
  backdrop-filter: blur(10px);
  min-width: 150px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.lang-dropdown-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-item {
  padding: 0.8rem 1rem;
  text-decoration: none;
  display: block;
  color: var(--secondary-color);
  /* font-weight: 500; */
  transition: background-color 0.3s ease;
}

.lang-dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.nav-lang {
  /* color: white; */
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .sidebar {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content h2 {
    font-size: 0.8rem;
  }

  .sidebar {
    width: 200px;
  }
}

.content-panel-collection {
  height: calc(100vh - 150px); /* 调整为 150px 以增加预留空间 */
  overflow-y: auto;
  -ms-overflow-style: none; /* IE 和 Edge */
  scrollbar-width: none; /* Firefox */
}

.content-panel-collection::-webkit-scrollbar {
  display: none; /* Chrome, Safari 和 Opera */
}
.content-title {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
 /* font-weight: bolder; */
  opacity: 1;
  font-size: 1.2rem;
}
/* 固定顶部样式 */
.content-title.fixed-top {
  top: 1rem;
}
/* 首页动画样式 */
.content-title.animate-from-center {
  /* 过渡时间 */
  animation: moveToTop 1s  ease-out forwards;
}
.content-title img{
   width: 50px;
   height: 50px;
}
@keyframes moveToTop {
  0% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 初始居中 */
    font-size: 2rem;
    opacity: 0;
  }
  100% {
    top: 1rem; /* 导航栏高度 */
    left: 50%;
    transform: translate(-50%, 0); /* 最终水平居中 */
    font-size: 1.2rem;
    opacity: 1;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/* Footer */
.footer {
  width: 85%;
  margin: 0 auto;
  height: 5rem;
  padding: 2rem 0;
  border-top: 2px solid #c8c8c8;
  margin-top:40px;
}
.footer span {
  display: block;
  text-align: center;
  color: #666;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-left,
.footer-center,
.footer-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.social-link img {
  width:100%;
  height: 1.5rem;
}
.footer-center {
  text-align: center;
  margin-left: 6rem;
}

.footer-right {
  text-align: right;
}
/* logo页尾 */
.footerImg{
  display: flex;
  justify-content: center;
  align-items: center;

}
.footerImg img {
  width: 50px;
}
.setFot img{
  width: 100px;
}

.social-link {
  color: var(--secondary-color);
  margin-left: 1rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--gold-color);
}
.nav-dropdown-item::-webkit-scrollbar {
  display: none; /* Chrome, Safari 和 Opera */
}

/* 底部信息区域 */
.info-section {
width: 85%;
  margin: 0 auto;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 每行四个等宽列 */
  gap: 20px; /* 列间距 */
}

.info-column {
  margin-bottom: 30px; /* 行与行之间的间距 */
}

.info-title {
  font-size: 1.2rem;
   /* font-weight: 600; */
     color: var(--h3box-color) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.info-text {
  color: var(--secondary-color);
  font-size: 0.875rem;
  line-height: 1.5;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  margin-bottom: 8px;
  color: var(--h3box-color);
  font-size:0.75rem;
  line-height: 1rem;
}
.h3box{
  font-weight: 600;
    font-size: 14px;
    color: var(--h3box-color) !important;
}
/* 二维码悬浮样式 - 图标正上方定位 */
.qr-code-overlay {
    position: fixed;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    pointer-events: none;
}

.qr-code-overlay img {
    width: 150px;
    height: 150px;
    display: block;
}

.qr-code-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 确保社交链接有相对定位 */
.social-link {
    position: relative;
    display: inline-block;
}
/* 分页 */
.pagination-controls {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination li {
  display: inline-block;
  margin: 0 0.25rem;
}

.pagination li a {
  display: block;
  padding: 0.1rem 0.7rem;
  /* border: 1px solid #ddd; */
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}


.pagination li a.active {
  border-color: var(--pagination-bg);
    border: 1px solid #ddd;
}

.pagination li a.prev,
.pagination li a.next {
  font-weight: bold;
}

.pagination li a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


