/* 封面自定义样式 */
section.cover {
  background: linear-gradient(to left bottom, #000000 0%, #1a237e 100%) !important;
  color: white;
}

section.cover .cover-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 800px;
}

/* 设置封面字体 */
section.cover h1, 
section.cover h2, 
section.cover h3, 
section.cover h4, 
section.cover h5, 
section.cover h6,
section.cover p,
section.cover a {
  font-family: "华文中宋", "STZhongsong", serif !important;
}

section.cover *:lang(en) {
  font-family: "Times New Roman", Times, serif !important;
}

section.cover h1 {
  font-size: 4rem;
  margin: 0.5rem 0;
  color: white;
  font-weight: 600;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

section.cover h1 small {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 5px 15px;
  margin-left: 10px;
}

section.cover p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 1rem 0;
  color: white;
}

section.cover blockquote {
  border-left: none;
  margin: 2rem 0;
  padding: 1.5rem 2.5rem;
  font-style: normal;
  letter-spacing: 1.5px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 255, 255, 0.1) inset;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 为引言文字添加渐变色 */
section.cover blockquote p {
  background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  margin: 0;
}

/* 添加闪光效果 */
section.cover blockquote:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shine 6s linear infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

section.cover .cover-main > p:last-child a {
  border-radius: 25px;
  box-sizing: border-box;
  color: white;
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.1rem;
  margin: 0.5rem 1rem;
  padding: 0.75em 2rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.1);
}

section.cover .cover-main > p:last-child a:first-child {
  background-color: white !important;
  color: var(--theme-color, #42b983);
}

section.cover .cover-main > p:last-child a:last-child {
  border-color: var(--theme-color, #42b983);
}

section.cover .cover-main > p:last-child a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Logo 动画 */
.cover-main img {
  max-width: 120px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
  background-color: white;
  padding: 10px;
  position: relative;
  z-index: 2;
}

/* 添加光晕效果 */
.cover-main img:after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(-3deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* 背景图案 - 已移除方格纹理 */
section.cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 移除背景图案，保留结构以便于星星等其他效果 */
}

/* 添加华丽的装饰元素 */
.cover-main::before,
.cover-main::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0) 70%);
  z-index: -1;
  filter: blur(20px);
}

.cover-main::before {
  top: 10%;
  left: 10%;
  animation: moveGlow1 20s ease-in-out infinite alternate;
}

.cover-main::after {
  bottom: 10%;
  right: 10%;
  background: radial-gradient(circle, rgba(147,112,219,0.2) 0%, rgba(147,112,219,0) 70%);
  animation: moveGlow2 25s ease-in-out infinite alternate;
}

@keyframes moveGlow1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 30px) scale(1.2);
  }
}

@keyframes moveGlow2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-50px, -30px) scale(1.1);
  }
}

/* 添加闪烁的星星 */
section.cover .stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

section.cover .star {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px 2px var(--star-color);
  background: radial-gradient(circle, var(--star-color) 0%, rgba(255,255,255,0) 100%);
  animation: twinkle var(--duration) ease-in-out infinite var(--delay);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: var(--star-opacity);
    transform: scale(1);
  }
}

/* 为标题添加更华丽的效果 */
section.cover h1 {
  position: relative;
  display: inline-block;
}

section.cover h1:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    width: 0;
    left: 50%;
    opacity: 0;
  }
  50% {
    width: 100%;
    left: 0;
    opacity: 1;
  }
}
