
:root {
  --bg-primary: #1A1A1A;
  --bg-secondary: #2A2A2A;
  --accent: #00D1FF;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --border: #333333;
}

@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), local('Roboto-Regular');
}

@font-face {
  font-family: 'Open Sans';
  src: local('Open Sans'), local('OpenSans-Regular');
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

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

.header {
  background: linear-gradient(90deg, var(--bg-primary), rgba(26,26,26,0.8));
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #00AEEF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.logo::after {
  content: '这是一个网页样式设计参考';
  position: absolute;
  bottom: -25px;
  left: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.main {
  padding: 40px 0;
}

.article-container {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.article-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(0,209,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  color: var(--accent);
  margin-top: 2rem;
  position: relative;
}

h2 {
  font-size: 1.8rem;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

p {
  font-size: 1.05rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00AEEF;
}

code {
  font-family: 'Courier New', monospace;
  background-color: rgba(0,209,255,0.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background-color: #1E1E1E;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}

pre::before {
  content: 'CSS';
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--accent);
  color: var(--bg-primary);
  padding: 2px 10px;
  font-size: 0.8rem;
  border-bottom-right-radius: 4px;
}

pre code {
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.img-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,209,255,0.2);
}

.img-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.img-caption {
  padding: 15px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  margin-top: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .article-container {
    padding: 25px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .img-grid {
    grid-template-columns: 1fr;
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulsing {
  animation: pulse 3s ease-in-out infinite;
}

