.wy-nav-content {
    max-width: 70% !important;
}

/* 修改标题的颜色 */
.wy-side-nav-search .wy-dropdown > a,
.wy-side-nav-search > a {
    color: #595959 !important; 
}

/* 修改侧边栏Logo图片的大小 */
.wy-side-nav-search .logo {
    max-width: 180px !important;
}

/* 修改 toctree 的 caption（如“目录”）颜色 */
.wy-menu-vertical .caption-text {
    color: #d80c1e !important; /* 将 #ff0000 替换为你想要的颜色 */
}

/* 1. 侧边栏整体背景色（左侧导航栏的深色区域） */
.wy-nav-side {
    background-color: #ededed !important;
}

/* 2. 侧边栏顶部区域（包含Logo、标题和搜索框）的背景色 */
.wy-side-nav-search {
    background-color: #ededed !important; 
}

/* 3. 侧边栏文本颜色（一级、二级目录文字） */
.wy-menu-vertical a {
    color: #595959 !important; 
}

/* 4. 侧边栏链接悬停/激活时的颜色 */
.wy-menu-vertical a:hover,
.wy-menu-vertical a:active {
    background-color: #d80c1e !important; 
    color: #ffffff !important;
}

/* 5. 侧边栏当前激活页面的链接颜色（高亮） */
.wy-menu-vertical li.current a {
    color: #595959 !important; /* 激活状态的文字颜色 */
    background-color: #dbdbdb !important; /* 激活状态的背景色 */
}

/* 技术规格页表格：红色表头、0.5pt 灰色全框线。 */
table.tech-spec-table {
    border-collapse: collapse !important;
}

table.tech-spec-table th,
table.tech-spec-table td {
    border: 0.5pt solid #d9d9d9 !important;
}

table.tech-spec-table thead th {
    background-color: #ee0000 !important;
    color: #ffffff !important;
}

/* 表头维持普通字重；颜色和边框仍沿用项目样式。 */
.rst-content table.docutils thead th,
.rst-content table.docutils thead th strong {
    font-weight: 400 !important;
}

/* 表格名称行横跨全表并居中；HTML 仍保持普通字重。 */
.rst-content table.docutils .script-table-title {
    text-align: center !important;
    font-weight: 400 !important;
}

/* 代码使用独立浅灰底块，并允许长行换行。 */
.rst-content div.highlight,
.rst-content pre.literal-block {
    background: #f2f2f2 !important;
    border: 1px solid #dedede !important;
    border-radius: 3px;
}

.rst-content div.highlight pre,
.rst-content pre.literal-block {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
/* HTML sidebar resource download button below the search field. */
.wy-side-nav-search > .pdf-download-button {
  align-items: center;
  background: rgb(216, 12, 30);
  border: 1px solid rgb(216, 12, 30);
  border-radius: 4px;
  color: #fff !important;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 0.5em;
  justify-content: center;
  margin: 0.8em 0.8em 0;
  padding: 0.65em 1em;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.wy-side-nav-search > .pdf-download-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.wy-side-nav-search > .pdf-download-button:hover,
.wy-side-nav-search > .pdf-download-button:focus {
  background: #bd0010;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* 返回统一文档主页。 */
.wy-nav-side > .home-return-button {
  align-items: center;
  background: #fff;
  border: 1px solid rgb(216, 12, 30);
  border-radius: 4px;
  bottom: 14px;
  box-sizing: border-box;
  color: rgb(216, 12, 30) !important;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 0.5em;
  justify-content: center;
  left: 12px;
  margin: 0;
  padding: 0.65em 1em;
  position: fixed;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  width: 276px;
  z-index: 400;
}

.wy-nav-side > .home-return-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.wy-nav-side > .home-return-button:hover,
.wy-nav-side > .home-return-button:focus {
  background: #fff3f4;
  color: rgb(181, 8, 23) !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.wy-menu-vertical {
  padding-bottom: 72px;
}
