
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --primary: #1E3A8A;
  --secondary: #6B21A8;
  --accent: #FFC107;
  --bg: #F5F5F5;
  --text: #333333;
  --light: #FFFFFF;
  --dark: #1A1A1A;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  padding-top: 80px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--light);
  padding: 1rem 5%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.notice {
  background: var(--accent);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

.hero {
  background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(107, 33, 168, 0.9)), 
              url('https://images.gptkong.com/demo/sample1.png');
  background-size: cover;
  background-position: center;
  height: 400px;
  border-radius: 12px;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light);
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
              transparent 65%, 
              rgba(255,255,255,0.1) 65%, 
              rgba(255,255,255,0.1) 70%, 
              transparent 70%),
              linear-gradient(-45deg, 
              transparent 65%, 
              rgba(255,255,255,0.1) 65%, 
              rgba(255,255,255,0.1) 70%, 
              transparent 70%);
  background-size: 30px 30px;
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.article-container {
  background: var(--light);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

article h2 {
  color: var(--primary);
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

article h3 {
  color: var(--secondary);
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

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

pre {
  background: var(--dark);
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 8px 0 0 8px;
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

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

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30,58,138,0.3), rgba(107,33,168,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.toc {
  background: var(--light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.toc h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.toc ul {
  list-style: none;
}

.toc li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.toc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.3rem 0;
}

.toc a:hover {
  color: var(--primary);
}

.footer {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--light);
  padding: 2rem 5%;
  text-align: center;
  margin-top: 3rem;
}

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

@media (max-width: 768px) {
  .hero {
    height: 300px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .article-container {
    padding: 2rem;
  }
  
  article h2 {
    font-size: 1.8rem;
  }
  
  article h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }
  
  .notice {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .hero {
    height: 250px;
    padding: 1rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .article-container {
    padding: 1.5rem;
  }
}

