* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Microsoft YaHei', Arial, sans-serif;
      line-height: 1.6;
      color: #333;
      scroll-behavior: smooth;
      overflow-x: hidden;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 20px;
    }

    /* 滑动阻尼效果 */
    * {
      scroll-behavior: smooth;
    }

    /* 为滚动容器添加阻尼效果 */
    body::-webkit-scrollbar {
      width: 8px;
    }

    body::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 4px;
    }

    body::-webkit-scrollbar-thumb {
      background: #a454d8;
      border-radius: 4px;
      transition: background 0.3s ease;
    }

    body::-webkit-scrollbar-thumb:hover {
      background: #af79d3;
    }

    /* 阅读进度条样式 */
    .reading-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 4px;
      background: #a454d8;
      opacity: 0.8;
      z-index: 9999;
      transition: width 0.1s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    /* 旋转文本容器样式 */
.rotating-text-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 圆形文本样式 */
.circle-text {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation: rotate 10s linear infinite;
  pointer-events: none; /* 确保文本不会阻挡按钮点击 */
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

/* 当圆形文本显示时的样式 */
.circle-text.show {
  opacity: 1;
  visibility: visible;
}

/* 当鼠标悬停在容器上时，圆形文本向上移动 */
.rotating-text-container:hover .circle-text {
  transform: translateY(-5px);
}

/* 创建旋转动画 */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 圆形文本中的每个字符 */
.circle-text span {
  position: absolute;
  left: 50%;
  top: 0;
  font-size: 12px;
  letter-spacing: 2px; /* 添加字符间距 */
  transform-origin: 0 50px; /* 旋转中心点，调整为容器高度的一半 */
  color: var(--text-color);
}

/* 设置每个字符的旋转角度 */
.circle-text span:nth-child(1) { transform: rotate(0deg) translateX(-50%); }
.circle-text span:nth-child(2) { transform: rotate(12deg) translateX(-50%); }
.circle-text span:nth-child(3) { transform: rotate(24deg) translateX(-50%); }
.circle-text span:nth-child(4) { transform: rotate(36deg) translateX(-50%); }
.circle-text span:nth-child(5) { transform: rotate(48deg) translateX(-50%); }
.circle-text span:nth-child(6) { transform: rotate(60deg) translateX(-50%); }
.circle-text span:nth-child(7) { transform: rotate(72deg) translateX(-50%); }
.circle-text span:nth-child(8) { transform: rotate(84deg) translateX(-50%); }
.circle-text span:nth-child(9) { transform: rotate(96deg) translateX(-50%); }
.circle-text span:nth-child(10) { transform: rotate(108deg) translateX(-50%); }
.circle-text span:nth-child(11) { transform: rotate(120deg) translateX(-50%); }
.circle-text span:nth-child(12) { transform: rotate(132deg) translateX(-50%); }
.circle-text span:nth-child(13) { transform: rotate(144deg) translateX(-50%); }
.circle-text span:nth-child(14) { transform: rotate(156deg) translateX(-50%); }
.circle-text span:nth-child(15) { transform: rotate(168deg) translateX(-50%); }
.circle-text span:nth-child(16) { transform: rotate(180deg) translateX(-50%); }
.circle-text span:nth-child(17) { transform: rotate(192deg) translateX(-50%); }
.circle-text span:nth-child(18) { transform: rotate(204deg) translateX(-50%); }
.circle-text span:nth-child(19) { transform: rotate(216deg) translateX(-50%); }
.circle-text span:nth-child(20) { transform: rotate(228deg) translateX(-50%); }
.circle-text span:nth-child(21) { transform: rotate(240deg) translateX(-50%); }
.circle-text span:nth-child(22) { transform: rotate(252deg) translateX(-50%); }
.circle-text span:nth-child(23) { transform: rotate(264deg) translateX(-50%); }
.circle-text span:nth-child(24) { transform: rotate(276deg) translateX(-50%); }
.circle-text span:nth-child(25) { transform: rotate(288deg) translateX(-50%); }
.circle-text span:nth-child(26) { transform: rotate(300deg) translateX(-50%); }
.circle-text span:nth-child(27) { transform: rotate(312deg) translateX(-50%); }
.circle-text span:nth-child(28) { transform: rotate(324deg) translateX(-50%); }
.circle-text span:nth-child(29) { transform: rotate(336deg) translateX(-50%); }
.circle-text span:nth-child(30) { transform: rotate(348deg) translateX(-50%); }

    /* 一键置顶按钮样式 */
    .back-to-top {
      position: absolute; /* 使用绝对定位，确保在容器中居中 */
      top: 25%;
      left: 25%;
      /* transform: translate(-50%, -50%); */
      width: 50px;
      height: 50px;
      background: #a454d8; /* 降低饱和度的红色按钮 */
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      font-size: 20px;
      font-weight: bold; /* 加粗箭头文本 */
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      transition: all 0.3s ease;
      opacity: 0;
      visibility: hidden;
      z-index: 10000;
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.4);
      background: #a454d8bb; /* 鼠标悬停时颜色变浅 */
    }

    .back-to-top:active {
      transform: translateY(-1px);
    }

    /* Header 样式 */
    header {
      /* background: linear-gradient(135deg, #f93c3c 0%, #764ba2 100%); */
      color: white;
      background-size: cover;
      background-position: center;
      padding: 20px 0;
      text-align: center;
      /* 取消阴影效果 */
      height: 100vh;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      overflow: hidden; /* 确保长条不会溢出 */
    }
    
    /* 底部长条样式 */
    .header-bottom-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100vw;
      height: 80px; /* 增加高度至80px */
      background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 1) 100%); /* 顶部完全透明 */
      opacity: 0;
      transform: translateY(80px); /* 初始状态在视图外，与高度匹配 */
      transition: opacity 0.1s ease, transform 0.1s ease; /* 更快的过渡效果 */
      z-index: 3; /* 确保在磨砂层之上 */
    }

    /* 磨砂透明层 */
    header::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: all 0.1s ease;
      opacity: var(--overlay-opacity, 1);
    }

    /* Header内容层 */
    .header-content {
      position: relative;
      z-index: 2;
      transition: opacity 0.2s ease;
    }

    header h1 {
      font-size: 4em;
      margin-bottom: 20px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
      font-weight: 600;
    }

    header p {
      font-size: 1.5em;
      opacity: 0.9;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
      font-weight: 600;
    }

    /* 主要布局容器 */
    .container {
      display: flex;
      /* max-width: 1200px; */
      /* margin: 0 auto; */
      min-height: calc(100vh - 120px);
    }

    /* Sidebar 样式 */
    .sidebar {
      width: 300px;
      /* background: #f8f9fa; */
      
      padding: 70px 35px 30px 20px;
      border-right: 1one;
      position: sticky;
      top: 0;
      height: 100vh;
      left: 0;
      background-image: linear-gradient(to bottom, transparent 50px, #0c0d0d24 20px, #0c0d0d24 calc(100% - 50px), transparent calc(100% - 50px));
      background-position: right;
      background-size: 2px 100%;
      background-repeat: no-repeat;
    }

    /* Sidebar 标题前图片样式 */
    .sidebar-icon {
      display: inline-block;
      vertical-align: middle;
      height: 80px;
      margin-right: 0px;
      clip-path: inset(15px);
      position: relative;
      top: -5px;
    }

    .sidebar h3 {
      color: #495057;
      margin-bottom: 10px;
      font-size: 1.3em;
      font-weight: bold;
      display: inline-block;
      vertical-align: middle;
      border-bottom: 2px solid #a454d8;
      padding-bottom: 5px;
      margin-top: 0;
    }

    .toc {
      list-style: none;
      margin-top: 0px;
      padding-left: 0;
    }

    .toc-item {
      margin-bottom: 0px;
    }

    .toc-link {
      display: block;
      padding: 8px 8px;
      color: #495057;
      text-decoration: none;
      border-radius: 5px;
      transition: all 0.3s ease;
      font-weight: 500;
      text-align: left;
    }

    .toc-link.active {
      /* background: #ff8a8a70; */
      color: #a454d8;
      /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
      transform: scale(1.05);
      font-weight: bold;
    }
    
    .toc-link:hover {
      background: #a454d8;
      color: white;
      transform: scale(1.05) !important;
    }

    .toc-link.level-1 {
      font-size: 1em;
      /* border-left: 3px solid #f93c3c; */
      margin-bottom: 5px;
      padding-left: 42px;
      text-align: left;
      position: relative;
    }
    
    .toc-link.level-1::before {
      content: "";
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background-color: transparent;
      border: 2px solid #a454d8;
      display: block;
    }
    
    .toc-link.level-1:hover::before {
      background-color: transparent;
      border-color: white;
    }
    
    .toc-link.level-1.active::before {
      background-color: #a454d8;
      border-color: #a454d8;
    }
    
    .toc-link.level-1.active:hover::before {
      background-color: white;
      border-color: white;
    }

    .toc-submenu {
      list-style: none;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.8s ease;
      margin-left: 0;
      padding-left: 0;
    }

    .toc-item:hover .toc-submenu,
    .toc-item.expanded .toc-submenu {
      max-height: 600px;
    }

    .toc-link.level-2 {
      font-size: 0.8em;
      color: #495057a3;
      /* border-left: 2px solid #6c757d; */
      margin: 0px 5px 5px 30px;
      padding-left: 10px;
    }

    .toc-link.level-2.active {
      /* background: #ff555542; */
      color: #495057;
      border-radius: 4px;
      transform: scale(1.05);
      font-weight: bold;
    }
    
    .toc-link.level-2:hover {
      background: #49505744;
      color: white;
      border-radius: 4px;
      transform: scale(1.05) !important;
    }

    /* 正文样式 */
    .main-content {
      flex: 1;
      padding: 30px 40px;
      background: white;
    }

    .content h1 {
      color: #2c3e50;
      font-size: 2.2em;
      margin: 40px 0 20px 0;
      padding-left: 0px;
      font-weight: bold;
      /* border-left: 3px solid #f93c3c; */
    }

    .content h1:first-child {
      margin-top: 0;
    }

    .content h2 {
      color: #34495e;
      font-size: 1.6em;
      margin: 30px 0 15px 0;
      padding-left: 15px;
      font-weight: bold;
      /* border-left: 4px solid #f93c3c; */
      display: inline-block;
    }

    .content p {
      margin-bottom: 15px;
      text-align: justify;
      font-size: 1.05em;
      line-height: 1.8;
    }

    .content ul, .content ol {
      margin: 15px 0 15px 30px;
    }

    .content li {
      margin-bottom: 8px;
    }

    /* Summary highlight box styling */
    .summary-highlight-box {
      background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
      border: 2px dashed #a855f7;
      border-radius: 15px;
      padding: 20px 25px 20px 35px;
      margin: 20px 0 20px 15px;
      font-size: 1.1em;
      line-height: 1.8;
      box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15);
      transition: all 0.3s ease;
    }

    .summary-highlight-box:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(168, 85, 247, 0.25);
    }

    .summary-highlight-box li {
      margin-bottom: 12px;
      font-weight: 500;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
      .container {
        flex-direction: column;
      }
      
      .sidebar {
        width: 300px;
        position: fixed;
        left: -300px; /* 默认隐藏 */
        top: 0;
        height: 100vh;
        z-index: 999;
        background-color: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
      }
      
      /* 侧边栏显示状态 */
      .sidebar.show {
        left: 0;
      }
      
      .main-content {
        padding: 20px;
        width: 100%;
        margin-left: 0;
      }
    }

    /* 汉堡菜单按钮样式 */
    .hamburger-menu {
      display: none; /* 默认隐藏 */
      position: fixed;
      top: 20px;
      left: 20px;
      z-index: 1000;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px;
      background-color: rgba(255, 255, 255, 0.8);
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .hamburger-menu span {
      display: block;
      width: 25px;
      height: 3px;
      margin: 5px 0;
      background-color: #333;
      transition: all 0.3s ease;
    }
    
    /* 汉堡菜单激活状态 */
    .hamburger-menu.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
      opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* 中等屏幕尺寸响应式布局 */
    @media (max-width: 1000px) {
      /* 移动到footerstyle.css */
    }
    
    /* 移动端显示汉堡菜单 */
    @media (max-width: 768px) {
      .hamburger-menu {
        display: block;
      }
    }
    
    
    
    /* header图标样式 */
    .header-icon {
   height: 360px;
   clip-path: inset(40px);
   margin-bottom: -50px;
   margin-top: -0px;
   filter: brightness(0) invert(1) drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.5)); /* 将图片转为白色并添加更明显的阴影 */
   -webkit-filter: brightness(0) invert(1) drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.5)); /* 兼容webkit浏览器 */
 }
    
    /* 页面导航按钮样式 */
  .page-navigation {
    /* background-color: #f8f9fa; */
    padding: 15px 0;
    text-align: center;
    /* border-top: 1px solid #e9ecef; */
    /* border-bottom: 1px solid #e9ecef; */
    margin-bottom: 20px;
  }
  
  .nav-button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
  }
  
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    padding: 10px;
    background-color: white;
    text-decoration: none;
    border-radius: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .nav-button-icon {
    width: 144px;
    height: 144px;
    filter: brightness(0) invert(1); /* 将图标变为白色 */
    transition: transform 0.3s ease;
  }
  
  .nav-label {
    font-size: 18px;
    margin-top: 8px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
  }
  
  /* 默认标签样式 - 放在颜色类之前 */
  .nav-label {
    /* 默认样式，如果没有指定颜色类则使用默认颜色 */
    color: #666; /* 默认灰色 */
  }

  /* 标签颜色样式 - 具有更高的特异性 */
  .nav-label.nav-label-red {
    color: #ed3a3a; /* 红色 */
  }
  
  .nav-label.nav-label-orange {
    color: #ff8300; /* 橙色 */
  }
  
  .nav-label.nav-label-yellow {
    color: #fbda07; /* 黄色 */
  }
  
  .nav-label.nav-label-green {
    color: #0ecc00; /* 绿色 */
  }
  
  .nav-label.nav-label-blue {
    color: #009aff; /* 蓝色 */
  }
  
  .nav-label.nav-label-purple {
    color: #a454d8; /* 紫色 */
  }
  
  /* 当按钮或文字处于hover状态时，按钮图标和文字都会放大 */
  .nav-item:hover .nav-button-icon,
  .nav-item:hover .nav-label {
    transform: scale(1.1);
  }
  
  /* 默认按钮样式 - 放在颜色类之前 */
  .nav-button {
    /* 默认样式，如果没有指定颜色类则使用默认颜色 */
    background-color: #666; /* 默认灰色 */
    opacity: 0.8;
  }

  /* 按钮颜色样式 - 具有更高的特异性 */
  .nav-button.nav-button-red {
    background-color: #ed3a3a; /* 红色 */
    opacity: 0.8;
  }
  
  .nav-button.nav-button-orange {
    background-color: #ff8300; /* 橙色 */
    opacity: 0.8;
  }
  
  .nav-button.nav-button-yellow {
    background-color: #fbda07; /* 黄色 */
    opacity: 0.8;
  }
  
  .nav-button.nav-button-green {
    background-color: #0ecc00; /* 绿色 */
    opacity: 0.8;
  }
  
  .nav-button.nav-button-blue {
    background-color: #009aff; /* 蓝色 */
    opacity: 0.8;
  }
  
  .nav-button.nav-button-purple {
    background-color: #a454d8; /* 紫色 */
    opacity: 0.8;
  }
  
  /* 当按钮或文字处于hover状态时，按钮都会有悬浮效果 */
  .nav-item:hover .nav-button {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    filter: brightness(1.05);
    opacity: 1;
  }
  
  /* 移除不需要的选择器，因为HTML结构已更改 */
  
  /* 响应式样式 */
  @media (max-width: 768px) {
    .nav-button-container {
      gap: 35px;
    }
    
    .nav-item {
      margin-bottom: 5px;
    }
    
    .nav-button {
      width: 100px;
      height: 100px;
      padding: 8px;
      border-radius: 50px;
    }
    
    .nav-button-icon {
      width: 120px;
      height: 120px;
    }
    
    .nav-label {
      font-size: 12px;
      margin-top: 5px;
      font-weight: 700;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
  }
  
  @media (max-width: 576px) {
    .page-navigation {
      padding: 15px 0;
    }
    
    .nav-button-container {
      gap: 20px;
    }
    
    .nav-item {
      margin-bottom: 5px;
    }
    
    .nav-button {
      width: 80px;
      height: 80px;
      padding: 5px;
      border-radius: 40px;
    }
    
    .nav-button-icon {
      width: 96px;
      height: 96px;
    }
    
    .nav-label {
      font-size: 10px;
      margin-top: 3px;
      font-weight: 700;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
  }
    
    /* 标题前图片样式 */
    .h1-image-container {
      display: flex;
      align-items: center;
    }
    
    .h1-image {
      padding: 20px 0 0 0;
        height: 60px;
      margin-right: 20px;
    }
    
    /* 二级标题前图片样式 */
    .h2-image-container {
      display: flex;
      align-items: center;
    }
    
    .h2-image {
      height: 50px;
      margin-right: 0px;
      padding: 16px 0 0 0;
    }

    /* 通用侧栏滚动样式（公共） */
    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      min-height: 0;
      z-index: 0;
      display: flex;
      flex-direction: column;
    }

    .toc {
      height: 100%;
      max-height: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      scrollbar-gutter: stable;
      word-break: break-word;
      white-space: normal;
      padding-bottom: 18px;
      scroll-padding-bottom: 18px;
      box-sizing: border-box;
      min-height: 0;
      flex: 1 1 auto;
    }
    /* 更浅滚动条（跨浏览器，进一步变浅） */
    .toc { scrollbar-color: #edf1f5 #ffffff; scrollbar-width: thin; }
    .toc::-webkit-scrollbar { width: 6px; }
    .toc::-webkit-scrollbar-thumb { background: #edf1f5; border-radius: 4px; }
    .toc::-webkit-scrollbar-thumb:hover { background: #e7ebf0; }
    .toc::-webkit-scrollbar-track { background: #ffffff; }

    .toc :last-child {
      margin-bottom: 0 !important;
      padding-bottom: 8px;
    }
    