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

body {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #ffffff;
  font-family: 'Futura', sans-serif;
  line-height: 1.6;
  padding: 20px;
}

/* 头部样式 */
header {
  text-align: center;
  padding: 50px 0;
  background: radial-gradient(circle, rgba(255,87,34,0.8), transparent);
  animation: aurora-move 15s linear infinite;
}

header h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

header p {
  font-size: 1.2em;
  color: #ff66cc;
}

/* 导航栏样式 */
nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1em;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #ff66cc;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a[rel="nofollow"] {
  /* 确保所有内部链接添加rel="nofollow"属性 */
}

/* 主内容区域 */
.container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

.main-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
}

.main-content h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.main-content h3 {
  font-size: 1.5em;
  margin: 20px 0 10px;
}

.main-content p {
  margin-bottom: 15px;
}

.main-content pre {
  background: #1e1e1e;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

.main-content code {
  color: #00ffcc;
  font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* 按钮样式 */
.button {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  background: #ff66cc;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  overflow: hidden;
  transition: background 0.3s;
}

.button:hover {
  background: #ff3385;
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.button:hover::after {
  width: 200%;
  height: 200%;
}

/* 粒子效果 */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

/* 按屏幕尺寸调整粒子数量 */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* 动画关键帧 */
@keyframes aurora-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes move {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(100vw, 100vh); opacity: 0; }
}

/* 响应式文字 */
@media (max-width: 1024px) {
  header h1 {
    font-size: 2.5em;
  }

  .main-content h2 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2em;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }

  .button {
    padding: 10px 20px;
  }
}

