/* FAQ页面样式 */

/* 顶部横幅 */
.faq-hero {
    position: relative;
    padding: 40px 0;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 100%;
}

.faq-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.faq-hero-title {
    font-size: 2rem;
}

.faq-hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}

/* FAQ内容区域 */
.faq-content {
    padding: 20px 0;
    width: 100%;
    max-width: 100%;
}

/* 侧边栏 */
.faq-sidebar {
    background-color: var(--bs-gray-100);
    padding: 10px;
    border-radius: 8px;
    position: sticky;
    top: 30px;
}

.faq-sidebar-title {
    margin-bottom: 30px;
    font-size: 1.3rem;
    color: var(--bs-dark);
}

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

.faq-nav-item {
    margin-bottom: 10px;
}

.faq-nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--bs-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-nav-link:hover {
     color: var(--button-color);
    border-color: var(--button-color);
}

.faq-nav-link.active {
  color: white;
    border-color: var(--button-color);
    background-color: var(--button-color);
}

/* 右侧内容区域 */
.faq-category {
    margin-bottom: 60px;
    display: none;
}

.faq-category.active {
    display: block;
}

.faq-category-title {
   font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--bs-dark);
}

.faq-category-description {
    margin-bottom: 30px;
    color: var(--bs-gray-700);
}

/* 问答项 */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    border: 1px solid var(--bs-gray-300);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--button-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: var(--bs-gray-100);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.faq-question:hover {
    background-color: var(--bs-gray-200);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--bs-dark);
    flex: 1;
    padding-right: 15px;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--button-color);
    font-size: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding:10px 20px;
}

.faq-answer p {
    margin: 0;
    color: var(--bs-gray-700);
    line-height: 1.6;
}

/* 联系模块 */
.faq-contact {
    padding: 60px 0;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.faq-contact-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.faq-contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.faq-contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.faq-contact-title {
    font-size: 2.1rem;
}

.faq-contact-description {
   font-size: 1.2rem;
    max-width: 100%;
    margin: 0 auto 30px;
}

.faq-contact-button {
   display: inline-block;
    padding: 10px 15px;
    background-color: var(--button-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    line-height: 1.5;
    font-weight: 600;
}

.faq-contact-button:hover {
    background-color: var(--button-color);
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-hero-title {
        font-size: 2rem;
    }
    
    .faq-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .faq-category-title {
        font-size: 1.5rem;
    }
    
    .faq-contact-title {
        font-size: 2rem;
    }
}
