
/* 全局样式 */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: linear-gradient(135deg, #0A192F, #1C2541);
  color: #ffffff;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  color: #64FFDA;
}
a {
  color: #38BDF8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 页面头部设计 */
header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1C2541, #0A192F);
}
header h1 {
  font-size: 2.5rem;
  margin: 0;
}
header p {
  font-size: 1.2rem;
  color: #7C3AED;
}

/* 卡片布局 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}
.card {
  background: #1C2541;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  padding: 20px;
}
.card:hover {
  transform: scale(1.05);
}
.card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* 文章内容样式 */
article {
  background: rgba(28, 37, 65, 0.8);
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
}
article h2, article h3 {
  color: #64FFDA;
}
article pre {
  background: #0A192F;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}
article code {
  color: #38BDF8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* 动画效果 */
.parallax {
  background-image: url('https://images.gptkong.com/demo/sample1.png');
  height: 300px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.card-flip {
  perspective: 1000px;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.card-front, .card-back {
  position: absolute;
  backface-visibility: hidden;
}
.card-back {
  transform: rotateY(180deg);
}
.card-flip:hover .card-inner {
  transform: rotateY(180deg);
}

