/* layout-admonition.css */
:root {
        --admonition-highlights-infor-box-color:  white;/*#e7f2fa; linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);*/
        --admonition-highlights-infor-box-border-color: #e7f2fa;
    }

.resources,
.admonition-resources,
.github-c-source {
    border: 1px solid;
    background: var(--admonition-highlights-infor-box-color) !important;
    border-color: var(--admonition-highlights-infor-box-border-color);
    margin-top: 8px !important; /* 减小底部外边距 */
    margin-bottom: 8px !important; /* 减小底部外边距 */
    transition: all 0.3s ease;
}

.resources .admonition-title,
.admonition-resources .admonition-title,
.github-c-source .admonition-title {
    background: none;
    color: #3498db !important;
    margin: 10px 0 15px 0px !important; /* 上 右 下 左 */
    padding: 0;
    display: flex;
    align-items: left;

    padding-left: 25px; /* 添加左内边距，为图标留出空间 */
    position: relative; /* 为绝对定位的图标做准备 */
}

/* 不显示 github-c-source 的 admonition-title */
.github-c-source .admonition-title {
    display: none;
}

.resources .admonition-title::before,
.admonition-resources .admonition-title::before,
.github-c-source .admonition-title::before {
    color: #3498db; /* 蓝色图标 */

    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

.resources .admonition-title::before {
    content: "\f015"; /* Font Awesome home icon，您可以根据需要更改 */
}

.github-c-source .admonition-title::before {
    content: "\f121"; /* Font Awesome 'code' icon */
}

.resources p,
.github-c-source p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 0;
}

.resources ul,
.github-c-source ul {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 0;
    padding-left: 20px;
}

/* 特别为 resources/feature 类调整列表样式 */
.resources ul,
.github-c-source ul  {
    color: #34495e;
    list-style-type: none !important; /* 移除默认的列表样式 */

    line-height: 1.0 !important;
    margin-bottom: 0 !important;
    padding-left: 0px; /* 减小左侧内边距 */
    margin-left: 0px; /* 减小左侧外边距 */
}

.resources ul li,
.github-c-source ul li {
    position: relative;
    list-style: none !important; /* 确保在所有浏览器中移除列表样式 */

    line-height: 1.0 !important;
    margin-bottom: 0px !important; /* 增加列表项之间的间距 */
    padding-left: 0px; /* 减小列表项的左侧内边距 */
    padding-top: 0px; /* 添加少量顶部内边距 */
    padding-bottom: 0px; /* 添加少量底部内边距 */
}

.github-c-source ul li a {
    display: inline-block; /* 使链接成为行内块元素 */
    vertical-align: middle; /* 垂直居中 */
}

.resources ul li::before,
.github-c-source ul li::before {
    content: "•" !important;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* 微调垂直位置 */
    color: #3498db !important;
    left: -20px; /* 将图标向左移动 */
}

.disabled-link {
    color: #999;  /* 使文本颜色变浅 */
    cursor: default;  /* 将鼠标指针设置为默认 */
    pointer-events: none;  /* 禁用鼠标事件 */
    text-decoration: none;  /* 移除下划线 */
}

.sphinx-tabs {
    margin-top: 30px;
}