/* static/css/help.css 完整内容 */

/* 帮助页面核心样式 */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

#header {
    width: 100%;
    height: 71px;
    margin-top: 10px;
}

.header {
    width: 80%;
    height: 51px;
    margin: 10px auto;
}

.header_left {
    width: 180px;
    height: 51px;
    float: left;
}

.header_right {
    width: 320px;
    height: 51px;
    float: right;
}

.header_right>div:first-child {
    float: left;
}

.header_right>div:nth-child(2) {
    float: left;
    padding: 15px 0px 10px 10px;
}

/* 左侧导航列表 */
.help-nav {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.help-nav h3 {
    font-size: 18px;
    color: #2c5aa0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.help-list {
    list-style: none;
}

.help-list li {
    margin-bottom: 10px;
}

.help-list a {
    display: block;
    padding: 12px 15px;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

/* 激活状态 */
.help-list a.active {
    background-color: #f0f7ff;
    color: #2c5aa0;
    font-weight: bold;
    border-left: 3px solid #4a89dc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-list a:hover:not(.active) {
    background-color: #f8f9fa;
    border-left: 3px solid #eee;
}

/* 右侧内容区域 */
.help-content {
    flex: 3;
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: 500px;
}

.content-item {
    display: none;
    /* 默认隐藏所有内容 */
}

/* 激活的内容显示 */
.content-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.content-item h4 {
    font-size: 20px;
    color: #2c5aa0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.content-item p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.content-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-item ul {
    margin: 15px 0 15px 30px;
}

.content-item li {
    margin-bottom: 8px;
}

.icon-wendaduihua:before {
    color: #D02C3D;
}

/* 图片+文字统一容器：自适应宽度+水平居中+整体背景 */
.img-text-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    /* 图片和文字间距 */
    background-color: #f8f9fa;
    /* 统一背景色 */
    padding: 12px 20px;
    /* 容器内边距 */
    border-radius: 6px;
    /* 圆角 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 阴影 */
    margin: 20px 0;
    /* 上下间距 */
    /* 关键：自适应内容宽度（不占满父容器） */
    width: fit-content;
    /* 兼容浏览器（可选，覆盖主流浏览器） */
    width: -webkit-fit-content;
    /* Safari/Chrome */
    width: -moz-fit-content;
    /* Firefox */
}

.img-text-wrap .icon {
    width: 40px;
    /* 和原 img 宽度一致 */
    height: 40px;
    /* 正方形图标 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 图标内部居中 */
    font-size: 20px;
    /* 图标大小（可调整） */
    color: #2c5aa0;
    /* 图标颜色（和帮助页面主题色一致） */
    background-color: #e8f4f8;
    /* 图标背景色（浅蓝，可选） */
    border-radius: 4px;
    /* 图标圆角 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* 轻微阴影 */
}

.img-text-wrap .text-content {
    color: #333;
    line-height: 1.5;
    text-indent: 0;
}

/* 响应式调整（帮助页面相关） */
@media (max-width: 768px) {
    .help-container {
        flex-direction: column;
    }

    .help-nav {
        min-width: 100%;
    }
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}