
:root {
  --primary-color: #0D47A1;
  --highlight-blue: #42A5F5;
  --highlight-green: #66BB6A;
  --accent-orange: #FFA726;
  --neutral-light: #F5F5F5;
  --neutral-dark: #212121;
  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
}

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

.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1E88E5 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.gptkong.com/demo/sample3.png') no-repeat;
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.notice {
  background-color: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(5px);
}

.main-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar {
  background-color: var(--primary-color);
  padding: 2rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-nav a:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--text-primary);
  transform: translateX(5px);
}

.sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--accent-orange);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-nav a:hover::before {
  transform: scaleY(1);
}

.content {
  padding: 3rem;
  background-color: white;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

.article-header {
  margin-bottom: 3rem;
  position: relative;
}

.article-header h1 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

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

.article-header p {
  font-size: 1.1rem;
  color: var(--neutral-dark);
  max-width: 800px;
}

.article-section {
  margin-bottom: 4rem;
}

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

.article-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--highlight-blue);
}

.article-section h3 {
  font-size: 1.4rem;
  color: var(--highlight-blue);
  margin: 2rem 0 1rem;
}

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

.code-container {
  background-color: #263238;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.code-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 8px 8px 0 0;
}

.code-container pre {
  margin: 0;
  overflow-x: auto;
}

.code-container code {
  font-family: 'Courier New', monospace;
  color: #ECEFF1;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.image-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.image-caption {
  padding: 1.5rem;
  background-color: white;
}

.image-caption h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-color);
}

.image-caption p {
  margin: 0;
  color: var(--neutral-dark);
  font-size: 0.95rem;
}

.footer {
  background-color: var(--primary-color);
  color: var(--text-primary);
  padding: 3rem;
  text-align: center;
  margin-top: 4rem;
}

.footer p {
  margin: 0;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .main-container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    height: auto;
  }
  
  .content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1.5rem;
  }
  
  .content {
    padding: 1.5rem;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-section h2 {
    font-size: 1.6rem;
  }
  
  .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;
}

