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

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(to bottom, #1A237E, #651FFF);
  overflow-x: hidden;
  min-height: 100vh;
}

/* 全局容器 */
.container {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

/* 头部设计 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 35, 126, 0.9);
  transition: all 0.3s ease;
}

header.scrolled {
  background: #1A237E;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #FF9800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #F48FB1;
}

/* 主体内容 */
main {
  margin-top: 80px;
  padding-bottom: 50px;
}

.hero-section {
  height: 100vh;
  background: url('https://images.gptkong.com/demo/sample1.png'), 
              url('https://images.gptkong.com/demo/sample2.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  animation: fadeIn 2s ease-in-out;
}

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

/* 卡片布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

/* 文章展示 */
.article-section {
  background: #fff;
  margin-top: 50px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-section h2 {
  color: #1A237E;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  margin-bottom: 20px;
}

.article-section p {
  color: #333;
  line-height: 1.8;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 36px;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* 动态元素 */
.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #FF9800;
  color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #F48FB1;
  transform: scale(1.05);
}

/* 提示信息 */
.tip {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

