
:root {
  --primary: #8B4513;
  --secondary: #4169E1;
  --accent: #FFA500;
  --light: #F5F5DC;
  --dark: #2F4F4F;
  --text: #333;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, #F5F5DC 0%, #E6E6D1 100%);
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #6B2F00 100%);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary);
  transition: var(--transition);
  position: relative;
  padding: 5px 10px;
}

.nav-links a:hover {
  text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.header {
  padding-top: 100px;
  text-align: center;
  margin-bottom: 60px;
}

.header h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  position: relative;
  display: inline-block;
}

.header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.header p {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto 40px;
}

.notice {
  background: rgba(255,255,255,0.9);
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  border-left: 4px solid var(--accent);
  font-size: 16px;
  text-align: center;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.article {
  background: rgba(255,255,255,0.9);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.article h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.article h3 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin: 30px 0 15px;
}

.article p {
  margin-bottom: 20px;
  font-size: 17px;
}

.article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 20px 0;
  transition: var(--transition);
}

.article img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.code-block {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
}

.code-block::before {
  content: 'CSS';
  position: absolute;
  top: 0;
  left: 0;
  background: var(--secondary);
  color: white;
  padding: 2px 10px;
  border-radius: 0 0 var(--border-radius) 0;
  font-size: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.data-table thead {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.data-table tr:nth-child(even) {
  background-color: rgba(245, 245, 220, 0.5);
}

.data-table tr:hover {
  background-color: rgba(65, 105, 225, 0.1);
}

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

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

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.footer {
  background: linear-gradient(90deg, var(--primary) 0%, #6B2F00 100%);
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

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

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

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
  }
  
  .nav-links a {
    font-size: 16px;
  }
  
  .header h1 {
    font-size: 2.2rem;
  }
  
  .article {
    padding: 30px 20px;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .nav-links a {
    font-size: 14px;
    padding: 5px;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  .article h2 {
    font-size: 1.5rem;
  }
  
  .article h3 {
    font-size: 1.2rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

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

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

.highlight {
  background: rgba(255, 165, 0, 0.2);
  padding: 2px 5px;
  border-radius: 3px;
}

