
/* 基本样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局字体与颜色 */
body {
  font-family: 'Roboto', sans-serif;
  color: #FFFFFF;
  background: radial-gradient(circle, rgba(0, 3, 36, 1) 0%, rgba(4, 7, 33, 1) 100%);
  overflow-x: hidden;
}

/* 容器样式 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* 头部样式 */
header {
  text-align: center;
  padding: 50px 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 3em;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #FF5733, #33FF57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  font-size: 1.2em;
  line-height: 1.6;
}

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

nav a {
  text-decoration: none;
  color: #FFFFFF;
  font-size: 1.1em;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #FF5733;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

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

/* 文章内容样式 */
article {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 50px;
}

article h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFD700;
}

article h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ADFF2F;
}

article p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

article pre {
  background: #2a5298;
  padding: 15px;
  border-radius: 8px;
  overflow: auto;
}

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

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th, table td {
  border: 1px solid #FFFFFF;
  padding: 10px;
  text-align: left;
}

table th {
  background: #1e3c72;
}

/* 列表样式 */
ul {
  list-style: disc inside;
  margin-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

/* 图片样式 */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
}

.image-gallery img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}

.image-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.5);
}

/* 页脚样式 */
footer {
  text-align: center;
  padding: 20px 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 15px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

footer p {
  font-size: 1em;
}

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

body {
  animation: aurora-move 15s linear infinite;
  background-size: 400% 400%;
}

/* 响应式设计 */
@media (max-width: 1440px) {
  header h1 {
    font-size: 2.5em;
  }

  article h2 {
    font-size: 2em;
  }

  nav a {
    font-size: 1em;
  }
}

@media (max-width: 1200px) {
  .container {
    width: 95%;
  }

  article {
    padding: 25px;
  }
}

@media (max-width: 1024px) {
  nav {
    gap: 20px;
  }

  .image-gallery img {
    width: 120px;
    height: 120px;
  }
}

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

  article h2 {
    font-size: 1.8em;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }

  .image-gallery {
    flex-direction: column;
    align-items: center;
  }

  .image-gallery img {
    width: 100px;
    height: 100px;
  }
}

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

  article h2 {
    font-size: 1.5em;
  }

  nav a {
    font-size: 0.9em;
  }

  .image-gallery img {
    width: 80px;
    height: 80px;
  }
}

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

  article h2 {
    font-size: 1.2em;
  }

  nav a {
    font-size: 0.8em;
  }

  .image-gallery img {
    width: 70px;
    height: 70px;
  }
}

