
/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #003366, #330066);
  color: white;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 20px;
}

/* 头部设计 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: linear-gradient(to right, #003366, #000033);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

header .cta-button {
  background-color: orange;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

header .cta-button:hover {
  background-color: #ff8c00;
}

/* 模块化布局 */
.module {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.module h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.module p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* 视差滚动效果 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 400px;
  position: relative;
}

.parallax:nth-of-type(1) {
  background-image: url('https://images.gptkong.com/demo/sample1.png');
}

.parallax:nth-of-type(2) {
  background-image: url('https://images.gptkong.com/demo/sample2.png');
}

@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bounce {
  animation: bounce 2s infinite;
}

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

/* 数据展示模块 */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.data-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.data-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* 文章排版 */
article {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

article h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: orange;
}

article pre {
  background: #000033;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

article code {
  color: #ffcc00;
  font-size: 0.9rem;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

article th, article td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  text-align: left;
}

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

  .module h2 {
    font-size: 1.5rem;
  }

  article h2 {
    font-size: 1.8rem;
  }
}

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

  .parallax {
    height: 200px;
  }
}

