
/* 基础样式与布局 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(135deg, #0A2E4F, #7EA2B5);
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
  animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  text-align: center;
  margin-top: 40px;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subheader {
  margin: 20px 0;
  font-size: 1.2rem;
  color: #FF9F43;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片式设计 */
.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin: 20px 0;
  width: 100%;
  max-width: 800px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* 按钮样式 */
.button {
  background: #FF9F43;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.button:hover {
  background: #8BC34A;
  transform: scale(1.05);
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease-in-out;
}

.button:active::after {
  width: 200px;
  height: 200px;
}

/* 自适应布局 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header {
    font-size: 1.5rem;
  }

  .subheader {
    font-size: 1rem;
  }

  .card {
    padding: 15px;
  }

  pre code {
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .header {
    font-size: 1.2rem;
  }

  .subheader {
    font-size: 0.9rem;
  }

  .button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

