
/* 全局样式设置 */
/* 设置盒模型为 border-box，确保内边距和边框不会影响元素的总宽度和高度 */
* {
  box-sizing: border-box;
}

/* 设置页面背景色，遵循70%主色，25%辅色，5%点缀色的比例 */
/* 主色为浅灰色，辅色为蓝色，点缀色为橙色 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f0f0f0 70%, #4facfe 25%, #ff9a00 5%);
  color: #333;
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* 导航链接样式 */
.navbar a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #4facfe;
}

/* 主容器，避免内容被导航栏遮挡 */
.container {
  padding-top: 70px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 分屏设计 */
.split-screen {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 左侧智能生活区域 */
.intelligent-life {
  flex: 1 1 45%;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
}

/* 右侧风险管理与合规科技区域 */
.risk-management {
  flex: 1 1 45%;
  background: linear-gradient(135deg, #2c3e50 0%, #bdc3c7 100%);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
}

/* 统一的模块样式 */
.module {
  background: rgba(255, 255, 255, 0.85);
  margin: 15px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* 文章标题样式 */
h2, h3, h4 {
  font-family: 'Helvetica', sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  margin-top: 20px;
}

h2 {
  font-size: 24px;
  color: #333;
}

h3 {
  font-size: 20px;
  color: #4facfe;
}

h4 {
  font-size: 18px;
  color: #ff9a00;
}

/* 段落样式 */
p {
  font-size: 16px;
  margin-bottom: 15px;
}

/* 提示语样式 */
.prompt {
  text-align: center;
  font-size: 18px;
  color: #ff9a00;
  margin: 30px 0;
  animation: fadeIn 2s ease-in-out;
}

/* 图片样式 */
.decorative-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.decorative-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/* 代码块样式 */
code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
}

pre {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 20px;
}

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

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

table th {
  background-color: #4facfe;
  color: white;
}

table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4facfe;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
  transform: scale(1.05);
  background-color: #00f2fe;
}

/* 折叠区域样式 */
.collapsible {
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.collapsible:hover {
  background-color: #e0e0e0;
}

.collapsible:after {
  content: '\002B';
  font-size: 13px;
  float: right;
}

.collapsible.active:after {
  content: "\2212";
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
  border-radius: 5px;
}

.content p {
  margin: 15px 0;
}

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

  .intelligent-life, .risk-management {
    flex: 1 1 100%;
  }
}

/* 滚动触发动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.module.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 图片网格布局 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.image-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

