@import "modules/navigation.css";

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --text-color: #333;
  --background-color: #f8f9fa;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
}

.section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 2rem;
}

/* 首页布局 */
.section-home {
  background-image: url('../assets/images/index/banner_background.png');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 100vh;
}

.section-download {
  background-color: #ffffff;
  padding: 4rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.download-title1 h1 {
  width: 100%;
  transform: translateY(-100px);
  font-size: 3rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.download-title2 h1 {
  width: 100%;
  transform: translateY(-100px);
  font-size: 3rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.download-title3 h1 {
  width: 100%;
  transform: translateY(100px);
  font-size: 3rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.section-partners {
  background-image: url('../assets/images/index/partner_background.png');
  background-size: cover; /* 确保背景图片覆盖整个元素 */
  background-position: center; /* 将背景图片居中显示 */
  background-color: #95d3fc; /* 备用背景颜色，如果图片加载失败 */
  padding: 4rem 2rem;
  /* border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0; */
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}



.home-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding-left: 10rem;
  align-items: center;
}

.home-content {
  padding-left: 5%;
  max-width: 600px;
  color: rgb(0, 0, 0);
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

.home-content::after {
  content: "";
  display: block;
  margin-top: 20px;
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
}

.home-content h1 {
  font-size: 2.8rem;  /* 可以调整至你需要的大小，比如 3rem */
  color: rgb(0, 0, 0); /* 保持原色 */
}

.home-content p {
  font-size: 1.6rem;  /* 根据需要调整，例如设置为 1.2rem */
  color: #7a7a7a;
  font-weight: 400;
}


.btn {
  margin-top: 35px;
  /* 文字大小 */
  font-size: 16px;
  font-weight: 600;
  /* 调整内边距，使按钮更扁 */
  padding: 10px 30px;
  /* 超大值，确保完全椭圆 */
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  /* 设定最小宽度 */
  min-width: 120px;
  text-align: center;
}

/* 立即下载按钮 - 蓝色填充 */
.btn.primary {
  background-color: #0099FF;
  color: white;
  border-color: #0099FF;
  margin-left: -150px;
  /* 按钮间距 */
  margin-right: 72px;
}

.btn.primary:hover {
  background-color: #007ACC;
  border-color: #007ACC;
}

/* 了解更多按钮 - 蓝色边框 */
.btn.secondary {
  background-color: white;
  color: #7a7a7a;
  border-color: #0099FF;
}

.btn.secondary:hover {
  background-color: #E6F4FF;
}


.home-image {
  padding-right: 10%;
  display: flex;
  justify-content: flex-end;
}

.section-home .home-image img {
  max-width: 100%;
  height: auto;
}

.platforms {
  display: flex;
  justify-content: space-between;
  gap: 100px;
  margin-top: 2rem;
}

.platform {
  flex: 1;
  text-align: center;
  background: url('../assets/images/download/gen_shape.png') no-repeat center;
  background-size: 100%;
  padding-top: 0;
  border-radius: 50%;
  position: relative;
  width: 13rem;
  height: 13rem;
  transition: transform 0.5s ease;
  /* 缓慢上浮的效果，持续 0.5 秒 */
}

.floating-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: auto;
}

/* 图片上移 */
.platform:hover {
  transform: translateY(-10px);
}

/* 初始时二维码隐藏 */
.qr-code {
  display: none;
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.5s ease;
}

.qr-code img {
  width: 150px;
  height: 150px;
}

.platform p {
  margin-top: 16rem;
  font-size: 1.5rem;
  color: #333;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  /* padding: 0 px; */
  /* margin-top: 0.2rem;  */
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgb(255, 255, 255);
  padding: 0.5rem 1rem;
  text-align: center;
  /* font-size: 0.8rem; */
  color: #666;
  border-top: 1px solid #eee;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-content span:hover {
  color: #2980b9;
  cursor: pointer;
}
.footer-content {
  opacity: 0;
  animation: fadeIn 1s forwards;
}
.footer-content .no-hover-effect:hover {
  color: #666; /* 与footer内容的文本颜色一致 */
}

@keyframes fadeIn {
 to {
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .footer-content {
    font-size: 0.9rem;
  }
  .footer-content span {
    display: block;
    margin: 5px 0;
  }
}


/*院校 出版单位*/
.partners-tabs {
  transform: translateY(-50px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 400px;
}

.partners-tab {
  position: relative;
  color: #7a7a7a;
  font-weight: bold;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
}

.partners-tab.active {
  /* 蓝色 */
  color: #00a3f0;
}

.partners-tab.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  /* 向下偏移，使下划线显示在文字下方 */
  left: 0;
  width: 100%;
  /* 下划线宽度为父元素的100% */
  height: 6px;
  /* 下划线的粗细 */
  background-color: #00a3f0;
  /* 下划线颜色 */
  border-radius: 10px;
  /* 使下划线两端呈现椭圆形 */
}



/* 合作伙伴主样式 */
/* .partners-tabs {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 4rem auto 2rem;
  padding: 0 20px;
} */

/* .partners-tabs::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 60%;
  background: #e0e0e0;
} */

/* .partners-tab {
  cursor: pointer;
  padding: 1.2rem 2.4rem;
  font-size: 1.3rem;
  color: #444;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(0, 123, 255, 0.1);
  width: 180px;
  text-align: center;
} */
/* 
.partners-tab.active {
  color: #007bff;
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
} *
/* 图片矩阵的基本样式 */
/* .partners-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 30px;
}

.partners-grid.active {
  display: grid;
} */

.partner-logo {
  object-fit: contain;
  width: 100%;
  height: 80px;
  padding: 15px;
  border: 1px solid black;
  box-sizing: border-box;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  filter: none !important;
}


/* 响应式布局 */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .partners-tabs {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .partners-tabs::before {
    display: none;
  }

  .partners-tab {
    width: 100%;
    max-width: 280px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partner-logo {
    width: 100%;
    height: 30px;
    /* 最终调整后的移动端高度 */
  }
}

/* 图片网格布局 */
.partners-grid {
  /* 图片之间的间距 */
  grid-gap: 20px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.partners-grid.active {
  display: grid;
}


/* 响应式设计 */
@media (max-width: 768px) {
  .partners-tabs-container {
    gap: 40px;
    flex-direction: column;
    align-items: center;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .partners-tabs {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

.section-about {
  background-image: url('../assets/images/about/about_banner.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  min-height: 100vh;
  padding: 4rem 2rem;
}

.about-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.about-title h1 {
  transform: translateY(150px);
  width: 100%;
  font-size: 3rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.section-about .content {
  text-indent: 2em;
  color: #4f4f4f;
  transform: translateY(100px);
  flex: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.about-image {
  display: flex;
  justify-content: center;
  height: 80%;
  margin-top: 1rem;
  padding: 20px 0;
}

.about-image img {
  max-width: 40%;
  height: auto;
  border-radius: 8px;
}


h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* 对话框 */
#dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialog-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

button {
  margin: 10px;
  padding: 10px 20px;
  background-color: #3584fb;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #3584fb;
}