
:root {
  --primary: #0d47a1;
  --secondary: #512da8;
  --accent: #00e676;
  --highlight: #ff9100;
  --dark: #1e1e1e;
  --light: rgba(255, 255, 255, 0.8);
}

body {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  padding: 3rem 0;
  position: relative;
}

.header::after {
  content: "这是一个网页样式设计参考";
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  opacity: 0.7;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--accent);
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--accent), var(--highlight));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

article {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

article h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
  position: relative;
  padding-bottom: 0.5rem;
}

article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--highlight));
}

article p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

pre {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent);
}

code {
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.table thead {
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.table th, .table td {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.button {
  display: inline-block;
  background: linear-gradient(to right, var(--accent), var(--highlight));
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1rem 0;
  border: none;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 230, 118, 0.4);
}

.particle {
  position: fixed;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: float 15s infinite linear;
  opacity: 0.5;
  z-index: -1;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(100px, 50px);
  }
  50% {
    transform: translate(50px, 100px);
  }
  75% {
    transform: translate(-50px, 50px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

.chart-container {
  perspective: 1000px;
  margin: 2rem 0;
}

.chart {
  width: 100%;
  height: 300px;
  background: linear-gradient(45deg, var(--accent), var(--highlight));
  border-radius: 12px;
  transform: rotateX(20deg) rotateY(10deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.grid-item {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.03);
}

.collapsible {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
}

.collapsible-header {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.collapsible.active .collapsible-content {
  max-height: 500px;
  padding: 1rem;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  article {
    padding: 1.5rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  article h2 {
    font-size: 1.5rem;
  }
}

