/* WP Related Articles Search - 前端样式 */

/* 重置主题对 h3 的干扰 */
.wpras-related-articles .wpras-title,
.wpras-related-articles h3.wpras-title,
.wpras-related-articles > h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 2px solid #e9ecef !important;
    border-top: none !important;
    background: none !important;
    position: relative !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-align: left !important;
    display: block !important;
}

/* 去除主题添加的标题前缀图标/符号 */
.wpras-related-articles .wpras-title::before,
.wpras-related-articles h3.wpras-title::before,
.wpras-related-articles > h3::before,
.wpras-related-articles .wpras-title::marker,
.wpras-related-articles h3::marker {
    display: none !important;
    content: none !important;
}

.wpras-related-articles .wpras-title::after,
.wpras-related-articles h3.wpras-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #0073aa;
}

.wpras-related-articles {
    margin: 30px 0 !important;
    padding: 20px 24px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    clear: both !important;
    overflow: hidden !important;
}

/* 去除所有列表样式 */
.wpras-related-articles .wpras-list,
.wpras-related-articles ul.wpras-list,
.wpras-related-articles ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 彻底去除列表项前的黑点、图标、符号 */
.wpras-related-articles .wpras-list li,
.wpras-related-articles ul.wpras-list li,
.wpras-related-articles ul li,
.wpras-related-articles .wpras-item {
    list-style-type: none !important;
}

.wpras-related-articles .wpras-list li::before,
.wpras-related-articles ul.wpras-list li::before,
.wpras-related-articles ul li::before,
.wpras-related-articles .wpras-item::before,
.wpras-related-articles .wpras-item::after {
    display: none !important;
    content: none !important;
}

.wpras-related-articles .wpras-list li::marker,
.wpras-related-articles ul.wpras-list li::marker,
.wpras-related-articles ul li::marker,
.wpras-related-articles .wpras-item::marker {
    display: none !important;
    content: "" !important;
}

/* 去除链接前的图标（如🔍） */
.wpras-related-articles .wpras-link::before,
.wpras-related-articles .wpras-link::after,
.wpras-related-articles a.wpras-link::before,
.wpras-related-articles a::before {
    display: none !important;
    content: none !important;
}

.wpras-related-articles .wpras-item {
    padding: 10px 0 !important;
    border-bottom: 1px dashed #dee2e6 !important;
    margin: 0 !important;
}

.wpras-related-articles .wpras-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.wpras-related-articles .wpras-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.2s ease, padding-left 0.2s ease;
    border: none !important;
    box-shadow: none !important;
}

.wpras-related-articles .wpras-link:hover {
    color: #005a87;
    padding-left: 6px;
    text-decoration: underline !important;
}

.wpras-related-articles .wpras-icon {
    flex-shrink: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .wpras-related-articles {
        margin: 20px 0 !important;
        padding: 16px !important;
        border-radius: 8px !important;
    }

    .wpras-related-articles .wpras-title,
    .wpras-related-articles h3.wpras-title,
    .wpras-related-articles > h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }

    .wpras-related-articles .wpras-link {
        font-size: 14px;
    }
}