
/* 基础样式与布局 */
:root {
  --primary-color: #0000FF;
  --secondary-color: #8A2BE2;
  --accent-color: #32CD32;
  --background-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --card-bg: rgba(255, 255, 255, 0.8);
  --font-family: 'Roboto', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--background-gradient);
  color: #fff;
  line-height: 1.6;
  letter-spacing: 1px;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

header {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5);
}

header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

section {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  color: #333;
}

article {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 1rem;
  line-height: 1.6;
}

pre {
  background: #f4f4f4;
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 0.9rem;
}

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

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background: #f4f4f4;
}

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

button {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  background: #228B22;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  header h1 {
    font-size: 2rem;
  }
  article {
    font-size: 0.9rem;
  }
}

/* 高级视觉效果 */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.card-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.card-image img {
  transition: transform 0.5s ease;
}

.card-image:hover img {
  transform: scale(1.1);
}

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
  margin: 20px 0;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.9rem;
}

