
/* 全局样式设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 设置页面字体 */
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0D47A1, #1976D2); /* 渐变背景 */
  overflow-x: hidden; /* 禁止水平滚动 */
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 71, 161, 0.9);
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  z-index: 1000;
  transition: background 0.3s;
}

.navbar a {
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  padding: 10px 15px;
}

.navbar a:hover {
  color: #FFA500; /* 点缀色 */
  transition: color 0.3s;
}

/* 轮播图样式 */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 71, 161, 0.7);
}

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

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.hero-content .cta-button {
  background: #FFA500;
  color: #FFFFFF;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

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

/* 图文并茂的内容块 */
.content-section {
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(25, 118, 210, 0.8);
}

.content-block {
  width: 45%;
  margin: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.content-block img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.content-block img:hover {
  transform: scale(1.05);
}

.content-block h2 {
  font-size: 24px;
  margin: 15px 0;
}

.content-block p {
  font-size: 16px;
  line-height: 1.6;
}

/* 数据可视化区 */
.chart-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #1976D2, #0D47A1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart {
  width: 80%;
  height: 400px;
  background: #FFFFFF;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* 用户案例区 */
.case-section {
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(25, 118, 210, 0.8);
}

.case-card {
  background: #FFFFFF;
  color: #000000;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px;
  width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.case-card img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.case-card h3 {
  font-size: 20px;
  margin: 15px 0;
}

.case-card p {
  font-size: 16px;
  line-height: 1.6;
}

/* 资源中心区 */
.resource-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0D47A1, #1976D2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.resource-module {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin: 10px;
  width: 250px;
  transition: background 0.3s;
}

.resource-module:hover {
  background: rgba(255, 165, 0, 0.2);
}

.resource-module h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.resource-module p {
  font-size: 14px;
  line-height: 1.6;
}

/* 代码示例样式 */
.code-sample {
  background: #263238;
  color: #ECEFF1;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  margin: 20px 0;
}

.code-sample code {
  font-size: 14px;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

thead {
  background: #1976D2;
  color: #FFFFFF;
}

th, td {
  padding: 12px;
  border: 1px solid #FFFFFF;
  text-align: left;
}

pre {
  background: #263238;
  color: #ECEFF1;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

/* 折叠区域样式 */
.collapsible {
  background-color: #1976D2;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  margin: 10px 0;
}

.active, .collapsible:hover {
  background-color: #0D47A1;
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: rgba(25, 118, 210, 0.8);
}

.content p {
  font-size: 16px;
  line-height: 1.6;
}

/* 章节导航样式 */
.chapter-nav {
  position: fixed;
  right: 20px;
  top: 100px;
  display: flex;
  flex-direction: column;
}

.chapter-nav a {
  background: #FFA500;
  color: #FFFFFF;
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.chapter-nav a:hover {
  background: #FF5722;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-block, .case-card, .resource-module {
    width: 100%;
    margin: 10px 0;
  }

  .navbar {
    flex-direction: column;
  }

  .chapter-nav {
    display: none;
  }
}

/* 点缀元素 */
.decorative-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #FFA500, #00FF00);
  margin: 20px 0;
  border: none;
}

/* 提示文字样式 */
.reference-note {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 165, 0, 0.8);
  color: #000000;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
}

