

/* 使用教程插件样式 */

.help-docs-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 10px auto;
    padding: 20px;
    gap: 30px;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
}

/* 移动端菜单切换按钮 */
.help-menu-toggle {
    display: none;
    position: fixed;
    top: 55px;
    left: 15px;
    z-index: 1001;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.help-menu-toggle:hover {
    background-color: #f5f5f5;
    border-color: #0b9f6e;
}

.help-menu-toggle-icon {
    font-size: 20px;
    line-height: 1;
    color: #333;
}

.help-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.help-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.help-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 90px; /* 20px 原有间距 + 70px 顶部导航栏高度 */
    height: fit-content;
    max-height: calc(100vh - 110px); /* 40px 原有间距 + 70px 顶部导航栏高度 */
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

/* 一级文档选择器样式 */
.help-top-level-selector {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.help-top-level-select {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
}

.help-top-level-select:hover {
    border-color: #0b9f6e;
}

.help-top-level-select:focus {
    outline: none;
    border-color: #0b9f6e;
    box-shadow: 0 0 0 2px rgba(11, 159, 110, 0.1);
}

.help-content {
    flex: 1;
    min-width: 0;
}

.help-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-menu li {
    margin: 0;
    padding: 0;
}

.help-menu > li > a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.help-menu > li > a:hover {
    background-color: #f5f5f5;
    border-left-color: #0b9f6e;
}

.help-menu > li > a.active {
    background-color: #f5f5f5;
    border-left-color: transparent;
    font-weight: 600;
    color: #0b9f6e;
}

/* 父级菜单项样式 - 一级文档现在和普通链接一样，不再需要特殊样式 */

.help-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
    display: none;
}

.help-menu > li.has-children.expanded > .help-submenu {
    display: block;
}

/* 支持三级、四级等更深层级的子菜单展开 */
.help-submenu-item.has-children.expanded > .help-submenu {
    display: block;
}

.help-submenu li {
    position: relative;
}

.help-submenu li a {
    display: block;
    padding: 10px 15px;
    padding-left: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

/* 有子菜单的项包装器 */
.help-menu-item-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.help-menu-item-wrapper > a {
    flex: 1;
    padding-right: 35px;
}

/* 展开/折叠按钮 - 有子文档的收起折叠（与分类区分） */
.help-submenu-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 159, 110, 0.1);
    border: 1px solid rgba(11, 159, 110, 0.2);
    border-radius: 3px;
    cursor: pointer;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b9f6e;
    font-size: 10px;
    transition: all 0.3s;
    z-index: 1;
    min-width: 20px;
    height: 20px;
}

.help-submenu-toggle:hover {
    background: rgba(11, 159, 110, 0.2);
    border-color: rgba(11, 159, 110, 0.4);
    color: #0a8f5f;
}

.help-submenu-toggle .help-submenu-arrow {
    display: inline-block;
    transition: transform 0.3s;
    line-height: 1;
}

.help-submenu-item.expanded .help-submenu-toggle {
    background: rgba(11, 159, 110, 0.2);
}

.help-submenu-item.expanded .help-submenu-toggle .help-submenu-arrow {
    transform: rotate(180deg);
}

.help-submenu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.help-submenu li a:hover {
    background-color: #f5f5f5;
}

/* 只有当前页面本身才激活，子文档不激活（除非子文档本身是当前页面） */
.help-submenu li.current > a,
.help-submenu li > a.active {
    background-color: rgba(11, 159, 110, 0.1);
    color: #0b9f6e;
    font-weight: 500;
}

.help-submenu li.current > a::before,
.help-submenu li > a.active::before {
    background-color: #0b9f6e;
}

/* 确保有子文档的项的链接可以正常激活，但子文档本身不继承激活样式 */
.help-submenu-item.current > .help-menu-item-wrapper > a.active,
.help-submenu-item.current:not(.has-children) > a.active {
    background-color: rgba(11, 159, 110, 0.1);
    color: #0b9f6e;
    font-weight: 500;
}

.help-submenu-item.current > .help-menu-item-wrapper > a.active::before,
.help-submenu-item.current:not(.has-children) > a.active::before {
    background-color: #0b9f6e;
}

/* 分类样式 - 加粗字体，类似小标题，默认展开，不支持收起折叠 */
.help-category-item {
    margin-bottom: 15px;
}

.help-category-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    padding: 12px 15px;
    padding-left: 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.help-category-posts {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    background-color: transparent;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    display: none;
}

.help-category-posts li {
    margin: 0;
    padding: 0;
}

.help-category-posts li a {
    display: block;
    padding: 10px 15px;
    padding-left: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.help-category-posts li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.help-category-posts li a:hover {
    background-color: #f5f5f5;
}

.help-category-posts li a.active {
    background-color: rgba(11, 159, 110, 0.1);
    color: #0b9f6e;
    font-weight: 500;
}

.help-category-posts li a.active::before {
    background-color: #0b9f6e;
}

.help-category-posts li.current a {
    background-color: rgba(11, 159, 110, 0.1);
    color: #0b9f6e;
    font-weight: 500;
}

.help-category-posts li.current a::before {
    background-color: #0b9f6e;
}

/* 子菜单中的分类样式 */
.help-categorized-submenu {
    background-color: transparent;
}

.help-categorized-submenu .help-category-item {
    margin-bottom: 0;
}

/* 分类样式已更新为标题样式，不再使用 toggle */

.breadcrumb {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 32px;
}

.breadcrumb-items li {
    display: flex;
    align-items: center;
}

.breadcrumb-items li:not(:last-child)::after {
    content: '›';
    margin: 0 10px;
    color: #999;
}

.breadcrumb-items a {
    color: #0b9f6e;
    text-decoration: none;
}

.breadcrumb-items a:hover {
    text-decoration: underline;
}

.breadcrumb-items .current {
    color: #333;
    font-weight: 500;
}

.help-article {
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.help-article h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.help-article h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.help-article h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #444;
}

.help-article p {
    font-size: 16px;
    margin-bottom: 24px;
    color: #555;
}

/* .help-article ul,
.help-article ol {
    margin-bottom: 24px;
    padding-left: 30px;
    font-size: 16px;
} */

/* .help-article li {
    margin-bottom: 16px;
    font-size: 16px;
} */

.help-article img {
    max-width: 100%;
    height: auto;
}

.help-article code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.help-article pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 16px;
}

