
/* 基础样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 响应式布局 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 50px 0;
}

header h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 3em;
  background: linear-gradient(90deg, #ff00cc, #33ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

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

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

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

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 2.5em;
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
  color: #33ccff;
}

.article-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(51, 204, 255, 0.5);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Roboto', sans-serif;
  color: #ff00cc;
}

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

.article-content code {
  color: #33ccff;
  font-family: 'Courier New', Courier, monospace;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-content th,
.article-content td {
  border: 1px solid #33ccff;
  padding: 10px;
  text-align: left;
}

.article-content th {
  background: #203a43;
}

.article-content ol {
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.images-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 50px 0;
}

.images-section img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
}

.footer {
  text-align: center;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  position: relative;
  bottom: 0;
  width: 100%;
}

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

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

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

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

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

  .section-title {
    font-size: 2em;
  }
}

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

  nav a {
    font-size: 1em;
  }

  .section-title {
    font-size: 1.5em;
  }
}

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

  nav a {
    font-size: 0.9em;
  }

  .section-title {
    font-size: 1.2em;
  }
}

/* 动画与互动效果 */
.button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(90deg, #ff00cc, #33ccff);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  color: #ffffff;
  font-size: 1em;
  text-decoration: none;
}

.button:hover {
  transform: scale(1.1);
  background: linear-gradient(90deg, #33ccff, #ff00cc);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 32, 39, 0.7);
  z-index: -1;
}

.code-example {
  background: #2c5364;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
}

.highlight {
  background: linear-gradient(90deg, #ff00cc, #33ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.table-responsive {
  overflow-x: auto;
}

img {
  display: block;
}

a {
  color: #33ccff;
}

a:hover {
  color: #ff00cc;
  text-decoration: underline;
}

