
/* 基本样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0A192F, #6C5CE7);
  color: #E0E0E0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3 {
  font-family: 'Roboto Mono', monospace;
  font-weight: bold;
  color: #E0E0E0;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.75em;
  margin-bottom: 0.5em;
}

/* 段落样式 */
p {
  font-size: 1em;
  margin-bottom: 1em;
}

/* 列表样式 */
ul {
  list-style-type: disc;
  margin-left: 2em;
  margin-bottom: 1em;
}

ul li {
  margin-bottom: 0.5em;
}

/* 代码块样式 */
pre {
  background-color: #1E2A38;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
}

code {
  font-family: 'Roboto Mono', monospace;
  color: #32CD32;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

th, td {
  border: 1px solid #6C5CE7;
  padding: 0.75em;
  text-align: left;
}

th {
  background-color: #6C5CE7;
  color: #0A192F;
}

tr:nth-child(even) {
  background-color: #0A192F;
}

/* 链接样式 */
a {
  color: #32CD32;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 按钮样式 */
.button {
  background: linear-gradient(45deg, #6C5CE7, #32CD32);
  color: #E0E0E0;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

/* 网格布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* 卡片样式 */
.card {
  background-color: #0A192F;
  border: 2px solid #6C5CE7;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease;
}

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

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

/* 导航栏样式 */
nav {
  background-color: rgba(10, 25, 47, 0.8);
  padding: 1em 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #E0E0E0;
  font-size: 1.1em;
}

nav ul li a:hover {
  color: #32CD32;
}

/* 页脚样式 */
footer {
  background-color: rgba(10, 25, 47, 0.8);
  color: #E0E0E0;
  text-align: center;
  padding: 1.5em 0;
  margin-top: 2em;
}

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

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgb(255, 87, 34), transparent);
  animation: aurora-move 15s linear infinite;
  z-index: -1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .container {
    padding: 1.5em;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.75em;
  }
  h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9em;
  }
  .button {
    padding: 8px 16px;
  }
}

/* 其他样式 */
.section-title {
  text-align: center;
  margin: 2em 0 1em;
  font-size: 2em;
  color: #32CD32;
}

.code-preview {
  background-color: #1E2A38;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Roboto Mono', monospace;
  color: #32CD32;
}

.shape {
  width: 100px;
  height: 100px;
  background-color: #32CD32;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* 视觉标识 */
.notice {
  background-color: rgba(0,0,0,0.7);
  color: #FFFFFF;
  padding: 1em;
  text-align: center;
  border-radius: 8px;
  margin: 2em 0;
}

/* 滚动样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #6C5CE7;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background-color: #0A192F;
}

/* 结束 */

