
/* 全局样式定义 */
:root {
  --bg-color: #0A192F;
  --accent-color: #64FFDA;
  --secondary-color: #B8B8FF;
  --text-color: #FFFFFF;
  --shadow-color: rgba(10, 25, 47, 0.8);
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: radial-gradient(circle, var(--bg-color), transparent);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 标题与文字样式 */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-shadow: 2px 2px 8px var(--shadow-color);
}

h1 { 
  font-size: 3rem; 
  text-align: center;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 段落样式 */
p {
  font-size: 1rem;
  padding: 0 1rem;
  max-width: 800px;
  margin: auto;
}

/* 按钮样式 */
button {
  display: inline-block;
  background: var(--accent-color);
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: var(--secondary-color);
}

/* 页面布局 */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  position: relative;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeIn 1.5s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  p { font-size: 0.9rem; }
  .container { padding: 10px; }
}

@media (min-width: 1024px) {
  .container { padding: 40px; }
  p { font-size: 1.1rem; }
}

/* 背景粒子效果 */
.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: particleMove 10s infinite ease-in-out;
}

@keyframes particleMove {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(500px, -300px); opacity: 0; }
}

/* 图片展示 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.1);
}

/* 代码块样式 */
pre {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  max-width: 800px;
  margin: auto;
}

code {
  color: var(--accent-color);
  font-family: 'Courier New', Courier, monospace;
}

