
/* 霓虹梦境网页样式设计 */

/* 根变量定义 */
:root {
  --background-color: #0d0d0d;
  --neon-blue: #1e90ff;
  --neon-purple: #d800ff;
  --highlight-green: #32cd32;
  --text-color: #ffffff;
  --card-background: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
  --font-primary: 'Roboto Mono', monospace;
  --font-secondary: 'Orbitron', sans-serif;
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  color: var(--text-color);
  font-family: var(--font-primary);
  line-height: 1.6;
  padding: 20px;
  animation: backgroundMove 20s ease infinite;
}

/* 背景动画 */
@keyframes backgroundMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 头部样式 */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-family: var(--font-secondary);
  font-size: 3em;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neonGlow 2s infinite alternate;
}

@keyframes neonGlow {
  from {
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-purple);
  }
  to {
    text-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-purple);
  }
}

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

nav a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.2em;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--highlight-green);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

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

nav a:hover {
  color: var(--highlight-green);
}

/* 主内容样式 */
.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .container {
    grid-template-columns: 3fr 1fr;
  }
}

.article-section {
  background: var(--card-background);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translatey(0px);
  }
  50% {
    transform: translatey(-10px);
  }
  100% {
    transform: translatey(0px);
  }
}

.article-section h2 {
  font-family: var(--font-secondary);
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--neon-purple);
}

.article-section h3 {
  font-family: var(--font-secondary);
  font-size: 1.5em;
  margin-top: 20px;
  color: var(--neon-blue);
}

.article-section p {
  margin: 15px 0;
  font-size: 1em;
}

.article-section pre {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

.article-section code {
  color: #ffcc00;
  font-family: var(--font-primary);
}

.example-display {
  background: var(--card-background);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.example-display h2 {
  font-family: var(--font-secondary);
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--highlight-green);
}

.example-display pre {
  background: #1a1a1a;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}

.example-display code {
  color: #00ffcc;
  font-family: var(--font-primary);
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: var(--text-color);
}

footer p {
  margin: 5px 0;
}

/* 图片样式 */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.image-gallery img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid var(--highlight-green);
  border-radius: 5px;
  transition: transform 0.3s;
}

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

/* 按钮样式 */
button {
  background: var(--neon-blue);
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

button:hover {
  background: var(--neon-purple);
  transform: scale(1.05);
}

button:active {
  transform: scale(0.95);
}

/* 链接属性 */
a[rel="nofollow"] {
  /* 不显示任何样式变化 */
}

