/* FAQ页面样式 */
/* 动态背景 */
body {
    background: transparent; /* 移除固定背景，让动态背景显示 */
    position: relative;
    overflow-x: hidden;
    color: var(--text-color);
}

/* 移除重复的CSS变量定义，直接使用统一变量 */
/* FAQ页面样式 */
/* 动态背景 */
body {
    background: transparent; /* 移除固定背景，让动态背景显示 */
    position: relative;
    overflow-x: hidden;
    color: var(--text-color);
}


/* 移除页面特定的背景和粒子定义，使用统一背景系统 */

/* 修复页面头部样式 */
.page-header {
    padding: clamp(120px, 15vh, 140px) 0 clamp(30px, 5vh, 40px);
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin-bottom: clamp(15px, 3vh, 20px);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    line-height: 1.2;
}

.page-description {
    max-width: min(800px, 90vw);
    margin: 0 auto clamp(25px, 4vh, 40px);
    color: var(--text-color);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(12px, 2vh, 15px) clamp(15px, 3vw, 20px);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: clamp(20px, 4vh, 30px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(6px, 1.5vh, 8px) clamp(12px, 2.5vw, 15px);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.back-btn:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 1);
}

.faq-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.search-container {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: 3px solid var(--primary-color);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    background: white;
}

.search-btn {
    padding: 15px 20px;
    border-radius: 50px;
    background: var(--primary-color);
    border: 3px solid var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.search-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: 3px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.faq-list {
    margin: 40px 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(52, 152, 219, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.25);
    border-left: 6px solid var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.faq-item.active .faq-question {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px 12px 0 0;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
    font-weight: 700;
}

/* 添加展开时的内容淡入效果 */
.faq-item.active .faq-answer {
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加问题项的微妙阴影变化 */
.faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px 12px 0 0;
    position: relative;
    outline: none;
}

.faq-question:hover {
    background: rgba(33, 150, 243, 0.08);
    transform: translateY(-1px);
}

.faq-question:focus {
    background: rgba(33, 150, 243, 0.1);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
}

.faq-question:active {
    transform: translateY(0);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question h3 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.faq-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    outline: none;
}

.faq-toggle:hover {
    background: rgba(33, 150, 243, 0.15);
    transform: scale(1.1);
}

.faq-toggle:focus {
    background: rgba(33, 150, 243, 0.2);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
}

.faq-toggle:active {
    transform: scale(0.95);
}

.faq-toggle i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 25px;
    color: var(--text-light);
    line-height: 1.7;
    display: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 12px 12px;
}

.faq-item.active .faq-answer {
    transform: translateY(0);
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ol,
.faq-answer ul {
    padding-left: 20px;
    margin: 15px 0;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer strong {
    color: var(--text-color);
    font-weight: 600;
}

.faq-answer code {
    background: rgba(52, 152, 219, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.faq-footer {
    margin-top: 60px;
    text-align: center;
}

.faq-help {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.faq-help h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.faq-help p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.help-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.help-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input,
    .search-btn {
        width: 100%;
    }
    
    .faq-categories {
        justify-content: flex-start;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-help {
        padding: 25px 20px;
    }
    
    .help-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .help-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}