/* 帮助中心 / 教程页样式 - 设计变量见 css/theme.css */

.tutorial-content {
    min-height: calc(100vh - var(--header-h));
    padding-bottom: calc(var(--footer-h) + 24px);
}

/* 帮助中心头部 */
.help-header {
    position: relative;
    overflow: hidden;
    padding: 34px 20px 30px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.help-header::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.help-title {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.help-subtitle {
    position: relative;
    z-index: 1;
    font-size: 14px;
    opacity: 0.92;
    margin-bottom: 0;
}

.question-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* 指南选择区域 */
.guide-selection {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 14px 0;
}

/* 教程搜索 */
.faq-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--t3);
    box-shadow: var(--sh-1);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(59, 108, 255, 0.12);
    color: var(--brand);
}

.faq-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--t1);
}

.faq-search input::placeholder {
    color: var(--t3);
}

.faq-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.faq-tip {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--t3);
}

.faq-tip span {
    color: var(--brand);
    font-weight: 700;
}

/* 问题分类列表 */
.question-categories {
    margin-top: 14px;
}

.category-item {
    margin-bottom: 10px;
    border-radius: var(--r-lg);
    background: var(--card);
    box-shadow: var(--sh-1);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.category-header:hover {
    background: #fafbfe;
}

.category-item.active .category-header {
    background: linear-gradient(135deg, rgba(59, 108, 255, 0.1), rgba(107, 77, 255, 0.04));
}

/* 分类首字母头像 */
.platform-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-right: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 3px 8px rgba(31, 36, 48, 0.16);
}

.av-0 { background: linear-gradient(135deg, #3b6cff, #6b4dff); }
.av-1 { background: linear-gradient(135deg, #00c2ff, #3b6cff); }
.av-2 { background: linear-gradient(135deg, #7c5cff, #c46bff); }
.av-3 { background: linear-gradient(135deg, #ff7a45, #ff3b5c); }
.av-4 { background: linear-gradient(135deg, #00c48c, #00a3a3); }
.av-5 { background: linear-gradient(135deg, #ffb020, #ff7a45); }
.av-6 { background: linear-gradient(135deg, #5b8def, #7c5cff); }
.av-7 { background: linear-gradient(135deg, #ff5c8a, #c46bff); }

.category-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--t1);
}

.category-count {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.dropdown-icon {
    flex: 0 0 auto;
    color: var(--t3);
    font-size: 11px;
    transition: transform 0.3s ease, color 0.25s ease;
}

.category-item.active .dropdown-icon {
    transform: rotate(180deg);
    color: var(--brand);
}

/* FAQ列表 */
.category-content {
    padding: 4px 16px 14px;
    border-top: 1px solid var(--line);
    display: none;
}

.category-item.active .category-content {
    display: block;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    margin-bottom: 2px;
}

.faq-list li:last-child {
    margin-bottom: 0;
}

.faq-list li a {
    position: relative;
    display: block;
    padding: 11px 30px 11px 12px;
    border-radius: var(--r-sm);
    color: var(--t2);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.faq-list li a::after {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--t3);
}

.faq-list li a:hover {
    background: var(--brand-soft);
    color: var(--brand);
    transform: translateX(3px);
}

/* 搜索无结果 */
.faq-empty {
    padding: 34px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--t3);
    background: var(--card);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
}

/* 响应式设计 */
@media (max-width: 767px) {
    .help-header {
        padding: 26px 16px 24px;
    }

    .help-title {
        font-size: 20px;
    }

    .help-subtitle {
        font-size: 13px;
    }

    .question-icon {
        left: 12px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .guide-selection {
        padding: 14px 12px 0;
    }

    .category-header {
        padding: 12px 14px;
    }

    .category-title {
        font-size: 14px;
    }

    .category-content {
        padding: 4px 14px 12px;
    }

    .faq-list li a {
        padding: 10px 28px 10px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .question-icon {
        display: none;
    }

    .help-header {
        padding: 22px 14px 20px;
    }

    .help-title {
        font-size: 18px;
    }

    .category-item {
        margin-bottom: 8px;
    }
}
