/* FAQ页面专用样式 */

/* FAQ Banner */
.faq-banner {
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.faq-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    background-size: 100px 100px;
    opacity: 0.3;
}

.faq-banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.faq-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq-banner p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.faq-banner .btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.faq-banner .btn:hover {
    background-color: transparent;
    color: white;
}

@media (max-width: 768px) {
    .faq-banner {
        height: 220px;
    }
    
    .faq-banner h1 {
        font-size: 2rem;
    }
    
    .faq-banner p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .faq-banner {
        height: 180px;
    }
    
    .faq-banner h1 {
        font-size: 1.6rem;
    }
    
    .faq-banner p {
        font-size: 0.9rem;
    }
}

/* 面包屑导航 */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--gray-color);
}

.breadcrumb li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb li a:hover {
    color: var(--primary-dark);
}

.breadcrumb li.active {
    color: var(--dark-color);
    font-weight: 600;
}

.breadcrumb li i {
    margin-right: 5px;
}

/* FAQ主体区域 */
.faq-section-hot, .faq-section-main {
    padding: 80px 0;
}
.faq-section-main{
	background-color: var(--light-gray);
}

.faq-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 热门问题区域 */
.faq-hot-section {
    margin-bottom: 30px;
}

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

.faq-hot-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.faq-hot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.faq-hot-item {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.faq-hot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.faq-hot-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.faq-hot-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.faq-hot-question h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    line-height: 1.4;
    margin: 0;
}

.faq-hot-answer {
    margin-bottom: 15px;
}

.faq-hot-answer p {
    font-size: 0.95rem;
    color: var(--gray-color);
    line-height: 1.7;
    margin: 0;
}

.faq-hot-link {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.faq-hot-link:hover {
    color: var(--primary-dark);
}

/* 分类导航标题 */
.faq-category-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-category-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.faq-category-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

@media (max-width: 992px) {
    .faq-hot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .faq-hot-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-hot-title {
        font-size: 1.6rem;
    }
}

/* FAQ头部 */
.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.faq-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* FAQ分类 */
.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

/* FAQ项目 */
.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--box-shadow-hover);
}

/* FAQ问题 */
.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: var(--transition);
}

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

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0;
    font-weight: 600;
    flex: 1;
    padding-right: 20px;
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

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

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

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 20px 25px;
    border-top: 1px solid var(--light-gray);
    background-color: #fafafa;
}

.faq-answer-content p {
    font-size: 1rem;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.faq-answer-content ul {
    list-style-type: disc;
}

.faq-answer-content ol {
    list-style-type: decimal;
}

.faq-answer-content li {
    font-size: 1rem;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 10px;
    list-style-position: outside;
}

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

/* FAQ CTA区域 */
.faq-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--box-shadow);
}

.faq-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
	color: var(--light-gray);
}

.faq-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.faq-cta .btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.faq-cta .btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 返回FAQ首页 */
.faq-back-link {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.faq-back-link a {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.faq-back-link a:hover {
    background-color: var(--primary-color);
    color: white;
}

.faq-back-link a i {
    margin-right: 8px;
}

/* 相关分类推荐 */
.faq-related {
    margin-top: 50px;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.faq-related h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.faq-related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.faq-related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.faq-related-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.faq-related-item i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.faq-related-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* FAQ导航首页样式 */
.faq-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-nav-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.faq-nav-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto 20px; */
	margin-bottom: 20px;
}

.faq-nav-card-icon i {
    font-size: 1.8rem;
    color: white;
}

.faq-nav-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
	transition: 300ms;
	/* text-align: center; */
}
.faq-nav-card:hover h3 {
    color: var(--primary-color);
}

.faq-nav-card p {
    font-size: 0.95rem;
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.faq-nav-card-count {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
	transition: 300ms;
}
.faq-nav-card:hover .faq-nav-card-count {
	background-color: var(--primary-color);
	color: var(--light-gray);
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .faq-container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .faq-container {
        max-width: 720px;
    }
    
    .faq-section-hot, .faq-section-main {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .faq-container {
        max-width: 540px;
    }
    
    .faq-section-hot, .faq-section-main {
        padding: 40px 0;
    }
    
    .faq-header h1 {
        font-size: 2rem;
    }
    
    .faq-header p {
        font-size: 1rem;
    }
    
    .faq-category h2 {
        font-size: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-answer-content {
        padding: 15px 20px;
    }
    
    .faq-answer-content p,
    .faq-answer-content li {
        font-size: 0.95rem;
    }
    
    .faq-cta {
        padding: 30px 20px;
    }
    
    .faq-cta h3 {
        font-size: 1.3rem;
    }
    
    .faq-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-section-hot, .faq-section-main {
        padding: 30px 0;
    }
    
    .faq-header h1 {
        font-size: 1.75rem;
    }
    
    .faq-category h2 {
        font-size: 1.3rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question .icon {
        font-size: 1.2rem;
    }
    
    .faq-cta .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
