/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 页面整体样式 */
body {
  background: rgba(140, 0, 0, 0.05);
  min-height: 100vh;
  padding-bottom: 160px;
  color: #333;
  line-height: 1.6;
  transform-origin: 0 0;
  overflow-x: hidden;
}

/* 横幅区域 */
.banner {
  width: 100%;
  height: 400px;
  background-image: url("../images/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Logo样式 */
.logo {
  position: absolute;
  width: 400px;
  height: 50px;
  left: 160px;
  top: 40px;
}

.xx {
  position: absolute;
  width: 291px;
  height: 70px;
  right: 182px;
  top: 29px;
}

/* 内容区域 */
.content {
  width: 80%;
  min-height: 100vh;
  padding: 39px 50px 53px 50px;
  background-color: #fff;
  margin: 0 auto;
  position: relative;
  top: -120px;
}

.content-title {
  width: 100%;
  border-bottom: 1px dashed #e0e0e0;
  padding: 0 12% 40px 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.3;
  color: #8c0000;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.content-title .content-title-left {
  width: 30%;
  width: 30%;
  flex-shrink: 0;
  margin-right: 4%;
}
.content-title-text {
  text-align: center;
  width: 100%;
}
.content-bor {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 27px;
  padding: 0 12% 0 8px;
}

.content-bor-left {
  width: 30%;
  flex-shrink: 0;
  margin-right: 4%;
}

.content-bor-right {
  width: 100%;
}

.content-bor-right-title {
  width: 100%;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.8;
  color: #000;
  margin-bottom: 14px;
}

.content-bor-right-content {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.8;
  color: #222;
}

/* 目录样式优化 */
.directory {
  list-style: none;
  padding-left: 0;
}

.directory-item {
  margin-bottom: 8px;
}

.directory-item-p {
  margin-bottom: 28px;
}

.item-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-header:hover {
  opacity: 0.8;
}

.item-header.active {
  opacity: 0.8;
}

.item-header-p {
  justify-content: flex-start !important;
}

.item-header-p .item-content {
  margin-right: 23px;
}

.toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.toggle-icon.rotated img {
  transform: rotate(180deg);
}

/* .item-content {
  flex-grow: 1;
  word-break: break-word;
  overflow-wrap: break-word;
} */

/* 层级样式优化 */
.level-1 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #000;
}

.level-1.special {
  color: #d93025;
}

.level-2 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
}

.level-2.special {
  color: #d93025;
}

.level-3 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  padding-left: 18px;
}

.level-3.special {
  color: #d93025;
}

.level-4 {
  font-size: 14px;
  color: #555;
  padding-left: 72px;
}

/* 子项展开/折叠效果 */
.children {
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease;
  max-height: 0;
  opacity: 0;
}

.children.expanded {
  max-height: 2000px;
  opacity: 1;
}

.expanded .directory-item:first-child {
  margin-top: 10px;
}
