
:root {
  --primary: #121C2C;
  --secondary: #0A1B2D;
  --accent: #00BFFF;
  --light: #E5E5E5;
  --dark: #121212;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--gradient);
  color: var(--light);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

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

.header::before {
  content: "这是一个网页样式设计参考";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,191,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  color: var(--light);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(0,191,255,0.3);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: rgba(18,28,44,0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav a {
  color: var(--light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav a::before {
  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::before {
  width: 100%;
}

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

article {
  background: rgba(18,28,44,0.7);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(0,191,255,0.1);
}

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

article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
}

article h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
  color: var(--light);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: rgba(10,27,45,0.5);
  border-radius: 0.5rem;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,191,255,0.1);
}

th {
  background: rgba(0,191,255,0.1);
  color: var(--accent);
}

tr:hover {
  background: rgba(0,191,255,0.05);
}

pre {
  background: rgba(10,27,45,0.8);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow: auto;
  border-left: 3px solid var(--accent);
}

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

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

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,191,255,0.2);
}

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

.button {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent), #1E90FF);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 0.5rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.button:hover {
  transform: translateY(-2px) rotate(5deg);
  box-shadow: 0 6px 12px rgba(0,191,255,0.3);
}

.footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  background: rgba(18,28,44,0.8);
  border-top: 1px solid rgba(0,191,255,0.1);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  article {
    padding: 1.5rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

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

.floating {
  animation: float 3s ease-in-out infinite;
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: rgba(0,191,255,0.3);
  z-index: -1;
  transition: height 0.3s ease;
}

.highlight:hover::after {
  height: 50%;
}

