/* ===== FAQ 样式 ===== */
.faq_block_item {
    margin: 15px 0;
}

.faq_block_item_question {
    cursor: pointer;
    color: #000;
    padding-left: 10px;
    border-left: 4px solid #d5f469;
    font-weight: bold;
}

.faq_block_item_answer {
    display: none;
    margin-top: 5px;
    font-size: 14px;
    padding-left: 14px;
}

.faq_block_item:first-child .faq_block_item_answer {
    display: block;
}

.fm-accordion {
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}
.fm-accordion-item:last-child {
    border-bottom: none;
}
.fm-accordion-header {
    padding: 5px 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}
.fm-accordion-item.active .fm-accordion-header {
    border-bottom: 1px solid #eee;
}
.fm-accordion-title {
    font-weight: 500;
    color: #333;
}
.fm-accordion-icon {
    width: 20px;
    font-size: 0px;
    transition: transform 0.3s ease;
    transform: rotate(90deg);
}
.fm-accordion-item.active .fm-accordion-icon {
    transform: rotate(180deg);
}
.fm-accordion-content {
    padding: 5px;
    background: #fff;
    display: none;
    line-height: 1.6;
    color: #555;
}
.fm-accordion-content p {
    margin: 0 0 10px;
}
.fm-accordion-content p:last-child {
    margin-bottom: 0;
}

/* ===== 推荐文章样式 ===== */
.fm_recommend_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fm_recommend_item {
    margin: 8px 0;
}

.fm_recommend_item .title {
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
    border: 1px solid #0039ed;
    padding: 3px 5px;
    color: #0039ed;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fm_recommend_item .title:hover {
    background-color: #2257ff;
    color: #fff;
}

/* ===== 近期文章样式 ===== */
.recent-posts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s ease;
}

.post-item a:hover {
    color: #0521f8;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.post-date {
    margin: 0 10px;
}

.post-category a {
    border: solid 1px #0521f8;
    font-size: 12px;
    color: #0521f8;
    border-radius: 5px;
    padding: 2px 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category a:hover {
    background: #0521f8;
    color: #fff !important;
}
/* 近期文章小工具样式 */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-thumbnail {
    flex: 0 0 80px;
    overflow: hidden;
    border-radius: 4px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.post-title {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.post-category a {
    text-decoration: none;
}

.post-category a:hover {
    color: #0073aa;
}

/* 悬停效果 */
.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-item:hover .post-title {
    color: #0073aa;
}

/* ===== 推荐置顶文章样式 ===== */
.fm_recommend_list{margin:0;padding:0;list-style:none;}
.fm_recommend_item{margin:8px 0;}
.fm_recommend_item .title{
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
    border: 1px solid #0039ed;
    padding: 3px 5px;
    color: #0039ed;
    border-radius: 5px;
}
.fm_recommend_item .title:hover{
    background-color: #2257ff;
    color: #fff;
}

/* ===== 通用样式 ===== */
.widget-title {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

#secondary {
    float: right;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: auto;
    overflow: auto;
}

.textwidget{
    font-size: 16px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .faq_block_item_question {
        font-size: 14px;
    }
    
    .faq_block_item_answer {
        font-size: 13px;
    }
    
    .post-item a {
        font-size: 15px;
    }
    
    .fm_recommend_item .title {
        font-size: 13px;
        padding: 2px 4px;
    }
}
