
:root {
  --primary-color: #0D47A1;
  --secondary-color: #C0C0C0;
  --accent-orange: #FF9800;
  --accent-green: #4CAF50;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #F5F5F5;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-md: 0 8px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  background-attachment: fixed;
  padding: 0;
  margin: 0;
}

.header {
  background: linear-gradient(90deg, var(--primary-color) 0%, #1565C0 100%);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-green) 100%);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.nav-container {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 80%;
}

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

.article-container {
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.article-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-orange), var(--accent-green));
}

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

.article-container h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-orange);
}

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

.article-container p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.code-container {
  background: #2d2d2d;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  font-family: 'Courier New', monospace;
  color: #f8f8f2;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.image-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.image-caption {
  padding: 1rem;
  background: var(--bg-white);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.footer {
  background: linear-gradient(90deg, var(--primary-color) 0%, #1565C0 100%);
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.notice {
  background: rgba(255, 152, 0, 0.1);
  border-left: 4px solid var(--accent-orange);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.notice p {
  margin: 0;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
}

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

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