* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* 隐藏滚动条 */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  overflow: -moz-scrollbars-none; /* 老版本Firefox */
}

html::-webkit-scrollbar {
  width: 0 !important;
  display: none; /* Chrome Safari */
}

body {
  background: #2c3e50;
  color: #fff;
  background-image: url("https://api.dujin.org/bing/1920.php");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: soft-light;
  background-color: rgba(44, 62, 80, 0.7);
  overflow: auto; /* 确保body可以滚动 */
  font-family: "LXGW WenKai Medium", sans-serif;
  font-weight: normal;
}

/* 添加网页选中文字的样式 */
::selection {
  background: rgba(241, 56, 133, 0.6);
  color: #fff;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: 0.5s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.sticky {
  background: rgba(75, 101, 132, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(75, 101, 132, 0.2);
}

.logo {
  font-size: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: default;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.navbar a {
  display: inline-block;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  opacity: 0;
  transition: 0.3s;
  animation: slideTop 1s ease forwards;
  animation-delay: calc(0.2s * var(--i));
  position: relative;
  padding: 5px 2px;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #2ecc71; /* 改回绿色 */
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.5); /* 绿色阴影 */
}

.navbar a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar a:hover {
  color: #2ecc71; /* 改回绿色 */
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.3); /* 绿色文字阴影 */
}

.home {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
}

.home-content {
  max-width: 600px;
  margin-top: 30px;
}

.home-content h3 {
  font-size: 32px;
  font-weight: 600;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 0.3s;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 30px;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.3s;
}

.home-content h3 span {
  color: #fff;
}

.home-content p {
  font-size: 16px;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.3s;
}

.home-img img {
  max-width: 120px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  opacity: 0;
  animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
  animation-delay: 0.8s, 1.5s;
}

.about {
  position: relative;
  min-height: 100vh;
  padding: 10rem 9% 2rem;
  background: linear-gradient(
    120deg,
    rgba(75, 101, 132, 0.95),
    rgba(52, 73, 94, 0.98)
  );
  z-index: 2;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.about-content:hover {
  transform: translateY(-5px);
}

.heading {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.1rem;
  margin: 1.5rem 0;
  line-height: 1.8;
  color: #fff;
}

.about-content ul {
  list-style-type: disc; /* 更改为实心圆点 */
  padding-left: 2rem; /* 添加左侧缩进 */
  margin: 2rem 0;
}

.about-content li {
  font-size: 1.1rem;
  margin: 1rem 0; /* 增加列表项之间的间距 */
  color: #ecf0f1;
  opacity: 0.9; /* 增加不透明度 */
  padding-left: 0.5rem; /* 添加文本缩进 */
  line-height: 1.6; /* 添加行高 */
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(100px);
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-24px);
  }

  100% {
    transform: translateY(0);
  }
}

.footer {
  padding: 15px 0;
  text-align: center;
  background: rgba(75, 101, 132, 0.95);
  border-top: 1px solid rgba(127, 149, 179, 0.2);
  backdrop-filter: blur(10px);
}

.footer-content {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.8;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(127, 149, 179, 0.5);
  transition: 0.3s;
}

.footer-content a:hover {
  color: #07ead3;
  border-bottom-style: solid;
  text-shadow: 0 0 10px rgba(127, 149, 179, 0.3);
}

/* 响应式设计 */
@media (max-width: 991px) {
  .header {
    padding: 15px 5%;
  }

  .home {
    padding: 0 5%;
  }

  .about {
    padding: 8rem 5% 2rem;
  }

  .about-content {
    padding: 2rem;
  }

  .heading {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    background: rgba(75, 101, 132, 0.95);
    justify-content: center;
  }

  .logo {
    display: none;
  }

  .navbar {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .navbar a {
    margin: 0 15px;
    font-size: 16px;
  }

  .home-img img {
    max-width: 120px;
  }

  .about-content {
    padding: 1.5rem;
  }

  .about-content p,
  .about-content li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 5%;
  }

  .navbar a {
    margin-left: 15px;
    font-size: 14px;
  }

  .home-content h3 {
    font-size: 22px;
  }

  .home-img img {
    max-width: 100px;
  }

  .heading {
    font-size: 2rem;
  }

  .about-content {
    padding: 1rem;
  }

  .footer-content {
    font-size: 0.8rem;
  }
}