
/* 
  整体页面样式
  使用暗黑模式，融合未来感与高级质感
  主色调为深蓝、炭黑与深灰，辅以霓虹蓝、荧光绿和橙色点缀
*/

/* 通用样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  transition: background 0.5s ease, color 0.5s ease;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(32, 58, 67, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #00ffcc;
}

/* 主要内容区域 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 32, 39, 0.7);
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #00ffcc;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-content .cta-button {
  background-color: #00ffcc;
  color: #203a43;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-content .cta-button:hover {
  transform: scale(1.05);
  background-color: #2c5364;
}

/* 功能展示区 */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 60px 20px;
  background: rgba(32, 58, 67, 0.9);
}

.feature {
  flex: 1 1 30%;
  background: rgba(255, 255, 255, 0.1);
  margin: 15px;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 20px rgba(0, 255, 204, 0.3);
}

.feature h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #00ffcc;
}

.feature p {
  font-size: 16px;
  line-height: 1.5;
}

/* 数据可视化区 */
.data-visualization {
  padding: 60px 20px;
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
}

.chart-bar {
  width: 50px;
  height: 100px;
  background: #00ffcc;
  margin: 0 10px;
  transition: height 1s ease, background-color 0.5s ease;
}

.chart-bar:hover {
  height: 150px;
  background-color: #ff0099;
}

/* 文章内容样式 */
.article-content {
  padding: 60px 20px;
}

.article-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #00ffcc;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content pre {
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-content code {
  color: #ff0099;
  font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
.img-decor {
  width: 320px;
  height: 320px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-decor:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 255, 204, 0.5);
}

/* 折叠区域样式 */
.collapsible {
  background-color: rgba(32, 58, 67, 0.9);
  color: #ffffff;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.active, .collapsible:hover {
  background-color: #00ffcc;
  color: #203a43;
}

.content {
  padding: 0 18px;
  display: none;
  background-color: rgba(32, 58, 67, 0.7);
  overflow: hidden;
}

/* 章节导航样式 */
.chapter-nav {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(0, 255, 204, 0.9);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.chapter-nav ul {
  list-style: none;
  padding: 0;
}

.chapter-nav ul li {
  margin-bottom: 10px;
}

.chapter-nav ul li a {
  color: #203a43;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.chapter-nav ul li a:hover {
  color: #ffffff;
}

/* 底部样式 */
.footer {
  background: rgba(15, 32, 39, 0.9);
  padding: 20px;
  text-align: center;
  color: #ffffff;
}

.footer .social-icons {
  margin-top: 10px;
}

.footer .social-icons img {
  width: 24px;
  height: 24px;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.footer .social-icons img:hover {
  transform: scale(1.2);
}

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

  .navbar ul {
    flex-direction: column;
    width: 100%;
  }

  .navbar ul li {
    margin: 10px 0;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    flex: 1 1 80%;
  }

  .chart-container {
    flex-direction: column;
    align-items: center;
  }

  .chart-bar {
    margin: 10px 0;
  }

  .chapter-nav {
    display: none;
  }
}

