/* FAQ模块样式 - 匹配现有网站风格 */
.xgn-faq-section {
    background: #f8f9fa;
    padding: 60px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.xgn-faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.xgn-faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.xgn-faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    display: inline-block;
    padding-bottom: 15px;
}



.xgn-faq-header p {
    font-size: 16px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* 手风琴面板 */
.xgn-accordion {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.xgn-accordion-item {
    border-bottom: 1px solid #eef2f6;
}

.xgn-accordion-item:last-child {
    border-bottom: none;
}

.xgn-accordion-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.xgn-accordion-question:hover {
    background: #f8f9fe;
    color: #0066cc;
}

.xgn-accordion-question.active {
    color: #0066cc;
    background: #f8f9fe;
}

.xgn-accordion-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #0066cc;
}

.xgn-accordion-question.active .xgn-accordion-icon {
    transform: rotate(180deg);
}

.xgn-accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #ffffff;
    border-top: 0px solid #eef2f6;
}

.xgn-accordion-answer.active {
    max-height: 300px;
    border-top-width: 1px;
}

.xgn-accordion-content {
    padding: 0 25px 25px 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
}

.xgn-accordion-content p {
    margin-bottom: 12px;
}

.xgn-accordion-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.xgn-accordion-content li {
    margin-bottom: 6px;
}

.xgn-faq-footer {
    text-align: center;
    margin-top: 40px;
}

.xgn-faq-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.xgn-faq-footer a:hover {
    gap: 12px;
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .xgn-faq-section {
        padding: 40px 0;
    }
    .xgn-accordion-question {
        padding: 16px 20px;
        font-size: 16px;
    }
    .xgn-accordion-content {
        padding: 0 20px 20px 20px;
        font-size: 14px;
    }
}


/* 相关博客模块样式 - Grid布局，PC端一行4个，左对齐 */
.xgn-blog-section {
    padding: 60px 0;
    background: #ffffff;
}

.xgn-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.xgn-blog-header {
    text-align: center;      /* 左对齐，去居中 */
    margin-bottom: 40px;
}

.xgn-blog-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    display: inline-block;
    padding-bottom: 15px;
}





/* 使用Grid实现一行4个 */
.xgn-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* 固定4列 */
    gap: 30px;
    margin-bottom: 40px;
}

/* 卡片样式 */
.xgn-blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
}

.xgn-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #0066cc20;
}

/* 图片区域 - img标签 */
.xgn-blog-image {
    width: 100%;
    height: 180px;
    background-color: #f0f2f5; /* 加载占位色 */
    overflow: hidden;
}

.xgn-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.xgn-blog-card:hover .xgn-blog-image img {
    transform: scale(1.03);
}

/* 卡片内容 - 无category标签 */
.xgn-blog-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 20px 20px 12px 20px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.xgn-blog-card:hover .xgn-blog-title {
    color: #0066cc;
}

.xgn-blog-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0 20px 20px 20px;
    flex: 1;  /* 保持卡片高度一致 */
}

/* 底部meta信息 */
.xgn-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
    border-top: 1px solid #eef2f6;
    margin-top: 0;
    padding-top: 16px;
    font-size: 13px;
    color: #adb5bd;
}

.xgn-blog-readmore {
    color: #0066cc;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.xgn-blog-card:hover .xgn-blog-readmore {
    gap: 10px;
}

/* 底部 View All 按钮 */
.xgn-blog-footer {
    text-align: center;      /* 左对齐 */
    margin-top: 20px;
}

.xgn-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #0066cc;
    color: #0066cc;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.xgn-blog-btn:hover {
    background: #0066cc;
    color: #ffffff;
    gap: 15px;
}

/* 响应式：平板和手机端自动调整列数 */
@media (max-width: 1024px) {
    .xgn-blog-grid {
        grid-template-columns: repeat(2, 1fr);  /* 平板2列 */
    }
}

@media (max-width: 640px) {
    .xgn-blog-grid {
        grid-template-columns: 1fr;             /* 手机1列 */
    }
    .xgn-blog-section {
        padding: 40px 0;
    }
    .xgn-blog-card {
        max-width: 100%;
    }
}