.ai-related-posts-container {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ai-related-heading {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ai-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 稍微加宽一点卡片 */
    gap: 24px;
}

.ai-related-post-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* 非常淡的默认阴影 */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-related-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: #e0e0e0;
}

.ai-related-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-related-post-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #222;
    line-height: 1.3;
    transition: color 0.2s;
}

.ai-related-post-item:hover .ai-related-post-title {
    color: #0073aa; /* WordPress 默认蓝，或者你的主题色 */
}

.ai-related-post-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 增加到 4 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* 让摘要填充空间 */
}

.ai-related-post-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: auto; /* 推到底部 */
    padding-top: 12px;
    border-top: 1px solid #f7f7f7;
    display: flex;
    align-items: center;
}

.ai-related-date {
    font-weight: 500;
}