
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 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;
  background: radial-gradient(circle, rgba(0, 38, 77, 0.9), transparent);
  position: relative;
}

header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3em;
  font-weight: bold;
  background: linear-gradient(45deg, #39ff14, #ff00c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #39ff14, 0 0 20px #39ff14, 0 0 30px #ff00c8, 0 0 40px #ff00c8;
  }
  to {
    text-shadow: 0 0 20px #ff00c8, 0 0 30px #ff00c8, 0 0 40px #39ff14, 0 0 50px #39ff14;
  }
}

nav {
  margin: 20px 0;
  text-align: center;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.1em;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #39ff14;
  transition: width 0.3s;
  margin: auto;
}

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

.main-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 40px 0;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 30%;
  margin-bottom: 30px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: scale(1.05) rotateY(5deg);
  box-shadow: 0px 10px 20px rgba(57, 255, 20, 0.3);
}

.card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
}

.card h3 {
  font-family: 'Poppins', sans-serif;
  color: #39ff14;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95em;
  color: #dddddd;
}

footer {
  text-align: center;
  padding: 30px 0;
  background: radial-gradient(circle, rgba(0, 38, 77, 0.9), transparent);
}

footer p {
  font-size: 0.9em;
  color: #aaaaaa;
}

.code-block {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

.code-block pre {
  font-family: 'Courier New', Courier, monospace;
  color: #39ff14;
}

@media (max-width: 1440px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 1200px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 1024px) {
  .card {
    width: 100%;
  }
}

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

  nav a {
    display: block;
    margin: 10px 0;
  }

  .main-content {
    flex-direction: column;
    align-items: center;
  }
}

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

  .card {
    width: 100%;
    padding: 15px;
  }

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

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

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

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

.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.6), transparent);
  animation: aurora-move 15s linear infinite;
  z-index: -1;
}

.highlight {
  background: linear-gradient(90deg, #39ff14, #ff00c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.button {
  background-color: #39ff14;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  color: #00264d;
  font-weight: bold;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.button:hover {
  box-shadow: 0px 0px 20px rgba(57, 255, 20, 0.8);
}

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

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

.table th {
  background: #00264d;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #39ff14;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

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

a:hover {
  text-decoration: underline;
}

