
/* 基本样式设定 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(135deg, #6A5ACD, #836FFF);
  color: #FFFFFF;
  /* 响应式设计 */
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 25, 54, 0.8);
  display: flex;
  justify-content: space-around;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* 导航链接样式 */
.navbar a {
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
  background: #FF69B4;
  transform: scale(1.05);
  padding: 10px;
  border-radius: 5px;
}

/* 主要章节样式 */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 50px;
  box-sizing: border-box;
  transition: opacity 1s ease, transform 1s ease;
}

/* 隐藏与显示 */
.section.hidden {
  opacity: 0;
  transform: translateY(50px);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 代码块样式 */
pre {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

code {
  color: #66D9EF;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
}

/* 图片装饰样式 */
img.decorative {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 320px;
  height: 320px;
  object-fit: cover;
  margin: 20px;
}

img.decorative:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0,0,0,0.5);
}

/* 回顶部按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #FF69B4;
  color: #FFFFFF;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  font-size: 18px;
  display: none;
}

.back-to-top:hover {
  background: #FFFFFF;
  color: #FF69B4;
  transform: rotate(360deg);
}

/* 显示回顶部按钮 */
.show {
  display: block;
}

/* 抽象线条样式 */
.abstract-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.abstract-lines::before,
.abstract-lines::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: inherit;
}

.abstract-lines::before {
  transform: rotate(90deg);
}

.abstract-lines::after {
  transform: rotate(180deg);
}

/* 字体样式 */
h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 20px;
}

p, li {
  font-family: 'Open Sans', sans-serif;
  color: #DDDDDD;
  line-height: 1.6;
  font-size: 16px;
}

/* 分割线样式 */
.section-content {
  border-bottom: 1px solid #CCCCCC;
  padding-bottom: 40px;
  margin-bottom: 40px;
}

/* 悬停按钮样式 */
.button, .navbar a {
  transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover, .navbar a:hover {
  background: #FF69B4;
  transform: scale(1.05);
}

/* 社交分享按钮样式 */
.social-share button {
  background: #FF69B4;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-share button:hover {
  background: #FFFFFF;
  transform: scale(1.1);
}

/* 响应式布局 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .section {
    flex-direction: column;
    padding: 20px;
  }

  img.decorative {
    width: 100%;
    height: auto;
  }

  .footer form {
    width: 100%;
  }
}

/* 动画效果 */
@keyframes particles {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(100px, 100px); opacity: 0; }
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: particles 5s linear infinite;
}

@keyframes scrollAnimate {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

