/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #fff;
  overflow-x: hidden;
}

/* 背景样式 */
.main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/bg.jpg") no-repeat
    center center;
  background-size: cover;
  z-index: -1;
  filter: brightness(0.9);
}

/* style.css 文件内容 */
#header {
  margin-top: 0; /* 上边距为0 */
  margin-bottom: 0; /* 下边距为0 */
  width: 100%; /* 宽度为100% */
  height: auto; /* 高度自动调整，保持比例 */
}

#header img {
  width: 100%; /* 图片宽度为100% */
  height: auto; /* 图片高度自动调整，保持比例 */
  display: block; /* 防止图片下方出现多余空间 */
}

/* 导航栏样式 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffd700;
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: rgba(0, 0, 0, 0);
  color: #fff;
  display: flex;
  justify-content: center; 
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  outline: none; /* 去掉按钮的默认轮廓 */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(241, 241, 241, 0.151);
  z-index: 1;
  padding: 0.5rem 0; /* 添加内边距，使下拉菜单的选项看起来更整齐 */
  flex-direction: column; /* 使下拉菜单的选项垂直排列 */
}

.dropdown-content a {
  color: rgb(255, 255, 255);
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  justify-content: center; /* 横排对齐 */
  font-size: 1.1rem; /* 使文字大小与主菜单一致 */
  width: 100%; /* 使每个选项的宽度一致 */
}

.dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown:hover .dropbtn {
  background-color: #00000000;
}


/* 主要内容区样式 */
.main-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.title {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 内容卡片网格 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.content-card {
  padding: 2rem;
  border-radius: 8px;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease;
}

.content-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.content-card h2 {
  color: #d7d2b6;
  margin-bottom: 1rem;
}

/* 滚动部分样式 */
.scroll-section {
  padding: 30px 0;
  min-height: auto;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* 角色展示区样式 */
.section-title {
  margin: 100px 0 20px;
  text-align: center;
  font-size: 2.5em;
  color: #ffd700;
}

.character-container {
  display: flex;
  align-items: center;
  padding: 40px 20px;
  min-height: 600px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* 滚动条样式优化 */
.character-container::-webkit-scrollbar {
  height: 8px;
}

.character-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.character-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.character-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 页脚样式 */
.footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  color: #ffd700;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffd700;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .features-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* 修改卡片样式 */
.card-wrap {
  margin: 0 15px;
  flex-shrink: 0;
  scroll-snap-align: center;
  width: 300px; /* 固定宽度 */
  height: 450px; /* 固定高度 */
  perspective: 1000px;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 80% center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.1);
}

.card-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-info h1 {
  font-family: "Raleway";
  font-size: 24px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-info p {
  font-family: "Raleway";
  font-size: 16px;
  color: #fff;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 悬停效果 */
.card-wrap:hover .card {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.card-wrap:hover .card-bg {
  transform: scale(1.2);
}

.card-wrap:hover .card-info {
  transform: translateY(0);
}

.card-wrap:hover .card-content {
  opacity: 1;
  transform: translateY(0);
}

/* 研究兴趣区块样式 */
.interest-container {
  padding: 20px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.interest-card {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #ffd700;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.interest-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.interest-card:hover {
  transform: translateY(-10px);
}

.interest-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 15px;
}

.interest-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.interest-card h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.interest-card p {
  color: #fff;
  margin: 0 1rem 1rem;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .interest-card {
    margin: 1rem;
  }
}

/* 成员区块样式 */
.member-container {
  padding: 20px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 15px;
  max-width: 1800px;
  margin: 0 auto;
}

.member-card {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #ffd700;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.member-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.member-card:hover {
  transform: translateY(-10px);
}

.member-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 15px;
}

.member-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.member-card h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.member-card h4 {
  color: #fff;
  font-size: 1.0 rem;
  margin: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.member-card p {
  color: #fff;
  margin: 0;
  line-height: 1.5;
  font-size: 0.85rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);

}


.member-card a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
/* 响应式调整 */
@media (max-width: 768px) {
  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    margin: 1rem;
  }
}

/* 学术成果区块样式 */
.paper-container {
  padding: 20px;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.paper-card {
  display: flex;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #ffd700;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  position: relative;
}

.paper-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.paper-card:hover {
  transform: translateY(-10px);
}

.paper-image {
  flex: 0 0 400px;
  height: auto;
  overflow: hidden;
}

.paper-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-content {
  flex: 1;
  padding: 15px;
  color: #fff;
  position: relative;
}

.paper-content h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.paper-content p {
  line-height: 1.5;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.paper-link {
  position: absolute;
  right: 15px;
  bottom: 15px;
}

.paper-link a {
  display: inline-block;
  padding: 6px 12px;
  background-color: #ffd700;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.paper-link a:hover {
  background-color: #e5c100;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .paper-card {
    flex-direction: column;
  }

  .paper-image {
    width: 100%;
    height: 200px;
  }

  .paper-link {
    position: static;
    margin-top: 10px;
  }
}

/* 特别处理故事部分 */
.scroll-section#story {
  padding: 2rem 2rem;
  min-height: auto;
  margin-top: 100px;
}

/* 特别处理角色部分 */
.scroll-section#characters {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 特别处理特色部分 */
.scroll-section#features {
  padding: 40px 20px;
}

/* 特别处理更多内容部分 */
.scroll-section#more-content {
  padding: 40px 20px;
}

/* 响应式调整 */
@media (max-width: 1440px) {
  .scroll-section {
    max-width: 95%;
  }
}

        /* 定义表格的样式 */
        .interactive-table {
          width: 100%;
          background-color: rgba(0, 0, 0, 0.575);
          color: white;
          border-collapse: collapse;
      }

      .interactive-table th, .interactive-table td {
          border: 1px solid white;
          padding: 8px;
          text-align: center;
      }

      .interactive-table th {
          background-color: #333; /* 表头背景颜色稍深 */
      }

      .interactive-table input {
          background-color: rgba(235, 234, 234, 0.774);
          color: rgb(0, 0, 0);
          border: 1px solid white;
          padding: 4px;
          width: calc(100% - 10px); /* 调整输入框宽度 */
      }

      .interactive-table input:focus {
          outline: none; /* 去掉输入框的默认焦点边框 */
      }

      /* 定义外层容器的样式 */
      .table-container-left {
          position: fixed;
          top: 400px;
          left: 20px;
          width: 300px;
          height: 500px;
          overflow: auto;
          border: 1px solid #ccc;
          padding: 10px;
          background-color: rgba(0, 0, 0, 0.349);
          color: white;
      }

      .table-container-right {
        position: fixed;
        top: 400px;
        right: 20px;
        width: 300px;
        height: 500px;
        overflow: auto;
        border: 1px solid #ccc;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.349);
        color: white;
    }