* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #F7F9FC;
  font-family: "Microsoft Yahei", sans-serif;
  scroll-behavior: smooth; /* 添加平滑滚动 */
}

header {
  height: 64px;
  display: flex;
  padding: 0 90px;
  flex-direction:row;
  align-items:center;
  background: #FFFFFF;
  justify-content:space-between;

  top: 0;
  z-index: 999;
  position: sticky; 
  transition: all 0.3s ease;
}
header.header-scrolled {
  background: #FFFFFF; /* 滚动后背景色变为白色（可自定义） */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* 添加轻微阴影，增强层次感 */
  height: 60px; /* 滚动后高度轻微缩小（可选） */
}
.logo{
  width: 100px;
  height: auto;
}
.logo img{
  width: 100%;
}

h2{
  margin: 0;
  font-size: 48px;
  text-align: left;
  color: #333333;
  font-weight: bold;
  font-family: MiSans, MiSans;
}
.container {
  display: flex;
  width: 100%;
  margin-top: 20px;
}
p{
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 32px;
  font-family: MiSans, MiSans;
}
h4{
  margin: 0;
  font-size: 24px;
  text-align: left;
  color: #333333;
  font-weight: bold;
  font-family: MiSans, MiSans;
}
h5{
  font-size: 18px;
  color: #333333;
  font-weight: bold;
  line-height: 48px;
  font-family: MiSans, MiSans;
}
/* 左侧内容区域 - 只保留左边框 */
.left-content {
  flex: 1;
  margin-left:12%;
  overflow-y: auto;
  /* border-left: 1px solid #999999; */
}

.right-sidebar {
  width: 300px;
  overflow-y: auto;
  background: #F7F9FC;
  position: sticky; /* 导航栏粘性定位，方便滚动时使用 */
  top: 15%;
  z-index: 999;
  margin-right: 12%;
  align-self: flex-start;
  max-height: calc(100vh - 40px);
}

.right-sidebar h3 {
  font-size: 16px;
  color: #333333;
  font-weight: bold;
  margin-bottom: 24px;
  font-family: MiSans, MiSans;
}

/* 导航列表样式 - 统一设置左侧边框作为基准线 */
.right-sidebar ul {
  font-size: 14px;   
  list-style: none;
  padding-left: 16px;
  position: relative;
  border-left: 1px solid #EEEEEE;
  margin-bottom: 32px;
}

.right-sidebar ul li {
  margin-bottom: 16px;
  position: relative;
}
.text-ellipsis {
 max-width: 150px; /* 4. 宽度固定为100px（必须，需明确触发溢出的边界，也可写在style属性中） */
  overflow: hidden;  /* 2. 溢出部分隐藏（必须，超出宽度的内容不显示） */
  white-space: nowrap;  /* 1. 强制文本不换行（必须，否则文字会自动换行，无法触发溢出） */
  text-overflow: ellipsis; /* 3. 溢出文本用省略号替代（必须，优化视觉体验） */
}
/* 导航链接基础样式 */
.right-sidebar ul li a {
  text-decoration: none;
  color: #999999;
  display: inline-block;
  position: relative;
  z-index: 2;
  line-height: 24px;
  padding-left: 0;
  transition: color 0.3s ease;
}

/* 为特定列表项添加左内边距 */
.right-sidebar ul li.indent a {
  padding-left: 16px;
}

/* 左滑块样式 - 关键调整：以li为基准定位，保持在统一基准线上 */
.right-sidebar  ul li a::after {
  content: "";
  position: absolute;
  left: -16px; /* 固定向左偏移16px，对齐到ul的左侧边框 */
  top: 0;
  width: 2px;
  height: 100%;
  background: #1876FF;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* active状态 - 滑块正常显示 */
.right-sidebar ul li a.active::after {
  transform: scaleY(1);
}

/* 激活状态文字样式 */
.right-sidebar ul li a.active {   
  font-size: 16px;   
  text-align: left;
  color: #333333;
  font-weight: 500;
  line-height: 24px;
  font-family: MiSans, MiSans;
}

.qr-code {
  width: 204px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  margin-top: 32px;
  text-align: left;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.qr-code img {
  max-width: 156px;
}

.qr-code p {
  padding: 0;
  line-height: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  color: #666666;
  margin-top: 16px;
  padding-bottom: 0;
  font-family: MiSans, MiSans;
}
.wenzhang_p{
  font-size: 16px;
  color: #666;
  font-family: MiSans, MiSans;
}
.wenzhang_p1{
  font-size: 16px;
  padding-top: 8px;
  color: #333333;
  font-weight: 400;
  line-height: 32px;
  padding-bottom: 32px;
  font-family: MiSans, MiSans;
}
.section9_button{
  gap: 22px;
  border: none;
  display: flex;
  align-items:center;
}
.btn {
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    align-items: center;
    display: inline-flex;
    padding: 10px 16px 10px 24px;
}
.btn-outline {
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
}
.btn-outline:hover{
  color: #fff;
  background-color: #007bff;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}
.btn-outline:hover img{
  width: 24px;
  height: 24px;
  margin-left: 10px;
  content: url('../imges/bai_jiantou.png');
}

footer{
  width: 100%;
  display: flex;
  background: #F7F9FC;
  justify-content: center;
}
.footer_div p{
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #333333;
  padding: 24px 0px;
  text-align: center;
  font-family: MiSans, MiSans;
}
/* 媒体查询，适配小屏幕 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 0 20px;
  }

  .left-content {
    margin-right: 0;
    margin-top: 20px;
    padding-left: 5%;
    padding-right: 5%;
  }

  .right-sidebar {
    width: 100%;
    order: -1;
    padding: 20px;
    position: static;
    max-height: none;
  }
}