
:root {
  --primary-color: #0074D9;
  --secondary-color: #B3C0C8;
  --background-light: #C6E2B5;
  --background-beige: #F5F5DC;
  --accent-color: #5BC0EB;
  --text-color: #333333;
  --light-shadow: rgba(0, 0, 0, 0.1);
  --dark-shadow: rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--background-light) 0%, var(--background-beige) 100%);
  min-height: 100%;
  overflow-x: hidden;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(245, 245, 220, 0.95);
  box-shadow: 0 4px 12px var(--light-shadow);
  backdrop-filter: blur(8px);
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

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

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

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

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

.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::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: -1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px var(--light-shadow);
}

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

.notice {
  background: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 4px 12px var(--light-shadow);
  border-left: 4px solid var(--primary-color);
}

.notice p {
  font-size: 1rem;
  color: var(--text-color);
}

.content-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px var(--light-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--dark-shadow);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card-content p {
  margin-bottom: 20px;
}

.button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 116, 217, 0.3);
}

.button:hover {
  background: linear-gradient(45deg, #005bb5, #909aae);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 91, 181, 0.4);
}

.code-block {
  background: #2d2d2d;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  overflow-x: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  color: #f8f8f2;
  line-height: 1.5;
  tab-size: 2;
}

.code-block .language-css {
  color: #66d9ef;
}

.code-block .property {
  color: #a6e22e;
}

.code-block .value {
  color: #ae81ff;
}

.code-block .selector {
  color: #f92672;
}

.article-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px var(--light-shadow);
  margin: 40px 0;
}

.article-content h2 {
  color: var(--primary-color);
  margin: 30px 0 20px;
  font-size: 1.8rem;
}

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

.article-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: 0 2px 8px var(--light-shadow);
}

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

.article-content th {
  background-color: var(--primary-color);
  color: white;
}

.article-content tr:nth-child(even) {
  background-color: rgba(198, 226, 181, 0.2);
}

.article-content tr:hover {
  background-color: rgba(198, 226, 181, 0.4);
}

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

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--light-shadow);
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.footer {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 50px 0 20px;
  margin-top: 80px;
}

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

.footer-column h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .article-content {
    padding: 25px;
  }
}

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

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