/* 帮助中心页面专属样式 */
.mgsp-help-layout {
    position: relative;
    min-height: 100vh;
}

/* 搜索框 */
.mgsp-search-box {
    transition: all 0.3s ease;
}

.mgsp-search-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.3);
}

.mgsp-search-box input:focus {
    outline: none;
}

.mgsp-search-box input:focus + button {
    transform: scale(1.05);
}

/* 帮助分类卡片 */
.mgsp-category-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mgsp-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1.5rem;
}

.mgsp-category-card:hover::before {
    opacity: 1;
}

.mgsp-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mgsp-category-icon {
    transition: all 0.3s ease;
}

.mgsp-category-card:hover .mgsp-category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 分类列表项 */
.mgsp-category-card ul li {
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.mgsp-category-card ul li:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateX(5px);
}

/* FAQ部分 */
.mgsp-faq-item {
    transition: all 0.3s ease;
}

.mgsp-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mgsp-faq-question {
    transition: all 0.3s ease;
}

.mgsp-faq-question:hover {
    color: #f97316;
}

.mgsp-faq-question i {
    transition: transform 0.3s ease;
}

.mgsp-faq-question.active i {
    transform: rotate(180deg);
}

/* FAQ答案动画 */
.mgsp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mgsp-faq-answer.show {
    max-height: 1000px;
}

.mgsp-faq-answer h4 {
    position: relative;
}

.mgsp-faq-answer h4::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* 联系卡片 */
.mgsp-contact-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mgsp-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.mgsp-contact-item:hover::before {
    left: 100%;
}

.mgsp-contact-item:hover {
    transform: translateY(-5px);
}

.mgsp-contact-item > div:first-child {
    transition: all 0.3s ease;
}

.mgsp-contact-item:hover > div:first-child {
    transform: scale(1.1);
}

/* 反馈表单 */
.mgsp-support-form {
    transition: all 0.3s ease;
}

.mgsp-support-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.mgsp-support-form input,
.mgsp-support-form select,
.mgsp-support-form textarea {
    transition: all 0.3s ease;
}

.mgsp-support-form input:focus,
.mgsp-support-form select:focus,
.mgsp-support-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

/* 提交按钮效果 */
.mgsp-support-form button {
    position: relative;
    overflow: hidden;
}

.mgsp-support-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mgsp-support-form button:hover::before {
    left: 100%;
}

/* 分类卡片动画序列 */
.mgsp-categories-grid > div {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpCategory 0.6s ease forwards;
}

.mgsp-categories-grid > div:nth-child(1) { animation-delay: 0.1s; }
.mgsp-categories-grid > div:nth-child(2) { animation-delay: 0.2s; }
.mgsp-categories-grid > div:nth-child(3) { animation-delay: 0.3s; }
.mgsp-categories-grid > div:nth-child(4) { animation-delay: 0.4s; }
.mgsp-categories-grid > div:nth-child(5) { animation-delay: 0.5s; }
.mgsp-categories-grid > div:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUpCategory {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ项目动画序列 */
.mgsp-faq-list > div {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeftFaq 0.6s ease forwards;
}

.mgsp-faq-list > div:nth-child(1) { animation-delay: 0.1s; }
.mgsp-faq-list > div:nth-child(2) { animation-delay: 0.2s; }
.mgsp-faq-list > div:nth-child(3) { animation-delay: 0.3s; }
.mgsp-faq-list > div:nth-child(4) { animation-delay: 0.4s; }
.mgsp-faq-list > div:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeftFaq {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 特殊文本效果 */
.mgsp-contact-item div:last-child div:first-child {
    font-weight: 600;
    background: linear-gradient(45deg, #f97316, #ef4444);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mgsp-category-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .mgsp-search-box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mgsp-search-box input {
        text-align: center;
    }
    
    .mgsp-faq-question h3 {
        font-size: 1.125rem;
    }
}