/* 帮助中心列表页样式（/help） */

body.help-page {
    background: radial-gradient(circle at top left, #f0f4ff 0%, #f7f8fc 40%, #eef1f8 100%);
    padding-top: 80px;
}

.page-hero-section {
    padding: 70px 0 45px;
    background: linear-gradient(135deg, #4f8df5 0%, #6c63ff 50%, #5b8def 100%);
    color: #fff;
    text-align: left;
}

.page-hero-section .page-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero-section .page-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.help-main {
    padding: 30px 0 50px;
}

.help-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* 左侧分类列表 */
.help-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-block {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header i {
    font-size: 18px;
    opacity: 0.95;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.sidebar-body {
    padding: 16px;
}

.cate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cate-item {
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
}

.cate-item:last-child {
    border-bottom: none;
}

.cate-link {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.cate-link:hover {
    background: #f7f8fc;
    padding-left: 8px;
    color: #667eea;
}

.cate-link.active {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.05);
    padding-left: 8px;
}

.cate-name {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

.cate-item-empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 右侧帮助列表区域 */
.help-list-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.help-filter {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.help-filter .layui-form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-item {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.help-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.help-item-content {
    padding: 20px;
}

.help-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.help-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-title a:hover {
    color: #667eea;
}

.help-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.help-meta i {
    font-size: 14px;
    margin-right: 4px;
}

.help-cate {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 12px;
    font-size: 12px;
}

.help-date {
    display: flex;
    align-items: center;
}

.help-content {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

.help-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 12px;
}

.help-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.help-empty i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.help-empty p {
    font-size: 14px;
    margin: 0;
}

/* 分页 */
.help-pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

/* ThinkPHP 默认分页样式 */
.help-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.help-pagination li {
    display: inline-block;
}

.help-pagination a,
.help-pagination span {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
    line-height: 1.5;
}

.help-pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.help-pagination .current,
.help-pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.help-pagination .disabled,
.help-pagination .disabled a {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.help-pagination .disabled:hover,
.help-pagination .disabled a:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

/* Layui 分页样式（如果使用） */
.help-pagination .layui-laypage {
    margin: 0;
    display: inline-block;
}

.help-pagination .layui-laypage a,
.help-pagination .layui-laypage span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
}

.help-pagination .layui-laypage a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.help-pagination .layui-laypage .layui-laypage-curr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.help-pagination .layui-laypage .layui-laypage-curr em {
    background: transparent;
    color: #fff;
    font-style: normal;
}

.help-pagination .layui-laypage .layui-laypage-prev,
.help-pagination .layui-laypage .layui-laypage-next {
    font-weight: 600;
}

.help-pagination .layui-laypage .layui-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.help-pagination .layui-laypage .layui-disabled:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        order: -1;
    }
}