.help-article pre code {
    background: none;
    padding: 0;
    font-size: 14px;
}

.wpcom-slider .slide-title {
  border-radius: 0 0 12px 12px;
}

.help-article .entry-content {
    font-size: 16px;
    line-height: 1.8;
}

.help-article .entry-content p {
    font-size: 16px;
    margin-bottom: 24px;
}

.help-article .entry-content ul,
.help-article .entry-content ol {
    font-size: 16px;
    margin-bottom: 24px;
}

.help-article-meta {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.help-article-meta > span {
    display: inline-flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.help-meta-label {
    color: #999;
    margin-right: 5px;
}

.help-article-author {
    display: inline-flex;
    align-items: center;
}

.help-author-link {
    color: #0b9f6e;
    text-decoration: none;
    transition: color 0.3s;
}

.help-author-link:hover {
    color: #6fceae;
    text-decoration: underline;
}

.help-article-date,
.help-article-modified {
    display: inline-flex;
    align-items: center;
    color: #666;
}

.help-article-date time,
.help-article-modified time {
    color: #666;
}


.help-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .help-docs-wrapper {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .help-menu-toggle {
        display: block;
    }
    
    .help-menu-overlay {
        display: block;
        pointer-events: none;
    }
    
    .help-menu-overlay.active {
        pointer-events: auto;
    }
    
    .help-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        background-color: #fff;
        z-index: 1000;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        overflow-y: auto;
        flex: none;
        max-height: 100vh;
    }
    
    .help-sidebar.active {
        transform: translateX(0);
    }
    
    .help-content {
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .help-article h1 {
        font-size: 24px;
    }
    
    .help-article h2 {
        font-size: 20px;
    }
    
    
    .help-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .help-article-meta > span {
        display: block;
    }
}


/* 分页样式 */
.help-article .wp-pagenavi,
.help-article .pagination {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.help-article .wp-pagenavi a,
.help-article .wp-pagenavi span,
.help-article .pagination a,
.help-article .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    color: #0b9f6e;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.help-article .wp-pagenavi a:hover,
.help-article .pagination a:hover {
    background-color: #6fceae;
    color: #fff;
    border-color: #6fceae;
}

.help-article .wp-pagenavi .current,
.help-article .pagination .current {
    background-color: #0b9f6e;
    color: #fff;
    border-color: #0b9f6e;
}

/* 归档页推广内容样式 */
.help-archive-promo {
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: none;
    margin-bottom: 20px;
}


/* 幻灯片和教程列表布局 */
.slider-wrap-inner {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* 左侧主卡片 - 固定620px */
.main-slider-card {
    flex: 0 0 620px;
    width: 620px;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.main-slider-card .main-slider-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.main-slider-card .main-slider-image {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.main-slider-card .main-slider-title-link {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
    text-decoration: none;
    display: block;
}

.main-slider-card .main-slider-title-link span {
    display: block;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-slider {
    margin-right: 20px;
}

/* 右侧教程列表 - 自适应剩余空间 */
.archive-feature-list {
    flex: 1;
    min-width: 0;
    margin: 0;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.archive-feature-list li {
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.archive-feature-list li a {
    display: block;
    position: relative;
}

.archive-feature-list li img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.archive-feature-list li .archive-feature-title-link {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
    text-decoration: none;
    display: block;
}

.archive-feature-list li .archive-feature-title-link span {
    display: block;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 移动端：当屏幕宽度小于1240px时，左右变为上下两行 */
@media (max-width: 1240px) {
    .slider-wrap-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-slider-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .main-slider {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .archive-feature-list {
        flex: 0 0 100%;
        width: 100%;
        margin-top: 0;
        flex-direction: row;
        gap: 10px;
    }
    
    .archive-feature-list li {
        flex: 0 0 calc(50% - 5px);
        width: calc(50% - 5px);
    }
}

/* 响应式设计 - 归档页推广内容 */
@media (max-width: 768px) {
    .help-archive-promo {
        padding: 0 20px;
    }
    
}

/* 响应式设计 - 归档页 */

/* 子文档列表样式 */
.help-list-section {
    margin-top: 30px;
}

.help-list-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list-tree .help-list-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.help-list-tree .help-list-item:last-child {
    border-bottom: none;
}

.help-list-tree .help-list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
    padding: 8px 0;
}

.help-list-tree .help-list-link:hover {
    color: #0b9f6e;
}

.help-list-tree .help-list-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.help-list-tree .help-list-date {
    color: #999;
    font-size: 14px;
    margin-left: 20px;
    white-space: nowrap;
}

/* 子级列表样式 */
.help-list-children {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 30px;
    border-left: 2px solid #eee;
    padding-left: 20px;
}

.help-list-children .help-list-item {
    padding: 8px 0;
}

.help-list-children .help-list-title {
    font-size: 15px;
}

.help-list-children .help-list-date {
    font-size: 13px;
}

/* 空状态 */
.help-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.help-empty p {
    margin: 0;
    font-size: 16px;
}

