/* 帮助中心页面样式 */
.help-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.help-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-size: 2rem;
}

.help-search {
    display: flex;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#helpSearchInput {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

#helpSearchBtn {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

#helpSearchBtn:hover {
    background-color: var(--primary-color-dark);
}

/* 桌面版网格 */
.help-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    margin: 0 -15px;
    padding: 0 15px;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.help-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.help-card {
    min-width: 280px;
    max-width: 85vw;
    width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.help-card.highlighted {
    border-color: var(--primary-color);
}

.help-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.help-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.help-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.help-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.help-link:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.help-link:hover:after {
    transform: translateX(5px);
}

.help-section {
    margin-bottom: 60px;
}

.help-section h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.5rem;
}

.help-video {
    margin-bottom: 30px;
}

.video-placeholder {
    background-color: #f5f5f5;
    border-radius: var(--border-radius-md);
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background-color: #eaeaea;
}

.video-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 -10px;
}

.help-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
}

.step-number {
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.help-contact {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.help-contact h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.help-contact p {
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: white;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
}

/* 滑动指示器样式 */
.swipe-indicator {
    text-align: center;
    padding: 10px;
    margin: 20px auto;
    background-color: rgba(196, 144, 236, 0.1);
    border-radius: 8px;
    max-width: 90%;
    font-size: 0.9rem;
    color: #a159e3;
    display: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* FAQ页面样式 */
.faq-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.faq-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    font-size: 2rem;
}

.faq-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-category h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    background-color: var(--bg-card);
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: #fff;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.faq-question.active:after {
    content: '-';
    transform: rotate(180deg);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--bg-light);
    line-height: 1.6;
    color: var(--text-light);
}

.faq-question.active + .faq-answer {
    padding: 15px 20px;
}

.still-have-questions {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--border-radius-lg);
}

.still-have-questions h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.still-have-questions p {
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-support-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-support-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.3);
}

/* FAQ分类样式 */
.faq-category {
    display: block;  /* 改为默认显示 */
    margin-bottom: 40px;
    opacity: 1;  /* 确保可见 */
}

.faq-category.active {
    animation: fadeIn 0.5s;
}

/* 如果需要隐藏非激活分类 */
.faq-category.hidden {
    display: none;
}

/* FAQ标签导航 */
.faq-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9e9e9;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.faq-tab {
    padding: 12px 24px;
    margin-right: 5px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: #f9f9f9;
    border: 1px solid #e9e9e9;
    user-select: none;
}

.faq-tab:hover {
    background: rgba(196, 144, 236, 0.1);
    border-color: #c490ec;
}

.faq-tab.active {
    background: #c490ec;
    color: white;
    border-color: #c490ec;
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 通用样式调整 */
    .help-title, .faq-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .help-search {
        flex-direction: column;
        gap: 10px;
    }
    
    #helpSearchInput {
        border-radius: 5px;
    }
    
    #helpSearchBtn {
        border-radius: 5px;
    }
    
    /* 帮助卡片滑动窗口 */
    .help-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        margin: 0 -15px;
        padding: 0 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .help-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .help-card {
        min-width: 260px;
        max-width: 80vw;
        width: 260px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    
    .swipe-indicator {
        display: block;
    }
    
    /* FAQ标签导航移动优化 */
    .faq-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 15px;
        scrollbar-width: none;
    }
    
    .faq-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .faq-tab {
        flex: 0 0 auto;
    }
    
    /* 常见问题分类调整 */
    .faq-categories {
        padding: 0 15px;
    }
    
    /* 调整问题和回答的间距 */
    .faq-item {
        margin-bottom: 15px;
    }

    .faq-question {
        padding: 15px;
    }
    
    .faq-answer {
        padding: 0 15px 15px;
    }
    
    .video-placeholder {
        height: 180px;
    }
    
    .help-section h2, .faq-category h2 {
        font-size: 1.3rem;
    }
    
    /* 联系方式调整 */
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method {
        width: 100%;
    }
    
    .still-have-questions {
        padding: 25px 15px;
    }
    
    .contact-support-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* 新手步骤调整 */
    .help-steps {
        margin: 0 -10px;
    }
    
    .help-step {
        padding: 15px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        font-size: 1rem;
    }
    
    .help-card h3 {
        font-size: 1.1rem;
    }
    
    .help-card p {
        font-size: 0.9rem;
    }
}

/* 额外的触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .help-card {
        min-width: 250px;
        max-width: 75vw;
        width: 250px;
    }
    
    .help-link {
        padding: 8px 0;
    }
    
    .faq-question {
        -webkit-tap-highlight-color: transparent;
    }
    
    .video-placeholder {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
} 
