
/* 基础样式与全局设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #120c3e, #0a2463);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: #00bfff;
  transition: color 0.3s ease;
}

a:hover {
  color: #39ff14;
}

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

/* 首屏设计：标题与视觉冲击 */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #000033, #1e004d);
  text-align: center;
}

.hero-section h1 {
  font-size: 48px;
  color: #00bfff;
  text-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff;
}

.hero-section p {
  font-size: 18px;
  color: #ffffff;
  max-width: 600px;
  margin: 20px auto;
}

/* 色彩搭配模块 */
.color-section {
  background: linear-gradient(to right, #1e004d, #000033);
  padding: 40px 0;
}

.color-box {
  display: inline-block;
  width: 100px;
  height: 100px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.box-blue {
  background: linear-gradient(135deg, #00bfff, #39ff14);
}

.box-purple {
  background: linear-gradient(135deg, #7a0bc0, #4a007d);
}

.box-silver {
  background: linear-gradient(135deg, #c0c0c0, #808080);
}

/* 网格布局与非对称设计 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.module {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.module:hover {
  transform: translateY(-10px);
}

.module img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* 动画效果 */
button {
  background-color: #00bfff;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #39ff14;
  transform: scale(1.1);
}

/* 几何图形与装饰元素 */
.shape {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #00bfff, #39ff14);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  margin: 20px auto;
}

/* 自适应布局 */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  pre code {
    white-space: pre-wrap;
    word-wrap: break-word;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 36px;
  }

  p {
    font-size: 14px;
  }
}

