/* CSS变量定义 */
:root {
    --primary-color: #8a2be2;
    --secondary-color: #9370db;
    --accent-color: #ba55d3;
    --text-primary: #333;
    --text-secondary: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* 帮助中心整体布局 */
.tutorial-content {
    min-height: calc(100vh - 140px); /* 减去头部和底部高度 */
    padding-bottom: 60px; /* 为底部导航留出足够空间 */
}

/* 帮助中心头部样式 */
.help-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.help-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.question-icon {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: var(--white);
}

/* 指南选择区域 */
.guide-selection {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* 问题分类列表 */
.question-categories {
    margin-top: 30px;
}

.category-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item.active .category-header {
    background-color: rgba(138, 43, 226, 0.1);
    border-left: 4px solid var(--primary-color);
}

.category-header:hover {
    background-color: rgba(138, 43, 226, 0.05);
}

.platform-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

/* 平台图标样式 */
.apple-icon {
    background-color: #000;
}

.twitter-icon {
    background-color: #1da1f2;
}

.google-icon {
    background-color: #ea4335;
}

.tiktok-icon {
    background-color: #000;
}

.facebook-icon {
    background-color: #4267b2;
}

.ins-icon {
    background-color: #c13584;
}

.youtube-icon {
    background-color: #ff0000;
}

.category-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-icon {
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-item.active .dropdown-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* FAQ列表样式 */
.category-content {
    background-color: var(--white);
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: none; /* 默认隐藏所有内容 */
}

/* 只在分类项激活时显示内容 */
.category-item.active .category-content {
    display: block;
}

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

.faq-list li {
    margin-bottom: 10px;
}

.faq-list li:last-child {
    margin-bottom: 0;
}

.faq-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background-color: rgba(138, 43, 226, 0.05);
}

.faq-list li a:hover {
    background-color: rgba(138, 43, 226, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 底部导航样式 */
.site-footer {
    background-color: #fff;
    padding: 15px 0;
    border-top: 1px solid #eaeaea;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
}

.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #007bff;
}

.nav-item.active {
    color: #007bff;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    position: relative;
    display: block;
    object-fit: contain;
}

.nav-item span {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .help-title {
        font-size: 24px;
    }
    
    .help-subtitle {
        font-size: 14px;
    }
    
    .question-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        right: 20px;
    }
    
    .guide-selection {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .category-header {
        padding: 12px 15px;
    }
    
    .category-title {
        font-size: 14px;
    }
    
    .platform-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .category-content {
        padding: 12px 15px;
    }
    
    .faq-list li a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .help-header {
        padding: 30px 15px;
    }
    
    .question-icon {
        display: none;
    }
    
    .help-title {
        font-size: 22px;
    }
    
    .category-item {
        margin-bottom: 10px;
    }
    
    .category-header {
        padding: 10px 12px;
    }
    
    .category-title {
        font-size: 13px;
    }
}