
/* 基础样式与全局设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto Mono', sans-serif;
  background: linear-gradient(135deg, #00008B, #4B0082);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: #39FF14;
}

p, li {
  font-size: 1rem;
  color: #d4d4d4;
}

a {
  color: #FFD700;
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 5px #FFD700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 首页顶部设计 */
.header {
  position: relative;
  height: 100vh;
  background: radial-gradient(circle, rgba(0, 0, 139, 0.8), rgba(75, 0, 130, 0.9));
  overflow: hidden;
}

.quantum-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #39FF14;
  box-shadow: 0 0 20px #39FF14;
}

.quantum-window::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 255, 0, 0.2);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.header-content h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #39FF14;
}

.header-content p {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #d4d4d4;
}

/* 模块化布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.module {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #39FF14;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.module:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 255, 0, 0.5);
}

.module::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #39FF14, transparent);
  animation: glow-line 2s infinite;
}

@keyframes glow-line {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* 图片装饰 */
.image-decor {
  width: 100%;
  max-width: 320px;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px #39FF14;
}

/* 文章排版 */
.article {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 20px;
  margin-top: 40px;
}

.article h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.article p {
  margin-bottom: 15px;
}

.article pre {
  background: rgba(0, 0, 0, 0.8);
  color: #39FF14;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

/* 动画效果 */
.button {
  position: relative;
  background: #39FF14;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
}

.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%);
  opacity: 0;
  transition: all 0.4s ease;
}

.button:hover::after {
  width: 200px;
  height: 200px;
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 2rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .article pre {
    font-size: 0.9rem;
  }
}

