/* 帮助中心页面样式 */
.main {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* 顶部标题区域 */
.help-header {
    color: white;
    padding: 30px 0;
    height: 150px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 150px;
    background-image: url(/imgs/faq-banner.jpg);
    background-position: 50%;
    background-size: cover;
}

.help-header .help-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 auto;
    width: 1140px;
}

/* 内容容器 */
.help-content-container {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 0px 40px 0px;
    background-color: #fff;
}

/* 左侧导航栏 */
.help-sidebar {
    width: 250px;
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f5f5f5;
    transition: border-color 0.3s ease;
}

.search-box .search-input {
    flex: 1;
    padding: 8px 0 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    border: none;
    background-color: #f5f5f5;
}

.search-box .search-icon {
    color: #999;
    cursor: pointer;
    height: 34px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box .search-icon img{
    width: 16px;
    height: 16px;
}

.sidebar-menu {
    margin-top: 20px;
}

.menu-group {
    border-bottom: 1px solid #eee;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 16px;
    color: #212121;
    font-weight: 500;
}
.menu-item:hover {
    color: #ff6b00;
}

.menu-item .menu-item-name {
    flex: 1;
}

.menu-item .faq-arrow {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 20px;
   height: 22px;
   padding-left: 10px;
}

.arrow-icon {
    border: solid #999;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    border-color: #212121;
    transform: rotate(45deg);
}

.menu-item.active .arrow-icon {
    transform: rotate(-135deg);
}

.menu-item .submenu {
    display: none;
}

.menu-item.active .submenu{
    display: block;
}

.submenu-item {
    padding: 10px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
}

.submenu-item:hover {
    color: #ff6b00;
}

.submenu-item.active {
    color: #ff6b00;
}

/* 右侧内容区域 */
.help-content {
    flex: 1;
    margin-left: 60px;
}

.breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 40px;
}

.breadcrumb .breadcrumb-nav {
    color: #2073f9;
    text-decoration: none;
}

.breadcrumb .breadcrumb-arrow {
    margin: 0 5px;
}

.content-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.help-content .content-article {
    color: #212121;
    font-size: 14px;
    line-height: 2;
    word-wrap: break-word;      /* 允许长单词换行 */
    word-break: break-all;      /* 允许在任意字符间断行 */
    white-space: normal !important;  /* 强制正常换行，覆盖nowrap */
    overflow-wrap: break-word;  /* 在长单词或URL地址内部进行换行 */
}

/* 添加以下规则来覆盖富文本中可能的内联样式 */
.help-content .content-article * {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    text-wrap-mode: wrap !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .help-content-container {
        flex-direction: column;
    }
    
    .help-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .help-content {
        padding-left: 0;
    }
}

/* 错误提醒样式 ---start */
.faq-error {
    display: flex;
    align-items: center;
    padding: 50px 0;
    text-align: center;
    gap: 30px;
}

.faq-error-logo {
    margin-bottom: 20px;
}

.faq-error-logo img {
    width: 260px;
    height: auto;
}

.faq-error-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    text-align: left;
}

.faq-error-content div:first-child {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.faq-error-content a {
    color: #2073f9;
    text-decoration: none;
}

.faq-error-content a:hover {
    text-decoration: underline;
}
/* 错误提醒样式 ---end */

/* 推荐文章样式 - start */
.faq-recommend {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.recommend-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.faq-recommend-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.faq-recommend-item a{
    color: #212121;
    text-decoration: none;
}

.faq-recommend-item a:hover {
    color: #ff6b00;
}

.faq-recommend-item a .right-arrow-icon {
    border: solid #999;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(315deg);
    margin-right: 10px;
}

.faq-recommend-item a:hover .right-arrow-icon {
    border-color: #ff6b00;
}

.faq-recommend-item a span {
    font-size: 16px;
    line-height: 1.5;
}
/* 推荐文章样式 - end */