
/* 设置根变量，定义主要颜色 */
:root {
  --primary-color: #0074D9; /* 深蓝色，象征稳重与可靠 */
  --secondary-color: #BDC3C7; /* 银灰色，用于背景和次要元素 */
  --accent-color: #3498DB; /* 电光蓝，用于强调按钮和链接 */
  --text-color: #FFFFFF; /* 白色，用于文字 */
  --background-gradient: radial-gradient(circle, rgb(255, 87, 34), transparent);
  --font-family: 'Roboto', sans-serif;
}

/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background 0.5s ease;
}

/* 动画效果 */
@keyframes aurora-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 头部样式 */
header {
  background: var(--primary-color);
  padding: 20px;
  text-align: center;
  position: relative;
  background: var(--background-gradient);
  animation: aurora-move 15s linear infinite;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: bold;
}

/* 导航栏样式 */
nav {
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 0;
}

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

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s;
}

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

nav a[rel="nofollow"] {
  /* 内部链接的nofollow属性不影响样式 */
}

/* 主内容区样式 */
main {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* 文章样式 */
article {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
}

article h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: var(--accent-color);
}

article h3 {
  font-size: 1.5em;
  margin-top: 20px;
  margin-bottom: 10px;
}

article h4 {
  font-size: 1.2em;
  margin-top: 15px;
  margin-bottom: 8px;
}

article p {
  margin-bottom: 15px;
}

article ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

article pre {
  background: #2c3e50;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

article code {
  color: #ecf0f1;
  font-family: 'Courier New', Courier, monospace;
}

/* 数据展示区样式 */
.section-data {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.data-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 calc(33.333% - 40px);
  box-sizing: border-box;
  transition: transform 0.3s, background 0.3s;
}

.data-card:hover {
  transform: translateY(-10px);
  background: var(--accent-color);
}

.data-card h5 {
  margin-top: 0;
  color: var(--text-color);
}

.data-card p {
  color: #ecf0f1;
}

.data-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* 提示信息样式 */
.notice {
  text-align: center;
  font-size: 1.2em;
  color: var(--accent-color);
  margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 1440px) {
  .data-card {
    flex: 1 1 calc(33.333% - 40px);
  }
}

@media (max-width: 1200px) {
  .data-card {
    flex: 1 1 calc(50% - 40px);
  }
}

@media (max-width: 1024px) {
  nav a {
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .data-card {
    flex: 1 1 100%;
  }

  header h1 {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  article {
    padding: 20px;
  }

  nav a {
    margin: 0 5px;
    font-size: 0.9em;
  }
}

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

  .data-card {
    padding: 15px;
  }
}

/* 图片样式 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* 页脚样式 */
footer {
  background: var(--primary-color);
  padding: 20px;
  text-align: center;
  color: var(--text-color);
  position: relative;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* 内部链接nofollow属性 */
a[rel="nofollow"] {
  /* Nothing extra, just ensuring the attribute is present */
}

/* 代码块样式优化 */
pre code {
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 加强页面视觉效果 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-gradient);
  opacity: 0.1;
  z-index: -1;
}


