
:root {
  --bg-main: #F5F5DC;
  --primary: #8B4513;
  --secondary: #228B22;
  --accent: #D4AF37;
  --balance: #00008B;
  --text: #333333;
  --light: #FFFFFF;
  --dark: #1A1A1A;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@font-face {
  font-family: 'Playfair Display';
  src: url('https://fonts.gstatic.com/s/playfairdisplay/v30/nuFvD-vYSZviVYUb_rj3ij__anPXJzDwcbmjWBN2PKdFvXDXbtY.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  src: url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, rgba(245, 245, 220, 0.8) 0%, rgba(245, 245, 220, 0.9) 90%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

.header {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--balance) 100%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--accent);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

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

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

.nav-link:hover {
  color: var(--accent);
}

.banner {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 139, 0.7), rgba(0, 0, 139, 0.7)), 
              url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat;
  margin-bottom: 60px;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.gptkong.com/demo/sample2.png') repeat;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.banner-content {
  text-align: center;
  color: var(--light);
  padding: 0 20px;
  z-index: 2;
  max-width: 800px;
}

.banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.5s ease-out;
}

.banner p {
  font-size: 18px;
  margin-bottom: 30px;
  animation: fadeIn 2s ease-out;
}

.notice {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.notice p {
  color: var(--light);
  font-weight: 500;
  margin: 0;
}

.content-section {
  padding: 60px 0;
  background: var(--bg-main);
}

.section-title {
  font-family: 'Playfair Display', serif;
  color: var(--secondary);
  font-size: 32px;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--balance));
  margin: 15px auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.card {
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid var(--accent);
}

.card-content {
  padding: 30px;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 15px;
}

.card p {
  margin-bottom: 20px;
  color: var(--text);
}

.code-container {
  background: var(--dark);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

pre {
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: #f8f8f2;
  line-height: 1.5;
  overflow-x: auto;
}

code {
  font-family: inherit;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--balance) 100%);
  color: var(--light);
  padding: 40px 0;
  text-align: center;
}

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

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

.footer-link {
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

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

.footer-link:hover::after {
  width: 100%;
}

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

.copyright {
  font-size: 14px;
  opacity: 0.8;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
    height: 70px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .nav {
    gap: 15px;
  }
  
  .banner {
    height: 400px;
  }
  
  .banner h1 {
    font-size: 36px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .card {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav {
    display: none;
  }
  
  .banner {
    height: 350px;
  }
  
  .banner h1 {
    font-size: 28px;
  }
  
  .banner p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 26px;
  }
}

