
:root {
  --primary: #964B00;
  --secondary: #F5F5DC;
  --accent: #808000;
  --highlight: #00008B;
  --gold: #D4AF37;
  --text: #333333;
  --light: #FFFFFF;
  --dark: #222222;
}

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

body {
  font-family: 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--secondary) 0%, rgba(245,245,220,0.8) 100%);
  background-attachment: fixed;
  padding: 0;
  margin: 0;
  min-height: 100%;
}

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

.header {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--secondary);
  padding: 30px 0;
  text-align: center;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

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

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

.header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.note {
  background-color: var(--light);
  padding: 15px;
  border-left: 5px solid var(--gold);
  margin: 30px 0;
  border-radius: 0 5px 5px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-style: italic;
}

.article-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

article {
  background-color: var(--light);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: url('https://images.gptkong.com/demo/sample2.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

article h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
}

article p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

pre {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  overflow-x: auto;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  border-left: 4px solid var(--highlight);
  position: relative;
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--dark);
}

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

.image-card {
  background-color: var(--light);
  border-radius: 10px;
  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(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

.image-caption {
  padding: 15px;
  background-color: var(--secondary);
  text-align: center;
  font-style: italic;
}

.footer {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  color: var(--secondary);
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.footer p {
  margin-bottom: 15px;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

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

.toc {
  background-color: var(--light);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.toc ul {
  list-style-type: none;
}

.toc li {
  margin-bottom: 10px;
}

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

.toc a:hover {
  color: var(--primary);
  padding-left: 10px;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  article {
    padding: 25px;
  }
  
  article h2 {
    font-size: 1.5rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade {
  animation: fadeIn 1s ease-in-out;
}

