
/* 全局样式定义 */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #000046, #1cb5e0);
  color: #fff;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.3);
}

h1 {
  font-size: 48px;
  text-align: center;
  margin-bottom: 30px;
}

p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* 背景星河效果 */
.background-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.gptkong.com/demo/sample1.png'),
              url('https://images.gptkong.com/demo/sample2.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.5;
}

/* 卡片样式 */
.card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
}

/* 代码块样式 */
code {
  display: block;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

/* 按钮样式 */
button {
  position: relative;
  background: linear-gradient(135deg, #1cb5e0, #000046);
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

button:hover::after {
  width: 200px;
  height: 200px;
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  p, code {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  h1 {
    font-size: 28px;
  }

  p, code {
    font-size: 14px;
  }
}

