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

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #121212, #340d56);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #39ff14;
  text-decoration: none;
}

a[rel="nofollow"] {
  color: #ff7f50;
}

header {
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
  color: #39ff14;
}

nav {
  margin-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  margin-right: 15px;
}

main {
  padding: 100px 20px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 40px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 15px;
  text-shadow: 0 0 5px #39ff14;
}

h1 {
  font-size: 36px;
  text-align: center;
}

h2 {
  font-size: 28px;
  border-bottom: 2px solid #39ff14;
  padding-bottom: 10px;
}

h3 {
  font-size: 22px;
  margin-top: 20px;
}

p {
  margin-bottom: 20px;
  font-size: 16px;
}

pre {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
}

code {
  color: #39ff14;
}

.highlight {
  color: #39ff14;
  text-shadow: 0 0 5px #39ff14;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button {
  background: #39ff14;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover {
  background: #ff7f50;
  transform: scale(1.1);
}

.icon {
  animation: float 2s infinite;
}

.shape {
  animation: rotate 5s linear infinite;
}

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

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

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

table th {
  background: rgba(57, 255, 20, 0.2);
}

img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  text-align: center;
  color: #fff;
}

.note {
  font-size: 14px;
  color: #ff7f50;
  margin-top: 20px;
  text-align: center;
}

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

@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 1024px) {
  header {
    padding: 15px;
  }
  h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    margin-bottom: 10px;
  }
  h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  header .logo {
    font-size: 20px;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
}

@media (max-width: 320px) {
  body {
    padding: 10px;
  }
  h1 {
    font-size: 20px;
  }
}

